@charset "UTF-8";

/* ==========================================================================
   SEASIDE VILLAS 差分CSS（Project 層のみ）
   Foundation / Layout / Component は共通の assets/css/style.css を使う。
   Figma 4-1490（1440 × 8195）。座標はコンテナ左端 110 を 0 とした値
   ========================================================================== */

/* --- 共通パーツ：キャッチコピー ------------------------------------------------ */
.p-sv__catch {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: calc(27 * var(--u));
  line-height: 1.7;
  letter-spacing: 0.3em;
  color: var(--c-white);
  white-space: nowrap;
}

/* --- ヒーロー（全幅） --------------------------------------------------------- */
.p-sv__hero {
  position: relative;
  height: calc(779 * var(--u));
  color: var(--c-white);
}

.p-sv__hero-img { border-radius: 0; }

.p-sv__hero-catch {
  position: absolute;
  top: calc(230 * var(--u));
  left: calc(197 * var(--u));
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: calc(22 * var(--u));
  line-height: 1.7;
  letter-spacing: 0.7em;
  text-shadow: 0 calc(4 * var(--u)) calc(55 * var(--u)) rgb(0 0 0 / 0.55);
  white-space: nowrap;
}

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

/* 写真送りの「← ●●●●● →」は全幅なので内側に寄せ、「※完成イメージ」の上に置く */
.p-sv__hero .c-hero-slides__nav {
  right: calc(145 * var(--u));
  bottom: calc(60 * var(--u));
}


/* --- 紺地のかたまり（concept 〜 開業・先行予約） ----------------------------------- */
.p-sv__dark {
  padding-top: calc(175 * var(--u));
  padding-bottom: calc(100 * var(--u));
  background: var(--c-navy-deep);
  color: var(--c-white);

  /* 紺地では本文・見出しを白に */
  .c-body-text { color: var(--c-white); }

  /* 濃色のアイコン・ロゴは白に反転 */
  .c-insta-head img { filter: brightness(0) invert(1); }
  .c-sec-label { font-size: calc(17.5 * var(--u)); }
}

/* --- concept（コラージュ：絶対配置） ------------------------------------------- */
.p-sv__concept {
  position: relative;
  height: calc(1055 * var(--u));
}

.p-sv__concept-img {
  position: absolute;
  border-radius: calc(2 * var(--u));
  max-width: none;
}

.p-sv__concept-img--1 { top: 0;         left: calc(563 * var(--u)); width: calc(767 * var(--u)); height: calc(511 * var(--u)); }
.p-sv__concept-img--2 { top: calc(361 * var(--u));  left: calc(-18 * var(--u)); width: calc(500 * var(--u)); height: calc(500 * var(--u)); }

.p-sv__concept-label { position: absolute; top: calc(144 * var(--u)); left: calc(15 * var(--u)); }
.p-sv__concept-title { position: absolute; top: calc(190 * var(--u)); left: calc(190 * var(--u)); width: calc(240 * var(--u)); text-align: center; }
.p-sv__concept-catch { position: absolute; top: calc(611 * var(--u)); left: calc(682 * var(--u)); }
.p-sv__concept-text  { position: absolute; top: calc(797 * var(--u)); left: calc(682 * var(--u)); } /* キャッチ3行の下 */

/* --- スライダー -------------------------------------------------------------- */
.p-sv__pager { margin-top: calc(33 * var(--u)); }

/* --- rooms ----------------------------------------------------------------- */
.p-sv__rooms {
  position: relative;
  height: calc(480 * var(--u)); /* 本文が7行になったぶん伸ばす（写真は 439） */
  margin-top: calc(260 * var(--u));
}

.p-sv__rooms-img {
  position: absolute;
  top: calc(1 * var(--u));
  left: calc(-110 * var(--u));
  width: calc(780 * var(--u));
  height: calc(439 * var(--u));
  max-width: none;
  object-fit: cover;
}

/* 客室スライドショーの「← ●●●● →」は画像の右下に小さめの余白で置く（No.31） */
.p-sv__rooms .c-hero-slides__nav {
  right: calc(24 * var(--u));
  bottom: calc(20 * var(--u));
}

.p-sv__rooms-label { position: absolute; top: 0;        left: calc(738 * var(--u)); }
.p-sv__rooms-title { position: absolute; top: calc(46 * var(--u));  left: calc(940 * var(--u)); width: calc(186 * var(--u)); text-align: center; }
/* 「全室オーシャンビューのヴィラ」が右端を越えないよう、ラベルの左端（738）に揃える */
.p-sv__rooms-catch { position: absolute; top: calc(168 * var(--u)); left: calc(738 * var(--u)); }
.p-sv__rooms-text  { position: absolute; top: calc(311 * var(--u)); left: calc(738 * var(--u)); }

/* --- restaurant ------------------------------------------------------------ */
.p-sv__restaurant {
  position: relative;
  height: calc(909 * var(--u));
  margin-top: calc(262 * var(--u));
}

.p-sv__rest-img {
  position: absolute;
  max-width: none;
  object-fit: cover;
}

.p-sv__rest-img--1 { top: calc(16 * var(--u));  left: calc(650 * var(--u));  width: calc(680 * var(--u)); height: calc(731 * var(--u)); }
.p-sv__rest-img--2 { top: calc(192 * var(--u)); left: calc(-110 * var(--u)); width: calc(232 * var(--u)); height: calc(355 * var(--u)); border-radius: calc(5 * var(--u)); }
.p-sv__rest-img--3 { top: calc(648 * var(--u)); left: calc(2 * var(--u));    width: calc(575 * var(--u)); height: calc(261 * var(--u)); }

.p-sv__rest-label { position: absolute; top: 0;        left: calc(-6 * var(--u)); }
.p-sv__rest-title { position: absolute; top: calc(46 * var(--u));  left: calc(99 * var(--u)); width: calc(338 * var(--u)); text-align: center; }
.p-sv__rest-catch { position: absolute; top: calc(247 * var(--u)); left: calc(211 * var(--u)); }
.p-sv__rest-text  { position: absolute; top: calc(378 * var(--u)); left: calc(211 * var(--u)); }

/* --- Instagram（3枚を全幅で並べる） --------------------------------------------- */
.p-sv__insta { margin-top: calc(200 * var(--u)); }

.p-sv__insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(5.4 * var(--u));
  width: calc(1440 * var(--u));
  max-width: none;
  margin: calc(50 * var(--u)) 0 0 calc(-110 * var(--u));

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

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

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

/* --- access（白地） ---------------------------------------------------------- */
.p-sv__access {
  position: relative;
  height: calc(1604.5 * var(--u));
  margin-top: calc(99 * var(--u));
}

.p-sv__access-label { position: absolute; top: 0;       left: calc(36 * var(--u)); }
.p-sv__access-title { position: absolute; top: calc(45 * var(--u)); left: calc(140 * var(--u)); width: calc(200 * var(--u)); text-align: center; }

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

.p-sv__access-address { position: absolute; top: calc(168 * var(--u)); left: calc(129 * var(--u)); } /* 左端はボタンと同じ（No.64） */
.p-sv__access-btn     { position: absolute; top: calc(226 * var(--u)); left: calc(129 * var(--u)); }

.p-sv__access-illust {
  position: absolute;
  top: calc(326 * var(--u));
  left: calc(2 * var(--u));
}

.p-sv__access-map {
  position: absolute;
  top: calc(996 * var(--u));
  left: calc(3 * var(--u));
}

/* --- 右端の固定タブ「開業のお知らせ」：このサイトだけ白地（デザインどおり） ---------------
   ページ下部の白地の上でも縁が分かるよう、薄い影を付ける */
.c-side-tab {
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.12);
}

.c-side-tab__icon { filter: brightness(0); } /* 白いメールアイコンを黒に */

/* --- サイト切り替え --------------------------------------------------------- */
.p-sv__switch { margin-top: calc(75.5 * var(--u)); }

/* --- 左端の固定SNSアイコン（No.26：端末差が出ないよう単色で切り替え） ------------
   通常は白。白っぽい背景の上にいるときは黒（JS が a に is-on-light を付ける）。
   -------------------------------------------------------------------------- */
.c-sns {
  img {
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
  }

  .is-on-light img { filter: brightness(0); }
}



/* ==========================================================================
   Responsive（Figma 4-1832 = SP 390 × 10411。冒頭 47px のデバイス帯を除いた値）
   ========================================================================== */

@media (width <= 1024px) {
  .p-sv__catch {
    font-size: calc(24 * var(--vw));
    letter-spacing: 0.3em;
  }

  /* --- ヒーロー --------------------------------------------------------- */
  .p-sv__hero { height: auto; }

  .p-sv__hero-img { aspect-ratio: 390 / 723; }

  /* 画面の左右中央に置く（字間の分だけ末尾に空きが出るので、同じだけ先頭を字下げして見た目を揃える） */
  .p-sv__hero-catch {
    top: calc(83 * var(--vw));
    right: 0;
    left: 0;
    padding-left: 0.5em; /* 各行末に残る字間 0.5em を全行ぶん打ち消して中央に見せる */
    text-align: center;
    font-size: calc(25 * var(--vw));
    font-weight: 500;
    letter-spacing: 0.5em; /* 「新たなリトリート」が画面に収まるよう PC（0.7em）より詰める */
    text-shadow: 0 calc(4 * var(--vw)) calc(55 * var(--vw)) rgb(0 0 0 / 0.7);
  }

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


  .p-sv__hero .c-hero-slides__nav {
    right: calc(20 * var(--vw));
    bottom: calc(85 * var(--vw));
  }

  /* SPデザインでは帯が白地・紺文字 */
  .p-sv__hero .c-hero-bar {
    background: var(--c-white);
    color: var(--c-navy-deep);
  }

  /* --- 紺地 -------------------------------------------------------------
     「開業・先行予約」の箱から下は白地。紺→白の切り替えは箱の ::before で行う（下の .p-sv__newsletter）。
     ---------------------------------------------------------------------- */
  .p-sv__dark {
    padding-top: calc(99 * var(--vw));
    padding-bottom: 0;
    /* 紺地の終わりを「開業・先行予約」の箱の上に合わせる（以前は固定の高さで切り替えていたため、
       中身の高さが変わると Instagram のボタンが白地にはみ出していた）。白地は箱の ::before で敷く */
    isolation: isolate;

    .c-sec-label { font-size: calc(15.5 * var(--vw)); }
    .c-sec-title { font-size: calc(40 * var(--vw)); }
  }

  /* --- concept ----------------------------------------------------------- */
  .p-sv__concept {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

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

  .p-sv__concept-img {
    height: auto;
    border-radius: calc(2 * var(--vw));
    object-fit: cover;
  }

  .p-sv__concept-label { order: 1; margin-left: calc(10 * var(--vw)); }

  .p-sv__concept-title {
    order: 2;
    width: auto;
    margin: calc(33.5 * var(--vw)) 0 0 calc(113 * var(--vw));
    text-align: left;
  }

  .p-sv__concept-img--1 {
    order: 3;
    width: calc(360 * var(--vw));
    margin: calc(100 * var(--vw)) 0 0 calc(10 * var(--vw));
    aspect-ratio: 360 / 415;
  }

  .p-sv__concept-catch { order: 4; margin: calc(75 * var(--vw)) 0 0 calc(10 * var(--vw)); }
  .p-sv__concept-text  { order: 5; margin: calc(41.4 * var(--vw)) 0 0 calc(10 * var(--vw)); }

  .p-sv__concept-img--2 {
    order: 6;
    width: calc(294 * var(--vw));
    margin: calc(75 * var(--vw)) 0 0 calc(-1 * var(--gutter-sp));
    aspect-ratio: 1;
  }

  /* --- スライダー --------------------------------------------------------- */
  .p-sv__slider { margin-top: calc(171 * var(--vw)); }
  .p-sv__pager  { margin: calc(25 * var(--vw)) calc(30 * var(--vw)) 0; }

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

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

  .p-sv__rooms-label { order: 1; margin-left: calc(10 * var(--vw)); }

  .p-sv__rooms-title {
    order: 2;
    width: auto;
    margin: calc(29.5 * var(--vw)) 0 0 calc(156 * var(--vw));
    text-align: left;
  }

  .p-sv__rooms-catch { order: 3; margin: calc(50 * var(--vw)) 0 0 calc(10 * var(--vw)); }
  .p-sv__rooms-text  { order: 4; margin: calc(50.4 * var(--vw)) 0 0 calc(10 * var(--vw)); }

  .p-sv__rooms-img {
    order: 5;
    width: calc(100% + var(--gutter-sp) * 2);
    height: auto;
    margin: calc(70 * var(--vw)) 0 0 calc(-1 * var(--gutter-sp));
    aspect-ratio: 390 / 290;
  }

  /* スライドショーの写真を重ねる基準にする（上の position: static を打ち消す） */
  .p-sv__rooms-img.c-hero-slides { position: relative; inset: auto; }

  .p-sv__rooms .c-hero-slides__nav {
    right: calc(20 * var(--vw));
    bottom: calc(16 * var(--vw));
  }

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

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

  .p-sv__rest-img { height: auto; }

  .p-sv__rest-label { order: 1; margin-left: calc(10 * var(--vw)); }

  .p-sv__rest-title {
    order: 2;
    width: auto;
    margin: calc(29.5 * var(--vw)) 0 0 calc(41 * var(--vw));
    text-align: left;
  }

  .p-sv__rest-catch { order: 3; margin: calc(50 * var(--vw)) 0 0 calc(11 * var(--vw)); }

  .p-sv__rest-text {
    order: 4;
    width: calc(329 * var(--vw));
    margin: calc(50.4 * var(--vw)) 0 0 calc(11 * var(--vw));
  }

  .p-sv__rest-img--1 {
    order: 5;
    width: calc(100% + var(--gutter-sp) * 2);
    margin: calc(91 * var(--vw)) 0 0 calc(-1 * var(--gutter-sp));
    aspect-ratio: 390 / 492;
  }

  .p-sv__rest-img--2 {
    order: 6;
    width: calc(251 * var(--vw));
    margin: calc(97 * var(--vw)) 0 0 calc(119 * var(--vw));
    aspect-ratio: 251 / 355;
    border-radius: calc(2 * var(--vw));
  }

  .p-sv__rest-img--3 {
    order: 7;
    width: calc(360 * var(--vw));
    margin: calc(100 * var(--vw)) 0 0 calc(-1 * var(--gutter-sp));
    aspect-ratio: 360 / 163;
    border-radius: 0;
  }

  /* --- Instagram（SPは1列） ------------------------------------------------- */
  .p-sv__insta { margin-top: calc(200 * var(--vw)); }

  .p-sv__insta-grid {
    grid-template-columns: 1fr;
    gap: calc(20 * var(--vw));
    width: calc(300 * var(--vw));
    margin: calc(30.65 * var(--vw)) auto 0;

    img { border-radius: calc(5 * var(--vw)); }
  }

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

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

  .p-sv__newsletter.c-newsletter { position: relative; }

  .p-sv__newsletter.c-newsletter::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(-150 * var(--vw)); /* Instagram のボタンと箱の間で白に切り替える */
    right: 0;
    bottom: -3px; /* 紺地の終わりと同じ位置だと端数で紺の細線が残るので、少し下まで白で覆う（No.80） */
    left: 0;
    background: var(--c-white);
    /* 左右は画面端まで白く広げる（box-shadow なので横スクロールは出ない） */
    box-shadow: 0 0 0 100vw var(--c-white);
    clip-path: inset(0 -100vw);
  }

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

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

  .p-sv__access-img {
    order: 1;
    width: calc(370 * var(--vw));
    height: auto;
    max-width: none;
    margin-left: 0;
    aspect-ratio: 370 / 217;
    border-radius: calc(2 * var(--vw));
  }

  .p-sv__access-label { order: 2; margin: calc(200 * var(--vw)) 0 0 calc(10 * var(--vw)); }

  .p-sv__access-title {
    order: 3;
    width: auto;
    margin: calc(28.5 * var(--vw)) 0 0 calc(143 * var(--vw));
    text-align: left;
  }

  .p-sv__access-address { order: 4; margin: calc(70 * var(--vw)) 0 0 calc(21 * var(--vw)); }

  .p-sv__access-btn {
    order: 5;
    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-sv__access-illust {
    order: 6;
    margin-top: calc(50 * var(--vw));
  }

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

  .p-sv__switch { margin-top: calc(50 * var(--vw)); }
}


/* ==========================================================================
   英語版（/en/seaside-villas/）の調整
   日本語用の広い字間・改行禁止は英文だと間延び／はみ出しになるので、英語版だけ直す
   ========================================================================== */
html[lang="en"] {
  .p-sv__hero-catch { letter-spacing: 0.12em; }

  .p-sv__catch {
    font-size: calc(23 * var(--u));
    letter-spacing: 0.04em;
    white-space: normal;
  }

  /* 右の写真・画面右端にかからない幅 */
  .p-sv__concept-catch { width: calc(600 * var(--u)); }
  .p-sv__rooms-catch,
  .p-sv__rooms-text { max-width: calc(470 * var(--u)); }
  .p-sv__rest-catch,
  .p-sv__rest-text { max-width: calc(420 * var(--u)); }

  .p-sv__rooms-text,
  .p-sv__rest-text,
  .p-sv__concept-text { white-space: normal; }

  @media (width <= 1024px) {
    .p-sv__hero-catch {
      font-size: calc(22 * var(--vw));
      letter-spacing: 0.06em;
      padding-left: 0.06em;
    }

    .p-sv__catch { font-size: calc(20 * var(--vw)); }

    .p-sv__concept-catch { width: auto; }

    .p-sv__concept-catch,
    .p-sv__rooms-catch,
    .p-sv__rooms-text,
    .p-sv__rest-catch,
    .p-sv__rest-text { max-width: calc(330 * var(--vw)); }
  }

  /* タブレット縦は幅を広げて、文章が左半分に寄らないようにする（No.73） */
  @media (768px <= width <= 1024px) {
    .p-sv__concept-catch,
    .p-sv__rooms-catch,
    .p-sv__rooms-text,
    .p-sv__rest-catch,
    .p-sv__rest-text { max-width: 640px; }

    .p-sv__rest-text { width: auto; }
  }
}
