/* 基本設定 */
:root {
  --bg: #ffffff;
  --text: #222;
  --muted: #777;
  --accent: #111;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: rgba(255,255,255,0.0);
  color: var(--text);  
}

/* コンテナ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 22px;
  font-weight: 700;
}
.site-nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--text);
}
.site-nav a:hover {
  opacity: 0.6;
}



/* ヘッダー全体 */
header {
  background: rgba(255,255,255,0.0);
  padding: 20px 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.0);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ヘッダーコンテナ */
.header-container {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

/* ロゴ */
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  font-family: 'Arial', sans-serif;
}

/* ナビリンク横並び */
.nav-links {
  list-style: none;
  display: flex;       /* 横並び */
  gap: 30px;           /* タブ間の間隔 */
  margin: 0;
  padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1.2rem;   /* ここを1remから1.2remに変更 */
    transition: color 0.3s;
}

.nav-links li a:hover {
  color: #0077cc;
}

/* スマホ対応 */
@media (max-width: 650px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}





/* HERO コンテンツ（文字） */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-top: 40vh; /* 上余白 */
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

.hero-text {
  font-size: 1.3rem;
  margin-top: 10px;
  color: #ffffff;
}





/* Works */
.works-section {
  padding: 40px 0;
}
.section-title {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.work-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.work-title {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}


/* 既存のabout-sectionスタイルの最後に追記・上書き */

.about-section {
    background: transparent; /* 背景を透過 */
}


/* 背景動画 */
.about-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

/* 半透明オーバーレイ */
.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* ABOUTコンテンツを前面に表示 */
.about-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-text {
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Contact */
.contact-section {
  padding: 40px 0;
  text-align: center;
}
.contact-text a {
  color: var(--accent);
  text-decoration: none;
}
.contact-text a:hover {
  opacity: 0.7;
}

/* Footer */
.footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #eee;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 650px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
}


/* 画面全体背景動画 */
.background-video {
    position: fixed; /* 常に画面に固定 */
    top: 0;
    left: 0;
    width: 100vw;    /* 画面幅いっぱい */
    height: 100vh;   /* 画面高さいっぱい */
    object-fit: cover;
    z-index: -1;     /* コンテンツの背面に配置 */
}


.about-section::before {
    z-index: -1; /* 動画より手前に */
}


/* ABOUTセクションのコンテンツは動画より前面に表示 */
.about-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 120px auto;
    padding: 20px;
    color: #fff; /* 背景動画に合わせて文字色を白に */
}




.about-section h1 {
    font-size: 2.4rem;
    margin-bottom: 40px;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* スマホでも縦並びになる */
    justify-content: center;
}



.profile-image img {
    width: 280px;
    height: auto;
    border-radius: 8px;
}

.bio {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* 必要に応じて文字の見やすさ用オーバーレイ */
.about-section::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3); /* 半透明黒 */
    z-index: 0;
}



/* WORKS GRID */
.works-section {
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 20px;
}

.works-section h1 {
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.work-thumb {
  position: relative;
  overflow: hidden;
}


/* サムネ画像 */
.work-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
}

/* ホバー用動画 */
.work-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  pointer-events: none; /* クリックは a に通す */
  transition: opacity 0.4s ease;
}

.work-thumb:hover img {
  opacity: 0;
}


.work-thumb img:hover {
    transform: scale(1.03);
}

.work-thumb:hover .work-hover-video {
  opacity: 1;
}


.work-caption {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: 80%;
}


.work-caption p {
  margin: 0;
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: #111;
  background: rgba(255, 255, 255, 0); /* 通常時は透明 */
  transition: background 0.3s ease;
}


.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.0);
  transition: background 0.3s ease;
  z-index: 1;
}



.work-thumb:hover .work-caption p {
  background: rgba(255,255,255,1);
}




/* WORK DETAIL PAGE */
.work-detail {
  max-width: none;     /* ← ここが超重要 */
  margin: 120px 0;
  padding: 0;
}

.work-detail-inner {
  display: block;
}




.work-detail-text {
  max-width: 600px;
  margin: 60px ;
  text-align: left;
}


.work-detail-text h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  white-space: nowrap;   /* ← 追加 */
}

.work-detail-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: nowrap;   /* ← 追加 */
}

@media (max-width: 768px) {
  .work-detail-text h1,
  .work-detail-text p {
    white-space: normal;
  }
}



/* 動画ラッパーもブロック化 */
.video-link {
  display: block;
  width: 100%;
}

/* 動画本体 */
.work-detail-inner video {
  display: block;
  width: calc(100vw - 120px);  /* ← 左右60px余白 */
  max-width: 1800px;
  margin: 0 auto;
  border-radius: 8px;
}



/* クリック可能だと分かりやすく */
.video-link:hover video {
  opacity: 0.9;
}



/* =========================
   INDEX コピーライト固定表示
========================= */

.site-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  pointer-events: none; /* クリック不要なら */
}


/* =========================
   HOME プロフィール縦スクロール
========================= */

.profile-scroll {
  max-height: 45vh;   /* 60vh → 45vh に */
  overflow-y: auto;
  padding-right: 10px;
}

/* スクロールバーを控えめに */
.profile-scroll::-webkit-scrollbar {
  width: 6px;
}
.profile-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* 詳細プロフィール */
.profile-detail {
  margin-top: 40px;
  color: #fff;
}

.profile-detail section {
  margin-bottom: 32px;
}



.profile-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-detail li,
.profile-detail p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}






/* =========================
   スクロールフェードイン
========================= */

.fade-in {
  opacity: 0;
  transform: translateY(40px); /* 20px → 40px */
  transition: opacity 1s ease, transform 1s ease;
}


.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}




/* =========================
   プロフィールセクション見出し（強調・存在感UP）
========================= */

.profile-heading {
  font-size: 1.6rem;          /* 大きくする（1.65rem → 2rem） */
  font-weight: 800;         /* しっかり太く */
  letter-spacing: 0.06em;   /* 展示タイトルらしい余白 */
  margin-bottom: 50px;
  text-transform: uppercase;
  line-height: 2.2;
  opacity: 0.95;
}




/* =========================
   CONTACT PAGE
========================= */

.contact-section {
  max-width: 800px;
  margin: 160px auto;
  padding: 0 20px;
  color: #222;
}

.contact-inner {
  text-align: center;
}

.contact-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.contact-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 60px;
  color: #555;
}

.contact-info p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 32px;
}

.contact-info a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  opacity: 0.6;
}



/* CONTACT 箇条書き */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 60px;
  max-width: 520px;
  text-align: left;
}

.contact-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

/* シンプルな点マーカー */
.contact-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #111;
  font-weight: bold;
}



/* =========================
   CONTACT 条件・留意事項
========================= */

.contact-conditions {
  max-width: 720px;
  margin: 80px auto 0;
  color: #222;
}

/* 見出し */
.contact-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-subheading {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 12px;
}

/* 説明文 */
.contact-note {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* 左ライン付きボックス */
.contact-list-box {
  border-left: 2px solid #ddd;
  padding-left: 20px;
  margin-bottom: 40px;
}

/* 条件リスト */
.contact-condition-list {
  list-style: none;
  margin: 0 0 32px;
  padding-left: 20px;          /* 縦線から文字まで */
  border-left: 2px solid #ddd; /* ← 一本の縦線 */
}

.contact-condition-list li {
  position: relative;
  padding-left: 18px;   /* ・マーカー分 */
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.8;
}


/* ・ マーカー */
.contact-condition-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: #111;
}


/* 補足文字 */
.small-note {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 備考 */
.contact-remarks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-remarks li {
  position: relative;
  padding-left: 0px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.8;
}





/* =========================
   CONTACT：留意事項・備考（左揃え＋■）
========================= */

.contact-conditions {
  text-align: left;              /* ← 中央揃え解除 */
  max-width: 720px;
  margin: 80px auto 0;
  color: #222;
}

/* 見出し */
.contact-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-subheading {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 48px 0 16px;
}

/* 説明文 */
.contact-note {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}



/* 補足文 */
.small-note {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 4px;
}



/* =========================
   CONTACT 見出し用 ■ マーカー
========================= */

.square-title {
  position: relative;
  padding-left: 20px;
}

.square-title::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.7rem;
  color: #111;
}


/* CONTACT 窓口リンク */
.contact-condition-list a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.contact-condition-list a:hover {
  opacity: 0.6;
}


.profile-detail li a {
  color: inherit;           /* 文字色はそのまま */
  text-decoration: none;    /* 下線を消す */
  transition: opacity 0.2s ease;
}

.profile-detail li a:hover {
  opacity: 0.6;             /* ほんのり反応 */
}





/* テキストのみの WORK */
.work-thumb--text {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 24px;
  transition: background 0.3s ease;
}

.work-thumb--text:hover {
  background: #ffffff;
}

.work-text-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #666;
}

.work-text-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
}

.work-text-meta {
  font-size: 0.8rem;
  color: #777;
}



/* =========================
   外部記事リンク（WORK DETAIL）
========================= */

.external-article {
  max-width: 600px;
  margin: 120px auto 60px;
  padding: 40px;
  border: 1px solid #ddd;
  text-align: center;
}

.external-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #777;
  margin-bottom: 20px;
}

.external-link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 2px solid #111;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.external-link:hover {
  opacity: 0.6;
}



/* =========================
   WIP PAGE
========================= */

/* WIP SECTION：画面いっぱい使う */
.wip-section {
  max-width: 1800px;          /* ← 制限を外す */
  margin: 120px 0;
  padding: 0 40px;          /* 端の余白だけ残す */
}



.wip-section h1 {
  font-size: 2.4rem;
  margin-bottom: 40px;
}






/* Masonry GRID：中央基準でフル幅 */
.wip-grid {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 auto;
  transform: translateX(170px);
}


/* 基準列 */
.wip-sizer,
.wip-item {
  width: 16.66%;
  margin-bottom: 6px;
}

.wip-medium { width: 33.33%; }
.wip-large  { width: 50%; }


/* 画像・動画は必ず親にフィット */
.wip-item img,
.wip-item video {
  width: 100%;
  height: auto;
  display: block;
}



@media (max-width: 1200px) {
  .wip-sizer,
  .wip-item {
    width: 33.333%;
  }
}

@media (max-width: 768px) {
  .wip-sizer,
  .wip-item {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .wip-sizer,
  .wip-item {
    width: 100%;
  }
}




/* =========================
   WORK FILTER
========================= */

.work-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f0f0f0;
}

.filter-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}



#work-description p {
  margin-bottom: 0.8em;
  line-height: 1.0;
}



#work-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

#work-media video {
  width: 100%;
  height: auto;
  display: block;
}
