/* ────────────────────────────────────
   HERO（PCは帯なし／モバイルだけ黒帯）
──────────────────────────────────── */

/* PC/タブレット：動画をそのまま表示 */
.hero{
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero video{
  position: static;
  width: 100%;
  height: auto;          /* 等倍 */
  display: block;
  object-fit: initial;   /* contain/cover 指定を無効化 */
  transform: none !important;  /* 以前の scale を打ち消し */
}

/* ── HERO：スマホは動画を少し小さく・黒帯をその分大きく ── */
@media (max-width: 767px){
  .hero{
    /* 調整用：ヘッダー高さと、黒帯に“どれだけ足すか” */
    --sp-header-h: 60px;     /* SWELLのSPヘッダー高さに合わせる */
    --sp-band-extra: 5vh;    /* ← ここを6~10vhで調整すると“動画の小ささ”が変わる */
    --adminbar: 0px;         /* WP管理バー補正（未ログインなら0px） */

    /* 合算した黒帯の最終値 */
    --sp-band: calc(var(--sp-header-h) + var(--sp-band-extra) + var(--adminbar));

    position: relative;
    width: 100%;
    height: 100vh;           /* まずはvhで全画面 */
    overflow: hidden;
    background: #000;        /* レターボックスは黒 */
  }

  /* より正確な単位が使える環境では上書き */
  @supports (height: 100dvh){
    .hero{ height: 100dvh; }
  }
  @supports (height: 100svh){
    .hero{ height: 100svh; }
  }

  /* 上の黒帯：動画と重ならず“その分の高さ”を取る */
  .hero::before{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: var(--sp-band);
    background: #000;
    z-index: 1;
    pointer-events: none;
  }

  /* 動画は黒帯の下から始まり、全体から黒帯ぶん引いた高さで表示 */
  .hero video{
    position: absolute;
    top: var(--sp-band); left: 0; right: 0;
    width: 100%;
    height: calc(100% - var(--sp-band));
    object-fit: cover;       /* 画面を満たしつつ、動画自体は“少し小さめ”に見える */
    object-position: center; /* 必要なら 50% 40% などに調整 */
    transform: none !important;
    display: block;
    background: #000;
  }

  /* ログイン時は管理バーぶんを自動で足す（約46px） */
  body.admin-bar .hero{
    --adminbar: 46px;
  }
}






/* ────────────────────────────────────
   WORKS（トップ版）
──────────────────────────────────── */
.section.works {
  max-width: 1400px;
  padding: 80px 3vw;
  margin: 0 auto;
}
.work-list { display: grid; row-gap: 160px; }
.work-item {
  display: flex; align-items: stretch; justify-content: space-between; gap: 60px;
}
.work-heading-mobile { display: none; }
.work-text {
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; height: 400px;
}
.work-text h3 {
  font-size: 4.4rem; font-weight: 540; margin: 0 0 60px; color: #000;
}
.work-text p {
  font-size: 1.2rem; line-height: 1.6; margin: 0 0 16px; color: #333;
}
/* ボタン（トップ内のみで使用） */
.button {
  display: inline-block; width: fit-content;
  padding: 10px 20px; border: 1px solid #000; background: none;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: #000;
  transition: opacity 0.2s ease; margin-top: auto;
}
.button:hover { opacity: 0.8; }

.work-image img,
.work-image video {
  width: 600px; height: 400px; object-fit: cover; display: block; background-color: #ccc;
}

@media screen and (max-width: 767px) {
  .section.works { padding: 80px 6vw 0; }
  .work-item {
    width: 100%; max-width: 100%; box-sizing: border-box;
    flex-direction: column; align-items: center; gap: 2px;
  }
  .work-heading-mobile {
    display: block; font-size: 2.6rem; font-weight: 600;
    margin-bottom: 0; width: 100%; color: #000; text-align: center;
  }
  .work-text h3 { display: none; }
  .work-image { order: 0; width: 100%; justify-content: center; }
  .work-text { order: 1; display: flex; flex-direction: column; width: 100%; }
  .work-text p { order: 1; font-size: 1rem; margin-bottom: 14px; }
  .work-text .button {
    order: 2; padding: 6px 12px; font-size: 0.8rem; border: 1px solid #000;
  }
  .work-image img, .work-image video {
    width: 100% !important; height: auto; aspect-ratio: 3 / 2;
    max-width: 100%; object-fit: cover; display: block; background-color: #ccc;
    margin-bottom: 14px;
  }
  .work-list { display: grid; row-gap: 60px; }
}

/* ────────────────────────────────────
   ABOUT（トップ）
──────────────────────────────────── */
.section.about {
  max-width: 1400px;
  padding: 80px 3vw;
  margin: 0 auto;
}
.about-content {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 60px; margin-top: 80px;
}
.about-image img {
  width: 600px; height: 400px; object-fit: cover; display: block; background-color: #ccc;
}
.about-text {
  display: flex; flex-direction: column; justify-content: flex-start;
  flex: 1; height: auto;
}
.about-name-group { margin-bottom: 16px; text-align: left; }
.about-name { font-size: 1.4rem; font-weight: 600; color: #000; margin-bottom: 2px; }
.about-name-sub { font-size: 2.4rem; font-weight: 400; color: #000; letter-spacing: 0.05em; margin-bottom: 40px; }
.about-text p { font-size: 1.2rem; line-height: 1.6; color: #333; margin: 0; text-align: left; }

@media screen and (max-width: 767px) {
  .section.about { padding: 80px 6vw 0; }
  .about-content { flex-direction: column; align-items: center; margin-top: 10px; gap: 0; }
  .about-image img { width: 100%; height: auto; }
  .about-text { width: 100%; margin-top: 24px; }
  .about-name-sub { font-size: 2rem; margin-bottom: 0; }
  .about-text p { font-size: 1rem; }
  .about-name-group { margin-bottom: 14px; }
}

/* ────────────────────────────────────
   SHOP（トップ）
──────────────────────────────────── */
.section.shop {
  max-width: 1400px;
  padding: 80px 3vw;
  margin: 0 auto;
}
.shop-content {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 60px; margin-top: 80px;
}
.shop-image img {
  width: 600px; height: 400px; object-fit: cover; display: block; background-color: #ccc;
}
.shop-text {
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; height: 400px;
}
.shop-text h3 { font-size: 3.4rem; font-weight: 540; margin: 0 0 60px; color: #000; }
.shop-text p { font-size: 1.2rem; line-height: 1.6; color: #333; }

@media screen and (max-width: 767px) {
  .section.shop { padding: 80px 6vw 0; }
  .shop-content { flex-direction: column; align-items: center; margin-top: 10px; gap: 0; }
  .shop-image img { width: 100%; height: auto; }
  .shop-text { width: 100%; margin-top: 24px; height: auto; }
  .shop-text h3 { font-size: 2rem; margin-bottom: 16px; text-align: left; }
  .shop-text p { font-size: 1rem; text-align: left; margin-bottom: 14px; }
  .shop-text .button { padding: 6px 12px; font-size: 0.8rem; border: 1px solid #000; }
}

/* ────────────────────────────────────
   CONTACT（トップ / 画像帯＋パララックス）
──────────────────────────────────── */
.section.contact{
  padding: 80px 3vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* 帯全体がリンク（窓になるエリア）*/
.contact-hero{
  --contact-height: 25vh;                       /* 帯の高さ */
  --overlay: rgba(0,0,0,.64);                   /* ← 画像を“濃く”暗く */

  display: block;
  width: 100%;
  min-height: var(--contact-height);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;

  /* 背景画像 + オーバーレイ + 固定（パララックス） */
  background-image: linear-gradient(var(--overlay), var(--overlay)), var(--contact-bg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* ホバー演出は何もしない（ユーザー要望） */
}

/* 中身（中央寄せ） */
.contact-hero__inner{
  height: 100%;
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px; /* ← 見出しとテキストの間隔を適度に */
}

/* 見出し + 普通の矢印（ノーアニメ） */
.contact-hero__title{
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
  color: #fff;
}
.contact-hero__title::after{
  content: " →";               /* ← ふつうの矢印だけ */
  font-weight: 400;            /* 細めで上品に */
}

.contact-hero__text{
  margin: 0;
  font-size: clamp(12px, 2.5vw, 18px);
  color: #f5f5f5;
}

/* モバイル微調整（余白を詰める） */
@media (max-width: 767px){
  /* セクション余白も少しだけ詰める */
  .section.contact{
    padding: 32px 6vw 24px;   /* 上:32 / 横:6vw / 下:24 に縮小 */
  }

  /* 帯の高さは内容に合わせる（余白の元凶を除去） */
  .contact-hero{
    min-height: auto;         /* ← ここがポイント */
    border-radius: 10px;
  }

  /* 中の上下余白＆行間をタイトに */
  .contact-hero__inner{
    padding: 30px 6vw;        /* ← 16px → 12px */
    gap: 2px;                 /* タイトルとテキストの間隔 */
  }
  .contact-hero__title{
    font-size: clamp(22px, 6.2vw, 32px);
    line-height: 1.05;
  }
  .contact-hero__text{
    font-size: .9rem;
  }
}


/* iOS Safari などで background-attachment: fixed が効きにくい場合のフォールバック */
@supports (-webkit-touch-callout: none) {
  .contact-hero{ background-attachment: scroll; }
}




/* ────────────────────────────────────
   背景Canvas（トップで使用）
──────────────────────────────────── */
#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none;
}
