/* ==================================================================
   株式会社世界はもっと美しい — スタイルシート
   ZINE / 謄写版 / ヴィンテージ印刷 美学  |  モバイルファースト
================================================================== */

/* === リセット === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === デザイントークン === */
:root {
  --paper:      #f4f0e8;
  --paper-alt:  #ede9de;
  --ink:        #1a1714;
  --ink-mid:    #504a45;
  --ink-light:  #807870;
  --ink-faint:  #b4aea8;
  --red:        #b8293a;
  --blue:       #2a4e7a;
  --green:      #2d6840;
  --yellow:     #bf8916;
  --magenta:    #9c2660;

  --ff-jp:   'Shippori Mincho', 'Noto Serif JP', serif;
  --ff-disp: 'Bebas Neue', sans-serif;
  --ff-sans: 'DM Sans', sans-serif;
  --ff-mono: 'Courier New', 'Courier', monospace;

  --opening-paper: #f4efdf;

  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-o:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-lift: cubic-bezier(.57,.04,.26,1);

  --max-w:  1200px;
  --pad-x:  clamp(20px, 5vw, 64px);
  --pad-y:  clamp(60px, 10vw, 120px);
  --gap:    clamp(16px, 3vw, 28px);

  /* パネルレイアウト */
  --body-bg:  #e8e5df;
  --panel-bg: #ffffff;
  --panel-mx: clamp(10px, 2vw, 28px);
  --panel-r:  clamp(20px, 3vw, 44px);
  --panel-my: clamp(12px, 2.5vw, 28px);

  /* hero-landscape.png 実寸 1672×941 から算出 */
  --hero-landscape-ratio: 1.7769;

  --side: 18px;
}

/* === ベース === */
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background-color: var(--body-bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* === 紙粒子グレイン（全体固定オーバーレイ） === */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* === スキップリンク === */
.skip-link {
  position: absolute; top: -100%; left: 0;
  padding: 8px 16px;
  background: var(--ink); color: var(--paper);
  font-size: 0.75rem; z-index: 9999;
}
.skip-link:focus { top: 0; }


/* ================================================================
   OPENING ANIMATION
================================================================ */

.opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--opening-paper);
}

.opening.is-hidden {
  display: none;
}

.opening.opening-exit {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.paper-noise {
  position: absolute;
  inset: -10%;
  z-index: 1;
  background:
    radial-gradient(circle at 16% 24%, rgba(17,17,15,.06) 0 1px, transparent 1.2px),
    radial-gradient(circle at 82% 62%, rgba(29,45,122,.05) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 20%, rgba(212,91,140,.05) 0 1px, transparent 1.2px);
  background-size: 17px 17px, 29px 29px, 41px 41px;
  opacity: .75;
  pointer-events: none;
}

.opening-art-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 72px);
}

.opening-art-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.opening-art-button:focus-visible {
  outline: 2px solid rgba(26,23,20,.72);
  outline-offset: 8px;
}

.opening-art {
  width: min(72vw, 820px);
  max-height: 68vh;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 rgba(17,17,15,.02));
  opacity: 0;
  transform: scale(.93) rotate(-1.2deg);
  animation: artIn 1.6s cubic-bezier(.18,.8,.18,1) forwards;
  display: block;
}

.opening-scanline {
  position: absolute;
  z-index: 8;
  left: -20%;
  right: -20%;
  top: 54%;
  height: 2px;
  background: var(--magenta);
  opacity: 0;
  transform-origin: left center;
  animation: scanline 2.4s ease-out forwards;
  pointer-events: none;
}

/* バーストエフェクト用レイヤー */
.opening-burst-layer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  overflow: hidden;
}

/* GIFキャラクター */
.opening-burst-gif {
  position: fixed;
  left: var(--start-x, 50%);
  top: var(--start-y, 50%);
  width: var(--gif-size, 140px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: walkingGifBurst;
  animation-timing-function: cubic-bezier(.16,.72,.22,1);
  animation-fill-mode: forwards;
  animation-duration: 2600ms;
  z-index: 10001;
  image-rendering: auto;
}

/* グローバルナビゲーション（Opening中もLP中も固定） */
.global-nav {
  position: fixed;
  top: 16px;
  right: clamp(14px, 3vw, 32px);
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  max-width: calc(100vw - 28px);
}

.global-nav-item {
  display: inline-block;
  padding: 4px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: var(--ff-sans);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.08em;
  color: rgba(26,23,20,.72);
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s;
}

.global-nav-item::before {
  content: none;
}

.global-nav-item:hover,
.global-nav-item:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
}
.global-nav-item:hover { outline: none; }
.global-nav-item:focus-visible {
  outline: 2px solid rgba(26,23,20,.72);
  outline-offset: 3px;
}

/* モバイルメニュー展開中はグローバルナビを隠す */
body.mnav-open .global-nav {
  visibility: hidden;
}

/* LP表示後のモバイル：ヘッダーの下に移動してハンバーガーと競合しない */
@media (max-width: 767px) {
  body.lp-active .global-nav {
    top: 70px;
  }
}

/* LP表示後のデスクトップ：ヘッダーナビが表示されるためフェードアウト */
@media (min-width: 768px) {
  body.lp-active .global-nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.58s var(--ease);
  }
}

/* キーフレーム */
@keyframes artIn {
  0%   { opacity: 0; transform: scale(.88) rotate(-1.8deg); filter: blur(6px) drop-shadow(0 6px 0 rgba(17,17,15,.02)); }
  35%  { opacity: 1; filter: blur(0) drop-shadow(0 6px 0 rgba(17,17,15,.02)); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 6px 0 rgba(17,17,15,.02)); }
}

@keyframes scanline {
  0%, 20% { opacity: 0; transform: scaleX(0); }
  32% { opacity: .55; transform: scaleX(1); }
  52%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes noiseDrift {
  0%   { transform: translate3d(0,0,0); }
  25%  { transform: translate3d(-1%,1%,0); }
  50%  { transform: translate3d(1%,-1%,0); }
  75%  { transform: translate3d(-.5%,-.5%,0); }
  100% { transform: translate3d(0,0,0); }
}

/* GIFキャラクターバーストアニメーション */
@keyframes walkingGifBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.72) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--move-x, 320px)),
        calc(-50% + var(--move-y, -260px))
      )
      scale(var(--end-scale, 1.05))
      rotate(var(--rotate, 0deg));
  }
}

@media (max-width: 520px) {
  .opening-art {
    width: min(86vw, 360px);
    max-height: 56vh;
  }
  .global-nav {
    gap: 6px 10px;
  }
  .global-nav-item {
    font-size: 0.62rem;
  }
}

.opening-company-link {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vh, 48px);
  z-index: 20;
  font-family: var(--ff-sans);
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
  background: rgba(244, 240, 232, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.35);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 44px;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.opening-company-link:hover,
.opening-company-link:focus-visible {
  background: #111;
  color: #f4f0e8;
  border-color: #111;
  outline: 2px solid #111;
  outline-offset: 4px;
}


/* ================================================================
   HEADER
================================================================ */

.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hdr.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.10);
}

.hdr-logo {
  height: 28px; width: auto;
  display: block; flex-shrink: 0;
}

/* PCナビ */
.hdr-nav {
  display: none;
  align-items: center; gap: clamp(12px, 1.6vw, 22px);
  list-style: none;
}

.hdr-nav a {
  font-family: var(--ff-sans);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}

.hdr-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.28s var(--ease);
}

.hdr-nav a:hover::after { width: 100%; }
.hdr-nav a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.hdr-nav a:focus-visible::after { width: 100%; }

/* ハンバーガー */
.hdr-menu {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
  cursor: pointer; z-index: 102;
  -webkit-tap-highlight-color: transparent;
}

.hdr-menu span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 0.28s var(--ease), opacity 0.28s;
}

.hdr-menu.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hdr-menu.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hdr-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* モバイルナビ */
#mnav {
  position: fixed; inset: 0;
  z-index: 101;
  background: var(--paper);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}

#mnav.open { opacity: 1; visibility: visible; }

.mnav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 40px;
  font-family: var(--ff-jp);
  font-size: 1.1rem; letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  width: 100%; text-align: center; justify-content: center;
}

.mnav-item:hover { color: var(--red); }
.mnav-item:focus-visible { color: var(--red); outline: 2px solid var(--red); outline-offset: -2px; }

.mnav-no {
  font-family: var(--ff-mono);
  font-size: 0.52rem; letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.mnav-sep {
  width: 1px; height: 20px;
  background: rgba(26,23,20,0.1);
  margin: 4px 0;
}


/* ================================================================
   ユーティリティ
================================================================ */

.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.56rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.sec-label::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--red); flex-shrink: 0;
}

/* スクロールリビール */
.rv {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rv.vis { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.40s; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--ff-jp); font-size: 0.84rem;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 0.24s var(--ease), color 0.24s, border-color 0.24s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1; text-decoration: none;
  min-height: 52px;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: var(--red); border-color: var(--red); }

.btn-inv {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn-inv:hover { background: var(--magenta); color: var(--paper); border-color: var(--magenta); }
.btn:focus-visible { background: var(--ink); color: var(--paper); outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-fill:focus-visible { background: var(--red); border-color: var(--red); outline: 2px solid var(--red); outline-offset: 3px; }
.btn-inv:focus-visible { background: var(--magenta); color: var(--paper); border-color: var(--magenta); outline: 2px solid var(--magenta); outline-offset: 3px; }

/* 手描き風 区切りSVG */
.waved-sep {
  width: 100%; height: 20px;
  display: block; overflow: visible;
  pointer-events: none;
}


/* ================================================================
   HERO
================================================================ */

.hero {
  padding: clamp(72px, 14vw, 100px) var(--pad-x) clamp(40px, 6vw, 60px);
  min-height: 100svh;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative; overflow: hidden;
  background: var(--panel-bg);
  border-radius: 0 0 var(--panel-r) var(--panel-r);
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin: 0 auto;
  width: 100%;
}


/* メインコンテンツラッパー */
.hero-main {
  display: flex; flex-direction: column;
  gap: 24px; flex: 1;
}

/* モバイル：画像が上 */
.hero-pic {
  width: 100%; order: -1;
}

.hero-pic img {
  width: 100%;
  max-height: 56vw; min-height: 200px;
  object-fit: contain; object-position: center top;
  border: 1px solid rgba(26, 23, 20, 0.18);
  display: block;
}

.hero-txt {
  display: flex; flex-direction: column; gap: 20px;
  order: 0;
}

.hero-h1 {
  font-family: var(--ff-jp);
  font-size: clamp(1.75rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1.58; letter-spacing: 0.02em;
}

.hero-sub {
  font-family: var(--ff-jp);
  font-size: clamp(0.8rem, 2vw, 0.96rem);
  line-height: 2.2; color: var(--ink-mid);
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 4px;
}

/* 背景装飾テキスト */
.hero-deco-txt {
  position: absolute; bottom: 10px; right: 0;
  font-family: var(--ff-disp);
  font-size: clamp(3rem, 9vw, 8rem);
  color: var(--ink); opacity: 0.028;
  letter-spacing: -0.02em;
  pointer-events: none; user-select: none;
  white-space: nowrap; line-height: 1;
  padding-right: var(--pad-x);
}



/* ================================================================
   MARQUEE / ティッカー
================================================================ */

.marquee {
  overflow: hidden;
  padding: 12px 0;
  border-top: none;
  border-bottom: none;
  background: var(--paper-alt);
  margin: 0 var(--panel-mx);
  border-radius: 0 0 var(--panel-r) var(--panel-r);
}

.marquee-track {
  display: flex; width: max-content;
  animation: marqueeRoll 34s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.mq-chunk {
  display: flex; align-items: center;
  gap: 18px; padding: 0 18px; flex-shrink: 0;
}

.mq-chunk span {
  font-family: var(--ff-disp);
  font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid); white-space: nowrap; opacity: 0.65;
}

.mq-dot { color: var(--red); font-size: 0.4rem; opacity: 0.8 !important; }

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


/* ================================================================
   PHILOSOPHY
================================================================ */

.philosophy {
  padding: var(--pad-y) var(--pad-x);
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
  border-radius: var(--panel-r);
  margin: var(--panel-my) var(--panel-mx);
}

.philosophy .inner {
  display: flex; flex-direction: column;
  gap: clamp(32px, 6vw, 56px);
}

.philosophy .sec-label { color: rgba(244,240,232,0.3); }
.philosophy .sec-label::before { background: var(--yellow); }

.phil-left, .phil-right { width: 100%; }

.phil-heading {
  font-family: var(--ff-jp);
  font-size: clamp(1.4rem, 5.5vw, 2.8rem);
  font-weight: 600; line-height: 1.65; letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.phil-heading em { font-style: normal; color: var(--yellow); }

.phil-body {
  font-family: var(--ff-jp);
  font-size: clamp(0.82rem, 1.8vw, 0.94rem);
  line-height: 2.5; color: rgba(244,240,232,0.72);
}
.phil-body p + p { margin-top: 20px; }

.phil-img {
  width: 100%;
  border: 1px solid rgba(244,240,232,0.12);
  overflow: hidden;
}

.phil-img img {
  width: 100%;
  max-height: 440px; object-fit: cover;
  filter: grayscale(28%) brightness(0.84);
  mix-blend-mode: luminosity;
  display: block;
}

/* 装飾ドット */
.philosophy::before {
  content: '';
  position: absolute; top: 40px; right: 40px;
  width: 100px; height: 100px;
  background-image: radial-gradient(circle, rgba(244,240,232,0.14) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}


/* ================================================================
   SERVICES / WHAT WE DO
================================================================ */

.services {
  padding: var(--pad-y) var(--pad-x);
  background: var(--panel-bg);
  border-radius: var(--panel-r);
  margin: var(--panel-my) var(--panel-mx);
}

.services-hd { margin-bottom: clamp(28px, 5vw, 52px); }

.services-h2 {
  font-family: var(--ff-jp);
  font-size: clamp(1.4rem, 5.5vw, 2.8rem);
  font-weight: 600; line-height: 1.5; letter-spacing: 0.03em;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.svc-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--ink);
}

.svc-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(250, 247, 239, 0.92), rgba(238, 231, 215, 0.72));
  border: 1px solid rgba(32, 25, 18, 0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(31, 25, 18, 0.08);
}

.svc-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center center;
  border-radius: clamp(14px, 1.6vw, 22px);
  mix-blend-mode: multiply;
  opacity: 0.96;
  transform: none;
}

/* Services / Projects カード画像の端をカード背景になじませるビネット */
.svc-img::after,
.proj-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 44%, rgba(244, 240, 232, 0.32) 100%);
}

.svc-body { padding: 20px 22px 24px; }

.svc-num {
  font-family: var(--ff-disp);
  font-size: 2.4rem; color: var(--red);
  line-height: 1; margin-bottom: 5px;
  transition: transform 0.28s var(--ease);
}
.svc-card:hover .svc-num { transform: translateX(5px); }

.svc-title {
  font-family: var(--ff-jp);
  font-size: 0.96rem; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 10px;
}

.svc-text {
  font-family: var(--ff-jp);
  font-size: 0.78rem; line-height: 2;
  color: var(--ink-mid);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: clamp(16px, 2vw, 22px);
  padding: 10px 16px;
  border: 1px solid rgba(32, 25, 18, 0.22);
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.72);
  color: inherit;
  font-family: var(--ff-jp);
  font-size: 0.76rem;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(32, 25, 18, 0.92);
  color: rgba(244, 240, 232, 0.96);
  border-color: rgba(32, 25, 18, 0.92);
}

.card-link:focus-visible {
  outline: 2px solid rgba(32, 25, 18, 0.72);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .card-link {
    width: 100%;
    margin-top: 16px;
  }
}


/* ================================================================
   PROJECTS
================================================================ */

.projects {
  padding: var(--pad-y) var(--pad-x);
  background: var(--panel-bg);
  border-radius: var(--panel-r);
  margin: var(--panel-my) var(--panel-mx);
}

.projects-h2 {
  font-family: var(--ff-jp);
  font-size: clamp(1.4rem, 5.5vw, 2.8rem);
  font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.proj-card {
  border: 1px solid var(--ink);
  background: var(--paper); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.proj-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.proj-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(250, 247, 239, 0.92), rgba(238, 231, 215, 0.72));
  border: 1px solid rgba(32, 25, 18, 0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(31, 25, 18, 0.08);
}

.proj-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center center;
  border-radius: clamp(14px, 1.6vw, 22px);
  mix-blend-mode: multiply;
  opacity: 0.96;
}

.proj-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 8px;
}

.proj-tag {
  font-family: var(--ff-mono);
  font-size: 0.54rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 6px;
}
.proj-tag::before { content: '◆'; font-size: 0.38rem; }

.proj-title {
  font-family: var(--ff-jp);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.04em;
}

.proj-text {
  font-family: var(--ff-jp);
  font-size: 0.78rem; line-height: 2; color: var(--ink-mid);
}


/* ================================================================
   REPRESENTATIVE / 代表
================================================================ */

.representative {
  padding: var(--pad-y) var(--pad-x);
  background: var(--panel-bg);
  border-radius: var(--panel-r);
  margin: var(--panel-my) var(--panel-mx);
}

.rep-h2 {
  font-family: var(--ff-jp);
  font-size: clamp(1.4rem, 5.5vw, 2.8rem);
  font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.rep-layout {
  display: flex; flex-direction: column;
  gap: clamp(32px, 6vw, 60px);
  align-items: flex-start;
}

/* === 写真スライダー === */
.rep-slider-wrap { width: 100%; }

.rep-slider {
  position: relative;
  width: 100%; max-width: 300px;
  aspect-ratio: 3 / 4;
  background-color: var(--paper-alt);
  overflow: hidden;
  isolation: isolate;
}

/* 白フェードオーバーレイ */
.rep-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  z-index: 5;
}

.rep-slider.is-fading::after {
  opacity: 1;
}

.rep-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.48s var(--ease), visibility 0.48s;
  cursor: pointer;
}

.rep-slide.active { opacity: 1; visibility: visible; }

/* シンプルフレーム：額なし・傾きなし */
.rep-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rep-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter: grayscale(10%) sepia(4%);
}

/* 写真番号ラベル */
.rep-slide-no {
  position: absolute;
  bottom: 16px; left: 18px;
  font-family: var(--ff-mono);
  font-size: 0.48rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 2; pointer-events: none;
}

/* ドットインジケーター */
.rep-dots {
  display: flex; gap: 8px;
  padding: 14px 0 0 12px;
}

.rep-dot {
  width: 9px; height: 9px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  min-width: 32px; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-width: 0;
}

.rep-dot-inner {
  width: 9px; height: 9px;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background 0.2s;
  pointer-events: none;
}

.rep-dot.active .rep-dot-inner { background: var(--ink); }
.rep-dot:hover:not(.active) .rep-dot-inner { background: rgba(26,23,20,0.25); }
.rep-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* タップヒント */
.rep-hint {
  font-family: var(--ff-mono);
  font-size: 0.48rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 6px 0 0 12px;
}

/* テキスト */
.rep-txt { display: flex; flex-direction: column; gap: 18px; }

.rep-name {
  font-family: var(--ff-jp);
  font-size: clamp(1.2rem, 4.5vw, 1.9rem);
  font-weight: 600; line-height: 1.5; letter-spacing: 0.04em;
}

.rep-body {
  font-family: var(--ff-jp);
  font-size: clamp(0.82rem, 1.8vw, 0.94rem);
  line-height: 2.5; color: var(--ink-mid);
}
.rep-body p + p { margin-top: 18px; }

.rep-bio {
  font-family: var(--ff-jp);
  font-size: clamp(0.74rem, 1.5vw, 0.82rem);
  line-height: 2.2;
  color: var(--ink-light);
  padding-top: 14px;
  border-top: 1px solid rgba(26,23,20,0.1);
}

.rep-bio-note {
  font-family: var(--ff-jp);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 40, 35, 0.12);
  font-size: 0.72rem;
  line-height: 1.9;
  color: rgba(45, 40, 35, 0.52);
  letter-spacing: 0.04em;
}

.rep-sig {
  padding-top: 24px;
  border-top: 1px solid rgba(26,23,20,0.15);
  display: flex; flex-direction: column; gap: 4px;
}

.rep-sig-name {
  font-family: var(--ff-jp);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.08em;
}

.rep-sig-role {
  font-family: var(--ff-mono);
  font-size: 0.54rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-light);
}

.rep-name-en {
  font-family: var(--ff-sans);
  font-size: 0.56em;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  margin-left: 0.25em;
}

.rep-alt-name {
  margin-top: 18px;
  font-size: 0.68rem;
  line-height: 1.6;
  color: rgba(45, 40, 35, 0.45);
  letter-spacing: 0.08em;
  font-family: var(--ff-jp);
}

@media (max-width: 767px) {
  .rep-alt-name {
    font-size: 0.64rem;
  }
  .rep-bio-note {
    font-size: 0.68rem;
    line-height: 1.85;
  }
}

.rep-role {
  font-family: var(--ff-mono);
  font-size: 0.56rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-light);
  margin-top: -4px;
}

.rep-lead {
  font-family: var(--ff-jp);
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  font-weight: 600; line-height: 1.8;
  color: var(--ink);
}

.rep-labels {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 4px;
}

.rep-labels li {
  font-family: var(--ff-mono);
  font-size: 0.5rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border: 1px solid rgba(26,23,20,0.2);
  padding: 4px 10px;
}

.rep-slider:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}


/* ================================================================
   COMPANY
================================================================ */

.company {
  padding: var(--pad-y) var(--pad-x);
  background: var(--panel-bg);
  border-radius: var(--panel-r);
  margin: var(--panel-my) var(--panel-mx);
}

.co-h2 {
  font-family: var(--ff-jp);
  font-size: clamp(1.4rem, 5.5vw, 2.8rem);
  font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.co-body {
  display: flex; flex-direction: column;
  gap: clamp(32px, 5vw, 52px);
}

.co-lead {
  font-family: var(--ff-jp);
  font-size: clamp(0.84rem, 1.8vw, 0.96rem);
  line-height: 2.5; color: var(--ink-mid);
  max-width: 680px;
}
.co-lead p + p { margin-top: 18px; }

.co-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.co-sub {
  font-family: var(--ff-mono);
  font-size: 0.54rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}

.co-sub::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--red); flex-shrink: 0;
}

.co-areas,
.co-info {
  padding: clamp(20px, 2.8vw, 32px);
  background: rgba(250, 247, 239, 0.9);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 8px;
}

.co-area-list {
  list-style: none;
  display: flex; flex-direction: column;
}

.co-area-list li {
  font-family: var(--ff-jp);
  font-size: clamp(0.82rem, 1.6vw, 0.9rem);
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.07);
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  line-height: 1.5;
}

.co-area-list li::before {
  content: '—';
  font-family: var(--ff-mono);
  font-size: 0.52rem; color: var(--red);
  flex-shrink: 0;
}

.co-area-list li:last-child { border-bottom: none; }

.co-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-family: var(--ff-jp);
  font-size: clamp(0.76rem, 1.5vw, 0.84rem);
  line-height: 1.9;
  align-items: start;
}

.co-dl dt {
  color: var(--ink-light);
  font-size: 0.7rem; letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 0.15em;
}

.co-dl dd {
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.co-cta { padding-top: 4px; }

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


/* ================================================================
   CONTACT
================================================================ */

.contact {
  padding: var(--pad-y) var(--pad-x);
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
  border-radius: var(--panel-r);
  margin: var(--panel-my) var(--panel-mx);
}

.contact .sec-label { color: rgba(244,240,232,0.28); }
.contact .sec-label::before { background: var(--magenta); }

.contact-inner {
  display: flex; flex-direction: column;
  gap: 28px;
  position: relative; z-index: 1;
}

.contact-bird {
  width: 100%; max-width: 180px;
}

.contact-bird img {
  width: 100%;
  filter: grayscale(18%) sepia(4%);
  mix-blend-mode: luminosity; opacity: 0.72;
}

.contact-h2 {
  font-family: var(--ff-jp);
  font-size: clamp(1.3rem, 5.5vw, 2.6rem);
  font-weight: 600; line-height: 1.6; letter-spacing: 0.03em;
}

.contact-body {
  font-family: var(--ff-jp);
  font-size: clamp(0.82rem, 1.8vw, 0.94rem);
  line-height: 2.4; color: rgba(244,240,232,0.7);
}
.contact-body p + p { margin-top: 12px; }

/* 装飾ドット */
.contact::after {
  content: '';
  position: absolute; bottom: 36px; right: 36px;
  width: 110px; height: 110px;
  background-image: radial-gradient(circle, rgba(244,240,232,0.1) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}


/* ================================================================
   FOOTER
================================================================ */

.footer {
  padding: clamp(48px, 7vw, 80px) var(--pad-x) clamp(48px, 7vw, 80px);
  background: var(--panel-bg);
  border-radius: clamp(24px, 3.5vw, 48px) clamp(24px, 3.5vw, 48px) 0 0;
  margin: var(--panel-my) 0 0;
  position: relative;
  z-index: 10;
  transition: transform .5s var(--ease-lift);
}

.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}

.footer-logo { height: 24px; width: auto; }

.footer-name {
  font-family: var(--ff-jp);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
  margin-top: 6px;
}

.footer-name-en {
  font-family: var(--ff-sans);
  font-size: 0.54rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-light);
  margin-top: 2px;
}

.footer-rep {
  font-family: var(--ff-jp);
  font-size: 0.6rem; color: var(--ink-light);
  margin-top: 4px;
}

.footer-nav {
  display: flex; flex-wrap: wrap;
  gap: 12px 18px; list-style: none;
}

.footer-nav a {
  font-family: var(--ff-sans);
  font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav a:focus-visible { color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }

.footer-copy {
  font-family: var(--ff-mono);
  font-size: 0.48rem; letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-top: 14px;
  border-top: 1px solid rgba(26,23,20,0.1);
}


/* ================================================================
   TABLET  768px+
================================================================ */

@media (min-width: 768px) {
  .hdr-nav   { display: flex; }
  .hdr-menu  { display: none; }

  /* Philosophy 2カラム */
  .philosophy .inner {
    flex-direction: row; align-items: start;
    gap: clamp(40px, 7vw, 80px);
  }
  .phil-left  { flex: 1 1 0; min-width: 0; }
  .phil-right { flex: 1 1 0; min-width: 0; }

  /* Services 2カラム */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Projects 2カラム */
  .proj-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Representative 横並び */
  .rep-layout { flex-direction: row; align-items: flex-start; }
  .rep-slider-wrap { flex-shrink: 0; width: 260px; }
  .rep-slider { max-width: 100%; }
  .rep-txt    { flex: 1; min-width: 0; }

  /* Contact 横並び */
  .contact-inner { flex-direction: row; align-items: center; gap: 52px; }
  .contact-bird  { flex-shrink: 0; max-width: 200px; }

  /* Footer 横並び */
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer-left  { flex: 1; }
  .footer-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  }

}


/* ================================================================
   DESKTOP  1024px+
================================================================ */

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-grid  { grid-template-columns: repeat(3, 1fr); }
  .rep-slider-wrap { width: 300px; }
}


/* ================================================================
   PANEL / SECTION SURFACE — MOBILE OVERRIDES
================================================================ */

@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 24px 24px;
  }

  .marquee {
    margin: 0 10px;
    border-radius: 0 0 24px 24px;
  }

  .philosophy,
  .services,
  .projects,
  .representative,
  .company,
  .contact {
    border-radius: 24px;
    margin: 10px 10px;
    padding: clamp(40px, 10vw, 64px) 18px;
  }

  .footer {
    border-radius: 28px 28px 0 0;
    padding: 44px 18px 56px;
    margin-top: 10px;
  }

  .svc-img,
  .proj-img {
    border-radius: 18px;
  }

  .svc-img img,
  .proj-img img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 14px;
  }
}


/* ================================================================
   CONTACT PAGE
================================================================ */

.contact-page {
  padding: calc(80px + var(--pad-y)) var(--pad-x) var(--pad-y);
  min-height: 100vh;
}

.contact-page-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-page h1 {
  font-family: var(--ff-jp);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 600; line-height: 1.55;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.contact-page-sub {
  font-family: var(--ff-jp);
  font-size: clamp(0.82rem, 2vw, 0.94rem);
  line-height: 2.3; color: var(--ink-mid);
  margin-bottom: 40px;
}

/* フォーム */
.cform {
  display: flex; flex-direction: column; gap: 24px;
}

.cform-field {
  display: flex; flex-direction: column; gap: 6px;
}

.cform-label {
  font-family: var(--ff-jp);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em;
}

.cform-label span {
  font-family: var(--ff-mono);
  font-size: 0.5rem; letter-spacing: 0.12em;
  color: var(--red); margin-left: 6px;
}

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--ff-jp); font-size: 0.88rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(26,23,20,0.3);
  outline: none;
  transition: border-color 0.22s;
  -webkit-appearance: none; appearance: none;
  border-radius: 0;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  border-color: var(--ink);
}

.cform textarea {
  resize: vertical; min-height: 140px;
  line-height: 1.9;
}

.cform-note {
  font-family: var(--ff-jp);
  font-size: 0.7rem; color: var(--ink-light);
  line-height: 1.9;
}

.cform-submit {
  padding-top: 8px;
}

.cform-submit .btn {
  width: 100%;
  justify-content: center;
}

.contact-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-family: var(--ff-jp); font-size: 0.78rem;
  color: var(--ink-light);
  transition: color 0.2s;
}
.contact-back:hover { color: var(--ink); }

/* honeypot — 人には見えない、bot 対策 */
.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* privacy 同意チェック */
.cform-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.cform-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 3px;
  cursor: pointer;
  accent-color: var(--ink);
}
.cform-check-label {
  font-family: var(--ff-jp);
  font-size: clamp(0.80rem, 1.8vw, 0.88rem);
  line-height: 1.9; cursor: pointer;
  flex: 1; min-width: 0;
}
.cform-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* 必須ラベル（privacy-check 内） */
.req {
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-left: 4px;
}

/* ================================================================
   PRIVACY CHECK — カスタムチェックボックス
================================================================ */

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  cursor: pointer;
  line-height: 1.7;
  color: inherit;
}

.privacy-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.privacy-check__box {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border: 1.5px solid rgba(32, 25, 18, 0.62);
  border-radius: 6px;
  background: rgba(250, 247, 239, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 4px 12px rgba(31, 25, 18, 0.08);
  position: relative;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.privacy-check input[type="checkbox"]:checked + .privacy-check__box {
  background: rgba(32, 25, 18, 0.94);
  border-color: rgba(32, 25, 18, 0.94);
}

.privacy-check input[type="checkbox"]:checked + .privacy-check__box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 8px;
  height: 14px;
  border: solid rgba(244, 240, 232, 0.96);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-check input[type="checkbox"]:focus-visible + .privacy-check__box {
  outline: 3px solid rgba(32, 25, 18, 0.32);
  outline-offset: 4px;
}

.privacy-check:hover .privacy-check__box {
  transform: translateY(-1px);
  border-color: rgba(32, 25, 18, 0.88);
}

.privacy-check__text {
  display: block;
  min-width: 0;
  font-family: var(--ff-jp);
  font-size: clamp(0.80rem, 1.8vw, 0.88rem);
  line-height: 1.9;
}

.privacy-check__text a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 767px) {
  .privacy-check {
    gap: 10px;
    align-items: flex-start;
  }

  .privacy-check__box {
    width: 30px;
    height: 30px;
  }
}


/* ================================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }

  .opening,
  .paper-noise,
  .opening-art,
  .opening-scanline {
    animation: none !important;
  }
  .opening-art { opacity: 1; transform: none; filter: none; }
}


/* ================================================================
   HERO — 全画面ビジュアル型 (.hero--visual)
================================================================ */

.hero--visual {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: transparent;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  display: block;
}

.hero--visual .hero-visual {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper, #f4f0e8);
}

.hero--visual .hero-pic {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.hero--visual .hero-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: none;
  max-height: none;
  min-height: 0;
}

.hero--visual .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(244, 240, 232, 0.78) 0%,
      rgba(244, 240, 232, 0.52) 34%,
      rgba(244, 240, 232, 0.16) 68%,
      rgba(244, 240, 232, 0.00) 100%
    );
}

.hero--visual .hero-txt {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 7vw, 104px);
  top: clamp(112px, 16vh, 172px);
  width: min(520px, calc(100% - 48px));
  margin: 0;
  transform: none;
  box-sizing: border-box;
  padding: clamp(24px, 3vw, 40px);
  border-radius: clamp(22px, 2.4vw, 34px);
  background: rgba(244, 240, 232, 0.88);
  border: 1px solid rgba(32, 25, 18, 0.10);
  box-shadow: 0 18px 48px rgba(31, 25, 18, 0.10);
  backdrop-filter: blur(2px);
  display: block;
  flex-direction: unset;
  gap: 0;
  order: 0;
}

.hero--visual .hero-h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero--visual .hero-line {
  display: block;
}

.hero--visual .hero-sub {
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  color: var(--ink-mid);
}

.hero--visual .hero-cta {
  margin-top: clamp(20px, 2.3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0;
}

@media (max-width: 768px) {
  .hero--visual {
    border-radius: 0;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .hero--visual .hero-txt {
    top: clamp(84px, 12vh, 118px);
    width: min(500px, calc(100% - 48px));
    padding: 24px 28px;
  }

  .hero--visual .hero-h1 {
    font-size: clamp(32px, 4.1vw, 54px);
    line-height: 1.2;
  }

  .hero--visual .hero-sub {
    font-size: 15px;
    line-height: 1.75;
    margin-top: 14px;
  }

  .hero--visual .hero-cta {
    margin-top: 18px;
  }
}

@media (max-width: 767px) {
  .hero--visual {
    min-height: auto;
    padding: 0 var(--side) 48px;
    overflow: hidden;
    border-radius: 0;
  }

  .hero--visual .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
  }

  .hero--visual .hero-pic {
    position: relative;
    inset: auto;
    order: 1;
    width: calc(100% + var(--side) * 2);
    margin-left: calc(var(--side) * -1);
    height: min(58svh, 520px);
    overflow: hidden;
    border-radius: 0 0 28px 28px;
  }

  .hero--visual .hero-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .hero--visual .hero-visual::after {
    display: none;
  }

  .hero--visual .hero-txt {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin: -24px auto 0;
    box-sizing: border-box;
    padding: 22px 18px 20px;
    border-radius: 22px;
    background: rgba(244, 240, 232, 0.94);
  }

  .hero--visual .hero-h1 {
    font-size: clamp(30px, 8.4vw, 42px);
    line-height: 1.28;
  }

  .hero--visual .hero-sub {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero--visual .hero-cta {
    display: grid;
    gap: 10px;
  }

  .hero--visual .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
