/* こいずみあやこ ポートフォリオ — 案B「方眼のパステル・スクラップ」 */
:root {
  --grid-bg: #EAF1FB;
  --grid-line: #D3E0F2;
  --off: #FBF8F4;
  --teal: #5E9E96;
  --teal-deep: #3F7C75;
  --teal-soft: #A9CDC8;
  --butter: #F7D88A;
  --pink: #D9A5B3;
  --pink-deep: #B4687E;
  --sky: #A9CFEA;
  --sky-pale: #CFE4F5;
  --ink: #2F4A4A;
  --ink-soft: #5B6F6F;
  --white: #FFFFFF;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
.sp { display: none; }

/* 子育ての文の切り替え（html の data-family） */
html[data-family="on"] .family-off,
html[data-family="off"] .family-on { display: none; }

/* 方眼の地 */
.grid-bg {
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

/* ふち取りの見出し */
.outline-title {
  font-weight: 700;
  color: var(--white);
  -webkit-text-stroke: 2.4px var(--teal);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--teal-soft);
  letter-spacing: .06em;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(251, 248, 244, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(94, 158, 150, .18);
}
.logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-ja { font-weight: 500; font-size: 18px; letter-spacing: .12em; }
.logo-en { font-family: var(--font-en); font-size: 12px; letter-spacing: .24em; color: var(--teal); }
.gnav { display: flex; gap: 28px; }
.gnav a { font-family: var(--font-en); font-size: 14px; letter-spacing: .18em; text-decoration: none; padding: 8px 0; position: relative; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.gnav a:hover::after { transform: scaleX(1); }

/* ---------- ボタン ---------- */
/* 光は上から。明部・光沢・反射光・厚み・柔らかい影（影はピンクを濃くした色。黒・グレーは使わない） */
.btn {
  --btn: var(--pink-deep);
  --edge: #8F4B5F;           /* 厚み：ボタンの色を濃くした色 */
  --shadow-rgb: 143, 75, 95; /* 外側の影：同じ系統の色 */
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 999px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0) 36%),
    var(--btn);
  color: var(--white);
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(var(--shadow-rgb), .45);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset -2px -3px 6px rgba(255,255,255,.22),
    0 4px 0 var(--edge),
    0 10px 22px rgba(var(--shadow-rgb), .22);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset -2px -3px 6px rgba(255,255,255,.22), 0 5px 0 var(--edge), 0 14px 28px rgba(var(--shadow-rgb), .28); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.4), 0 1px 0 var(--edge), 0 4px 10px rgba(var(--shadow-rgb), .2); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.btn-sm { font-size: 14px; padding: 8px 20px; }
/* 見本の点線は、ボタンの内側の白い線として残す（大きなボタンだけ） */
.btn-dash::before {
  content: ""; position: absolute; inset: 5px; border-radius: inherit;
  border: 1.5px dashed rgba(255,255,255,.7); pointer-events: none;
}
.arrow { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- 飾り ---------- */
.deco { position: absolute; pointer-events: none; }
.deco-flower { fill: var(--butter); }
.deco-scallop { fill: var(--pink); }
.deco-sparkle { fill: var(--teal); opacity: .85; }

/* 回る英字のバッジ */
.badge { position: absolute; width: 168px; aspect-ratio: 1; pointer-events: none; }
.badge svg { width: 100%; height: 100%; overflow: visible; animation: spin 28s linear infinite; }
.badge text { font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; fill: var(--teal-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 01 FV ---------- */
.fv { position: relative; padding: calc(var(--header-h) + 40px) 0 0; }
.fv-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 40px 72px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
}
.fv-title { font-size: clamp(36px, 4.2vw, 60px); }
.fv-title .line { display: block; white-space: nowrap; }
/* 飾るのは2行目だけ。1行目は飾らない塗りの文字で、強さに差をつける */
.fv-title .line:first-child {
  font-size: .74em; color: var(--teal-deep); -webkit-text-stroke: 0; text-shadow: none; letter-spacing: .12em; margin-bottom: .1em;
}
/* 2行目：ふち取りと同じ青緑の影を重ねて、厚みのある立体文字に */
.fv-title .line:last-child { text-shadow: 4px 4px 0 var(--teal); }
.fv-title .char { display: inline-block; }
.fv-lead { margin-top: 28px; font-size: 17px; line-height: 2; word-break: keep-all; overflow-wrap: anywhere; }
.fv-services { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.fv-services li { display: flex; align-items: center; }
.fv-services li + li::before { content: ""; width: 6px; height: 6px; margin: 0 14px; border-radius: 50%; background: var(--teal); }
.fv-btn { margin-top: 32px; font-size: 17px; padding: 16px 40px; min-height: 56px; }

.fv-visual { position: relative; width: min(100%, 460px); margin: 0 auto; aspect-ratio: 460 / 600; }
.oval {
  position: absolute; left: 18%; top: 4%; width: 64%; height: 90%;
  border-radius: 999px; overflow: hidden; background: var(--sky);
}
.oval img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fv-flower { width: 46%; aspect-ratio: 1; left: -4%; top: 2%; }
.fv-visual .badge { right: -14%; top: 3%; width: 34%; }
.fv-scallop { width: 26%; aspect-ratio: 1; right: 2%; bottom: -2%; }
.vtag {
  position: absolute; writing-mode: vertical-rl;
  background: var(--white); color: var(--teal-deep);
  padding: 14px 7px; font-size: 15px; letter-spacing: .2em; line-height: 1.6;
  box-shadow: 0 1px 0 rgba(47, 74, 74, .08);
}
.vtag-l { left: 4%; top: 34%; }
.vtag-r { right: 4%; top: 30%; }
.wave-edge { display: block; width: 100%; height: 28px; margin-top: -1px; }
.wave-edge path { fill: none; }
.wave-edge .wave-line { fill: none; stroke: var(--teal); stroke-width: 2; }

/* TOP 見本B：縦書きタグをやめ、吹き出し＋似顔絵を一周する文字＋線から形になる花 */
.fvb .oval { left: 18%; top: 4%; width: 64%; height: 90%; }
/* 縦書きのタグは、一周する文字の輪の外側に置く */
.fvb .vtag-l { left: -4%; top: 36%; }
.fvb .vtag-r { right: -4%; top: 22%; }
.fvb-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fvb-ring text { font-family: var(--font-en); font-size: 15px; letter-spacing: .12em; fill: var(--teal-deep); }

.fvb-flower { position: absolute; width: 44%; aspect-ratio: 1; left: -6%; top: -2%; overflow: visible; }
.fvb-flower path { fill: var(--butter); stroke: var(--teal); stroke-width: 1.4; stroke-linejoin: round; stroke-opacity: 0; }
html.motion .fvb-flower path { fill-opacity: 0; stroke-opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s ease .4s, fill-opacity .8s ease 1.6s, stroke-opacity .6s ease 2.2s; }
html.motion .fvb-flower.is-in path { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }

/* 縦書きの中の英字（LP）は、2文字を横に並べて1文字分に収める */
.vtag .tcy { text-combine-upright: all; -webkit-text-combine: horizontal; letter-spacing: 0; font-family: var(--font-en); font-weight: 400; display: inline-block; text-indent: 0; }

/* ---------- セクション共通 ---------- */
.sec { position: relative; padding: 112px 0; }
.wrap { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.en-label {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--teal);
}
.en-label::before, .en-label::after {
  content: ""; width: 34px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 8'%3E%3Cpath d='M1 4q4-4 8 0t8 0 8 0 8 0' fill='none' stroke='%235E9E96' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.en-label-left { justify-content: flex-start; }
/* 見出しは飾らない（ふち取りはFVとWORKSの英字だけ）。大きさと色で階層をつける */
.sec-title { text-align: center; font-size: clamp(28px, 3.6vw, 42px); margin-top: 14px; font-weight: 500; color: var(--teal-deep); letter-spacing: .1em; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.sec-lead { text-align: center; margin-top: 18px; color: var(--ink-soft); }
.num { font-family: var(--font-en); font-weight: 300; color: var(--teal); line-height: 1; letter-spacing: 0; }
.note { margin-top: 40px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.sub-title { margin-top: 88px; text-align: center; font-size: 22px; font-weight: 500; color: var(--teal-deep); letter-spacing: .14em; }

/* ---------- 02 悩み ---------- */
.worry-list { margin-top: 56px; display: grid; gap: 40px; }
.worry {
  position: relative;
  display: grid; grid-template-columns: 110px 1fr 200px; align-items: center; gap: 24px;
  min-height: 190px;
  padding: 20px 32px 20px 44px;
  background: var(--off); border-radius: 40px;
  box-shadow: 0 2px 0 rgba(94, 158, 150, .12);
}
.worry .num { font-size: 64px; }
.worry p { font-size: 20px; line-height: 1.8; }
.capsule {
  width: 150px; height: 210px; justify-self: end;
  border-radius: 999px; overflow: hidden; border: 4px solid var(--white);
}
.capsule img { width: 100%; height: 100%; object-fit: cover; }
.worry-scallop { width: 50px; aspect-ratio: 1; right: 18px; top: -22px; }
.bridge { margin-top: 64px; text-align: center; font-size: 24px; font-weight: 500; color: var(--teal-deep); letter-spacing: .16em; }

/* ---------- 03 ABOUT ---------- */
.about-body { margin-top: 56px; display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.arch { border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--butter); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.about-text p + p { margin-top: 1.1em; }
.about-name { font-size: 24px; font-weight: 500; letter-spacing: .14em; margin-bottom: 18px; }
.about-name span { display: block; font-family: var(--font-en); font-size: 13px; letter-spacing: .24em; color: var(--teal); margin-top: 4px; }
.profile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0 0; }
.profile > div { padding: 14px 16px 12px; background: var(--white); border: 1px solid rgba(94, 158, 150, .3); border-radius: 18px; text-align: center; }
.profile dt { font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; white-space: nowrap; }
.profile dd { margin: 2px 0 0; font-family: var(--font-en); font-size: 30px; font-weight: 300; color: var(--teal-deep); line-height: 1.2; }
.profile dd small { font-family: var(--font-ja); font-size: 13px; margin-left: 2px; color: var(--ink); }
.profile dd small.pre { margin: 0 3px 0 0; }
.profile dd span { display: block; font-family: var(--font-ja); font-size: 12px; color: var(--pink-deep); letter-spacing: .06em; }
.values { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { position: relative; padding: 36px 28px 32px; background: var(--white); border-radius: 28px; border: 1px solid rgba(94, 158, 150, .25); }
.value .num { font-size: 36px; }
.value h4 { margin-top: 14px; font-size: 19px; font-weight: 500; letter-spacing: .1em; }
.value p { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--ink-soft); }

/* ---------- 04 SERVICE ---------- */
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service-card { grid-column: span 2; padding: 36px 28px; background: var(--off); border-radius: 28px; text-align: center; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card .icon { width: 52px; height: 52px; margin: 0 auto; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-top: 16px; font-size: 19px; font-weight: 500; letter-spacing: .1em; }
.service-card p { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--ink-soft); text-align: left; }

/* ---------- 05 WORKS ---------- */
.works-title { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.works-title .en { font-family: var(--font-en); font-weight: 600; font-size: clamp(48px, 7vw, 88px); letter-spacing: .08em; line-height: 1.1; }
.works-title .ja { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; color: var(--teal-deep); letter-spacing: .16em; }
.works-flower { width: 42px; aspect-ratio: 1; left: calc(50% - 21px); top: -60px; fill: var(--teal); }
.work-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.work[hidden] { display: none; }
.work-open {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; color: inherit; cursor: pointer; border-radius: 24px;
}
.work-open:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.work .num { display: block; font-size: 32px; margin-bottom: 12px; }
.work-thumb { position: relative; display: block; }
/* 一覧はすべてモックアップ（横長）でそろえる */
.work figure {
  aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 5px solid var(--white); background: var(--white);
  box-shadow: 0 4px 16px rgba(47, 74, 74, .1); transition: box-shadow .3s, transform .3s;
}
.work figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .5s ease; }
.work figure.is-wide {
  display: grid; place-items: center; padding: 12px;
  background-color: var(--grid-bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.work figure.is-wide img { height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 3px 10px rgba(47, 74, 74, .12); }
.work-open:hover figure { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(47, 74, 74, .16); }
.work-open:hover figure img { transform: scale(1.04); }
.shape-capsule { border-radius: 999px; }
.shape-arch { border-radius: 999px 999px 18px 18px; }
.shape-round { border-radius: 22px; }
.work-title { display: block; margin-top: 16px; font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.work-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 10px; }
.work-foot .tag { margin-top: 0; }
/* 押すと開く印：細い線の丸に矢印（モーダルのボタンと同じ線の作り） */
.work-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--teal-deep); letter-spacing: .08em; }
.work-more::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--teal);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='%233F7C75' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px;
  transition: background-color .2s, transform .2s;
}
.work-open:hover .work-more::after { transform: translateX(3px); }
.tag { display: inline-block; margin-top: 8px; padding: 1px 10px; border-radius: 4px; border: 1px solid var(--teal); font-family: var(--font-en); font-size: 13px; letter-spacing: .08em; color: var(--teal-deep); }
.tag-real { background: var(--butter); border-color: var(--butter); color: var(--ink); font-family: var(--font-ja); font-weight: 500; }

/* もっと見る（ボタンより控えめ。線だけで影なし＝サブの導線） */
.more-wrap { margin-top: 48px; text-align: center; }
.more-btn {
  min-height: 48px; padding: 10px 36px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--teal); background: var(--white); color: var(--teal-deep);
  font: 500 15px/1.4 var(--font-ja); letter-spacing: .12em;
  box-shadow: 0 3px 0 var(--teal-soft), 0 8px 18px rgba(63, 124, 117, .12);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.more-btn:hover { background: var(--teal); color: var(--white); }
.more-btn:active, .modal-nav button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--teal-soft); }
.more-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.more-count { font-size: 13px; margin-left: .3em; }

/* 作品のくわしい画面 */
html.modal-open { overflow: hidden; }
.work-modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 28px; background: var(--off); color: var(--ink);
  box-shadow: 0 24px 60px rgba(47, 74, 74, .25); overflow: auto;
}
.work-modal::backdrop { background: rgba(47, 74, 74, .55); }
.work-modal[open] { animation: modal-in .35s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 40px; }
/* 閉じる：丸枠なしの✕。見えない押せる範囲は44px四方のまま */
.modal-close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--off); cursor: pointer;
}
.modal-close span, .modal-close span::before { position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; border-radius: 2px; background: var(--teal-deep); }
.modal-close span { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }
/* 開いたときは作品名に選択を置く（✕に枠を出さない） */
.modal-title:focus { outline: none; }
.modal-close:focus-visible, .modal-thumbs button:focus-visible, .modal-nav button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
/* PCは、説明を読んでいる間も画像が見えたままに */
@media (min-width: 901px) { .modal-media { position: sticky; top: 0; align-self: start; } }
.modal-figure {
  border-radius: 20px; overflow: hidden; display: grid; place-items: center; min-height: 280px;
  background-color: var(--grid-bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.modal-figure img { max-width: 100%; max-height: min(62vh, 640px); width: auto; object-fit: contain; }
.modal-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.modal-thumbs[hidden] { display: none; }
.modal-thumbs button {
  display: grid; gap: 4px; justify-items: center; width: 84px; padding: 6px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--white); font: 400 12px/1.4 var(--font-ja); color: var(--ink-soft);
}
.modal-thumbs button[aria-selected="true"] { border-color: var(--teal); color: var(--teal-deep); }
.modal-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--off); }
.modal-num { font-family: var(--font-en); letter-spacing: .2em; color: var(--teal); font-size: 14px; }
.modal-title { margin-top: 6px; font-size: 24px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; padding-right: 40px; }
.modal-sub { margin-top: 2px; color: var(--ink-soft); }
.modal-meta { margin: 20px 0 0; display: grid; gap: 8px; }
.modal-meta div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(94, 158, 150, .35); font-size: 15px; }
.modal-meta dt { color: var(--teal-deep); white-space: nowrap; }
.modal-meta dd { margin: 0; }
.modal-text { margin-top: 20px; font-size: 15px; line-height: 1.95; }
.modal-text p + p { margin-top: .8em; }
.modal-note { font-size: 13px; color: var(--ink-soft); }
.modal-text .modal-h { margin: 1.8em 0 .4em; padding-top: 1.2em; border-top: 1px dashed rgba(94, 158, 150, .35); font-size: 16px; font-weight: 500; color: var(--teal-deep); letter-spacing: .1em; }
.modal-text .modal-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.modal-text .modal-h3 { display: flex; align-items: center; gap: 8px; margin: 1.4em 0 .3em; font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: .08em; }
.modal-text .modal-h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.modal-text .modal-h + .modal-h3 { margin-top: .4em; }
.modal-meta dd { overflow-wrap: anywhere; }
.modal-link { margin-top: 18px; }
.modal-link a { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-deep); font-weight: 500; }
.modal-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.modal-nav button {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--teal); background: var(--white); color: var(--teal-deep); font: 500 14px/1.4 var(--font-ja);
  box-shadow: 0 3px 0 var(--teal-soft); transition: transform .2s, box-shadow .2s;
}
.modal-nav button:disabled { box-shadow: none; }
.modal-nav button:disabled { opacity: .35; cursor: default; }

/* ---------- 06 VOICE ---------- */
.voice-card { position: relative; max-width: 760px; margin: 56px auto 0; }
.voice-card blockquote {
  position: relative; padding: 48px 56px; background: var(--off); border-radius: 40px;
  border: 1.5px solid var(--teal); font-size: 18px; line-height: 2;
}
.voice-card blockquote::before, .voice-card blockquote::after {
  content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent;
}
.voice-card blockquote::before { left: 64px; bottom: -22px; border-width: 22px 14px 0 14px; border-top-color: var(--teal); }
.voice-card blockquote::after { left: 66px; bottom: -19.5px; border-width: 20px 12px 0 12px; border-top-color: var(--off); }
.voice-card figcaption { display: flex; align-items: center; gap: 16px; margin: 32px 0 0 40px; }
.voice-card figcaption img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); }
.voice-card figcaption b { font-weight: 500; margin-right: .5em; }
.voice-card figcaption small { display: block; font-size: 13px; color: var(--ink-soft); }

/* ---------- 07 FLOW ---------- */
.steps { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px);
  transform-origin: left; transform: scaleX(var(--line, 1)); transition: transform 1.4s ease;
}
.step { position: relative; text-align: center; }
.step .num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: var(--white); border: 1.5px solid var(--teal); font-size: 20px; font-weight: 400;
}
.step h3 { margin-top: 18px; font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.step p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--ink-soft); text-align: left; }

/* ---------- 08 CONTACT ---------- */
.contact {
  background-color: var(--off);
  background-image:
    linear-gradient(var(--sky-pale), rgba(251, 248, 244, 0)),
    linear-gradient(rgba(211, 224, 242, .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 224, 242, .7) 1px, transparent 1px);
  background-size: 100% 70%, 40px 40px, 40px 40px;
  background-repeat: no-repeat, repeat, repeat;
  padding-bottom: 120px;
}
.contact-title { margin-top: 14px; font-size: clamp(32px, 4.2vw, 52px); text-align: left; font-weight: 500; color: var(--teal-deep); letter-spacing: .1em; line-height: 1.45; word-break: keep-all; }
.contact-title em { font-style: normal; color: var(--pink-deep); }
.contact-body { margin-top: 48px; display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.contact-visual { position: relative; }
.arch-sky { background: var(--sky); }
.arch-sky img { object-position: 50% 30%; }
.contact-flower { width: 120px; aspect-ratio: 1; left: -36px; top: -36px; }
.contact-scallop { width: 90px; aspect-ratio: 1; right: -30px; bottom: -24px; }
.bubbles { display: grid; gap: 24px; }
.bubble {
  position: relative; padding: 22px 32px; background: var(--off); border: 1.5px solid var(--teal);
  border-radius: 32px; font-size: 18px; line-height: 1.75;
}
/* しっぽ：線の三角（::before）の上に、地の色の三角（::after）を1.5pxずらして重ね、吹き出しの線とつなげる */
.bubble::before, .bubble::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border-style: solid; border-color: transparent;
}
.bubble::before { left: -16px; margin-top: -10px; border-width: 10px 16px 10px 0; border-right-color: var(--teal); }
.bubble::after { left: -13.2px; margin-top: -9.5px; border-width: 9.5px 15.2px 9.5px 0; border-right-color: var(--off); }
.btn-main { display: flex; width: min(100%, 560px); margin: 64px auto 0; padding: 20px 32px; font-size: 22px; }
.contact-note { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.todo-note { margin-top: 10px; text-align: center; font-size: 14px; color: var(--pink-deep); }
/* ---------- 問い合わせフォーム：白い紙のカード ---------- */
.contact-form {
  position: relative; max-width: 760px; margin: 72px auto 0; padding: 48px 56px 44px;
  background: var(--white); border: 1.5px solid var(--teal); border-radius: 32px;
  box-shadow: 0 6px 0 var(--teal-soft);
}
/* 上のマスキングテープ */
.contact-form::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(247, 216, 138, .9) 0 8px, rgba(247, 216, 138, .65) 8px 16px);
}
.form-lead, .form-privacy, .form-status { word-break: keep-all; overflow-wrap: anywhere; }
.form-lead { text-align: center; font-size: 15px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 32px; }
.form-lead .req { margin: 0 .25em 0 0; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: .05em; }
.field legend small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.req { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--pink-deep); color: var(--white); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--grid-line); border-radius: 14px; background: var(--off);
  font: inherit; font-size: 16px; color: var(--ink); line-height: 1.7; transition: border-color .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form ::placeholder { color: #9AA8A8; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(94, 158, 150, .18); }
.contact-form [aria-invalid="true"] { border-color: var(--pink-deep); background: #FDF3F5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--teal-soft); border-radius: 999px; background: var(--white); font-size: 15px; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.chip span::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid var(--teal); border-radius: 50%; transition: background .2s, box-shadow .2s; }
.chip input:checked + span { background: #EAF4F2; border-color: var(--teal); color: var(--teal-deep); }
.chip input:checked + span::before { background: var(--teal); box-shadow: inset 0 0 0 2.5px var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-privacy { margin-top: 8px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.btn-submit { display: flex; width: min(100%, 480px); margin: 24px auto 0; padding: 18px 32px; font-size: 20px; border: 0; font-family: inherit; cursor: pointer; }
.btn-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin-top: 16px; text-align: center; font-size: 15px; line-height: 1.8; min-height: 1.8em; }
.form-status.is-ok { color: var(--teal-deep); font-weight: 500; }
.form-status.is-error { color: var(--pink-deep); }
.contact-form.is-sent .field, .contact-form.is-sent .form-lead, .contact-form.is-sent .form-privacy, .contact-form.is-sent .btn-submit { display: none; }
.contact-form.is-sent .form-status { margin: 0; font-size: 17px; }

/* ---------- フッター ---------- */
.site-footer { padding: 40px 16px 48px; text-align: center; background: var(--teal); color: var(--off); }
.site-footer .logo-ja { font-size: 18px; }
.site-footer .copy { margin-top: 6px; font-family: var(--font-en); letter-spacing: .14em; opacity: .85; }

/* 追従ボタン（スマホ） */
.float-cta { display: none; }
/* 動きを止める：フッターの小さな文字リンク */
.motion-toggle {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 8px;
  border: 0; background: none; color: var(--off); opacity: .8;
  font: 400 13px/1 var(--font-ja); letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.motion-toggle:hover { opacity: 1; }
.motion-toggle:focus-visible { outline: 2px solid var(--off); outline-offset: 2px; opacity: 1; }

/* FVの下：リングノートから切り取った紙のふち。WORRIES〜FLOWは1枚の紙。CONTACTは前のまま */
/* リングノートから切り取った紙のふち（切り取ったあとの丸い穴の欠け） */
.ring-bind { height: 52px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 52'%3E%3Cpath d='M0 20 L12.0 20 A12 12 0 0 0 36.0 20 L48 20 L48 52 L0 52 Z' fill='%23FBF8F4'/%3E%3Cpath d='M0 20 L12.0 20 A12 12 0 0 0 36.0 20 L48 20' fill='none' stroke='%23D9D2C5' stroke-width='1.3'/%3E%3Cpath d='M14.5 22 q1.4 2.6 0 5.2 M33.5 22 q-1.4 2.6 0 5.2' fill='none' stroke='%23E3DCCF' stroke-width='1.1'/%3E%3C/svg%3E") repeat-x center top / 48px 52px; filter: drop-shadow(0 -1px 0 rgba(94,158,150,.18)); }
@media (max-width: 600px) { .ring-bind { height: 40px; background-size: 37px 40px; } }
.fv:has(.ring-bind) { padding-bottom: 0; }
.fv-inner { padding-bottom: 32px; }

.sec:not(.contact) { background: var(--off); }
.worries { padding-top: 56px; }
.sec + .sec:not(.contact) { padding-top: 64px; }
.worry { background: var(--white); box-shadow: 0 2px 0 rgba(94,158,150,.14), 0 10px 24px rgba(63,124,117,.06); }
.service-card { background: var(--white); box-shadow: 0 2px 0 rgba(94,158,150,.12); }
.value { background: var(--white); }
.voice-card { isolation: isolate; }
.voice-card::before {
  content: ""; position: absolute; inset: -28px -36px -20px 28px; z-index: -1; border-radius: 8px;
  background-color: var(--grid-bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px; transform: rotate(1.5deg); /* 手で貼った紙の感じ */
}
@media (max-width: 600px) {
  .worries { padding-top: 40px; }
  .voice-card::before { inset: -18px -10px -14px 14px; }
}

/* ---------- 動き（JSが動くときだけ html.motion） ---------- */
html.motion .js-fade { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
html.motion .js-fade.is-in { opacity: 1; transform: none; }
/* ABOUT はイラストが先、文はそのあと */
html.motion .about-text-delay { transition-delay: .25s; }
/* 枠ではなく中の画像を隠す（枠を隠すと、画面に入ったことを検知できないため） */
html.motion .js-reveal-photo img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path .8s cubic-bezier(.2,.7,.2,1), transform 1.1s ease; }
html.motion .js-reveal-photo.is-in img { clip-path: inset(0 0 0 0); transform: none; }
html.motion .fv-title .char { opacity: 0; transform: translateY(.5em); transition: opacity .5s ease, transform .5s ease; }
html.motion .fv-title.is-in .char { opacity: 1; transform: none; }
html.motion .deco-flower, html.motion .deco-scallop { transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform 1.2s cubic-bezier(.2,.8,.2,1.2), opacity .6s; }
html.motion .deco-flower.is-in, html.motion .deco-scallop.is-in { transform: none; opacity: 1; }
html.motion .wave-edge .wave-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; transition: stroke-dashoffset 2.4s ease .6s; }
html.motion .wave-edge.is-in .wave-line { stroke-dashoffset: 0; }
html.motion .steps { --line: 0; }
html.motion .steps.is-in { --line: 1; }
html.motion .btn-main.is-in { animation: hop 3.6s ease-in-out 1.2s infinite; }
@keyframes hop { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-6px); } 94% { transform: translateY(0); } 97% { transform: translateY(-3px); } }

html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 900px 以下 ---------- */
@media (max-width: 900px) {
  .gnav { display: none; }
  .fv-inner { grid-template-columns: 1fr; text-align: center; padding: 0 24px 56px; gap: 32px; }
  .fv-text { display: contents; }
  .fv-title { order: 1; }
  .fv-visual { order: 2; width: min(86%, 400px); }
  .fv-lead { order: 3; margin-top: 8px; }
  .fv-services { order: 4; justify-content: center; margin-top: -12px; }
  .fv-btn { order: 5; margin: 0 auto; }
  .about-body { grid-template-columns: 300px 1fr; gap: 40px; }
  .values { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4) { grid-column: auto; }
  .service-card:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 28px; padding-left: 8px; }
  .steps::before { left: 35px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px);
    transform-origin: top; transform: scaleY(var(--line, 1)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; }
  .step .num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 2px; }
  .step p { margin-top: 4px; }
  .contact-body { grid-template-columns: 1fr; }
  .modal-inner { grid-template-columns: 1fr; gap: 16px 24px; padding: 8px 28px 28px; }
  /* スマホ・タブレットは、✕を画像の上の行に置き、スクロールしても上に残す */
  .modal-close { position: sticky; top: 4px; justify-self: end; margin-right: -16px; }
  .contact-visual { width: min(70%, 300px); margin: 0 auto; }
  .bubble::before { left: 40px; top: -16px; margin-top: 0; border-width: 0 10px 16px 10px; border-color: transparent transparent var(--teal) transparent; }
  .bubble::after { left: 41.5px; top: -13.5px; margin-top: 0; border-width: 0 8.5px 14px 8.5px; border-color: transparent transparent var(--off) transparent; }
}

/* ---------- 600px 以下（スマホ） ---------- */
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .pc { display: none; }
  .sp { display: inline; }
  body { font-size: 16px; }
  .site-header { gap: 12px; }
  .logo-ja { font-size: 16px; }
  .logo-en { display: none; }
  .fv { padding-top: calc(var(--header-h) + 28px); }
  .fv-title { font-size: clamp(32px, 9.6vw, 44px); }
  .fv-visual .badge { right: -6%; top: -2%; width: 30%; }
  .vtag { font-size: 13px; padding: 10px 5px; }
  .fv-lead { font-size: 16px; }
  .fv-services { font-size: 14px; }
  .fv-services li + li::before { margin: 0 9px; }
  .sec { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .sec-title { font-size: 26px; }
  .worry-list { gap: 28px; margin-top: 40px; }
  .worry { grid-template-columns: 1fr 104px; grid-template-rows: auto auto; gap: 6px 14px; padding: 24px 18px 24px 24px; min-height: 0; border-radius: 28px; }
  .worry .num { font-size: 40px; grid-column: 1; }
  .worry p { grid-column: 1; font-size: 16px; }
  .capsule { grid-column: 2; grid-row: 1 / span 2; width: 96px; height: 136px; }
    .bridge { font-size: 19px; }
  .about-body { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .arch { width: min(78%, 300px); margin: 0 auto; }
  .sub-title { margin-top: 64px; }
  .services { grid-template-columns: 1fr; gap: 16px; }
  .service-card:last-child { grid-column: auto; }
  .service-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: left; padding: 24px 20px; }
  .service-card .icon { grid-row: span 2; margin: 0; }
  .service-card h3 { margin-top: 0; }
  .service-card p { margin-top: 4px; }
  .work-list { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; margin-top: 40px; }
  .work .num { font-size: 24px; margin-bottom: 8px; }
  .work figure { border-width: 4px; }
  .work-title { font-size: 15px; margin-top: 12px; }
  .work-sub { font-size: 13px; }
  .work-foot { justify-content: flex-start; }
  .work-more { font-size: 12px; gap: 6px; }
  .work-more::after { width: 24px; height: 24px; }
  .modal-inner { grid-template-columns: 1fr; gap: 12px 20px; padding: 6px 18px 24px; }
  .modal-close { margin-right: -10px; }
  .modal-figure img { max-height: 52vh; }
  .modal-title { font-size: 20px; padding-right: 0; }
  .modal-thumbs { gap: 6px; flex-wrap: nowrap; }
  .modal-thumbs button { width: auto; flex: 1 1 0; min-width: 0; padding: 4px; font-size: 11px; white-space: nowrap; letter-spacing: 0; }
  .voice-card blockquote { padding: 32px 24px; font-size: 16px; border-radius: 28px; }
  .voice-card figcaption { margin-left: 16px; }
      .contact-title { font-size: 30px; }
  .bubble { font-size: 15px; padding: 16px 22px; border-radius: 28px; }
  .btn-main { font-size: 19px; margin-top: 48px; }
  .contact-form { margin-top: 56px; padding: 36px 20px 32px; border-radius: 24px; }
  .form-lead { font-size: 14px; text-align: left; }
  .chip span { padding: 6px 14px; font-size: 14px; }
  .btn-submit { font-size: 18px; }
  .contact-flower { width: 84px; left: -24px; top: -24px; }
  .contact-scallop { width: 64px; right: -18px; }
  .site-header .btn-sm { padding: 6px 14px; font-size: 13px; }
  .float-cta {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 45;
    font-size: 15px; padding: 12px 22px;
    transition: opacity .3s, visibility .3s;
  }
  .float-cta.is-hidden { opacity: 0; visibility: hidden; }
}
