:root {
  --sand: #f5efe3;
  --sand2: #ede3d1;
  --paper: #fbf8f1;
  --ink: #231c14;
  --muted: #7a6e5c;
  --faint: #a99d89;
  --line: #ddd0bb;
  --terra: #b0693b;
  --plum: #7b3c55;
  --gold: #c39a5b;
  --font-mincho: "Shippori Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
  --font-sans: "Zen Kaku Gothic New", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}

::selection {
  background: var(--terra);
  color: var(--paper);
}

a {
  color: var(--terra);
  text-decoration: none;
}

a:hover {
  color: var(--plum);
}

img {
  max-width: 100%;
}

.page {
  position: relative;
  overflow-x: hidden;
}

section[id],
.service-card[id] {
  scroll-margin-top: 96px;
}

/* キーボード操作時に、いまどこにフォーカスがあるかを分かるようにする */
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta :focus-visible,
.case-hero :focus-visible {
  outline-color: var(--gold);
}

/* キーボード利用者向け: 本文へ直接移動するリンク(フォーカス時のみ表示) */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--paper);
}

main {
  overflow-x: hidden;
}

/* ===================== Fixed desert background (Home) ===================== */

.desert-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #e0c8a4;
  background-size: cover;
  background-position: center 30%;
}

.desert-veil {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.5), rgba(255, 250, 240, 0));
}

/* ===================== Header ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 68px);
  transition: padding 0.5s ease;
}

/*
 * 背景のぼかしは疑似要素に分離する。backdrop-filter を .site-header 本体に
 * 直接かけると、position:fixed の子要素(モバイルの .site-nav)の containing
 * block がヘッダー自身の小さな矩形に変わってしまい、画面全体に広がらなくなるため。
 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.site-header--scrolled::before {
  box-shadow: 0 8px 30px -20px rgba(35, 28, 20, 0.4);
}

.site-header--transparent {
  padding: 22px clamp(20px, 5vw, 68px);
}

.site-header--transparent::before {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px -4px rgba(35, 28, 20, 0.4);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.brand-text .brand-sub {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.46em;
  color: var(--muted);
  margin-top: 7px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 1.4vw, 28px);
  align-items: center;
}

.site-nav a {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.35s ease;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 360px);
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 0 44px;
    transform: translateX(108%);
    /* 閉じている間は影が画面右端にはみ出さないよう消し、リンクにもフォーカスが入らないよう隠す */
    visibility: hidden;
    transition:
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.55s ease,
      visibility 0s linear 0.55s;
    z-index: 55;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -40px 0 90px -30px rgba(35, 28, 20, 0.5);
    transition:
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.55s ease,
      visibility 0s;
  }

  .site-nav a {
    font-size: 15px;
    letter-spacing: 0.2em;
  }
}

/* ===================== Footer ===================== */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(251, 248, 241, 0.6);
  padding: clamp(40px, 6vh, 60px) clamp(20px, 5vw, 68px);
  border-top: 1px solid rgba(251, 248, 241, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-brand strong {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
  color: var(--paper);
}

.footer-brand .brand-sub {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.42em;
  margin-top: 6px;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 34px);
}

.footer-nav a {
  font-family: var(--font-mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(251, 248, 241, 0.6);
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a.is-current {
  color: var(--paper);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ===================== Back to top (sub pages) ===================== */

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--terra);
  box-shadow: 0 12px 30px rgba(35, 28, 20, 0.2);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(35, 28, 20, 0.3);
  background: var(--terra);
  color: #fff;
}

.back-to-top .arrow {
  font-family: var(--font-en);
  font-size: 17px;
  line-height: 0;
}

/* ===================== Scroll reveal ===================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================== Page hero (sub pages) ===================== */

.page-hero {
  position: relative;
  z-index: 1;
  padding: clamp(140px, 18vh, 200px) clamp(20px, 5vw, 68px) clamp(70px, 10vh, 100px);
  background: var(--paper);
  text-align: center;
}

.page-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: 0.04em;
  margin-top: 18px;
  text-wrap: balance;
}

.page-hero p {
  max-width: 36em;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 2.2;
  color: var(--muted);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mincho);
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--terra);
}

/* サブページの見出しは表示時にふわっと現れ、ページが切り替わったことを伝える */
.page-hero__inner,
.case-hero__inner {
  animation: pageEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__inner,
  .case-hero__inner {
    animation: none;
  }
}

/* ===================== Breadcrumb ===================== */

.breadcrumb {
  margin-bottom: 28px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--terra);
  border-bottom-color: currentColor;
}

.breadcrumb li[aria-current="page"] {
  color: var(--ink);
}

.breadcrumb--light ol {
  justify-content: flex-start;
}

.breadcrumb--light li,
.breadcrumb--light a {
  color: rgba(251, 248, 241, 0.6);
}

.breadcrumb--light li + li::before {
  color: rgba(251, 248, 241, 0.3);
}

.breadcrumb--light a:hover {
  color: var(--gold);
}

.breadcrumb--light li[aria-current="page"] {
  color: var(--paper);
}

/* ===================== Case study (Works page) ===================== */

/*
 * ホームの「主な実績」は明るい2カラムの紹介。詳細ページは濃色の帯に案件名を大きく置き、
 * デバイス画像を帯の境目にまたがらせることで、遷移したことが一目で分かる別の画面にしている。
 */
.case-hero {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(195, 154, 91, 0.18), transparent 70%),
    var(--ink);
  color: var(--paper);
  padding: clamp(118px, 16vh, 168px) clamp(20px, 5vw, 68px) clamp(150px, 22vw, 300px);
}

.case-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.case-hero__head {
  margin-top: clamp(28px, 5vh, 56px);
}

.case-hero__kicker {
  font-family: var(--font-mincho);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.case-hero__client {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(251, 248, 241, 0.72);
}

.case-hero h1 {
  margin-top: 14px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.case-meta {
  margin-top: clamp(36px, 6vh, 60px);
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  border-top: 1px solid rgba(251, 248, 241, 0.16);
}

.case-meta > div {
  padding: 22px 24px 0 0;
}

.case-meta > div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(251, 248, 241, 0.16);
}

.case-meta dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.case-meta dd {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(251, 248, 241, 0.88);
}

.case-meta dd strong {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 1.7em;
  color: var(--paper);
  margin: 0 2px;
}

@media (max-width: 760px) {
  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-meta > div,
  .case-meta > div + div {
    padding: 16px 0;
    border-left: none;
  }

  .case-meta > div + div {
    border-top: 1px solid rgba(251, 248, 241, 0.16);
  }
}

.case-showcase {
  --overlap: clamp(110px, 18vw, 260px);
  position: relative;
  z-index: 2;
  /* 上側(濃色の帯に重なる部分)は透明、下側は本文と同じ紙色にして境目をなくす */
  background: linear-gradient(transparent var(--overlap), var(--paper) var(--overlap));
  padding: 0 clamp(20px, 5vw, 68px);
  margin-top: calc(-1 * var(--overlap));
}

.case-showcase__media {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

.case-showcase__media .macbook-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 70px rgba(35, 28, 20, 0.35));
}

.case-showcase__media .iphone-shot {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: 22%;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(35, 28, 20, 0.35));
}

.case-body {
  padding-top: clamp(80px, 12vh, 130px);
}

/* ===================== Generic section shells ===================== */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 5vw, 68px);
}

.section--paper {
  background: var(--paper);
}

.section--sand2 {
  background: var(--sand2);
}

.section--top-line {
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading,
.approach-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: clamp(44px, 7vh, 72px);
}

.section-heading .rule,
.approach-heading .rule {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--line);
}

.section-heading .sub,
.approach-heading .sub {
  font-family: var(--font-mincho);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.section-title-row h2 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: 0.04em;
  margin: 0;
}

.detail-link {
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.detail-link:hover {
  color: var(--terra);
}

/* ===================== Hero (Home) ===================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(120px, 15vh, 180px) clamp(20px, 5vw, 68px) clamp(90px, 10vh, 120px);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* scroll案内や「ブランドの物語を読む」リンクまで文字が読める濃さ・範囲に広げている */
  background: radial-gradient(
    75% 78% at 50% 48%,
    rgba(255, 250, 238, 0.706),
    rgba(255, 250, 238, 0.25) 55%,
    rgba(255, 250, 238, 0.08) 78%,
    transparent 95%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.hero__tagline .rule {
  width: 38px;
  height: 1px;
  background: var(--terra);
}

.hero__tagline span {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.4em;
  color: var(--terra);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
}

.hero h1 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 2px 22px rgba(255, 252, 244, 0.75);
}

.hero h1 .underline-wrap {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.hero-underline {
  position: absolute;
  left: -2%;
  bottom: -0.34em;
  width: 104%;
  height: 0.5em;
  overflow: visible;
}

.hero-underline path {
  animation: drawLine 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero .lead {
  margin-top: clamp(30px, 5vh, 48px);
  max-width: 30em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2.2;
  font-weight: 500;
  text-shadow: 0 1px 16px rgba(255, 252, 244, 0.7);
  color: #000;
}

.hero .lead .accent {
  color: #c73f3f;
}

.hero__actions {
  margin-top: clamp(34px, 5vh, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(35, 28, 20, 0.16);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(35, 28, 20, 0.24);
  color: var(--paper);
}

.button-primary .arrow {
  font-family: var(--font-en);
  font-size: 19px;
  line-height: 0;
}

.link-underline {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #000;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.link-underline:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-hint .label {
  font-family: var(--font-mincho);
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--ink);
}

.scroll-hint .track {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-hint .dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 14px;
  background: var(--terra);
  animation: hintMove 2s ease-in-out infinite;
}

/* ===================== Service (row list on Home) ===================== */

.service-row-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}

@media (max-width: 1000px) {
  .service-row-list {
    grid-template-columns: 1fr;
  }
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.3s ease;
}

.service-row:hover {
  border-color: var(--terra);
  color: var(--ink);
}

.service-row .arrow {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--terra);
  transition: transform 0.3s ease;
}

.service-row:hover .arrow {
  transform: translateX(4px);
}

.service-row .title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 23px);
  letter-spacing: 0.03em;
}

/* ===================== Service detail cards ===================== */

.service-card-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.service-card {
  background: var(--sand);
  padding: clamp(36px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 1000px) {
  .service-card {
    grid-template-columns: 1fr;
  }
}

.service-card h2 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.service-card .body {
  font-size: 15px;
  line-height: 2.15;
  color: var(--ink);
  font-weight: 500;
}

.service-card ul {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.service-card li::before {
  content: "—";
  color: var(--terra);
  flex-shrink: 0;
}

/* ===================== Works ===================== */

.work-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 1000px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--terra);
  border: 1px solid var(--terra);
  border-radius: 100px;
  padding: 6px 15px;
}

.work-copy h3 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 22px 0 28px;
}

.work-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-stat strong {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 60px);
  color: var(--plum);
  letter-spacing: 0.02em;
  line-height: 1;
}

.work-stat strong small {
  font-size: 0.5em;
}

.work-stat span {
  font-size: 14px;
  color: var(--muted);
}

.work-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

.work-list li::before {
  content: "—";
  color: var(--terra);
  flex-shrink: 0;
}

.work-summary {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  max-width: 30em;
}

/* ホームの実績はあくまで入口。詳細ページへ進めることをボタンで明示する */
.work-more {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.work-more:hover {
  background: var(--ink);
  color: var(--paper);
}

.work-more .arrow {
  font-family: var(--font-en);
  font-size: 18px;
  line-height: 0;
  transition: transform 0.3s ease;
}

.work-more:hover .arrow {
  transform: translateX(4px);
}

.work-media {
  position: relative;
}

.work-media__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(195, 154, 91, 0.16), transparent 62%);
  z-index: 0;
  pointer-events: none;
}

.work-media img.macbook-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(35, 28, 20, 0.28));
}

.work-media img.iphone-shot {
  position: absolute;
  z-index: 1;
  right: -2%;
  bottom: -8%;
  width: 26%;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(35, 28, 20, 0.3));
}

/* ===================== Tile grids (pillars / approach) ===================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

.tile-grid--sand2 .tile {
  background: var(--sand2);
  padding: clamp(30px, 3.4vw, 44px);
}

.tile-grid--paper .tile {
  background: var(--paper);
  padding: clamp(28px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
}

.tile .tile-eyebrow {
  font-family: var(--font-mincho);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--terra);
}

.tile h3 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.03em;
}

.tile-grid--sand2 .tile p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  margin-top: 14px;
}

.tile-grid--paper .tile p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  margin-top: 12px;
}

.approach-block {
  margin-top: clamp(60px, 10vh, 100px);
}

/* ===================== Story ===================== */

.story-quote {
  position: relative;
  font-family: var(--font-mincho);
  font-weight: 600;
  /* 「ラクダに似ているね。」を折り返さず横一列に収めるため、画面幅に強く連動させる */
  font-size: clamp(16px, 6.8vw, 64px);
  line-height: 1.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.story-quote .quote-mark {
  position: absolute;
  left: clamp(-0.5em, -2vw, 0em);
  top: -0.5em;
  font-family: var(--font-en);
  font-size: 2.4em;
  color: var(--line);
  z-index: 0;
}

.story-quote .accent {
  position: relative;
  z-index: 1;
  color: var(--terra);
}

.story-quote .text {
  position: relative;
  z-index: 1;
}

/* スマホ幅でのみ改行させたい箇所に使う汎用ユーティリティ */
.mobile-break {
  display: none;
}

@media (max-width: 640px) {
  .mobile-break {
    display: inline;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 90px);
  margin-top: clamp(48px, 8vh, 84px);
  align-items: start;
}

@media (max-width: 1000px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-copy {
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 2.35;
  color: var(--ink);
  font-weight: 500;
}

.story-copy p + p {
  margin-top: 1.8em;
}

.story-copy .muted {
  color: var(--muted);
}

.story-copy .brand-line {
  margin-top: 0.4em;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
  letter-spacing: 0.06em;
}

.story-copy .underline {
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
}

.story-figure {
  position: relative;
}

.story-figure .frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -30px rgba(35, 28, 20, 0.4);
}

.story-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-figure figcaption {
  font-family: var(--font-mincho);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 14px;
  text-align: right;
}

/* ===================== About ===================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

@media (max-width: 1000px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-photo-wrap .frame {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(35, 28, 20, 0.45);
}

.about-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 70% center;
}

.about-photo-wrap .caption {
  margin-top: 18px;
}

.about-photo-wrap .caption .name {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.about-photo-wrap .caption .romaji {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.about-body h2 {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.about-copy {
  margin-top: clamp(28px, 4vh, 40px);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 2.35;
  color: var(--ink);
  font-weight: 500;
}

.about-copy p + p {
  margin-top: 1.7em;
}

.about-copy .muted {
  color: var(--muted);
}

.about-links {
  display: flex;
  gap: 22px;
  margin-top: 20px;
}

.about-links a {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.about-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ===================== Info links (FAQ / Privacy quick links) ===================== */

.info-links {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0 clamp(20px, 5vw, 68px);
}

.info-links__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .info-links__inner {
    grid-template-columns: 1fr;
  }
}

.info-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(30px, 4.5vh, 44px) 26px clamp(30px, 4.5vh, 44px) 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s ease;
}

.info-link--last {
  border-right: none;
  padding-left: 26px;
  padding-right: 0;
}

@media (max-width: 640px) {
  .info-link,
  .info-link--last {
    border-right: none;
    padding-left: 0;
  }
}

.info-link:hover {
  background: var(--sand);
}

.info-link .label {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.info-link .tag {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--terra);
}

.info-link .title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.03em;
}

.info-link .arrow {
  font-family: var(--font-en);
  font-size: 19px;
  line-height: 0;
  flex-shrink: 0;
}

/* ===================== Contact CTA ===================== */

.cta {
  position: relative;
  z-index: 1;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 5vw, 68px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}

.cta--home {
  padding: clamp(100px, 16vh, 180px) clamp(20px, 5vw, 68px);
}

.cta__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(120vw, 1100px);
  height: min(120vw, 1100px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 154, 91, 0.16), transparent 60%);
}

.cta--home .cta__ring {
  animation: shimmer 8s ease-in-out infinite;
}

.cta__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta__gold-line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 22px;
}

.cta__eyebrow {
  font-family: var(--font-mincho);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.cta h2 {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 50px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 22px 0 28px;
  text-wrap: balance;
}

.cta--home h2 {
  font-size: clamp(30px, 5.2vw, 60px);
}

.cta p {
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 2.1;
  color: rgba(251, 248, 241, 0.72);
  max-width: 32em;
  margin: 0 auto;
}

.cta .button-light {
  margin-top: clamp(16px, 3vh, 24px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 38px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.cta--home .button-light {
  margin-top: clamp(36px, 5vh, 48px);
}

.cta .button-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  color: var(--ink);
}

.cta .button-light .arrow {
  font-family: var(--font-en);
  font-size: 20px;
  line-height: 0;
}

/* ===================== Process ===================== */

.process-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(32px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .process-step {
    grid-template-columns: 64px 1fr;
  }
}

.process-step .no-col {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.process-step .no {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 44px);
  color: var(--sand2);
  line-height: 1;
}

.process-step .rule {
  width: 1px;
  height: 44px;
  background: var(--terra);
  opacity: 0.5;
  margin-top: 6px;
}

.process-step h2 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.04em;
}

.process-step p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--muted);
  max-width: 36em;
}

/* ===================== FAQ ===================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: clamp(28px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}

.faq-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.faq-row .qa-mark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  color: var(--terra);
  flex-shrink: 0;
}

.faq-row.answer {
  margin-top: 14px;
}

.faq-row.answer .qa-mark {
  color: var(--faint);
}

.faq-row h2 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.faq-row p {
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--muted);
}

/* ===================== Legal (Privacy) ===================== */

.legal {
  max-width: 780px;
  margin: 0 auto;
}

.legal h2 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.legal h2.legal-second {
  margin: 64px 0 28px;
}

.legal .intro {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink);
}

.legal h3 {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 17px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal h3:first-of-type {
  margin-top: 36px;
}

.legal h3 + p {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--muted);
}

.legal h3 + p a {
  border-bottom: 1px solid var(--terra);
}

.legal-table {
  display: flex;
  flex-direction: column;
}

.legal-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .legal-row {
    grid-template-columns: 1fr;
  }
}

.legal-row .label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--terra);
  white-space: nowrap;
}

.legal-row .value {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
}

/* ===================== Intro splash (Home, first visit) ===================== */

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: #1a1220;
  animation: introOut 1.2s cubic-bezier(0.65, 0, 0.35, 1) 3.9s forwards;
}

.intro-splash__base {
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 105% at 50% 118%, #3d2a3c 0%, #241a26 55%, #150e18 100%);
  animation: introCrossOut 1.1s ease 0.7s forwards;
}

.intro-splash__glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 110% at 50% 122%, #f6d59a 0%, #e3a35c 28%, #8a4560 62%, #241a26 100%);
  opacity: 0;
  animation: introCrossIn 1.3s ease 0.7s forwards;
}

.intro-splash__glow-orb {
  position: absolute;
  left: 50%;
  bottom: -8%;
  transform: translateX(-50%);
  width: min(80vmax, 900px);
  height: min(80vmax, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 175, 0.95), rgba(255, 226, 175, 0) 62%);
  opacity: 0;
  animation:
    introGlowIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
    introGlowPulse 3.5s ease-in-out 2s infinite;
}

.intro-splash__dust {
  position: absolute;
  bottom: 8%;
  border-radius: 50%;
  background: rgba(255, 232, 196, 0.85);
  box-shadow: 0 0 6px rgba(255, 220, 170, 0.6);
}

.intro-splash__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.intro-splash__logo {
  opacity: 0;
  animation: introLogoIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.intro-splash__logo img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 20px 56px -8px rgba(0, 0, 0, 0.6);
}

.intro-splash__word {
  opacity: 0;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: 0.22em;
  color: #fbf3e4;
  animation: introWordIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.intro-splash__line {
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, #e8b168, transparent);
  animation: introLine 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.7s forwards;
}

.intro-splash__tag {
  opacity: 0;
  font-family: var(--font-mincho);
  font-size: 18px;
  letter-spacing: 0.5em;
  color: rgba(251, 243, 228, 0.7);
  animation: introTagIn 0.8s ease 2s forwards;
}

/* 同じタブで2回目以降にトップページを開いたときは再生しない(index.html の head 内スクリプトが付与) */
.no-intro .intro-splash {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash {
    display: none !important;
  }
}

/* ===================== Keyframes ===================== */

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hintMove {
  0% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes introLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes introWordIn {
  0% {
    opacity: 0;
    letter-spacing: 0.6em;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.22em;
  }
}

@keyframes introTagIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introCrossOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes introCrossIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes introGlowIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

@keyframes introGlowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

@keyframes introLine {
  0% {
    width: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    width: 72px;
    opacity: 1;
  }
}

@keyframes introDust {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-160px) translateX(18px);
    opacity: 0;
  }
}

@keyframes introOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  99% {
    pointer-events: auto;
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
  }
}

/* ===================== Spacing adjustments ===================== */

/* 同じ紙色のセクションが続く箇所(Story → About)は上下の余白が二重になるため、後ろ側の上余白を詰める */
.section--paper + .section--paper:not(.section--top-line) {
  padding-top: 0;
}

@media (max-width: 640px) {
  .section {
    padding: 72px 20px;
  }

  .section-heading,
  .approach-heading {
    margin-bottom: 28px;
  }

  .section-title-row {
    margin-bottom: 24px;
  }

  .service-row {
    padding: 18px 2px;
  }

  .work-copy h3 {
    margin: 18px 0 22px;
  }

  .work-stat {
    padding: 16px 0;
  }

  .work-more {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .work-media img.iphone-shot {
    right: 0;
  }

  .story-grid {
    margin-top: 32px;
  }

  .about-body h2 {
    margin-top: 8px;
  }

  .approach-block {
    margin-top: 56px;
  }

  .page-hero {
    padding: 112px 20px 48px;
  }

  .page-hero p {
    margin-top: 16px;
    text-wrap: wrap;
    line-height: 2;
    text-align: left;
  }

  .info-link,
  .info-link--last {
    padding: 22px 0;
  }

  .info-link + .info-link,
  .info-links__inner > * + * .info-link {
    border-top: 1px solid var(--line);
  }

  .cta,
  .cta--home {
    padding: 80px 20px;
  }

  .case-hero {
    padding: 104px 20px 120px;
  }

  .case-showcase {
    --overlap: 90px;
  }

  .case-body {
    padding-top: 64px;
  }
}

/* 右下の「トップページへ戻る」がスマホで本文やフッターに重ならないよう小さくし、下に逃げ場を作る */
.page:has(.back-to-top) .site-footer {
  padding-bottom: 96px;
}

@media (max-width: 640px) {
  .back-to-top {
    padding: 10px 16px;
    font-size: 12.5px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* ===================== Shop plan (お店専用ホームページプラン) ===================== */

.plan-hero {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: clamp(118px, 16vh, 168px) clamp(20px, 5vw, 68px) clamp(64px, 10vh, 110px);
}

.plan-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  animation: pageEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan-hero .breadcrumb ol {
  justify-content: flex-start;
}

.plan-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: end;
  margin-top: clamp(20px, 4vh, 40px);
}

@media (max-width: 1000px) {
  .plan-hero__grid {
    grid-template-columns: 1fr;
  }
}

.plan-hero__kicker {
  font-family: var(--font-mincho);
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--terra);
  letter-spacing: 0.08em;
}

.plan-hero h1 {
  margin-top: 18px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.plan-hero__lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 2.1;
}

.plan-hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.plan-price {
  background: var(--sand2);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
}

.plan-price > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.plan-price > div:first-child {
  border-top: none;
  padding-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.plan-price dt {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.plan-price dd {
  font-size: 14.5px;
  font-weight: 500;
  text-align: right;
}

.plan-price strong {
  font-family: var(--font-mincho);
  font-weight: 800;
  color: var(--plum);
  margin-right: 2px;
}

.plan-price__main strong {
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.plan-price__main dd {
  font-size: 20px;
  font-family: var(--font-mincho);
  font-weight: 700;
  color: var(--plum);
}

.plan-price .plan-price__sub {
  font-size: 28px;
  line-height: 1;
}

.plan-heading {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* チェックリスト(お悩み・解約時の注意) */
.check-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.9;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--terra);
  border-radius: 4px;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: calc(0.45em + 3px);
  width: 5px;
  height: 9px;
  border: solid var(--terra);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-list--plain li {
  font-size: 14.5px;
  color: var(--muted);
}

.plan-worries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

@media (max-width: 1000px) {
  .plan-worries {
    grid-template-columns: 1fr;
  }
}

.plan-worries__answer p {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--terra);
}

.plan-cancel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 960px;
}

.plan-cancel__badge {
  width: clamp(140px, 16vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--plum);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mincho);
  font-weight: 700;
}

.plan-cancel__badge span {
  font-size: 15px;
  letter-spacing: 0.1em;
}

.plan-cancel__badge strong {
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1.1;
}

.plan-cancel__badge small {
  font-size: 0.4em;
  margin-left: 2px;
}

.plan-footnote {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

@media (max-width: 640px) {
  .plan-cancel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .plan-cancel__badge {
    width: 120px;
  }

  .plan-cancel__badge strong {
    font-size: 42px;
  }
}

.plan-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .plan-steps {
    grid-template-columns: 1fr;
  }
}

.plan-step {
  background: var(--paper);
  padding: clamp(28px, 3.2vw, 40px);
}

.plan-step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--terra);
  color: var(--terra);
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 700;
}

.plan-step h3 {
  margin-top: 18px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.plan-step p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

.plan-steps__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.plan-steps__note a {
  margin-left: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
}

.plan-related {
  margin-top: 32px;
  text-align: right;
  font-size: 11px;
}

.plan-related a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.plan-related a:hover {
  color: var(--terra);
}

/* ホーム・サービス詳細からプランページへの案内 */
.plan-callout {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--sand2);
  color: var(--ink);
  transition: background 0.3s ease;
}

.plan-callout:hover {
  background: #e5d8c1;
  color: var(--ink);
}

.plan-callout__label {
  flex-shrink: 0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--terra);
  border-radius: 100px;
  padding: 4px 12px;
}

.plan-callout__text {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.9;
}

.plan-callout__text strong {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 1.2em;
  color: var(--plum);
  margin: 0 2px;
}

.plan-callout .arrow {
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--terra);
  transition: transform 0.3s ease;
}

.plan-callout:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .plan-callout {
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .plan-callout__text {
    flex-basis: 100%;
    order: 2;
  }

  .plan-callout .arrow {
    order: 1;
    margin-left: auto;
  }
}

/* CTA: フォームとメールの2つの相談方法 */
.cta__actions {
  margin-top: clamp(28px, 4vh, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
}

.cta__actions .button-light {
  margin-top: 0;
}

.cta .button-ghost {
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

.cta .button-ghost:hover {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .plan-hero__inner {
    animation: none;
  }
}
