/* 全体のベース */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #ccc; /* 初期背景 */
}

/* ==== 固定ヘッダーでHEROが隠れないようにする ==== */
:root{
  --header-h: 80px;          /* PCのヘッダー高さ */
}


/* PC用の最大幅 */
.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}


/* ヘッダー */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  backdrop-filter: blur(1px);
  background: transparent;   /* 透明ヘッダー */
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}
.site-header .container {
  display: flex;              /* 横並び */
  align-items: center;        /* 縦中央 */
  justify-content: space-between; /* 左ロゴ／右SNS */
  padding: 0 1.25rem;
}
.site-header .logo { display: flex; }
.site-header .logo img { height: 40px; }

.site-sns ul {
  list-style: none;
  display: flex;
  gap: 1rem;         /* アイコン間隔 */
  margin: 0;
  padding: 0;
}
.site-sns li a img {
  display: block;
  height: 35px;      /* 必要に応じて調整 */
  width: auto;
  transition: opacity .2s;
}
.site-sns li a:hover img { opacity: 0.7; }


/* HERO */
.hero{
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h, 64px) + 12px);
  padding-bottom: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: clip;
}
.hero__bg{
  position: absolute; inset: 0;
  background: url("../img/hero/hero-pc.jpg") center/cover no-repeat;
}
.hero__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.50));
}
.hero__inner{
  position: relative;
  width: min(1100px, 88vw);
  margin-inline: auto;
}
/* HERO Eyebrow: 改行制御 */
.hero__eyebrow {
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 1rem;
  font-weight: 400;
}

.hero__eyebrow .eyb {
  display: inline;
  white-space: normal;
}
.hero__eyebrow strong{ font-weight: 700; }
.hero__title{
  font-size: 16px;
  line-height: 1.25;
  margin: 1rem 0 1.2rem;
  font-weight: 400;
}

.hero__row {
  display: flex;              /* 横並び */
  align-items: flex-start;    /* 上端揃え */
  justify-content: center;
  gap: 5rem;                  /* 左右余白 */
  flex-wrap: wrap;            /* 狭い画面では折返し */
  margin-top: 4rem;
}

/* CTA */
.hero__actions{
  display: flex;
  flex-direction: column; /* 縦積み */
  gap: 2rem;
  width: 200px;
}
.btn{
  display:inline-block; padding:1rem 1.4rem;
  border:2px solid rgba(255,255,255,.9); border-radius:999px;
  color:#fff; text-decoration:none; backdrop-filter: blur(2px);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.btn--ghost:hover{ background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* 代表作カード */
.hero-card{ width: 400px; flex-shrink: 0; }
.hero-card__thumb{
  position: relative; overflow: hidden; border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  margin: 0 0 10px;
}
.hero-card__thumb img{ display:block; width:100%; height:auto; }

/* === HERO: サムネイル拡大＋中央再生ボタン（このブロックを追記） === */

/* ボタンの標準装飾リセット（他ボタンに影響させたくない場合は .play-btn に限定） */
.play-btn {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}

/* サムネイル箱：拡大時のはみ出しを隠す */
.hero-card__thumb {
  position: relative;
  overflow: hidden;       /* ← これで拡大分をクリップ */
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

/* 画像：ホバーで少しズーム */
.hero-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform .5s ease;
  will-change: transform;
}



/* サムネイル全体を覆うクリックエリア */
.play {
  all: unset;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 黒い半透明の丸 */
.play::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  transform: translate(-50%, -50%);
  transition: background .25s ease;
  box-shadow: none;
}

/* 白い細線（内側） */
.play::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  transform: translate(-50%, -50%);
}

/* 中央の三角 */
.play span {
  position: relative;
  display: block;
  width: 0; height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px; /* 視覚補正で右寄せ */
  transition: border-left-color .25s ease;
}

/* ── ホバー挙動 ── */
/* 画像だけ拡大 */
.play-btn:hover .hero-card__thumb img {
  transform: scale(1.06);
  transition: transform .5s ease;
}
/* 丸と三角は色だけ反転 */
.play-btn:hover .play::before { background: rgba(255,255,255,.75); }
.play-btn:hover .play span { border-left-color: #000; }
.play-btn:hover .play::after { border: 2px solid #000; }


.hero-card__links {
    display: flex;
    box-shadow: 2px 2px 5px rgba(0,0,0,.25);
}


/* HERO: 作品切替の選択状態（既存デザインを壊さない最小上書き） */
.hero-card__links .bar {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  text-align: center;
  background: #fff;
  color: #333;
  transition: background-color .2s ease, color .2s ease;
}

/* 選択中 */
.hero-card__links .bar.is-active {
  background: #333 !important;
  color: #fff !important;
  border-color: #333;
}

/* 非選択 */
.hero-card__links .bar:not(.is-active) {
  background: #fff !important;
  color: #333 !important;
  border-color: #fff;
}

.bar--dark{ background:#1f1f1f; color:#fff; }

@media (min-width: 1024px){
  .hero{ text-align:center; }
}
@supports (height: 100dvh){
  .hero{ min-height: 100dvh; }
}

/* セクション共通 */
.section { padding: 4rem 0; }

.sec-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* WORKS（背景フルスクリーン＆ホバー切替＋ぼかし） */
/* WORKS（背景は通常非表示／画像が来たときだけ見せる） */
.works{
  --works-bg: url("");           /* 画像URLをJSで注入 */
  position: relative;
  min-height: 100vh;
  background-color: #333;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
}

/* 背景レイヤー：初期は非表示（opacity:0） */
.works::before{
  content: "";
  position: absolute; inset: 0;
  background-image: var(--works-bg);
  background-position: center;
  background-size: cover;
  filter: blur(8px) brightness(0.6); /* ぼかし＋暗くする */
  transform: scale(1.05);
  opacity: 0;                          /* ←ここ重要：初期は見えない */
  transition: opacity .6s ease;
  z-index: 0;
}
/* 画像が入ったときだけ見せる */
.works.is-bg::before{
  opacity: 1;
}

/* コンテンツは前面 */
.works .container {
  position: relative;
  z-index: 1;
  margin-bottom: 70px;
}

.sec-title {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem);
  margin-bottom: 2rem;
}
/* グリッド（PCで2列） */
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
}
.works__grid a{
  text-decoration: none;
}
/* カード */
.work-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.work-card img {
  width: 300px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: block;
  transition: transform .3s ease;
}
.work-card:hover img {
  transform: scale(1.05);
  border: 2px solid #fff;
}
/* ボタン（ホバーで白反転） */
.works .work-card .btn {
  min-width: 150px;        /* 横幅をある程度固定 */
  text-align: center;
  margin-top: 10px;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.works .work-card:hover .btn {
  background: #fff;
  color: #111;
}


/* ABOUTのメンバーカード（必要に応じて拡張） */
.about__grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap: 2rem;
}

/* フッター */
.site-footer{
  background:#333; color:#aaa; text-align:center; padding:1.5rem 0; font-size:.85rem;
}



/* ====== 動画モーダル ====== */
.video-modal {
  position: fixed; inset: 0;
  display: none;            /* 非表示 */
  z-index: 1000;
}
.video-modal.is-open { display: block; }

.video-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);   /* 半透明暗転 */
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.video-modal.is-open .video-modal__backdrop { opacity: 1; }

.video-modal__dialog {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.video-modal.is-open .video-modal__dialog {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

.video-modal__frame,
.video-modal__frame iframe {
  width: 100%; height: 100%; display: block; border: 0;
}

.video-modal__close {
  position: absolute; right: 8px; top: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.5); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.video-modal__close:hover { background: rgba(255,255,255,.85); color: #000; }

/* モーダル中は背面スクロール禁止 */
body.modal-open { overflow: hidden; }






/* ===== ABOUT ===== */
#about { background: #d0d0d0; }
#about .container .sec-title {
  color: #333;
}
.about { padding-block: 1rem 2.5rem; }
.about__wrapper{
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.about-card--org .about-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
}

/* PCで上：1枚、下：2枚 */
@media (min-width: 960px){
  .about__wrapper{
    grid-template-columns: repeat(12, 1fr);
  }
  .about-card--org{ grid-column: 2 / span 10; } /* 中央寄せワイド */
  .about-card:nth-of-type(2){ grid-column: 2 / span 5; }
  .about-card:nth-of-type(3){ grid-column: 7 / span 5; }
}

.about-card {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 10px 20px 40px;
}

.about-card__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.about-card__logo{
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-card__logo img{
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}

.about-card__title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #333;

}

/* SNS */
.about-card__sns ul{
  display: flex;
  gap: 1rem;
  list-style: none;
}
.about-card__sns-off {
  opacity: .25;
}
.about-card__sns img{
  width: 25px; height: 25px; display: block;
  transition: transform .2s ease;
}
.about-card__sns a:hover img{ transform: scale(1.15); }

/* 本文＋画像 */
.about-card__body{
  padding: 0 20px;
}

/* ===== ABOUT: アイコンリンク（ページ内ジャンプ） ===== */
.about-icons {
  display: none;
}


@media (max-width: 960px){
  #about .about-card__body{
    grid-template-columns: 1fr;
    gap: 12px;
  }
    .about-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px auto 24px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    width: max-content;
    max-width: 100%;
    flex-wrap: wrap; /* 狭い画面では折り返し */
  }

  .about-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    min-width: 72px;
    transition: transform .15s ease, opacity .15s ease;
  }

  .about-icon img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    margin-bottom: 6px;
  }

  .about-icon:hover {
    transform: translateY(-2px);
    opacity: .9;
  }
}

.about-card--org .about-card__article {
  margin-bottom: 0;
}
.about-card__article {
  margin-bottom: 50px;
  color: #333;
}

.about-card__article>p{
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5em;
}
.about-card__list{
  margin-top: 1rem;
  display: grid; gap: 6px;
}
.about-card__list dt{
  font-size: 1rem;
  font-weight: 700; color: #555; min-width: 5.5em;
}
.about-card__list dd {
  color: #333;
  margin: 0;
}
.about-card__list > div{
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
}

/* 個人カードの画像欄を中央寄せ */
.about-card__images {
  display: flex;
  justify-content: center;  /* 横方向中央揃え */
  gap: 30px;
  flex-wrap: wrap;          /* はみ出すと折り返す */
  margin-top: 8px;          /* 上に少し余白 */
}

.about-thumb {
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.25);
  margin: 0;
}
.about-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* 小要素 */
.link{ color: #1b73e8; text-decoration: underline; text-underline-offset: 2px; font-size: 0.75rem;}

/* ===== ABOUT: はみ出し防止パッチ ===== */

/* 1) 文字は必ず折り返す（長い英単語/URLでもOK） */
#about .about-card__article p,
#about .about-card__list dd,
#about .about-card__title {
  overflow-wrap: anywhere;
  word-break: break-word;
}


#about .about-card__article,
#about .about-card__images,
#about .about-card__logo {
  min-width: 0;
}

/* 3) 画像は親幅に従って縮む。小画面では無理なく小さく */
#about .about-thumb{ width: clamp(72px, 30vw, 100px); }

/* 4) 小画面時は本文→画像の縦並び＆画像は2列グリッド化で横スクロール回避 */
@media (max-width: 600px){
  #about .about-card { padding: 10px 16px 40px; }


}

/* 5) ヘッダー行の詰まり対策（狭幅で折返し可に） */
#about .about-card__header { flex-wrap: wrap; gap: 8px 12px; }
#about .about-card__sns ul { flex-wrap: wrap; }

/* タイトルが長いときの見切れ防止（必要ならch値を調整） */
#about .about-card__title{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 22ch;
}




/* タブレット対応 */
@media (max-width: 768px){
  .hero__eyebrow .eyb--rest {
    display: block;   /* 3行目に落ちる */
    margin-top: .2em;
  }

  .hero__row {
    gap: 3rem;
  }
  .work-card img{ width: 100%; max-width: 250px; }


  
}

/* タブレット（376px〜768px）は少し大きめ */
@media (min-width: 376px) and (max-width: 768px) {
  .about-icon img {
    width: 64px;
    height: 64px;
  }
  .about-icon {
    font-size: 13px;
  }
}




/* スマホ対応 */
@media (max-width: 428px){
  .site-header .container {
    padding: 0;
  }
  .hero__eyebrow {
    margin-top: 30px;
    font-size: 20px;
  }
  /* 1行に分ける */
  .hero__eyebrow .eyb--lead {
    display: block;   /* 1行目 */
  }
  .hero__eyebrow .eyb--brand {
    display: block;   /* 2行目 */
  }
  .hero__eyebrow .eyb--rest {
    display: block;   /* 3行目 */
  }

  .hero__title {
    font-size: 14px
  }
  .hero-card {
    width: 320px;
  }
  .hero-card__links {
    display: block;
  }
  .works .container{ width: 300px; }
  .works__grid{
    grid-template-columns: 1fr; /* 作品グリッド　１列にする */
    gap: 4rem;
  }
  .work-card .btn {
    width: 100%;
    max-width: 260px;   /* ポスター画像と揃えると綺麗 */
  }
  .about-card__list > div {
    grid-template-columns: none;
  }
  .about-card__article p {
    font-size: 0.85rem;
  }
  .about-card__list dd {
    padding-left: 1rem;
  }





}






