/*
 * lp_column.css — 共通レイアウト・ヘッダー・ナビゲーション・追従CTA・フッター
 * 記法: セレクターのネストなし・インデント2スペース。
 * レスポンシブ指定は関連ルールの近くに記載。上書き順と詳細度を維持する。
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  /* 1rem = 10px に設定 */
  overflow-x: clip;
}

section {
  padding: 72px 0 0;
}

@media (max-width: 768px) {
  section {
    padding: 36px 0 0;
  }
}

/* ------------------------------------------------------------ */
/*  文字の設定 */
/* ------------------------------------------------------------ */
body {
  /* 全体はゴシック体を指定 */
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.menu-open {
  overflow-x: clip;
}

/* セリフ体（明朝体）用のクラス */
.serif {
  font-family: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* === 変数定義（共通ルール） === */
:root {
  --header-height: 64px;
  --fixed-cta-height: 108px;

  /* フォントサイズ (PC用) */
  --fs-number: 8rem;
  /* 80px */
  --fs-text: 3.6rem;
  /* 36px */
  --fs-title: 2.4rem;
  /* 24px */
  --fs-desc: 1.4rem;
  /* 14px */

  /* 余白 */
  --spacing-side: 10%;
  /* PC時の左右の基本余白 */
  --margin-bottom: 5rem;
  /* ヘッダー下の余白 (50px) */

  /* 文字色 */
  --color-text-main: #1a1a1a;
  --color-text-sub: #333333;

  /* タイポグラフィ */
  --fs-h1: 5.6rem;
  --fs-h2: 3.8rem;
  --fs-h3: 2.2rem;
  --fs-body: 1.5rem;
  --lh-heading: 1.5;
  --lh-body: 2;
  --ls-heading: 0.1em;
  --ls-body: 0.08em;
}

/* === スマホ用（例：768px以下） === */
@media (max-width: 768px) {
  :root {
    --fs-number: 6rem;
    /* 60px */
    --fs-text: 2.8rem;
    /* 28px */
    --fs-title: 2rem;
    /* 20px */
    --fs-desc: 1.4rem;
    /* 14px */

    --spacing-side: 5%;
    --margin-bottom: 3rem;

    --fs-h1: 3.2rem;
    --fs-h2: 2.4rem;
    --fs-h3: 1.8rem;
    --fs-body: 1.4rem;
    --lh-heading: 1.7;
    --lh-body: 1.9;
  }
}

/* ------------------------------------------------------------ */
/* タイポグラフィ */
/* ------------------------------------------------------------ */
h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

h2 {
  margin-bottom: 3.6rem;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

h3 {
  margin-bottom: 2.4rem;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

p {
  color: #444;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

/* --------------------------------------- */
/* 全体レイアウト */
/* --------------------------------------- */
.l-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
}

/* 中央 */
.main-container {
  width: 792px;
  max-width: 100%;
}

/* サイド */
.side-right-container {
  width: calc((100vw - 792px) / 2);
  height: 100vh;
  position: sticky;
  top: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  background-color: #2d2b2b;
}

/* サイド兼 header */
.side-left-container {
  width: calc((100vw - 792px) / 2);
  height: 100vh;
  color: #20201e;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
}

@media (max-width: 1180px) {
  .side-left-container {
    background-color: #20201e;
  }
}

/* 左サイドのナビ幅が足りなくなるタブレット以下は、上部ヘッダーに切り替える */
@media screen and (max-width: 1180px) {
  .l-wrapper {
    display: block;
  }

  .main-container {
    width: min(792px, 100%);
    margin-inline: auto;
    padding-top: var(--header-height);
  }

  .side-right-container {
    display: none;
  }
}

/* --------------------------------------- */
/* headerの設定 */
/* --------------------------------------- */
.side-left-container .header-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

.side-left-container .header-inner .logo {
  z-index: 100;
}

.side-left-container .header-inner .logo picture img {
  max-width: 240px;
  width: 100%;
}

.side-left-container .header-inner .header-title {
  padding: 20px;
  font-family: "BIZ UDMincho", serif;
  line-height: 1.5;
  z-index: 100;
}

.side-left-container .gnav {
  margin-top: 50px;
  flex-grow: 1;
}

.side-left-container .gnav ul {
  list-style: none;
  padding: 20px;
}

.side-left-container .gnav li {
  margin-bottom: 20px;
  font-family: serif;
  font-size: 2rem;
}

.side-left-container .gnav li .gnav-small {
  font-size: 1.6rem;
}

.side-left-container .gnav a {
  text-decoration: none;
  color: #333;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.side-left-container .hamburger-btn {
  display: none;
  /* PCでは非表示 */
}
/* =========================================
       タブレット・スマホ用スタイル (1180px以下)
    ========================================= */
@media screen and (max-width: 1180px) {
  .side-left-container {
    width: 100%;
    height: var(--header-height);
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
  }

  .side-left-container.is-open .gnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .side-left-container .header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 792px;
    height: 100%;
    margin-inline: auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .side-left-container .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
  }

  .side-left-container .logo img {
    display: block;
    height: 24px;
    width: auto;
    max-width: min(42vw, 200px);
  }

  .side-left-container .header-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 16px;
    padding: 0;
    color: #fff;
    font-family: "BIZ UDMincho", serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.4;
  }

  .side-left-container .header-info {
    display: none;
  }

  .side-left-container .gnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #333;
    z-index: 90;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(var(--header-height) + 24px) 20px
      calc(var(--fixed-cta-height) + 24px);

    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .side-left-container .gnav ul {
    text-align: center;
    padding: 0;
  }

  .side-left-container .gnav li {
    font-size: clamp(18px, 3vh, 24px);
    margin-bottom: clamp(12px, 2.2vh, 30px);
  }

  .side-left-container .gnav a {
    color: #fff;
    text-decoration: none;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  /* ハンバーガーボタン */
  .side-left-container .hamburger-btn {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 0;
  }

  .side-left-container .hamburger-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 9px;
    transition: all 0.3s ease;
  }

  .side-left-container .hamburger-btn span:nth-child(1) {
    top: 14px;
  }

  .side-left-container .hamburger-btn span:nth-child(2) {
    top: 23px;
  }

  .side-left-container .hamburger-btn span:nth-child(3) {
    bottom: 14px;
  }

  /* .is-active が付いた時の「×」 */
  .side-left-container .hamburger-btn.is-active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
  }

  .side-left-container .hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
  }

  .side-left-container .hamburger-btn.is-active span:nth-child(3) {
    bottom: 23px;
    transform: rotate(-45deg);
  }
}

/* スマホ用ヘッダー */
@media screen and (max-width: 767px) {
  .side-left-container .header-inner {
    padding-inline: 16px;
  }

  .side-left-container .logo img {
    width: auto;
    height: 20px;
    max-width: 110px;
  }

  .side-left-container .header-title {
    margin-inline: 8px;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: nowrap;
    text-align: left;
  }
}

/* ------------------------------------------------------------ */
/* 追従CTA */
/* ------------------------------------------------------------ */

.fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 105;
  display: flex;
  width: 100%;
  max-width: 792px;
  height: 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 100%);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}

.fixed-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.fixed-cta__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 50%;
  height: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  text-decoration: none;
}

.fixed-cta__contact {
  color: #fff;
  background-color: #211718;
}

.fixed-cta__model {
  color: #211718;
  background-color: #ffea00;
}

.fixed-cta__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.fixed-cta__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fixed-cta__text {
  margin: 0;
  color: inherit;
  font-size: clamp(16px, 0.8vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

@media screen and (max-width: 1180px) {
  .fixed-cta__item {
    gap: 12px;
  }

  .fixed-cta__icon {
    width: 38px;
    height: 38px;
  }

  .fixed-cta__text {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) {
  .fixed-cta {
    max-width: none;
  }

  .fixed-cta__item {
    gap: 7px;
    padding-inline: 8px;
  }

  .fixed-cta__icon {
    width: 28px;
    height: 28px;
  }

  .fixed-cta__text {
    font-size: clamp(12px, 3.6vw, 16px);
  }
}

/* ------------------------------------------------------------ */
/* サンドイメージ */
/* ------------------------------------------------------------ */

.sand-image,
.sand-image .scene-container {
  width: 100%;
  max-width: 792px;
  margin-inline: auto;
  overflow: hidden;
}

.sand-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 792 / 487;
  object-fit: cover;
}

/* ------------------------------------------------------------ */
/* TOPへ戻るボタン */
/* ------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
}

#top .wrapper span {
  border-left: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  bottom: 0;
  display: block;
  height: 15px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 15%;
  transform: scale(1) rotate(45deg);
  transition: transform 0.3s ease-in-out;
  width: 15px;
  z-index: 125;
}

#top .wrapper a {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 60px;
  height: 60px;
  background-color: #504333;
  border-radius: 50%;
  border: 1px solid #ffffff;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
  right: max(16px, calc((100vw - 792px) / 2 + 16px));
  bottom: 16px;
  z-index:85;
}

@media screen and (min-width: 767px) {
  #top .wrapper a {
    width: 50px;
    height: 50px;
    right: max(16px, calc((100vw - 792px) / 2 + 16px));
  }
}

#top .wrapper a.show {
  opacity: 1;
  transform: translateY(0);
}

body.fixed-cta-visible #top .wrapper a {
  bottom: calc(var(--fixed-cta-height) + 16px);
}

/* ------------------------------------------------------------ */
/* フッター */
/* ------------------------------------------------------------ */
footer {
  width: 100%;
  background-color: rgb(103 101 101);
}

footer .footer-inner {
  width: 100%;
  max-width: 792px;
  margin: 0 auto;
}

footer .footer-inner .copyright {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  color: #fff;
  font-weight: 200;
  text-align: center;
}

/* ------------------------------------------------------------ */
/* モーション軽減 */
/* ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .fixed-cta,
  #top .wrapper a,
  .side-left-container .gnav,
  .side-left-container .hamburger-btn span {
    transition: none;
  }
}
