/* ============================================
   ASK株式会社 コーポレートサイト - 共通スタイル
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700&family=Poppins:wght@400;500;600;700;800;900&family=Archivo+Black&display=swap');

/*
 * Lulo（Lulo One）はAdobe Fonts（Typekit）経由で読み込む。
 * <link rel="stylesheet" href="https://use.typekit.net/ckx2wln.css"> を
 * 使用ページのhead内（他のCSSより前）に追加した上で、var(--font-lulo) を
 * font-family: var(--font-lulo); font-weight: 700; font-style: normal;
 * とあわせて指定する。
 */

:root {
  --font-lulo: "lulo-one", sans-serif;
  /* Colors */
  --color-bg: #f6f6f3;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-text: #222222;
  --color-muted: #a4a4a4;
  --color-footer-bg: #3d4044;

  --color-rent: #2ca88c;      /* 借りる */
  --color-lend: #df8d6d;      /* 貸す（オーナー様） */
  --color-sell: #e4bb04;      /* 売る・買う */
  --color-lodging: #8f83b0;   /* 民泊 */
  --color-tel: #15bfc6;       /* 電話でお問い合せ */
  --color-agent: #5b7fa6;     /* 仲介業者様 / PDFダウンロード */
  --color-tenant: #6b9080;    /* 入居者様へ */

  /* Fonts */
  --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Poppins', 'Zen Kaku Gothic New', sans-serif;
  --font-display: 'Archivo Black', 'Poppins', sans-serif;

  /* Layout */
  --sidebar-width: 334px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --max-content: 1178px;
}

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

html {
  scroll-behavior: smooth;
  /*
   * 横スクロール防止はbodyではなくhtmlに付ける。
   * bodyにoverflow-xを指定するとoverflow-yが暗黙的にautoになり、
   * bodyがviewportとは別のスクロールコンテナになってしまい、
   * position: stickyな子要素がスクロールに追従しなくなる（Chrome/Safari共通の既知の挙動）。
   */
  overflow-x: hidden;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================
   ボタン共通
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  border: 1.5px solid var(--color-black);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:active {
  transform: scale(0.98);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  flex-shrink: 0;
}

.btn-arrow img {
  width: 16px;
  height: 16px;
}

.btn-primary-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
  /* 矢印はabsoluteで右端12px固定のため、テキストはpaddingを左右対称のまま
     justify-content:centerでボタン全体の中央に配置する */
}
.btn-primary-outline .btn-arrow {
  background: var(--color-white);
  transition: background-color 0.25s ease;
  position: absolute;
  top: 50%;
  right: calc(12px - 1px); /* absolute配置の基準がborder内側(padding box)になるため、実描画のborder幅(1px)分を差し引いて見た目の距離を12pxに揃える */
  transform: translateY(-50%);
}
.btn-primary-outline .btn-arrow img {
  transition: filter 0.25s ease;
}

.btn-primary-outline:hover {
  opacity: 1;
  background: var(--color-white);
  color: var(--color-black);
}
.btn-primary-outline:hover .btn-arrow {
  background: var(--color-black);
}
.btn-primary-outline:hover .btn-arrow img {
  filter: invert(1) brightness(2);
}

.btn-primary-dark {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
.btn-primary-dark .btn-arrow {
  background: var(--color-white);
}

/* ============================================
   サイトヘッダー / サイドバー（PC）+ モバイルバー
   ============================================ */
.site-header {
  position: relative;
  z-index: 100;
}

/* モバイル用トップバー */
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
  background: var(--color-bg);
  border-bottom: 1px solid #e2e2de;
  position: sticky;
  top: 0;
  z-index: 200;
}

.mobile-topbar .logo-link img {
  height: 34px;
  width: auto;
}

/* 1024px以上（左カラムを持たないページ）では従来通り非表示。
   1024px未満でのみ.mobile-topbar-actions側でdisplay:flexに切り替える */
.mobile-topbar-actions {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/*
 * SPヘッダー（Figma node-id=632-3254）。.mobile-topbarは全ページ共通で
 * js/partials.jsから描画されるため、ここでの変更は全ページに影響する。
 * ただし1024px以上では左カラム（サイドバー）を持つページ（index/about）に
 * 合わせ、1024px未満のみに適用する（左カラムなしの他ページも1024px以上は
 * 従来のヘッダーデザインのまま据え置く）。
 */
@media (max-width: 1023px) {
  .mobile-topbar {
    height: auto;
    justify-content: flex-start;
    gap: 28px;
    padding: 18px 20px;
    background: #f6f6f3;
  }

  .mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-topbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-black);
    border-radius: 6px;
  }

  .mobile-topbar-icon-btn img {
    width: 24px;
    height: 24px;
  }

  .mobile-topbar-icon-btn--tel {
    background: var(--color-tel);
  }

  .mobile-topbar-icon-btn--mail {
    background: var(--color-white);
  }

  .mobile-topbar .logo-link img {
    width: 101px;
    height: 68px;
    object-fit: cover;
  }

  .hamburger {
    margin-left: auto;
    gap: 8.6px;
  }

  .hamburger span {
    width: 100%;
    height: 2.9px;
    border-radius: 1.4px;
    background: #353535;
  }

}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/*
 * 開いた状態の「X」アニメーションのtranslateY量は、線の太さ+間隔
 * （height+gap）に一致させて中央で交差させる必要がある。1023px以下では
 * 線幅・間隔を変更しているため、新しい値（2.9px+8.6px=11.5px）で
 * 上書きする。同じ詳細度のルールはCSS上、後に書いた方が勝つため、
 * この上書きは必ず上のベース宣言より後ろに置くこと。
 */
@media (max-width: 1023px) {
  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg);
  }
  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg);
  }
}

/* サイドバー本体（モバイルはオフキャンバス／PCは固定） */
.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 84vw);
  height: 100%;
  background: var(--color-bg);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 300;
  padding: 12px 18px 40px;
}

.site-sidebar.is-open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 250;
}

.sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.sidebar-close button {
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
}

.sidebar-logo {
  display: block;
  margin-bottom: 32px;
}

.sidebar-logo img {
  height: 52px;
  width: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-black);
  color: var(--color-white);
  padding: 0 16px;
}

.nav-btn img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-btn .nav-btn-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.nav-btn .nav-btn-en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-btn .nav-btn-jp {
  font-size: 19px;
  font-weight: 700;
}

.nav-btn .nav-btn-sub {
  font-size: 11px;
  font-weight: 700;
}

.nav-btn--rent { background: var(--color-rent); }
.nav-btn--lend { background: var(--color-lend); }
.nav-btn--sell { background: var(--color-sell); }
.nav-btn--lodging { background: var(--color-lodging); }

.nav-contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-black);
  padding: 0 18px;
  background: var(--color-white);
  color: var(--color-black);
}

/* アイコンはボタン左端から25px固定位置。テキストブロックは
   アイコンをフローから外すことで、ボタン全体の幅に対して中央揃えになる。 */
.nav-contact-btn img {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-contact-btn--tel {
  background: var(--color-tel);
  color: var(--color-white);
}

.nav-contact-btn .contact-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.nav-contact-btn .contact-btn-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-contact-btn .contact-btn-main {
  font-size: 15px;
  font-weight: 700;
}

.nav-contact-btn .contact-btn-note {
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.sidebar-address {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text);
}

.sidebar-address .hours {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 6px;
}

/* 常時表示の細いトップバー＋ハンバーガーからのドロワーメニューは
   PC/スマホ問わず同じ挙動（オフキャンバス）で統一する */

/* ============================================
   フッター共通
   ============================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  padding: 60px 20px 40px;
  overflow: hidden;
}

.footer-marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.footer-marquee-track {
  display: inline-flex;
  animation: marquee 45s linear infinite;
}

.footer-marquee-track span {
  font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 11vw, 120px);
  letter-spacing: 0.06em;
  padding-right: 1em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-address {
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.footer-address .hours {
  font-size: 13px;
  margin-top: 14px;
  color: #cfcfcf;
}

.footer-nav {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-nav-col a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 700;
}

/* .footer-contentと同じmax-width(1320px)＋中央寄せにすることで、
   ロゴの左端が上の住所テキストの左端と揃う。 */
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.footer-logo {
  display: inline-flex;
}

.footer-bottom img {
  width: 130px;
  height: auto;
}

.footer-bottom small {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #cfcfcf;
}

@media (max-width: 640px) {
  .footer-nav {
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   ページ共通見出し
   ============================================ */
.page-hero {
  background: var(--color-bg);
  padding: 80px 20px 60px;
  text-align: center;
}

.page-hero-en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.page-hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
}

.page-hero-lead {
  margin-top: 14px;
  font-size: 15px;
  color: var(--color-text);
}

/* ============================================
   ページ準備中（暫定ページ）共通スタイル
   rent.html / lend.html など、本実装までの仮ページで使用。
   アクセントカラーは .coming-soon--rent / --lend 等の
   モディファイアで--color-rent・--color-lend等に切り替える。
   ============================================ */
.coming-soon {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.coming-soon-inner {
  max-width: 560px;
  margin: 0 auto;
}

.coming-soon-en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-accent, var(--color-muted));
  margin-bottom: 16px;
}

.coming-soon-title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}

.coming-soon-lead {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.coming-soon--rent {
  --color-accent: var(--color-rent);
}

.coming-soon--lend {
  --color-accent: var(--color-lend);
}

.coming-soon--sell {
  --color-accent: var(--color-sell);
}

.coming-soon--lodging {
  --color-accent: var(--color-lodging);
}

.coming-soon--agent {
  --color-accent: var(--color-agent);
}

.coming-soon--tenant {
  --color-accent: var(--color-tenant);
}

/* ============================================
   フォーム共通パーツ（レビュー投稿／お問い合わせ）
   ============================================ */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #d9534f;
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
}

.section {
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title .en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 8px;
}

.section-title .jp {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
}

/* ============================================
   レビューカード（トップページ／レビューページ共通）
   表面＝人物写真、裏面＝評価・日付・コメントの3Dフリップカード。
   PCはホバー、スマホ・タブレットはタップで表裏を切り替える（js/partials.js）。
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  --review-card-height: 448px;
  position: relative;
  width: 100%;
  max-width: 392px;
  height: var(--review-card-height);
  margin: 0 auto;
  perspective: 1200px;
}

.review-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

/* ホバー操作ができる端末（PC）はマウスオーバーでフリップし、外れると自動で表面に戻る */
@media (hover: hover) {
  .review-card:hover .review-card-inner {
    transform: rotateY(180deg);
  }
}

/* ホバーできない端末（スマホ・タブレット）はタップでこのクラスが切り替わる */
.review-card.is-flipped .review-card-inner {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .review-card-inner {
    transition: none;
  }
}

.review-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 28px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid #e5e5e0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.review-card-back {
  transform: rotateY(180deg);
  padding: 50px 80px;
}

/*
 * 表面（写真側）専用のレイアウト調整。
 * .review-card-face の共通padding/gapは裏面と共有のため変更せず、
 * より大きくなったアバターに合わせて表面だけ上書きする。
 */
.review-card-front {
  gap: 14px;
  padding: 24px 20px;
}

/*
 * 表面の人物写真マスク（形状パターン）
 * ------------------------------------------------------------
 * カード（.review-card）に以下いずれかの修飾クラスを付けることで
 * 写真の形状を個別に切り替えられる。未指定の場合は 1) 楕円形。
 *   .review-card--shape-oval       … 1) 楕円形（お米型・既定値）
 *   .review-card--shape-blob       … 2) 花びら/ブロブ型
 *   .review-card--shape-cut-right  … 3) 右上の角を斜めにカットした四角形
 *   .review-card--shape-cut-left   … 4) 左上の角を斜めにカットした四角形（3の左右反転）
 * カット四角形の罫線色は --review-shape-border-accent で変更可能（カードごとに
 * インラインstyleで上書きする想定の変数で、未設定時は既定で--color-white。
 * 以前は--color-tel（電話ボタンの水色）が既定値になっていたため、
 * カスタマイズせず使うと写真上部に無関係な水色の線が出てしまっていた）。
 */
.review-avatar-frame {
  position: relative;
  width: 260px;
  height: 300px;
  flex: none;
}

/*
 * 元画像ファイル自体に縁取り（白い縁）が焼き込まれている場合に、
 * それが写真の外周に露出しないよう img を拡大して逃がすための
 * クリッピング用コンテナ（review-avatar-frameのpadding分の内側＝
 * 写真が実際に表示される範囲ちょうどに固定）。
 */
.review-avatar-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.review-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar--placeholder {
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9c9c2'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.68-10 5v3h20v-3c0-3.32-6.67-5-10-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 110px;
}

/* 2) 花びら/ブロブ型：輪郭がゆるやかに波打つ不規則な曲線形 */
.review-card--shape-blob .review-avatar {
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* 3) 右上の角を斜めにカットした四角形 */
.review-card--shape-cut-right .review-avatar-frame {
  --review-shape-cut: 36px;
  --review-shape-clip: polygon(0 0, calc(100% - var(--review-shape-cut)) 0, 100% var(--review-shape-cut), 100% 100%, 0 100%);
  background: var(--review-shape-border-accent, var(--color-white));
  clip-path: var(--review-shape-clip);
  padding: 2px;
}

/* clip-pathは付けない：frame側の clip-path + padding だけで縁取りが作られるため、
   img側にも同じ形を付けると内側の枠(padding分小さい箱)基準でずれて線が二重に見える */
/* 元画像ファイルの外周に焼き込まれた白い縁が罫線の外側にはみ出して見えるため、
   .review-avatar-crop（overflow:hidden）の中で少し拡大して逃がす */
.review-card--shape-cut-right .review-avatar {
  border-radius: 0;
  transform: scale(1.16);
  transform-origin: center;
}

/*
 * 上辺（斜めカット部分含む）はアクセントカラーの罫線を残し、左右下辺は
 * カード面と同じ白で上から塗りつぶして罫線を無くす（frame側のpadding分の
 * アクセントカラーの縁自体は変えず、見た目だけ消す形にすることで、
 * 上辺の罫線の形・位置には一切手を入れずに済む）。
 */
.review-card--shape-cut-right .review-avatar-frame::after,
.review-card--shape-cut-left .review-avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--color-white), var(--color-white)) left / 2px 100% no-repeat,
    linear-gradient(var(--color-white), var(--color-white)) right / 2px 100% no-repeat,
    linear-gradient(var(--color-white), var(--color-white)) bottom / 100% 2px no-repeat;
}

/* 4) 左上の角を斜めにカットした四角形（3を左右反転） */
.review-card--shape-cut-left .review-avatar-frame {
  --review-shape-cut: 36px;
  --review-shape-clip: polygon(var(--review-shape-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--review-shape-cut));
  background: var(--review-shape-border-accent, var(--color-white));
  clip-path: var(--review-shape-clip);
  padding: 2px;
}

.review-card--shape-cut-left .review-avatar {
  border-radius: 0;
  transform: scale(1.16);
  transform-origin: center;
}

.review-name {
  font-weight: 700;
  font-size: 16px;
  flex: none;
}

/* 表面に表示するレビュー本文のプレビュー（最大3行、超過分は…で省略） */
.review-comment-preview {
  width: 100%;
  flex: none;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card--photo .review-comment {
  font-weight: 700;
}

/* 数字（評価点数）。Adobe Fonts経由のLulo One（.review-scoreを使うindex.htmlのhead内で読み込み）。 */
.review-score {
  font-family: var(--font-lulo);
  font-weight: 700;
  font-style: normal;
  font-size: 78px;
  line-height: 1;
  flex: none;
}

/* 星評価アイコン（1つ32×32px）。assets/icons/star-filled.svg・star-empty.svgを使用 */
.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.review-stars img {
  display: block;
  width: 32px;
  height: 32px;
}

.review-date {
  font-size: 13px;
  color: var(--color-muted);
  flex: none;
}

.review-comment {
  width: 100%;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: left;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.review-card--rating .review-comment {
  text-align: justify;
}

/* ============================================
   お問い合わせCTAカード（複数ページで共通利用）
   ============================================ */
/*
 * .cta-sectionは親(.index-layout)の白背景の上に乗る全幅の帯として
 * 背景色を持たせ、中身（2つのボタン）は.cta-innerでmax-widthを付けて
 * 中央寄せする。この2階層に分けることで、背景色が左右の白い帯として
 * 透けて見える問題を防ぐ（背景色を持つ要素自体を全幅にする）。
 */
/*
 * padding-top（FOLLOW US!→CONTACT FORMの余白）とpadding-bottom
 * （CONTACT FORM→フッターの余白）は、元々の値（40px / 90px＋上の
 * .sns-sectionが持っていた120px・240px分）を入れ替えている。
 */
.cta-section {
  padding: 90px 20px 160px;
  background: #f6f6f3;
}

@media (min-width: 768px) {
  .cta-section {
    padding-bottom: 280px;
  }
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
  }
}

.cta-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 534px;
  height: 180px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-black);
  background: var(--color-white);
  color: var(--color-black);
}

.cta-card--mail {
  background: var(--color-white);
}

/*
 * アイコンはボタン左端から46px固定位置。矢印もボタン右端に固定位置とし、
 * どちらもフローから外すことで、.cta-textがボタン全体の幅に対して
 * 中央揃えになる（重なり防止のため左右にそれぞれ確保するスペースは
 * .cta-card側のpaddingとは別に、アイコン・矢印自体の幅ぶん独立させる）。
 * 「>」で直接の子要素に限定しないと、.btn-arrow内の矢印アイコン
 * （そちらも自分の親の中ではfirst-childに該当する）にまで誤って
 * このスタイルが適用されてしまうため注意。
 */
.cta-card > img:first-child {
  position: absolute;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.cta-card .btn-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/*
 * PC版：アイコン（・矢印）はabsoluteでフローから外れているため、
 * .cta-textは実際にはカード全体の幅に対して数学的には中央に揃っている
 * （justify-content:centerの計算上）。ただし左のアイコン（＋メールのみ
 * 右の矢印）という「見た目の重り」がある分、見た目上はテキストが
 * 左寄りに見えてしまう。アイコン（・矢印）の右にできる実際の余白の
 * 中心にテキストが来るよう、margin-leftで少し右にずらして視覚的な
 * 中央に近づける（アイコン・矢印自体の位置は変更していない）。
 * 電話ボタンは右側に矢印がなく片側のみのアイコンのため、ずらす量を
 * メールボタンより大きくしている。SP（767px以下）はアイコン・矢印が
 * 通常のflexアイテムに戻り、.cta-text（flex:1）がその間の余白を
 * 自然に中央揃えするため、この調整は不要（下のSP用メディアクエリで
 * 打ち消している）。
 */
@media (min-width: 768px) {
  .cta-card--mail .cta-text {
    margin-left: 60px;
  }

  .cta-card--tel .cta-text {
    margin-left: 85px;
  }
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.cta-sub {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.cta-main {
  font-size: 32px;
  font-weight: 700;
}

.cta-note {
  font-size: 18px;
}

.cta-card--tel {
  background: var(--color-tel);
  color: var(--color-white);
  border-color: var(--color-tel);
}

/*
 * SP（767px以下。.cta-inner側の行⇔列切り替え=min-width:768pxと対になる境界）。
 * PC版はアイコン・矢印を絶対配置し、中央寄せの.cta-textと重ならない
 * 前提（534px幅のカード基準）で成立しているが、その値のままSP幅の
 * カード（width:100%で大きく縮む）に適用すると、中央寄せテキストが
 * 左端のアイコンと衝突してしまう（Figma node-id=413-5766で発覚した不具合）。
 * SPではアイコン・矢印を絶対配置ではなくflexアイテムに戻し、カード幅に
 * 関わらず重ならない構成にする。
 */
@media (max-width: 767px) {
  .cta-card {
    height: auto;
    min-height: 118px;
    gap: 8px;
    padding: 18px 14px;
  }

  .cta-card > img:first-child {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .cta-card--tel > img:first-child {
    width: 30px;
    height: 30px;
  }

  .cta-text {
    flex: 1;
    min-width: 0;
    gap: 4px;
  }

  .cta-sub {
    font-size: 11px;
  }

  .cta-main {
    font-size: 21px;
  }

  .cta-note {
    font-size: 11px;
  }

  .cta-card .btn-arrow {
    position: static;
    transform: none;
    width: 26px;
    height: 26px;
    border-radius: 5px;
  }

  .cta-card .btn-arrow img {
    width: 14px;
    height: 14px;
  }
}

/* ============================================
   スクロール連動フェードイン（共通ユーティリティ）
   ============================================ */
/*
 * 対象要素にこのクラスを付けると、初期状態は透明＋わずかに下にずれた
 * 位置になる。画面内に入ったタイミングで呼び出し側のJS（例：js/home.js）
 * が.is-visibleを付与すると、ふわっとフェード＋上方向にスライドしながら
 * 表示される。一度きりの演出を想定しており、.is-visibleは基本的に
 * 外れない（IntersectionObserverのunobserve/disconnectと組み合わせる）。
 * 複数セクションで同じ演出を使う場合はこのクラスを共通で使い回すこと。
 */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
