@charset "UTF-8";

/* ==========================================================================
   CYCLING HOTEL 差分CSS（Project 層のみ）
   Foundation / Layout / Component は共通の assets/css/style.css を使う。
   幅・位置・フォントは共通と同じ「--u = PCデザイン上の 1px」「--vw = SPデザイン上の 1px」で指定。
   Figma 4-845（1440 × 6571）。座標はコンテナ左端 110 を 0 とした値
   ========================================================================== */

/* --- 共通パーツ：セクション見出し（手書き画像 ＋ 線 ＋ 自転車） ------------------ */
.p-ch__title {
  display: flex;
  align-items: flex-end;
  gap: calc(8 * var(--u));

  > img {
    height: calc(75 * var(--u));
    width: auto;
  }
}

.p-ch__title-line {
  position: relative;
  width: calc(128 * var(--u));
  height: calc(35 * var(--u));
  margin-bottom: calc(20 * var(--u));
  border-bottom: 1.5px solid var(--c-text);

  img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: calc(58 * var(--u));
    height: calc(35 * var(--u));
  }
}

/* --- 共通パーツ：緑帯のキャッチコピー（1行ずつ帯） ------------------------------- */
.p-ch__catch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(3 * var(--u));
  color: var(--c-white);
  font-weight: 400;
  font-size: calc(26 * var(--u));
  line-height: calc(41 * var(--u));
  letter-spacing: 0.3em;
  white-space: nowrap;

  span {
    display: block;
    height: calc(41 * var(--u));
    padding: 0 calc(25 * var(--u));
    background: var(--c-green);
  }
}

/* --- ヒーロー -------------------------------------------------------------- */
.p-ch__hero {
  position: relative;
  height: calc(660 * var(--u));
}

.p-ch__hero-catch {
  position: absolute;
  top: calc(431 * var(--u));
  left: calc(775 * var(--u));
}

.p-ch__badge {
  position: absolute;
  top: calc(555 * var(--u));
  left: calc(40 * var(--u));
}

/* --- concept（コラージュ：絶対配置） ------------------------------------------ */
/* 本文（concept-text）だけは流れに置き、文章が長くなったらセクションごと伸ばす。
   flow-root は本文の margin-top がセクションの外へ抜けないようにするため */
.p-ch__concept {
  position: relative;
  display: flow-root;
  min-height: calc(856 * var(--u));
  margin-top: calc(100 * var(--u));
}

.p-ch__concept-img {
  position: absolute;
  border-radius: calc(5 * var(--u));
}

.p-ch__concept-img--1 { top: 0; left: calc(755 * var(--u)); width: calc(520 * var(--u)); height: calc(346 * var(--u)); }
.p-ch__concept-img--2 { top: calc(413 * var(--u)); left: calc(-55 * var(--u)); width: calc(665 * var(--u)); height: calc(443 * var(--u)); }

.p-ch__concept-title { position: absolute; top: calc(135 * var(--u)); left: calc(176 * var(--u)); }
.p-ch__concept-catch { position: absolute; top: calc(477 * var(--u)); left: calc(701 * var(--u)); }
.p-ch__concept-text  { position: relative; margin: calc(688 * var(--u)) 0 0 calc(731 * var(--u)); } /* キャッチ3行の下 */

/* --- ギャラリー（見た目は .c-slider--cards。ここでは余白だけ） ---------------------- */
.p-ch__gallery {
  margin-top: calc(200 * var(--u));
}

.p-ch__pager {
  margin-top: calc(31 * var(--u));
}

/* --- rooms ---------------------------------------------------------------- */
.p-ch__rooms {
  position: relative;
  height: calc(439 * var(--u));
  margin-top: calc(200 * var(--u));
}

/* 写真：1440px までは画面左端に付ける。それより広い画面ではデザイン幅 1440 の左端で止める */
.p-ch__rooms-img {
  position: absolute;
  top: 0;
  left: calc((100% - 1440 * var(--u)) / 2);
  width: calc(780 * var(--u));
  height: calc(439 * var(--u));
  border-radius: 0 calc(5 * var(--u)) calc(5 * var(--u)) 0;
  object-fit: cover;
}

.p-ch__rooms-body {
  position: absolute;
  top: calc(80 * var(--u)); /* 本文の行間を広げたぶん上に詰める */
  left: calc((100% - calc(1220 * var(--u))) / 2 + calc(782 * var(--u)));
}

/* PC は行間を少し広げる（1.7 → 2） */
.p-ch__rooms-text {
  margin-top: calc(60 * var(--u));
  line-height: 2;
}

/* 画面端から離れたら左側の角も丸める */
@media (width > 1440px) {
  .p-ch__rooms-img { border-radius: calc(5 * var(--u)); }
}

/* --- Instagram ------------------------------------------------------------ */
.p-ch__insta {
  margin-top: calc(200 * var(--u));
}

/* 5枚のモザイク（1110 × 532.5） */
.p-ch__insta-grid {
  position: relative;
  width: calc(1110 * var(--u));
  height: calc(532.5 * var(--u));
  margin: calc(50 * var(--u)) auto 0;
}

.p-ch__insta-item {
  position: absolute;

  img {
    width: 100%;
    height: 100%;
    border-radius: calc(5 * var(--u));
    object-fit: cover;
  }
}

.p-ch__insta-item--1 { top: 0; left: 0; width: calc(531.6 * var(--u)); height: calc(531.6 * var(--u)); }
.p-ch__insta-item--2 { top: 0; left: calc(536 * var(--u)); width: calc(228 * var(--u)); height: calc(264 * var(--u)); }
.p-ch__insta-item--3 { top: 0; left: calc(768.5 * var(--u)); width: calc(341.5 * var(--u)); height: calc(264 * var(--u)); }
.p-ch__insta-item--4 { top: calc(268.5 * var(--u)); left: calc(536 * var(--u)); width: calc(341.5 * var(--u)); height: calc(264 * var(--u)); }
.p-ch__insta-item--5 { top: calc(268.5 * var(--u)); left: calc(882 * var(--u)); width: calc(228 * var(--u)); height: calc(264 * var(--u)); }

.p-ch__insta-btn {
  margin: calc(39.5 * var(--u)) auto 0;
}

/* --- 開業・先行予約（共通部品の余白だけ上書き） ------------------------------------ */
.p-ch__newsletter.c-newsletter {
  margin-top: calc(220 * var(--u));
}

/* --- access --------------------------------------------------------------- */
.p-ch__access {
  position: relative;
  height: calc(1603.5 * var(--u));
  margin-top: calc(100 * var(--u));
}

.p-ch__access-img {
  position: absolute;
  top: 0;
  left: calc(791 * var(--u));
  width: calc(360 * var(--u));
  height: calc(203 * var(--u));
  border-radius: calc(5 * var(--u));
}

.p-ch__access-title {
  position: absolute;
  top: calc(17 * var(--u));
  left: calc(195 * var(--u));
}

.p-ch__access-address {
  position: absolute;
  top: calc(167 * var(--u));
  left: calc(126 * var(--u)); /* ボタンと同じ（No.64） */
}

.p-ch__access-btn {
  position: absolute;
  top: calc(225 * var(--u));
  left: calc(126 * var(--u));
}

.p-ch__access-illust {
  position: absolute;
  top: calc(325 * var(--u));
  left: calc(-1 * var(--u));
}

.p-ch__access-map {
  position: absolute;
  top: calc(995 * var(--u));
  left: 0;
}

/* --- サイト切り替え（見た目は .c-site-switch。ここでは余白だけ） ------------------- */
.p-ch__switch {
  margin-top: calc(75.5 * var(--u));
}


/* ==========================================================================
   Responsive（SPデザイン未支給。PCの構成を縦積みにした推定レイアウト）
   ========================================================================== */

@media (width <= 1024px) {
  /* Figma 4-1199（390 × 7674）。y はステータスバー 47px を引いた値 */

  /* --- 共通パーツ --- */
  .p-ch__title {
    gap: calc(8 * var(--vw));

    > img { height: calc(66 * var(--vw)); }
  }

  .p-ch__title-line {
    width: calc(128 * var(--vw));
    height: calc(35 * var(--vw));
    margin-bottom: calc(16 * var(--vw));

    img { width: calc(58 * var(--vw)); height: calc(35 * var(--vw)); }
  }

  .p-ch__catch {
    gap: calc(4 * var(--vw));
    font-size: calc(24 * var(--vw));
    line-height: calc(40 * var(--vw));
    letter-spacing: 0.2em;

    span { height: calc(40 * var(--vw)); padding: 0 calc(10 * var(--vw)); }
  }

  /* --- ヒーロー：全幅、下端に「開業のお知らせ」の帯 --- */
  .p-ch__hero.l-inner { width: 100%; }

  .p-ch__hero { height: auto; }

  .p-ch__hero-img {
    aspect-ratio: 390 / 723;
    border-radius: 0;
  }

  .p-ch__hero-catch {
    top: calc(63 * var(--vw));
    left: calc(45 * var(--vw));

    span { padding: 0 calc(24 * var(--vw)); }
  }

  .p-ch__badge {
    /* 画像の下寄り・左右中央に置く。画像の高さに対する割合で指定し、タブレット幅でも同じ位置関係にする
       （390px のデザインで上から 519 / 723 ＝ 下から 18.5%） */
    top: auto;
    bottom: 18.5%;
    left: 50%;
    translate: -50% 0;
  }

  /* --- concept：縦に流す --- */
  .p-ch__concept {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 0;
    margin-top: calc(121 * var(--vw));
  }

  .p-ch__concept-img,
  .p-ch__concept-title,
  .p-ch__concept-catch,
  .p-ch__concept-text {
    position: static;
  }

  .p-ch__concept-title { order: 1; margin-left: calc(7 * var(--vw)); }

  /* 左端まで伸ばし、右は 18px 残す */
  .p-ch__concept-img--1 {
    order: 2;
    width: calc(372 * var(--vw));
    max-width: none;
    height: auto;
    margin: calc(100 * var(--vw)) 0 0 calc(-1 * var(--gutter-sp));
    aspect-ratio: 372 / 248;
    border-radius: 0 calc(5 * var(--vw)) calc(5 * var(--vw)) 0;
  }

  .p-ch__concept-catch { order: 3; margin-top: calc(100 * var(--vw)); }

  .p-ch__concept-text { order: 4; margin: calc(50 * var(--vw)) 0 0 calc(9 * var(--vw)); }

  /* 右端まで伸ばす */
  .p-ch__concept-img--2 {
    order: 5;
    width: calc(100% + var(--gutter-sp));
    max-width: none;
    height: auto;
    margin-top: calc(100 * var(--vw));
    aspect-ratio: 370 / 260;
    border-radius: calc(5 * var(--vw)) 0 0 calc(5 * var(--vw));
  }

  /* --- ギャラリー --- */
  .p-ch__gallery { margin-top: calc(120 * var(--vw)); }

  .p-ch__pager { margin: calc(20 * var(--vw)) var(--gutter-sp) 0; }

  /* --- rooms：見出し → 本文 → 写真 --- */
  .p-ch__rooms {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: calc(150 * var(--vw));
  }

  /* rooms は l-inner の外なので左右の余白を自前で持つ */
  .p-ch__rooms-body {
    position: static;
    order: 1;
    margin-inline: calc(30 * var(--vw));
  }

  .p-ch__rooms-text { margin-top: calc(47 * var(--vw)); line-height: 1.7; }

  .p-ch__rooms-img {
    position: static;
    order: 2;
    width: 100%;
    height: auto;
    margin-top: calc(49 * var(--vw));
    aspect-ratio: 390 / 260;
    border-radius: 0;
  }

  /* --- Instagram：PC と同じモザイクを SP 寸法で --- */
  .p-ch__insta { margin-top: calc(150 * var(--vw)); }

  .p-ch__insta-grid {
    width: calc(349.3 * var(--vw));
    height: calc(677 * var(--vw));
    margin: calc(30 * var(--vw)) auto 0; /* タブレット幅でも中央に置く */
  }

  .p-ch__insta-item img { border-radius: calc(5 * var(--vw)); }

  .p-ch__insta-item--1 { top: 0;            left: 0;            width: calc(349.3 * var(--vw)); height: calc(349.3 * var(--vw)); }
  .p-ch__insta-item--2 { top: calc(352.6 * var(--vw));   left: 0;            width: calc(138.8 * var(--vw)); height: calc(160.8 * var(--vw)); }
  .p-ch__insta-item--3 { top: calc(352.6 * var(--vw));   left: calc(141.2 * var(--vw));   width: calc(208.1 * var(--vw)); height: calc(160.9 * var(--vw)); }
  .p-ch__insta-item--4 { top: calc(516.1 * var(--vw));   left: 0;            width: calc(208.1 * var(--vw)); height: calc(160.9 * var(--vw)); }
  .p-ch__insta-item--5 { top: calc(516.1 * var(--vw));   left: calc(210.5 * var(--vw));   width: calc(138.8 * var(--vw)); height: calc(160.8 * var(--vw)); }

  .p-ch__insta-btn {
    width: calc(330 * var(--vw));
    margin: calc(30 * var(--vw)) auto 0;
  }

  .p-ch__newsletter.c-newsletter { margin-top: calc(155 * var(--vw)); }

  /* --- access --- */
  .p-ch__access {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    margin-top: calc(150 * var(--vw));
  }

  .p-ch__access-img,
  .p-ch__access-title,
  .p-ch__access-address,
  .p-ch__access-btn,
  .p-ch__access-illust,
  .p-ch__access-map {
    position: static;
  }

  .p-ch__access-img {
    order: 1;
    width: calc(370 * var(--vw));
    max-width: none;
    height: auto;
    margin-left: calc(-1 * var(--gutter-sp));
    aspect-ratio: 370 / 208;
    border-radius: 0 calc(5 * var(--vw)) calc(5 * var(--vw)) 0;
  }

  .p-ch__access-title { order: 2; margin: calc(150 * var(--vw)) 0 0 calc(2 * var(--vw)); }

  .p-ch__access-address {
    order: 3;
    margin: calc(64 * var(--vw)) 0 0 calc(21 * var(--vw)); /* ボタンと同じ左端 */
    text-align: left;
  }

  .p-ch__access-btn {
    order: 4;
    width: calc(200 * var(--vw));
    height: calc(39 * var(--vw));
    margin: calc(19 * var(--vw)) 0 0 calc(21 * var(--vw));
    border-radius: calc(10 * var(--vw));
    font-size: calc(16 * var(--vw));
  }

  .p-ch__access-illust {
    order: 5;
    margin-top: calc(50 * var(--vw));
  }

  .p-ch__access-map { order: 6; margin-top: calc(50 * var(--vw)); }

  /* --- サイト切り替え --- */
  .p-ch__switch { margin-top: calc(50 * var(--vw)); }
}


/* ==========================================================================
   英語版（/en/cycling-hotel/）の調整
   緑帯のキャッチは日本語用に「1行＝1帯・折り返さない」作りなので、
   長い英文では帯の中で折り返せるようにし、字間も詰める
   ========================================================================== */
html[lang="en"] {
  .p-ch__catch {
    font-size: calc(21 * var(--u));
    line-height: 1.5;
    letter-spacing: 0.04em;
    white-space: normal;

    span {
      height: auto;
      padding-block: calc(4 * var(--u));
    }
  }

  /* 右端（ヒーロー写真の右端・コンテンツ右端）を越えないよう幅を決める */
  .p-ch__hero-catch { max-width: calc(500 * var(--u)); }
  .p-ch__concept-catch { max-width: calc(500 * var(--u)); }

  .p-ch__rooms-text {
    max-width: calc(420 * var(--u));
    white-space: normal;
  }

  @media (width <= 1024px) {
    .p-ch__catch {
      font-size: calc(18 * var(--vw));
      letter-spacing: 0.03em;

      span {
        padding: calc(4 * var(--vw)) calc(12 * var(--vw));
      }
    }

    .p-ch__hero-catch {
      left: calc(20 * var(--vw));
      max-width: calc(350 * var(--vw));

      span { padding-inline: calc(14 * var(--vw)); }
    }

    .p-ch__concept-catch { max-width: 100%; }

    .p-ch__rooms-text { max-width: none; }
  }
}
