/* =========================================================
   seafine — Design foundation
   トンマナ：既存サイトのミント→スカイのグラデーション + Noto Serif JP
   テーマ：明るい南国の海 / 亀は控えめに
   ========================================================= */

:root {
  /* 画面の高さの1%。iPhoneはアドレスバーの出入りで vh/svh が変わり、その下のページ全体が上下に跳ねるため、
     読み込み時に測った値で固定する（js/page-veil.js が --vh を入れる） */
  /* Brand */
  --mint: #05F3C4;
  --sky: #51CCFD;
  --grad: linear-gradient(120deg, var(--mint), var(--sky));

  /* Sea */
  --sea-1: #D9FFF6;
  --sea-2: #7CEBDD;
  --sea-3: #3CCBE8;
  --sea-4: #1FA6E0;

  /* Neutral */
  --ink: #0E3247;       /* 本文・見出し：深い海の紺 */
  --ink-soft: #4F6B7A;
  --line: rgba(14, 50, 71, .12);
  --foam: #F5FCFC;
  --aqua-pale: #E7F9F7;
  --sand: #F7F1E6;
  --white: #fff;
  --gold: #C8A96B;      /* 細い装飾線にだけ使うアクセント */

  /* Type */
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --en: "Cormorant Garamond", serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 84px;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 60px; } /* スマホのページ内リンクで、見出しがヘッダーに隠れないように（PCは慣性スクロール側でずらす） */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
  overflow-x: hidden; /* bodyの指定は画面全体に効くので、はみ出しても横に揺れない */
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(80px, 9vw, 128px) 0; }
.en-serif { font-family: var(--en); font-style: italic; letter-spacing: .08em; }
/* ページを移るときの幕（js/page-veil.js）。移る前にふわっと覆い、次のページで晴れていく */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background: linear-gradient(175deg, #F6FEFF 0%, #C2EEFB 60%, #86D6F2 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
html.is-leaving::after, html.veil-in::after { opacity: 1; }
html.veil-in::after { transition: none; } /* 来たときは最初から覆っておき、外すときだけゆっくり晴らす */
/* 段落の最後の行に1〜2文字だけ取り残されないよう、行の長さをならす */
p, li, dd { text-wrap: pretty; }
.ib { display: inline-block; } /* 文の途中で改行させず、言葉のまとまりの切れ目で折り返す */
/* 長い本文は左右の端をそろえ、行頭に「ー」や小さい「ィ」が来ないようにする（スマホで行末がガタガタに見えないように） */
.about__body p:not(.about__lead), .svc-map__detail, .r-message__text, .r-value p, .r-qa p, .r-job__body dd, .cf__thanks-text {
  text-align: justify; line-break: strict; overflow-wrap: anywhere;
}
.cf__req { white-space: nowrap; } /* 「必須」が1文字ずつ折り返さないように */

/* ---------- Section heading ---------- */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 56px; }
.sec-head--center { align-items: center; text-align: center; }
.sec-head__en {
  font-family: var(--en);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: .02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.sec-head__ja {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .2em;
}
.sec-head__ja::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

/* 見出しが水面からすっと浮かび上がる（JSで1文字ずつ分割。水面＝下端の線） */
.sec-head__en.is-split {
  position: relative; display: inline-block;
  background: none; color: inherit;
  overflow: hidden; padding: 0 .04em .16em; margin: 0 -.04em;
}
.sec-head__en .letter {
  display: inline-block;
  background: var(--grad); background-size: var(--bw, 100%) 100%; background-position: var(--bx, 0) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(115%);
  opacity: 0;
}
.recruit .sec-head__en .letter { background: none; color: var(--white); }
.sec-head__en.is-rising .letter {
  animation: surface 1.8s var(--ease) forwards;
  animation-delay: calc(var(--i) * .07s);
}
@keyframes surface {
  0%   { transform: translateY(115%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
/* 文字が水面を割るときに広がる波紋 */
.sec-head__en.is-split::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 203, 232, .8), transparent);
  transform: scaleX(0); opacity: 0;
}
.recruit .sec-head__en.is-split::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); }
.sec-head__en.is-rising::after { animation: surface-line 2s var(--ease) .25s forwards; }
@keyframes surface-line {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleX(1.3); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .14em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::after { /* 光が横切る */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn--grad { color: var(--white); background: var(--grad); box-shadow: 0 10px 30px -10px rgba(31, 166, 224, .55); }
.btn--grad:hover { box-shadow: 0 16px 40px -12px rgba(31, 166, 224, .7); }
.btn--white { color: var(--ink); background: var(--white); }
.btn--lg { min-height: 68px; padding: 0 56px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .14em;
}
.link-arrow i {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.link-arrow i::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease);
}
.link-arrow:hover i { background: var(--grad); border-color: transparent; color: var(--white); }
.link-arrow:hover i::before { transform: translate(-20%, -50%); }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--grad);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-in-out) .2s;
}
.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.no-intro .loader { display: none; }
.loader__logo {
  position: relative; width: 56px;
  filter: brightness(0) invert(1);
  animation: loaderLogo 1.4s var(--ease) both;
}
.loader__ripple { position: absolute; display: grid; place-items: center; }
.loader__ripple span {
  position: absolute; width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  animation: ripple 2.4s var(--ease) infinite;
}
.loader__ripple span:nth-child(2) { animation-delay: .5s; }
.loader__ripple span:nth-child(3) { animation-delay: 1s; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }
@keyframes loaderLogo { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease);
}
.header.is-scrolled { --header-h: 68px; box-shadow: 0 1px 0 var(--line); }
/* すりガラスの背景は疑似要素に置く。ヘッダー本体に backdrop-filter を付けると、
   中のスマホメニュー（position: fixed）がヘッダーの高さに閉じ込められてしまうため */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0; transition: opacity .5s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__logo { position: relative; z-index: 2; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav ul { display: flex; gap: 32px; }
.nav li a { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.nav .en { font-family: var(--en); font-size: 17px; letter-spacing: .06em; }
.nav .ja { font-size: 10px; letter-spacing: .16em; color: var(--ink-soft); }
.nav li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav li a:hover::after { transform: scaleX(1); transform-origin: left; }
/* トップの海の上にいるあいだは、ヘッダーを白に。スクロールしたり、スマホのメニューを開いたりしたら元の色に戻す */
body:not(.is-menu-open):has(.hero) .header:not(.is-scrolled) .header__logo img { filter: brightness(0) invert(1); }
body:not(.is-menu-open):has(.hero) .header:not(.is-scrolled) .menu-btn { background: rgba(255,255,255,.22); }
@media (min-width: 861px) {
  body:has(.hero) .header:not(.is-scrolled) .nav .en { color: var(--white); }
  body:has(.hero) .header:not(.is-scrolled) .nav .ja { color: rgba(255,255,255,.75); }
  body:has(.hero) .header:not(.is-scrolled) .nav__cta { background: var(--white); color: #1683C2; }
}
/* いま見ているセクション（採用ページでは「Recruit」）は、下線を出したままにする */
.nav li a.is-current::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 44px; padding: 0 26px; font-size: 13px; }
.menu-btn { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  --fx: 72%; --fy: 50%;        /* 光と方眼の中心 */
  --deep: #0B2A45;
  position: relative; height: calc(var(--vh, 1vh) * 100); min-height: 680px;
  overflow: hidden; isolation: isolate;
  /* 採用ページのヒーローと同じ系統の海。下へいくほど深い青になる */
  background:
    radial-gradient(55% 45% at 18% 15%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(50% 60% at 85% 75%, rgba(5,243,196,.35), transparent 60%),
    linear-gradient(180deg, #1FC4D0, #168FD0 60%, #0E5FA0);
  color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
/* コピーの後ろだけ、海を少し深くして白い文字を読みやすく */
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 55% at 24% 46%, rgba(8,62,120,.42), transparent 75%); }
/* 採用ページと同じ、水面から差しこむ光。コピーの後ろの1本は端に寄せて弱める */
.hero__rays { position: absolute; inset: 0; pointer-events: none; }
.hero__rays i { position: absolute; top: -10%; width: 16vw; height: 120%; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 80%); filter: blur(22px); transform-origin: top center; }
.hero__rays i:nth-child(1) { left: 2%; rotate: 16deg; opacity: .45; }
.hero__rays i:nth-child(2) { left: 44%; width: 10vw; rotate: 8deg; }
.hero__rays i:nth-child(3) { left: 72%; rotate: 4deg; }
/* 細い方眼。集まる点から外へ向かって消える */
.hero__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(60% 70% at var(--fx) var(--fy), #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at var(--fx) var(--fy), #000 0%, transparent 75%);
}
/* 線は白で見せる（描く色はそのままに、明るさだけ白へ変える） */
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(0) invert(1); opacity: .75; }
/* コピーの後ろでは線と光を弱めて、文字を読みやすく */
.hero__field { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.25) 38%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.25) 38%, #000 62%); }
/* 細かい粒子で、のっぺりした印象を消す */
.hero__grain {
  position: absolute; inset: -50%; opacity: .05; pointer-events: none; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 25% { translate: -3% 2%; } 50% { translate: 2% -4%; } 75% { translate: -1% 3%; } }

/* ---------- 左：コピー ---------- */
.hero__inner {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; translate: 0 -58%;
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.hero__inner > * { max-width: min(760px, 56vw); }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: "Manrope", var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.8); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 1.1s; }
.hero__eyebrow span { opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
.is-loaded .hero__eyebrow::before { transform: none; }
.is-loaded .hero__eyebrow span { opacity: 1; }
.hero__copy {
  margin-top: 30px;
  font-family: "Zen Old Mincho", var(--serif); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 88px); line-height: 1.26; letter-spacing: .05em; color: var(--white);
  text-shadow: 0 2px 24px rgba(4,40,84,.35);
}
/* 1行ずつ、下から切り抜きの中をせり上がる */
.hero__row { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__row > span { display: inline-block; translate: 0 110%; transition: translate 1.3s cubic-bezier(.19, 1, .22, 1); }
.hero__row:nth-child(1) > span { transition-delay: 1.25s; }
.hero__row:nth-child(2) > span { transition-delay: 1.4s; }
.is-loaded .hero__row > span { translate: 0 0; }
/* 2行目は右へずらして、雑誌の見出しのような動きを出す */
.hero__inner > .hero__copy { max-width: none; }
.hero__row:nth-child(2) { padding-left: 1.6em; }
/* 「届くべき人」は、光が流れるミント */
.hero__copy em {
  font-style: normal;
  background: linear-gradient(100deg, #7FF6DE 0%, #C8FFF3 40%, #7FF6DE 60%, #5BE9D0 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }
.hero__lead {
  margin-top: 34px; font-size: clamp(14px, 1.15vw, 17px); font-weight: 500; line-height: 2.1; letter-spacing: .12em; color: var(--white);
  text-shadow: 0 1px 12px rgba(4,40,84,.4);
}
/* コピーと同じように、1行ずつ下から切り抜きの中をせり上がる */
.hero__lead-row { display: block; overflow: hidden; }
.hero__lead-row > span { display: inline-block; translate: 0 110%; transition: translate 1.2s cubic-bezier(.19, 1, .22, 1) 1.9s; }
.hero__lead-row + .hero__lead-row > span { transition-delay: 2.05s; }
.is-loaded .hero__lead-row > span { translate: 0 0; }
/* ---------- 右下：スクロール ---------- */
.hero__scroll {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 44px; opacity: 0; transition: opacity 1.2s var(--ease) 2.2s;
  display: flex; align-items: center; gap: 14px; font-family: "Manrope", var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--white); }
.hero__scroll i { position: relative; width: 64px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: scroll-x 2.2s var(--ease-in-out) infinite; }
@keyframes scroll-x { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.is-loaded .hero__scroll { opacity: 1; }

/* ---------- Waves ---------- */
.wave { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
@keyframes wave { from { transform: translateX(-3%) scaleY(1); } to { transform: translateX(3%) scaleY(1.15); } }
.wave path { transform-origin: bottom center; transform-box: fill-box; }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--foam); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; position: relative; z-index: 1; }
.about__lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.9; letter-spacing: .12em;
  margin-bottom: 32px;
}
.about__body > p:not(.about__lead) { color: var(--ink-soft); line-height: 2.1; margin-bottom: 1.5em; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .45; pointer-events: none;
}
/* 本文の右側に少しかかる位置に置く */
.blob--a { width: 560px; height: 560px; right: max(-160px, calc(50% - 800px)); top: 18%; background: radial-gradient(circle, var(--mint), transparent 70%); }

/* =========================================================
   Service
   ========================================================= */
/* 事業内容の背景は、ファーストビューの光の帯と同じ、ミント→水色→うす紫のグラデーション。
   島のイラストは水色の背景を切り抜いたもの（assets/service-map-cut.webp）を使い、島だけを浮かべる。
   上下の端だけ、となりのセクションの色へなめらかにつなぐ */
.service {
  --map-bg: linear-gradient(160deg, #E4FBF5 0%, #E6F2FF 55%, #EDEBFF 100%);
  position: relative;
  background: var(--map-bg);
}
.service::before, .service::after { content: ""; position: absolute; left: 0; right: 0; height: 200px; pointer-events: none; }
.service::before { top: 0; background: linear-gradient(var(--foam), transparent); }
.service::after { bottom: 0; background: linear-gradient(transparent, var(--white)); }
.service > .container { position: relative; z-index: 1; }
.service .svc-stack__no { background: none; color: #0F3E6E; -webkit-text-fill-color: #0F3E6E; }
.service .svc-stack__en { color: #2B5478; }
/* ---------- 図解スライド ---------- */
/* コンテナの幅を超えて画面いっぱい近くまで広げ、図解は左端寄せ・説明は大きく */
.svc-map {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 80px); --ip: 0; --shift: 0px;
  width: min(1600px, 100vw - var(--sbw, 0px) - 2 * var(--gutter)); margin-left: calc(50% - min(800px, (50vw - var(--sbw, 0px) / 2) - var(--gutter)));
}
.svc-map__left {
  position: sticky; top: var(--header-h); height: calc(calc(var(--vh, 1vh) * 100) - var(--header-h));
  display: flex; align-items: center; z-index: 2;
}
/* 最初は中央に大きく、--ip が 1 に近づくほど左の定位置へ */
.svc-map__figure {
  width: 100%;
  transform: translateX(calc(var(--shift) * (1 - var(--ip)))) scale(calc(1 + (1 - var(--ip)) * .7)); /* 最初は1.7倍で大きく見せる */
  transform-origin: center;
}
/* 島のイラスト1枚。カメラ（.imap__cam）を拡大・移動して、そのサービスの島へ寄る */
.imap { position: relative; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; /* 右の説明1項目と同じくらいの高さまで縦に広げて、寄ったときに上下も見せる */
  /* 枠は付けず、絵の端を背景にふわっと溶かす（寄ったときも、枠の端で切れて見えないように） */
  /* 丸くぼかすと四隅が大きく欠けるので、四辺の端（左右10%・上下8%）だけをぼかす */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect; }
.imap__cam { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1672 / 941; translate: 0 -50%; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.imap__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 島の名前の札（すりガラスの長方形に、小さな「NO.3」と名前を2段で）。寄ったときは消す */
.imap__plate {
  position: absolute; translate: -50% -50%; display: flex; flex-direction: column; gap: 2px; padding: 5px 10px 6px; border-radius: 6px; white-space: nowrap;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -14px rgba(14,50,71,.5);
  font-family: var(--serif); font-size: clamp(8px, .62vw, 10.5px); font-weight: 600; letter-spacing: .08em; line-height: 1.3; color: #0B2A45;
  transition: opacity .6s var(--ease);
}
.imap__plate span, .imap__label span { font-family: var(--en); font-style: italic; font-size: 1.1em; font-weight: 400; letter-spacing: .1em; line-height: 1; color: #1F6FB2; }
.svc-map:not([data-active="-1"]) .imap__plate { opacity: 0; }
/* 寄っている島の名前（同じ札を大きくして、絵の下のほうに重ねる） */
.imap__label {
  position: absolute; left: 50%; bottom: 9%; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 10px 20px 12px; border-radius: 10px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 16px 34px -16px rgba(14,50,71,.5);
  font-family: var(--serif); font-size: clamp(14px, 1.2vw, 18px); line-height: 1.3;
  opacity: 0; translate: -50% 12px; transition: opacity .5s var(--ease), translate .7s var(--ease); pointer-events: none;
}
.imap__label.is-shown { opacity: 1; translate: -50% 0; transition-delay: .6s; }
.imap__label b { font-weight: 600; letter-spacing: .08em; color: #0B2A45; white-space: nowrap; }

/* 右：スクロールで流れていく説明（図解が左に寄りきってから現れる）
   1項目あたりの高さを大きくとり、勢いよくスクロールしても一度に飛ばないようにする */
.svc-map__right { padding: calc(var(--vh, 1vh) * 85) 0 calc(var(--vh, 1vh) * 20); } /* 図解が中央で止まって左に寄りきるまで、説明は出さない */
/* PCは各項目を図解の真横でいったん止めて、読んでもらってから次へ送る
   （項目の枠を縦長にとり、中身を画面の中央に貼りつける。止まっている間のスクロール量は枠の高さ − 画面の高さ） */
.svc-map__step { min-height: calc(var(--vh, 1vh) * 175); max-width: 620px; }
.svc-map__step-in {
  position: sticky; top: var(--header-h); min-height: calc(calc(var(--vh, 1vh) * 100) - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  opacity: .2; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.svc-map__step.is-active .svc-map__step-in { opacity: 1; transform: none; }
.svc-map__step-in { isolation: isolate; }
/* 「01」を大きく薄いグラデーションの透かしにして、タイトルの左上の後ろに敷く */
.svc-map__head { position: relative; padding-top: clamp(46px, 4.4vw, 64px); }
.svc-map__head .svc-stack__no {
  position: absolute; left: -.06em; top: -.22em; z-index: -1; font-size: clamp(110px, 10vw, 150px); font-style: italic; line-height: .8;
  padding: 0 .12em .3em 0; /* 3・5の下に伸びる部分や斜体のはみ出しまで、グラデーションを塗る範囲に入れる（入れないと切れる） */
  background: linear-gradient(120deg, rgba(0,201,167,.55), rgba(31,166,224,.42), rgba(124,140,255,.38)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.svc-map__rule { display: block; margin-top: 18px; height: 1px; background: linear-gradient(90deg, #1FA6E0, rgba(31,166,224,0)); }
.svc-map__step .svc-stack__en { font-size: 20px; margin: 14px 0 4px; }
/* タイトルは改行させない。一番長い「観光特化型マーケティング支援」（約15.6文字ぶん）が1行に収まる大きさにそろえる */
.svc-map__step-in { container-type: inline-size; }
.svc-map__step h3 { font-family: var(--serif); font-weight: 500; font-size: min(clamp(28px, 3vw, 42px), 100cqi / 15.6); white-space: nowrap; letter-spacing: .1em; line-height: 1.4; }
.svc-map__lead { word-break: keep-all; overflow-wrap: anywhere; margin: 18px 0 30px; font-family: "Shippori Mincho", var(--serif); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.8; letter-spacing: .06em; color: var(--ink); }
.svc-map__detail { margin-top: 0; font-size: 15px; line-height: 2.1; letter-spacing: .04em; color: var(--ink); } /* お悩みの欄はなくし、説明はこの1段落だけで見せる */

/* 番号と英字名（図解スライドの説明で使う） */
.svc-stack__no { font-size: 56px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-stack__no small { font-size: 18px; margin-left: 8px; }
.svc-stack__en { margin: 18px 0 6px; font-size: 18px; color: var(--ink-soft); }

/* =========================================================
   Works
   ========================================================= */
.works { background: var(--white); }
.work { position: relative; }

/* 写真（ホバーで少しだけ拡大） */
.work__img {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: var(--aqua-pale);
  clip-path: inset(0 100% 0 0 round 20px);
  transition: clip-path 1.4s var(--ease-in-out), transform .8s var(--ease);
}
.work.is-visible .work__img { clip-path: inset(0 0 0 0 round 20px); }
.work__img:hover { transform: scale(.985); }
.work__water {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  transition: opacity .5s var(--ease), transform 1.2s var(--ease);
}
.work__img:hover .work__water { transform: scale(1.04); }

/* 1件目：大きく表示 */
.work--feature { display: grid; grid-template-columns: .92fr 1fr; gap: clamp(32px, 4vw, 48px); align-items: stretch; }
/* 成果の数字の下線と画像の下端を同じラインにそろえる
   （画像が高いときは数字を下に寄せ、文字が高いときは画像を下に寄せる） */
.work--feature .work__media { align-self: center; }
.work--feature .work__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
/* 2行目「飲食店向けWeb広告の成功戦略とは？」が必ず1行に収まるよう、文字の大きさを本文の幅に合わせる */
/* 自社が運用しているメディア（.work--media）も、文字の大きさ・間隔は上の事例とそろえる */
.work--feature .work__body, .work--media .work__body { container-type: inline-size; }
.work--feature .work__title, .work--media .work__title { font-size: clamp(15px, 5.4cqi, 28px); letter-spacing: .04em; margin: 14px 0; }
.work--feature .work__title .nw { white-space: nowrap; }
.work--feature .link-arrow, .work--media .link-arrow { font-size: 15px; }
.work--feature .link-arrow i, .work--media .link-arrow i { width: 44px; height: 44px; }
/* note のアイキャッチ（1280×670）をそのままの比率で */
.work--feature .work__img { aspect-ratio: 1280 / 670; }
.work--feature .work__water { inset: 0; } /* 画像の文字やロゴが切れないように */

.work__client { font-family: var(--serif); font-size: 17px; letter-spacing: .12em; }
.work__client span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); letter-spacing: .1em; }
.work__title { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.65vw, 23px); line-height: 1.7; letter-spacing: .08em; }
.work__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; padding: 24px 0; border-block: 1px solid var(--line); }
.work__num { font-family: var(--en); font-size: clamp(40px, 4vw, 54px); line-height: 1; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.work__num small { font-family: var(--serif); font-size: 17px; margin: 0 2px; }
.work__kpi { margin-top: 10px; font-size: 14px; line-height: 1.7; letter-spacing: .1em; color: var(--ink-soft); }

/* 2件目以降：3列のカード */
/* 自社メディア（Instagram）。左にプロフィールと投稿の見本、右に説明 */
.work--media { display: grid; grid-template-columns: .92fr 1fr; gap: clamp(32px, 4vw, 48px); align-items: center; margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.work--media .work__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.media__card {
  display: block; padding: clamp(18px, 2vw, 26px); border-radius: 20px;
  background: linear-gradient(160deg, #F2FDFA, #E6F4FF 60%, #EEEBFF); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 50px -36px rgba(14,50,71,.45); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.media__card:hover { transform: translateY(-4px); box-shadow: 0 36px 60px -36px rgba(14,50,71,.55); }
.media__profile { display: flex; align-items: center; gap: 14px; }
/* Instagramらしい、オレンジ→ピンク→紫の輪 */
.media__avatar { flex: none; width: 56px; height: 56px; padding: 2.5px; border-radius: 50%; background: linear-gradient(45deg, #FEC564, #F7576A 45%, #B33AB4 80%, #6A4BF4); }
/* 実際のプロフィール画像。白い縁で輪と分ける */
.media__avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #fff; object-fit: cover; background: #fff; }
.media__handle { font-family: "Manrope", var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.media__name { margin-top: 2px; font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); }
.media__posts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.media__post { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: rgba(14,90,140,.08); }
.media__post img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media__card:hover .media__post img { transform: scale(1.04); }

.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
/* 2件目以降が追加されたときだけ、上に余白をとる */
.works__grid:has(.work-card) { margin-top: clamp(64px, 8vw, 104px); }
.work-card .work__img { margin-bottom: 20px; }
.work-card .work__title { font-size: 16px; margin-bottom: 20px; }

/* =========================================================
   News
   ========================================================= */
.news { background: var(--sand); }
.news__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list li:first-child { border-top: 1px solid var(--line); }
/* 記事ページはまだないので、お知らせはリンクにせず並べるだけにする（記事ができたら <a> に戻し、ホバーの動きも付ける） */
.news__item {
  position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 24px;
  padding: 28px 8px;
}
.news__list time { font-family: var(--en); font-size: 17px; letter-spacing: .08em; }
.news__cat { font-size: 11px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; letter-spacing: .14em; }
.news__title { font-size: 15px; text-wrap: balance; } /* 2行になるときは、行の長さをそろえる */

/* =========================================================
   Recruit
   ========================================================= */
.recruit { position: relative; height: calc(var(--vh, 1vh) * 260); color: var(--white); text-align: center; --p: 0; }
/* スマホはアドレスバーが引っ込むと画面が縦に伸び、貼りついた背景の下にセクション自体が見えて白く空く。
   セクション自体にも海のいちばん下の色を敷き（浅瀬→深海を --p で重ねる）、空いても海の色が続いて見えるようにする。
   貼りつく背景と文字の箱の大きさは変えないので、文字は動かない */
.recruit::before, .recruit::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.recruit::before { background: #1FA6E0; }
.recruit::after { background: #062743; opacity: var(--p); }
.recruit__stage {
  position: sticky; top: 0; z-index: 1; height: calc(var(--vh, 1vh) * 100); overflow: hidden; /* セクションに敷いた色より上に重ねる */
  display: grid; place-items: center;
}
/* 浅瀬：最初に見えている明るい海 */
.recruit__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(50% 60% at 85% 70%, rgba(5, 243, 196, .5), transparent 60%),
    linear-gradient(180deg, #2BD7D0, #1FA6E0);
}
/* 深海：潜るほど濃くなる */
.recruit__deep {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(81, 204, 253, .35), transparent 70%),
    linear-gradient(180deg, #0F5F93 0%, #0A3D66 55%, #062743 100%);
  opacity: var(--p);
}
/* 水面から差し込む光：潜るほど細く、弱くなる */
.recruit__rays { position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--p) * .85); }
.recruit__rays i {
  position: absolute; top: -10%; width: 16vw; height: calc(70% + 50% * (1 - var(--p)));
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 80%);
  filter: blur(22px); transform-origin: top center;
  animation: ray 10s var(--ease-in-out) infinite alternate;
}
.recruit__rays i:nth-child(1) { left: 14%; rotate: 16deg; }
.recruit__rays i:nth-child(2) { left: 44%; width: 10vw; rotate: 8deg; animation-delay: -4s; }
.recruit__rays i:nth-child(3) { left: 72%; rotate: 4deg; animation-delay: -7s; }
.recruit__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; }


/* コピーは奥から浮かび上がってくる */
.recruit__inner {
  position: relative;
  opacity: clamp(0, calc((var(--p) - .08) * 3.5), 1);
  transform: translateY(calc((1 - min(1, var(--p) * 2.4)) * 60px)) scale(calc(.9 + min(1, var(--p) * 2.4) * .1));
  filter: blur(calc((1 - min(1, var(--p) * 2.4)) * 8px));
}
.recruit .sec-head__en { background: none; color: var(--white); -webkit-text-fill-color: currentColor; }
.recruit__copy {
  font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 4vw, 50px);
  line-height: 1.7; letter-spacing: .12em; margin: 24px 0 24px;
}
.recruit__text { margin-bottom: 40px; opacity: .9; line-height: 2.1; }
/* きっちり中央に：字間(letter-spacing)は最後の文字の後ろにも付くので、その分を左にも足して左右をそろえる */
@media (min-width: 861px) { .recruit__copy, .recruit__text { white-space: nowrap; } } /* スマホでは画面からはみ出さないよう折り返す */
/* 最後の「。」は右半分が空白なので、その空白と字間を詰めて、見た目の中心をそろえる */
.recruit__end { letter-spacing: 0; margin-right: -.5em; }
.recruit .sec-head__en, .recruit__text { padding-left: .06em; }

/* =========================================================
   Company
   ========================================================= */
.company { background: var(--white); }
.company__grid { width: min(1320px, 100%); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); grid-template-areas: "head head" "table photo"; gap: 56px 0; align-items: end; }
.company__table > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.company__table > div:first-child { border-top: 1px solid var(--line); }
.company__table dt { font-family: var(--serif); font-size: 14px; letter-spacing: .14em; }
.company__table dd { color: var(--ink-soft); }
.company__table .nowrap { white-space: nowrap; } /* 項目の途中で改行しない */

/* 代表の写真（共通） */
.company { overflow: hidden; }
.company .sec-head { grid-area: head; }
.company__table { grid-area: table; }
.company__photo { grid-area: photo; position: relative; margin: 0; }
.company__photo-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--aqua-pale); }
.company__photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; transition: scale 1.6s var(--ease); }
.company__photo:hover .company__photo-frame img { scale: 1.03; }
.company__caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; }
.company__role { font-size: 11px; letter-spacing: .2em; color: var(--ink-soft); }
.company__name { font-family: var(--serif); font-size: 18px; letter-spacing: .16em; }
.company__name-en { font-family: var(--en); font-style: italic; font-size: 16px; color: var(--ink-soft); }

/* 表のカードを写真に重ねる（重なるのは写真の左端の背景部分だけ） */
.company { background: linear-gradient(180deg, var(--white), var(--foam)); }
.company__table {
  position: relative; z-index: 2; padding: clamp(16px, 2vw, 28px) clamp(28px, 4vw, 56px);
  background: rgba(255,255,255,.86); border-radius: 24px; box-shadow: 0 40px 90px -50px rgba(14,90,130,.45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.company .company__table > div:first-child { border-top: 0; }
.company .company__table > div:last-child { border-bottom: 0; }
.company .company__table > div { grid-template-columns: 128px 1fr; padding: 22px 0; }
/* 人物は写真の幅の約16%より内側にいるので、重なりは写真幅の約8%にとどめる */
.company__photo { z-index: 3; margin-left: -9%; } /* 写真をカードより手前に */
/* 名前は写真の外（下）に出し、カードと写真の下端をそろえる */
.company__caption { position: absolute; top: 100%; right: 0; justify-content: flex-end; white-space: nowrap; }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  position: relative; text-align: center;
  padding: clamp(160px, 18vw, 220px) 0 clamp(120px, 14vw, 180px);
  background: linear-gradient(180deg, var(--aqua-pale), #DDF6FB);
}
.wave--top { top: -1px; height: clamp(50px, 7vw, 100px); }
.wave--top path { fill: var(--wave-fill, var(--foam)); animation: wave 10s var(--ease-in-out) infinite alternate; transform-origin: top center; }
.contact__copy {
  font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.8; letter-spacing: .12em; margin: 24px 0 20px;
}
.contact__note { font-size: 14px; line-height: 2.1; letter-spacing: .08em; color: var(--ink-soft); }

/* お問い合わせフォーム（共通） */
.cf { position: relative; overflow: hidden; text-align: left; margin-top: 56px; transition: height 1s var(--ease); }
.cf__body { transition: opacity .8s var(--ease), filter .8s var(--ease), translate .8s var(--ease); }
.cf.is-sent .cf__body { opacity: 0; filter: blur(8px); translate: 0 -12px; pointer-events: none; }
.cf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.cf__field--full { grid-column: 1 / -1; }
.cf__field > label, .cf__topics legend {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .12em; color: var(--ink);
}
.cf__req { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; color: rgba(14,50,71,.42); }
.cf__req--must { color: #1696CF; }
.cf__input {
  display: block; width: 100%; font: inherit; font-size: 15px; letter-spacing: .04em; color: var(--ink);
  background: rgba(255,255,255,.72); border: 1px solid rgba(14,50,71,.1); border-radius: 12px; padding: 15px 18px;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.cf__input::placeholder { color: rgba(14,50,71,.3); }
.cf__input:hover { border-color: rgba(14,50,71,.2); }
.cf__input:focus { outline: none; background: #fff; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(81,204,253,.16); }
textarea.cf__input { min-height: 168px; resize: vertical; line-height: 1.9; }

.cf__foot { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 40px; }
.cf__agree { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; letter-spacing: .06em; }
.cf__agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf__agree .cf__req { margin-left: 10px; }
.cf__box { position: relative; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(14,50,71,.28); background: #fff; transition: background .4s, border-color .4s; }
.cf__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 1.5px 1.5px 0; rotate: 45deg; scale: 0; transition: scale .4s var(--ease); }
.cf__agree input:checked + .cf__box { background: var(--grad); border-color: transparent; }
.cf__agree input:checked + .cf__box::after { scale: 1; }
.cf__agree input:focus-visible + .cf__box { box-shadow: 0 0 0 4px rgba(81,204,253,.25); }
.cf__policy { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(14,50,71,.3); text-underline-offset: 4px; }

.cf__submit {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-width: 260px; height: 60px; padding: 0 36px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--serif); font-size: 15px; letter-spacing: .24em; color: #fff; text-shadow: 0 1px 8px rgba(8,90,120,.25);
  background: rgba(14,50,71,.16);
  transition: box-shadow .6s var(--ease), translate .6s var(--ease);
}
.cf__submit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .7s var(--ease); }
.cf__submit i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.28); font-style: normal; font-size: 13px; letter-spacing: 0; transition: translate .6s var(--ease); }
.cf__submit:disabled { cursor: not-allowed; }
.cf__error { margin: 0 0 16px; font-size: 13px; line-height: 1.8; color: #C2410C; } /* 送れなかったときのお知らせ */
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* 機械による送信よけ。人には見えない */
.cf__submit:not(:disabled)::before { opacity: 1; }
.cf__submit:not(:disabled) { box-shadow: 0 16px 36px -14px rgba(31,166,224,.65); }
.cf__submit:not(:disabled):hover { translate: 0 -2px; box-shadow: 0 22px 44px -16px rgba(31,166,224,.75); }
.cf__submit:not(:disabled):hover i { translate: 4px 0; }

/* 送信時の波紋 */
.cf__ripple {
  position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 0; height: 0; translate: -50% -50%;
  border-radius: 50%; border: 1px solid rgba(81,204,253,.55); pointer-events: none;
  animation: cf-ripple 1.8s var(--ease) forwards;
}
@keyframes cf-ripple { to { width: 1500px; height: 1500px; opacity: 0; } }

.cf__thanks {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity 1s var(--ease) .4s, translate 1s var(--ease) .4s;
}
.cf.is-sent .cf__thanks { opacity: 1; translate: 0 0; pointer-events: auto; }
.cf__thanks-en { font-family: var(--en); font-style: italic; font-weight: 300; font-size: clamp(44px, 5vw, 64px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; }
.cf__thanks-ja { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); letter-spacing: .14em; margin: 24px 0 12px; }
.cf__thanks-text { font-size: 14px; color: var(--ink-soft); line-height: 2; }
.cf__back { margin-top: 32px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 5px; }

/* カード */
.contact .cf {
  max-width: 920px; margin: 56px auto 0; padding: clamp(28px, 4vw, 56px);
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.85); border-radius: 28px;
  box-shadow: 0 40px 90px -50px rgba(14,90,130,.45), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}

/* 相談内容を選ぶ */
.cf .cf__topics { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(14,50,71,.08); }
.cf__topics legend { margin-bottom: 16px; }
.cf__topic-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cf__topic {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  padding: 18px 18px 16px; border-radius: 14px; border: 1px solid rgba(14,50,71,.1); background: rgba(255,255,255,.55);
  transition: background .5s var(--ease), border-color .5s, box-shadow .5s var(--ease), translate .5s var(--ease);
}
.cf__topic::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cf__topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf__topic-no { font-family: var(--en); font-size: 18px; line-height: 1; color: rgba(14,50,71,.35); transition: color .5s; }
.cf__topic { container-type: inline-size; }
/* 選択肢の名前は改行させず、カードの幅に収める（一番長い「観光マーケティング」に大きさをそろえる） */
.cf__topic-ja { font-family: var(--serif); font-size: min(15px, 100cqi / 10); white-space: nowrap; letter-spacing: .1em; }
.cf__topic-en { font-family: var(--en); font-style: italic; font-size: min(14px, 100cqi / 8.4); white-space: nowrap; color: var(--ink-soft); }
.cf__topic:hover { border-color: rgba(14,50,71,.2); translate: 0 -2px; }
.cf__topic:has(input:checked) { background: #fff; border-color: transparent; box-shadow: 0 18px 36px -22px rgba(14,90,130,.5); }
.cf__topic:has(input:checked)::before { transform: scaleX(1); }
.cf__topic:has(input:checked) .cf__topic-no { color: #1696CF; }
.cf__topic:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(81,204,253,.25); }

@media (max-width: 860px) {
  .cf__grid { grid-template-columns: 1fr; }
  /* スマホは2列だと名前が小さくなりすぎるので、1列にして番号・名前・英語名を横に並べる */
  .cf__topic-list { grid-template-columns: 1fr; gap: 8px; }
  .cf__topic { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .cf__topic-ja { font-size: 14px; letter-spacing: .06em; }
  .cf__topic-en { margin-left: auto; font-size: 11px; }
  .cf__submit { min-width: 0; width: 100%; }
}

/* =========================================================
   採用ページ（recruit.html）
   ========================================================= */
/* Hero：明るい海 */
.r-hero {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  min-height: calc(var(--vh, 1vh) * 78); display: grid; place-items: center;
  padding: calc(var(--header-h) + 64px) 0 clamp(120px, 14vw, 180px);
}
.r-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(50% 60% at 85% 70%, rgba(5, 243, 196, .45), transparent 60%),
    linear-gradient(180deg, #2BD7D0, #1FA6E0 70%, #1683C2);
}
.r-hero .recruit__rays { --p: 0; }
.r-hero__inner { position: relative; }
.r-crumb { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; font-family: var(--en); font-size: 14px; letter-spacing: .16em; opacity: .85; }
.r-crumb a { transition: opacity .4s; }
.r-crumb a:hover { opacity: .6; }
.r-hero .sec-head__en, .r-entry .sec-head__en { -webkit-text-fill-color: currentColor; }
.r-hero .sec-head__en { background: none; color: var(--white); }
.r-hero .sec-head__en .letter { background: none; color: var(--white); }
.r-hero .sec-head__en.is-split::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); }
.r-hero__copy {
  font-family: var(--serif); font-weight: 300; font-size: min(clamp(24px, 4vw, 50px), (100vw - var(--sbw, 0px) - 2 * var(--gutter)) / 15); white-space: nowrap; /* 改行させず、狭い画面では文字を小さくして1行に収める */
  line-height: 1.7; letter-spacing: .12em; padding-left: .12em; margin: 24px 0 20px;
  opacity: 0; translate: 0 24px; filter: blur(8px);
  transition: opacity 1.6s var(--ease) .5s, translate 1.6s var(--ease) .5s, filter 1.6s var(--ease) .5s;
}
.r-hero__text {
  line-height: 2.1; letter-spacing: .08em; opacity: 0;
  transition: opacity 1.6s var(--ease) .9s;
}
.is-loaded .r-hero__copy { opacity: 1; translate: 0 0; filter: none; }
.is-loaded .r-hero__text { opacity: .92; }
.r-hero__wave { bottom: -1px; height: clamp(50px, 7vw, 100px); }
.r-hero__wave path { fill: var(--white); animation: wave 10s var(--ease-in-out) infinite alternate; }

/* Message：代表メッセージ */
.r-message { background: var(--white); }
.r-message__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.r-message__photo { margin: 0; }
.r-message__frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--aqua-pale); }
.r-message__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.r-message__caption { position: static; justify-content: flex-start; }
.r-message__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.9; letter-spacing: .1em; margin-bottom: 32px; }
.r-message__text { color: var(--ink-soft); line-height: 2.1; margin-bottom: 1.4em; }

/* Values：大切にしていること */
.r-values { background: linear-gradient(180deg, var(--white), var(--aqua-pale)); }
.r-values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.r-value {
  position: relative; padding: 44px 36px 40px; border-radius: 24px; background: rgba(255,255,255,.75);
  box-shadow: 0 30px 70px -45px rgba(14,90,130,.4);
}
.r-value::before { content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 2px; background: var(--grad); border-radius: 2px; }
.r-value__no { display: block; font-family: var(--en); font-size: 44px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.r-value { container-type: inline-size; }
.r-value h3 { font-family: var(--serif); font-weight: 500; font-size: min(19px, 100cqi / 13.6); white-space: nowrap; letter-spacing: .1em; margin-bottom: 14px; } /* 改行させず、カードの幅に収める */
.r-value p { font-size: 14px; color: var(--ink-soft); line-height: 2; }

/* Workstyle：働く環境 */
.r-env { background: var(--aqua-pale); }
.r-env .sec-head__en { font-size: clamp(40px, 5vw, 64px); } /* 長い英単語が折り返さない大きさに */
.r-env__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; }
.r-env__list > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.r-env__list > div:first-child { border-top: 1px solid var(--line); }
.r-env__list dt { display: flex; flex-direction: column; gap: 4px; font-family: var(--serif); font-size: 14px; letter-spacing: .14em; }
.r-env__list dt .en-serif { font-size: 15px; color: #1696CF; letter-spacing: .06em; }
.r-env__list dd { color: var(--ink-soft); line-height: 2; }

/* Positions：募集職種（開閉） */
.r-jobs { background: var(--white); }
.r-jobs__list { display: grid; gap: 16px; max-width: 960px; margin: 0 auto; }
.r-job { container-type: inline-size; border-radius: 20px; background: var(--foam); border: 1px solid rgba(14,50,71,.06); transition: background .5s, box-shadow .5s var(--ease); }
.r-job[open] { background: #fff; box-shadow: 0 30px 70px -45px rgba(14,90,130,.45); }
.r-job summary, .r-qa summary { list-style: none; cursor: pointer; }
.r-job summary::-webkit-details-marker, .r-qa summary::-webkit-details-marker { display: none; }
.r-job summary { position: relative; display: grid; grid-template-columns: 172px 1fr; align-items: baseline; gap: 6px 20px; padding: 28px 88px 28px 36px; }
.r-job__type { grid-row: span 2; align-self: center; font-size: 11px; letter-spacing: .14em; color: #1696CF; border-left: 2px solid; padding-left: 12px; }
.r-job__title { font-family: var(--serif); font-weight: 500; font-size: min(clamp(18px, 1.8vw, 22px), (100cqi - 316px) / 14.6); white-space: nowrap; letter-spacing: .1em; } /* 改行させず、カードの幅に収める */
.r-job__en { font-family: var(--en); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.r-job__icon { position: absolute; right: 32px; top: 50%; width: 36px; height: 36px; translate: 0 -50%; border-radius: 50%; border: 1px solid var(--line); transition: background .5s var(--ease), border-color .5s; }
.r-job__icon::before, .r-job__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); translate: -50% -50%; transition: rotate .5s var(--ease), background .5s; }
.r-job__icon::after { rotate: 90deg; }
details[open] > summary .r-job__icon { background: var(--grad); border-color: transparent; }
details[open] > summary .r-job__icon::before, details[open] > summary .r-job__icon::after { background: #fff; }
details[open] > summary .r-job__icon::after { rotate: 0deg; }
.r-job__body { margin: 0 36px; padding: 8px 0 32px; border-top: 1px solid var(--line); animation: r-open .7s var(--ease); }
.r-job__body > div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; }
.r-job__body dt { font-family: var(--serif); font-size: 14px; letter-spacing: .14em; }
.r-job__body dd { color: var(--ink-soft); line-height: 2; }
@keyframes r-open { from { opacity: 0; translate: 0 -8px; } }

/* Process：選考の流れ */
.r-flow { background: linear-gradient(180deg, var(--white), var(--foam)); }
.r-flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.r-flow__list::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 36px; height: 1px; background: linear-gradient(90deg, var(--mint), var(--sky)); opacity: .6; }
.r-flow__list li { position: relative; text-align: center; }
.r-flow__no {
  position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 16px 36px -20px rgba(14,90,130,.5);
  font-family: var(--en); font-size: 24px; color: #1696CF;
}
.r-flow__list h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: .12em; margin-bottom: 10px; }
.r-flow__list p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; text-wrap: balance; } /* 狭い列でも、行の長さをそろえて折り返す */

/* FAQ */
.r-faq { background: var(--foam); }
.r-faq__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; }
.r-qa { border-bottom: 1px solid var(--line); }
.r-qa:first-child { border-top: 1px solid var(--line); }
.r-qa summary { position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 64px 26px 0; font-family: var(--serif); font-size: 16px; letter-spacing: .08em; }
.r-qa__q { font-family: var(--en); font-size: 26px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-qa .r-job__icon { right: 0; width: 32px; height: 32px; }
.r-qa p { padding: 0 64px 28px 46px; color: var(--ink-soft); line-height: 2; animation: r-open .7s var(--ease); }

/* Entry：応募フォーム（お問い合わせフォームと同じ部品を使う） */
.cf__label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-family: var(--serif); font-size: 14px; letter-spacing: .12em; }
.cf__field > .cf__file {
  position: relative; display: flex; align-items: center; gap: 16px; margin: 0; cursor: pointer;
  padding: 22px 24px; border-radius: 12px; border: 1px dashed rgba(14,50,71,.22); background: rgba(255,255,255,.55);
  font-family: var(--sans); font-size: 14px; letter-spacing: .04em; color: var(--ink-soft);
  transition: border-color .5s, background .5s;
}
.cf__file:hover { border-color: var(--sky); background: #fff; }
.cf__file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf__file:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(81,204,253,.25); }
.cf__file-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 16px; }
.cf__file.has-file { border-style: solid; color: var(--ink); }
/* 職種名は長いので（最長13文字）、PCは2列にして1枚を広くとり、文字を小さくしすぎずに収める */
.r-entry .cf__topic-list { grid-template-columns: repeat(2, 1fr); }
.r-entry .cf__topic-ja { font-size: min(14px, 100cqi / 14); letter-spacing: .06em; }
@media (max-width: 860px) {
  /* スマホは英語のラベルを職種名の下に置き、右にはみ出さないようにする */
  .r-entry .cf__topic-list { grid-template-columns: 1fr; }
  .r-entry .cf__topic { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 12px; }
  .r-entry .cf__topic-en { grid-column: 2; margin-left: 0; }
}
/* 1行で見せる。スマホでも収まるよう、画面幅に合わせて文字を小さくする（16文字＋字間で約18em） */
.r-entry__note { white-space: nowrap; font-size: min(14px, calc((100vw - var(--sbw, 0px) - 32px) / 32.5)); } /* 30文字＋字間で約32em */
.r-entry__copy { white-space: nowrap; font-size: min(clamp(24px, 3.4vw, 40px), calc((100vw - var(--sbw, 0px) - 32px) / 18.2)); }

@media (max-width: 860px) {
  .r-hero { min-height: calc(var(--vh, 1vh) * 70); }
  .r-message__grid, .r-env__grid, .r-faq__grid { grid-template-columns: 1fr; gap: 0; }
  .r-message__photo { margin-bottom: 48px; }
  .r-values__list { grid-template-columns: 1fr; }
  .r-env__list > div, .r-job__body > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .r-job summary { grid-template-columns: 1fr; padding: 24px 72px 24px 24px; }
  .r-job__title { font-size: min(18px, (100cqi - 96px) / 14.6); }
  .r-job__type { grid-row: auto; min-width: 0; }
  .r-job__icon { right: 20px; }
  .r-job__body { margin: 0 24px; }
  .r-flow__list { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .r-flow__list::before { display: none; }
  .r-qa p { padding: 0 0 24px 46px; }
}

/* =========================================================
   Footer（波打ち際の砂浜）
   ========================================================= */
.footer { position: relative; background: var(--sand); padding: 40px 0 48px; }
.wave--foot { bottom: 100%; height: 60px; }
.wave--foot path { fill: var(--sand); animation: wave 8s var(--ease-in-out) infinite alternate; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo { height: 36px; width: auto; align-self: flex-start; }
.footer__addr { font-size: 12px; line-height: 1.8; letter-spacing: .06em; color: var(--ink-soft); }
.footer__sns { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: "Manrope", var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink); transition: opacity .4s; }
.footer__sns svg { width: 20px; height: 20px; }
.footer__sns:hover { opacity: .5; }
.footer__bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(14,50,71,.1); }
/* ページの先頭へ：矢印が上へ抜けては戻る */
.footer__top { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; color: var(--ink); }
.footer__top i { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(14,50,71,.2); overflow: hidden; transition: background .4s, border-color .4s; }
.footer__top i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -2px 0 0 -4px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; rotate: 45deg; }
.footer__top:hover i { background: #fff; border-color: transparent; }
.footer__top:hover i::before { animation: footer-top .7s var(--ease); }
@keyframes footer-top { 45% { translate: 0 -24px; opacity: 0; } 46% { translate: 0 24px; } 100% { translate: 0 0; opacity: 1; } }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.footer__nav a { transition: opacity .4s; }
.footer__nav a:hover { opacity: .5; }
.footer__copy { font-family: var(--en); font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   Turtle
   ========================================================= */
.turtle { width: 100%; height: auto; overflow: visible; display: block; }
.turtle path { fill: currentColor; }
/* 前ヒレで大きくゆっくり羽ばたき、後ろヒレは舵をとる程度に動かす */
.turtle__flipper { transform-box: fill-box; animation: stroke-l 4.2s var(--ease-in-out) infinite; }
.turtle__flipper--fl { transform-origin: 100% 15%; }
.turtle__flipper--fr { transform-origin: 0% 15%; animation-name: stroke-r; }
.turtle__flipper--bl { transform-origin: 100% 0%; animation-name: rudder-l; }
.turtle__flipper--br { transform-origin: 0% 0%; animation-name: rudder-r; }
@keyframes stroke-l { 0%, 100% { transform: rotate(8deg); } 45% { transform: rotate(-30deg) scaleX(.9); } }
@keyframes stroke-r { 0%, 100% { transform: rotate(-8deg); } 45% { transform: rotate(30deg) scaleX(.9); } }
@keyframes rudder-l { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-6deg); } }
@keyframes rudder-r { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }

/* 右端：スクロール量に合わせて泳ぐ小さな亀 */
.scroll-turtle {
  position: fixed; z-index: 40; right: 22px; top: calc(var(--vh, 1vh) * 50); /* 50%だとアドレスバーの出入りで上下に跳ねるので、変わらない高さを基準にする */
  height: calc(var(--vh, 1vh) * 36); width: 20px; translate: 0 -50%;
  opacity: 0; transition: opacity .8s var(--ease);
}
.scroll-turtle.is-shown { opacity: 1; }
.scroll-turtle::before { /* 泳ぐ道すじ */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(60, 203, 232, .5) 15%, rgba(60, 203, 232, .5) 85%, transparent);
}
.scroll-turtle > div {
  position: absolute; left: 50%; top: 0; width: 20px;
  color: var(--sea-3);
  translate: -50% calc(var(--p, 0) * (calc(var(--vh, 1vh) * 36) - 24px));
  rotate: 180deg;
}
.scroll-turtle .turtle__flipper { animation-duration: 5s; }
.scroll-turtle.is-swimming .turtle__flipper { animation-duration: 1.4s; }

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px); filter: blur(6px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav ul { gap: 22px; }
  .nav { gap: 24px; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work--feature, .work--media { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header.is-scrolled { --header-h: 60px; }
  .header__logo img { height: 28px; }
  .menu-btn {
    position: relative; z-index: 2; display: block; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: var(--grad); cursor: pointer;
  }
  .menu-btn span {
    position: absolute; left: 14px; right: 14px; height: 1px; background: var(--white);
    transition: transform .5s var(--ease), top .5s var(--ease);
  }
  .menu-btn span:first-child { top: 18px; }
  .menu-btn span:last-child { top: 25px; }
  .is-menu-open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
  .is-menu-open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 40px;
    background: linear-gradient(160deg, var(--sea-1), var(--sea-2) 50%, var(--sea-3));
    clip-path: circle(0 at calc(100% - 38px) 32px);
    transition: clip-path .9s var(--ease-in-out);
  }
  .is-menu-open .nav { clip-path: circle(150% at calc(100% - 38px) 32px); }
  .nav ul { flex-direction: column; align-items: center; gap: 24px; }
  .nav .en { font-size: 30px; }
  .nav .ja { font-size: 11px; }

  .about__grid, .news__grid, .company__grid { grid-template-columns: 1fr; gap: 0; }
  .works__grid { grid-template-columns: 1fr; }
  .svc-map { grid-template-columns: 1fr; gap: 0; width: auto; margin-left: 0; }
  /* 図の下端を「天井」にして、説明の文字は図の下で切れて見えるようにする
     （図のまわりを背景色で塗りつぶし、画面の左右いっぱいまで広げる） */
  /* 上端を画面の一番上（ヘッダーの裏）まで伸ばし、ヘッダーとの隙間や半透明のヘッダー越しに文字が見えないようにする */
  /* 貼りついている間だけ、セクションと同じグラデーションを敷く（大きさと位置はJSでセクションとそろえ、継ぎ目を見せない） */
  .svc-map__left { top: 0; height: auto; margin: calc(var(--header-h) * -1) calc(var(--gutter) * -1) 0; padding: calc(var(--header-h) + 4px) 0 10px; transition: box-shadow .3s var(--ease); }
  .svc-map__left.is-stuck { background: var(--map-bg); background-size: var(--sec-size, 100% 100%); background-position: var(--grid-pos, 0 0); background-repeat: no-repeat; box-shadow: 0 12px 16px -14px rgba(14,50,71,.28); }
  .svc-map__figure { max-width: 560px; margin: 0 auto; }
  .svc-map__right { padding: 24px 0 calc(var(--vh, 1vh) * 8); }
  /* スマホは項目の間を詰め、切り替えも速めにして、待たされる感じをなくす */
  /* スマホは図の下の余白が狭く、中身が収まらないので止めずに流す */
  .svc-map__step { min-height: 0; padding: 40px 0 56px; }
  .svc-map__step-in { position: static; min-height: 0; justify-content: flex-start; opacity: .3; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .imap { aspect-ratio: 1672 / 941; } /* スマホは縦に余裕がないので、絵の比率のまま */
  .imap__cam { transition-duration: 1s; }
  /* スマホは名前を小さくして、絵を隠さない */
  .imap__label { bottom: 6%; gap: 3px; padding: 6px 12px 7px; border-radius: 7px; font-size: 12px; }
  .imap__label b { letter-spacing: .04em; }
  /* 全体表示の札は1行の小さなものにして、絵を隠さない */
  .imap__plate { flex-direction: row; align-items: baseline; gap: 4px; padding: 2px 6px 3px; border-radius: 4px; font-size: 6.5px; letter-spacing: .02em; }
  .imap__plate span { font-size: 1.2em; letter-spacing: .04em; }
  .svc-map__head { padding-top: 34px; }
  .svc-map__head .svc-stack__no { font-size: 84px; }
  .svc-map__rule { margin-top: 14px; }
  .work__kpis { gap: 8px; }
  .work__num { font-size: 34px; }
  .sec-head { margin-bottom: 40px; }
  .news__item { grid-template-columns: auto 1fr; gap: 8px 16px; padding: 22px 4px; }
  .news__title { grid-column: 1 / -1; }
  .company__table > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .company__grid { grid-template-areas: "head" "photo" "table"; }
  .company__photo { margin: 0 0 40px; }
  .company__caption { position: static; }
  .company .company__table > div { grid-template-columns: 1fr; padding: 20px 0; }
  /* トップ：波打つ線は上側、コピーは下側に */
  .hero { --fx: 60%; --fy: 30%; min-height: 640px; }
  .hero__field { -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.2) 58%); mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.2) 58%); }
  .hero__bg::after { background: radial-gradient(90% 40% at 40% 70%, rgba(8,62,120,.42), transparent 75%); }
  .hero__inner { top: auto; bottom: 120px; translate: none; }
  .hero__inner > * { max-width: none; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .26em; }
  .hero__copy { margin-top: 18px; font-size: clamp(32px, 9.4vw, 46px); }
  .hero__row:nth-child(2) { padding-left: .8em; }
  .hero__lead { margin-top: 18px; font-size: 12.5px; letter-spacing: .06em; line-height: 1.95; }
  .hero__scroll { bottom: 32px; }
  .scroll-turtle { display: none; }
  .btn--lg { padding: 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .recruit { height: auto; --p: .7; }
  .recruit__stage { position: relative; height: auto; padding: 160px 0; }
  .sec-head__en .letter { transform: none; opacity: 1; }
}
