/*
Theme Name: MEG-IRO
Theme URI: https://meg-iro.com/
Author: MEG-IRO DESIGN OFFICE
Description: MEG-IRO DESIGN OFFICE のオリジナルテーマ。トップページ1枚で見せるコンセプト型。
Version: 1.0.55
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: meg-iro
*/

/* 紫〜ピンクの背景動画で始まり、白い紙に特大の英字、ピンク(テーマカラー #ff16a2)は押す所と強調だけ。ピンクの塗りは #ff3cb4→#f528c8 のグラデーション。下部のCONTACTの帯だけ #ef4de9→#5c68e7(ピンク→青紫。10/31 伊藤)
   英字だけの所はロゴと同じFutura(Mac・iPhoneに標準搭載のMedium。無い端末は似た形のJost)
   日本語(日本語の中の英数字も)は細めのゴシック Noto Sans JP。英字フォントを混ぜない */
:root {
	--paper: #ffffff;
	--soft: #f6f4f5;
	--ink: #141316;
	--mute: #6c6970;
	--line: #e4e1e4;
	--pink: #ff16a2;
	--pink-ink: #ff16a2; /* 白地の小さな文字もテーマカラーにそろえる(10/30 伊藤) */
	--pink-grad: linear-gradient(135deg, #ff3cb4 0%, #f528c8 100%);
	--contact-grad: linear-gradient(135deg, #ef4de9 0%, #5c68e7 100%); /* 下部のCONTACTの帯だけ(10/31 伊藤) */
	--night: #232323;
	--night-fg: #f4f2f3;
	--night-mute: #a5a1a7;
	--night-line: #3a373d;
	--night-card: #2e2e2e;
	--f-display: "Futura", "Futura PT", "Jost", "Century Gothic", "Avenir Next", sans-serif;
	--f-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	--f-title: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* iPhoneが画面より広い部品の文字を勝手に大きくしないように(11/1 伊藤:流れる印刷物の「ポップ」の文字だけ大きく見えた) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 15px; font-weight: 300; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---- 共通の部品 ---- */
.label { margin: 0; font-family: var(--f-display); font-size: 14px; letter-spacing: 0.2em; font-weight: 500; color: var(--pink-ink); }
.night .label { color: var(--pink); }
.big-en { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 54px); line-height: 1; letter-spacing: -0.01em; }
.kicker { margin: 0; font-family: var(--f-display); font-size: 12px; letter-spacing: 0.24em; font-weight: 500; color: var(--night-mute); }
.note { margin: 18px 0 0; font-size: 12.5px; color: var(--mute); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 26px; border-radius: 999px; font: 400 14px/1 var(--f-body); text-decoration: none; border: 1px solid var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--night); color: var(--paper); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--night); color: #fff; border-color: var(--night); }
.btn-line { background: transparent; color: #fff; border-color: #fff; }
.btn-line:hover { background: #fff; color: var(--pink-ink); }
.text-link { font-size: 14px; font-weight: 300; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--pink); }
.sec { padding-block: 104px; }
.sec.soft { background: var(--soft); }
.sec.night { background: var(--night); color: var(--night-fg); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-head p { margin: 0; font-size: 14px; color: var(--mute); }
/* LINEページのPROBLEM:添え書きを英字の下に置き、枠の線と同じグレーに近い白に(11/1 伊藤) */
.sec-head-stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.night .sec-head.sec-head-stack p { font-size: clamp(18px, 2.2vw, 24px); color: rgba(255, 255, 255, 0.55); } /* 大きさは「そのお悩み…」(.lines-answer)と同じ(11/1 伊藤) */ /* .night .sec-head p より強くする */
.night .sec-head p { color: var(--night-mute); }

/* ---- ヘッダー(動く抽象画の上に重ねる) ---- */
/* 11/1 伊藤:上部メニューはスクロールしても常に見える(fixed)。少し下がったら黒い背景を付ける(.is-scrolled は site.js が付け外し) */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 20; color: var(--night-fg); padding-top: env(safe-area-inset-top, 0px); }
/* 背景は ::after に持たせる。.site-head 自体に backdrop-filter を付けると、スマホの引き出し(.gnav の fixed)がヘッダーの中に閉じ込められて小さくなるため */
.site-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(35, 35, 35, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.site-head.is-scrolled::after { opacity: 1; }
.site-head.is-scrolled .wrap { padding-block: 14px; }
section[id], [id="main"] { scroll-margin-top: 72px; } /* メニューの分だけ下で止まる(#concept などへ飛んだとき) */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
.site-head .logo { white-space: nowrap; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 24px; transition: padding .25s ease; }
.logo { font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; line-height: 1.1; text-decoration: none; margin-right: auto; }
.gnav { display: flex; gap: 24px; font-family: var(--f-display); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; }
.gnav a { text-decoration: none; }
.gnav a:hover { color: var(--pink); }
.gnav small { display: none; } /* 日本語の添え書きはPCの1段目では出さない(プルダウンの中とスマホで出す) */
/* TOP のプルダウン(11/1 伊藤)。マウスを乗せる・キーボードで中に入ると開く */
.gnav-group { position: relative; }
.gnav-group > a::after { content: "▾"; margin-left: 5px; font-size: 10px; }
.gnav-group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; } /* 1段目とプルダウンの間の隙間で閉じないように */
.gnav-drop { position: absolute; top: calc(100% + 16px); left: -14px; margin: 0; padding: 8px 0; list-style: none; min-width: 230px; background: rgba(35, 35, 35, 0.96); border: 1px solid var(--night-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.gnav-group:hover .gnav-drop, .gnav-group:focus-within .gnav-drop { opacity: 1; visibility: visible; transform: none; }
.gnav-drop a { display: block; padding: 9px 18px; }
.gnav-drop small { display: block; margin-top: 2px; font-family: var(--f-body); font-size: 11px; font-weight: 300; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: inherit; align-items: center; justify-content: center; cursor: pointer; position: relative; z-index: 31; }
.burger-lines { width: 16px; height: 2px; background: currentColor; position: relative; transition: background .2s ease; }
.burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform .25s ease; }
.burger-lines::before { top: -5px; }
.burger-lines::after { top: 5px; }
.nav-open .burger-lines { background: transparent; }
.nav-open .burger-lines::before { transform: translateY(5px) rotate(45deg); }
.nav-open .burger-lines::after { transform: translateY(-5px) rotate(-45deg); }

/* ---- 上部の背景動画 ---- */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-fg); }
/* トップと下層ページで同じ高さ(10/31 伊藤「トップは大きすぎ、下層は小さい。間を取って統一」。PC 640/380→510、スマホ 560/300→430) */
.hero, .page-hero { min-height: 510px; display: flex; }
/* 背景動画(Adobe Stock 566633191 を Web 用に変換)。縦横比を保ったまま枠いっぱいに表示 */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--night); }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 35, 35, 0.32) 0%, rgba(35, 35, 35, 0) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; align-content: end; gap: 22px; padding-block: 140px 40px; }
.hero-copy { margin: 0; font-size: clamp(26px, 4.2vw, 52px); line-height: 1.45; font-weight: 300; letter-spacing: 0.01em; text-wrap: balance; }
.hero-copy em, .concept-big em { font-style: normal; color: var(--pink); }
.hero .kicker { color: rgba(255, 255, 255, 0.82); }
/* トップの丸いバッジ(11/1 伊藤。LFLOWのトップを参考に):中は30%の黒で背景の動画が透けて見える。文字はすべて白(11/1 伊藤)。CONTACTの帯と同じ色の細い輪・白い文字 */
.hero-badges { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges li { position: relative; width: 132px; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, 0.3); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; line-height: 1.35; }
.hero-badges li::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; background: var(--contact-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hb-sub { font-size: 11.5px; font-weight: 500; color: #fff; }
.hb-main { font-size: 17px; font-weight: 700; color: #fff; }
.hb-num { font-family: var(--f-display); font-size: 34px; font-weight: 500; line-height: 1.1; color: #fff; white-space: nowrap; }
.hb-num small { margin-left: 2px; font-family: var(--f-body); font-size: 12px; font-weight: 700; color: #fff; }
.hb-num-s { font-size: 20px; letter-spacing: -0.01em; }

/* 支援実績(WORKSのLINE構築例の下・黒い背景の中。カードが右から左へ流れ続ける。11/1 伊藤。LFLOWのトップを参考に) */
.results { padding-block: 88px 8px; overflow: hidden; }
.results-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.results-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--night-fg); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* 流す動きは CSS(transform)に任せて軽くする。手で動かしている間だけ .is-manual で横スクロールに切り替える(11/1 夜。前は JS で毎コマ scrollLeft を書き換えていてスマホでカクついた) */
.marquee-track { will-change: transform; }
.marquee.is-manual { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; -webkit-overflow-scrolling: touch; }
.marquee.is-manual::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee.is-manual .marquee-track { animation: none; transform: none; }
.marquee img { -webkit-user-drag: none; }
.result-list { list-style: none; margin: 0; padding: 4px 16px 4px 0; display: flex; gap: 16px; }
.result-card { width: 260px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px 20px; background: #fff; border-radius: 14px; text-align: center; color: var(--ink); }
.rc-tag { padding: 5px 16px; border-radius: 999px; background: var(--pink-grad); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.rc-label { min-height: 4.5em; display: flex; align-items: center; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--mute); }
.rc-num { font-family: var(--f-display); font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--pink-ink); letter-spacing: -0.01em; white-space: nowrap; }
.rc-num-s { font-size: 24px; }
.rc-sub { margin-top: -4px; font-size: 12px; font-weight: 500; color: var(--ink); }
.rc-credit { margin-top: auto; font-size: 10.5px; color: var(--mute); opacity: 0.8; }
.results-note { margin: 14px auto 0; font-size: 11.5px; color: var(--night-mute); }
/* 白い背景用(LINEページの RICH MENU の下。11/1) */
.results-light { padding-block: 56px 0; }
.results-light .results-title { color: var(--ink); }
.results-light .results-note { color: var(--mute); }
.results-light .result-card { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 19, 22, 0.06); }
/* 流れる帯の下の右寄せボタン(11/1 伊藤) */
.works-cta { display: flex; justify-content: flex-end; margin-top: 12px; }
.works-cta-results { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; }
	.marquee-track { animation: none; }
	.marquee-track > [aria-hidden] { display: none; }
}
.page-hero-inner { position: relative; z-index: 1; display: grid; align-content: end; gap: 6px; padding-block: 130px 44px; }
.page-hero-inner .hero-badges { margin-top: 16px; } /* LINEページのバッジ(11/1) */
.page-en { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 6.4vw, 76px); line-height: 0.92; letter-spacing: -0.02em; }
.page-title { margin: 0; font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

/* ---- CONCEPT ---- */
.concept-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.concept-big { margin: 0; font-size: clamp(19px, 2.5vw, 28px); line-height: 1.75; font-weight: 700; text-wrap: balance; }
.concept-small { margin: 24px 0 0; font-size: 14.5px; color: var(--mute); max-width: 56ch; }

/* ---- CAPABILITY ---- */
.cap { padding-top: 0; }
.cap .label { margin-bottom: 28px; }
/* CAPABILITY(11/1 伊藤「ダサい」→ Codexの案1で作り直し):3つの画像を透明背景・同じ光と影の「静物」にそろえ、英字が主体の右端に12〜24pxだけ重なる。白へのなじませは画像だけにかける */
.words { border-top: 1px solid rgba(20, 19, 22, 0.18); }
.word-row { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 64px; align-items: center; min-height: 328px; padding-block: 24px; border-bottom: 1px solid rgba(20, 19, 22, 0.18); }
.word-name { position: relative; height: 280px; }
.cap-visual { position: absolute; left: 0; top: 0; width: 560px; height: 280px; -webkit-mask-image: linear-gradient(to right, #000 0, #000 48%, rgba(0, 0, 0, 0.55) 72%, transparent 96%); mask-image: linear-gradient(to right, #000 0, #000 48%, rgba(0, 0, 0, 0.55) 72%, transparent 96%); }
.word-text { position: absolute; left: 256px; top: 108px; display: grid; gap: 12px; } /* 11/1 伊藤「もう少し右に」:224→256px */
.word { font-family: var(--f-display); font-weight: 500; font-size: 80px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.word-sub { margin: 0; font-size: 14px; font-weight: 400; color: #5c5c5c; }
.word-right { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.word-right .text-link { justify-self: end; margin-top: 8px; font-size: 14px; font-weight: 500; color: #333; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(20, 19, 22, 0.28); color: #4a4a4a; }

/* ---- WORKS ---- */
.works-head { display: grid; gap: 14px; margin-bottom: 36px; }
.works-head h3 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.55; text-wrap: balance; }
.works-head p:last-child { margin: 0; color: var(--night-mute); font-size: 14px; max-width: 48ch; }
/* 構築例は支援実績と同じく流れ続ける(11/1 伊藤)。.wrap の中にあるので画面の端まで広げる。2周目とのすき間も gap と同じにして切れ目なくつなぐ */
.phones-marquee { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.phones-marquee .marquee-track { animation-duration: 80s; }
.phones { --ph-gap: 28px; display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: var(--ph-gap); padding: 8px var(--ph-gap) 24px 0; }
.ph-item { margin: 0; display: grid; gap: 14px; }
.ph-item figcaption { text-align: center; font-size: 13px; color: var(--night-mute); }
.phone { width: 100%; aspect-ratio: 9 / 19; border-radius: 38px; background: var(--night); padding: 10px; box-shadow: 0 30px 60px -24px rgba(170, 170, 170, 0.5), 0 0 0 1px var(--night-line); position: relative; }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 70px; height: 19px; border-radius: 999px; background: var(--night); z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #8ea9c9; display: flex; flex-direction: column; }
.screen-top { height: 56px; flex: none; background: #f7f7f7; display: flex; align-items: flex-end; padding: 0 14px 7px; font-size: 10.5px; font-weight: 700; color: #222; }
.screen-chat { flex: 1; min-height: 0; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
/* フレックスメッセージの画像:チャット欄の高さに収まる大きさで、縦横比を保ったまま左寄せ */
.chat-flex { align-self: flex-start; display: block; min-height: 0; max-width: 85%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
/* 縦長は下の余白をなくしてリッチメニューまでつなげ、メッセージが下へ続いて見えるようにする(10/31 伊藤「途中で切れている感じ」) */
.chat-flex.is-tall { flex: 0 1 auto; width: 85%; height: auto; max-height: calc(100% + 12px); margin-bottom: -12px; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; } /* 11/1 チャット欄より高い画像は上を見せて下で切る。低い画像(不動産・賃貸)は拡大せずそのままメニューに接する */
.chat-flex.is-wide { width: calc(100% + 10px); max-width: none; margin-right: -10px; object-fit: cover; object-position: left top; border-radius: 8px 0 0 8px; }
.bubble { align-self: flex-start; max-width: 85%; background: #fff; color: #222; font-size: 10px; line-height: 1.6; padding: 7px 10px; border-radius: 14px; }
.screen-menu { flex: none; background: #fff; }
.screen-menu img { width: 100%; }
.screen-bar { flex: none; height: 24px; background: #fff; border-top: 1px solid #eee; font-size: 9px; color: #555; display: flex; align-items: center; justify-content: center; }
.scroll-hint { margin: 4px 0 0; font-size: 12px; color: var(--night-mute); text-align: right; }
/* 印刷物:リッチメニューと同じく横にスクロール。高さをそろえ、縦横比はそのまま */
.works-sub-head { margin-top: 88px; padding-top: 56px; border-top: 1px solid var(--night-line); }
.works-head-print { margin-top: 0; }
/* 印刷物も流れ続ける(11/1 伊藤)。.wrap の中なので画面の端まで広げる */
.prints-marquee { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.prints-marquee .marquee-track { animation-duration: 90s; }
.prints { --pr-gap: 24px; display: flex; gap: var(--pr-gap); padding: 8px var(--pr-gap) 24px 0; }
.print-item { flex: none; margin: 0; display: grid; gap: 14px; }
.print-ph { height: 324px; padding: 16px; background: var(--night-card); border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 60px -24px rgba(170, 170, 170, 0.5); }
.print-ph img { height: 100%; width: auto; max-width: none; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8); }
.print-item figcaption { text-align: center; font-size: 13px; font-weight: 400; color: var(--night-mute); }
.sub-head { display: flex; align-items: baseline; gap: 14px; margin: 72px 0 20px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.sub-head p:last-child { margin: 0; font-size: 13px; color: var(--night-mute); }
.grid-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.grid-works figure { margin: 0; display: grid; gap: 10px; min-width: 0; align-content: start; }
.grid-works .ph { aspect-ratio: 4 / 5; padding: 14px; background: var(--night-card); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.grid-works .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.grid-works figure:hover img { transform: scale(1.04); }
.grid-works figcaption { display: grid; gap: 2px; font-size: 13px; font-weight: 500; }
.grid-works figcaption span { font-family: var(--f-display); font-size: 10.5px; letter-spacing: 0.16em; color: var(--night-mute); font-weight: 500; }

/* ---- PARTNER ---- */
.partner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 72px; align-items: center; }
.partner-photo { margin: 0; display: grid; gap: 14px; }
.partner-photo img { width: 100%; height: auto; border-radius: 10px; background: var(--soft); }
.partner-photo figcaption { display: grid; gap: 4px; }
.partner-name { font-size: 18px; font-weight: 400; letter-spacing: 0.12em; }
.partner-role { font-size: 12.5px; color: var(--mute); line-height: 1.7; }
.partner-body { display: grid; gap: 32px; min-width: 0; }
.partner-copy { display: grid; gap: 16px; }
.partner-copy h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.55; text-wrap: balance; }
.partner-copy p { margin: 0; color: var(--mute); font-size: 14px; max-width: 46ch; }
/* 代理店のランク:ピラミッド型(上ほど狭い台形を3段重ねる) */
.pyramid { display: grid; gap: 6px; width: 100%; max-width: 520px; }
.pyramid div { height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; color: var(--ink); }
.pyramid span { font-size: 15px; font-weight: 400; }
.pyramid b { font-family: var(--f-display); font-size: 10.5px; letter-spacing: 0.16em; font-weight: 500; color: var(--mute); }
.pyramid-top { background: var(--pink-grad); clip-path: polygon(35% 0, 65% 0, 76.67% 100%, 23.33% 100%); }
.pyramid-top span, .pyramid-top b { color: #fff; }
.pyramid-mid { background: #ebe8ea; clip-path: polygon(23.33% 0, 76.67% 0, 88.33% 100%, 11.67% 100%); }
.pyramid-base { background: var(--soft); clip-path: polygon(11.67% 0, 88.33% 0, 100% 100%, 0 100%); }

/* ---- LINEページ ---- */
.concept-cta { margin-top: 28px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lines li { padding: 22px 4px; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.8vw, 19px); font-weight: 300; }
.lines-answer { margin: 32px 0 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; }
.lines-answer::before { content: "→ "; color: var(--pink); }
.night .lines-answer { color: var(--night-fg); }
/* PROBLEM:黒い背景の上に、悩みを1つずつ角丸の枠で */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.problems li { padding: 30px 28px; border: 1px solid rgba(255, 255, 255, 0.55); /* 11/1 伊藤「線が薄い」→ グレーに近い白 */ border-radius: 12px; font-size: clamp(16px, 1.6vw, 18px); font-weight: 300; line-height: 1.8; display: flex; gap: 14px; align-items: flex-start; }
.problems li::before { content: "✓"; flex: none; width: 26px; height: 26px; margin-top: 3px; border-radius: 50%; background: #fff; color: var(--pink); font-size: 14px; font-weight: 700; line-height: 26px; text-align: center; }
/* STRENGTH:うすいグレーの背景の上に白いカード */
.cards-light { background: var(--line); border-color: var(--line); }
.cards-light { counter-reset: strength; }
.cards-light .card { background: var(--paper); position: relative; overflow: hidden; padding-left: 96px; counter-increment: strength; }
.cards-light .card::before { content: counter(strength); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-weight: 500; font-size: 120px; line-height: 1; color: #ffe1f2; pointer-events: none; }
.cards-light .card > * { position: relative; }
.cards-light .card p { color: var(--ink); } /* 11/1 伊藤「説明の文字が薄い」→ 見出しと同じ色に */
/* LINEページ上部のリッチメニュー:白い背景・一回り小さく */
.line-works { margin-top: 72px; display: grid; gap: 20px; }
.industry-inline { display: grid; gap: 14px; padding-bottom: 56px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.industry-inline .label, .industry-inline .industry-lead, .industry-inline .note { margin: 0; }
.industry-lead { font-size: clamp(17px, 2vw, 21px); font-weight: 300; }
.industry-inline .industry li { font-size: 15px; padding: 8px 18px; }
.phones-light { --ph-gap: 22px; grid-auto-columns: 190px; }
.phones-light .phone { border-radius: 32px; padding: 8px; box-shadow: 0 24px 50px -24px rgba(120, 120, 120, 0.45), 0 0 0 1px var(--line); }
.phones-light .phone::before { top: 14px; width: 56px; height: 15px; }
.phones-light .screen { border-radius: 25px; }
.phones-light .ph-item figcaption, .scroll-hint-light { color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: 12px; overflow: hidden; }
.card { background: var(--night); padding: 32px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card h3 { margin: 0; font-size: 18px; font-weight: 400; }
.card p { margin: 0; font-size: 14px; color: var(--night-mute); line-height: 1.85; }
.service-list { margin: 0; border-top: 1px solid var(--ink); }
.service-list > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 24px; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.service-list dt { font-size: 17px; font-weight: 400; display: flex; align-items: center; gap: 12px; }
.service-list dt::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pink-grad); color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.service-list dd { margin: 0; font-size: 14px; color: var(--ink); } /* 11/1 伊藤「説明の文字が薄い」→ 見出しと同じ色に */
.price-lead { margin: 0 0 12px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; }
.price-note p { max-width: 64ch; }

/* ---- 価格表 / ご依頼の流れ ---- */
/* よくあるご質問(LINEページ。11/1)。開閉は <details> で、JSなし */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 56px 20px 24px; font-size: 15.5px; font-weight: 500; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 24px; font-weight: 500; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { margin: 0; padding: 0 24px 22px; font-size: 14.5px; line-height: 1.9; color: var(--ink); } /* 11/1 伊藤「答えの文字が薄くて読みづらい」→ 質問と同じ色に */
.price-sub { margin: 0 0 32px; color: var(--mute); max-width: 64ch; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.price-card { display: grid; gap: 6px; padding: 28px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.price-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.price-card-en { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1; }
.price-card-jp { font-size: 14px; color: var(--mute); }
.price-card-more { margin-top: 14px; font-size: 14px; font-weight: 300; justify-self: end; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 28px 4px; border-bottom: 1px solid var(--line); }
.steps-no { font-family: var(--f-display); font-weight: 500; font-size: 32px; line-height: 1; color: var(--pink); }
.steps-body { display: grid; gap: 8px; max-width: 72ch; }
.steps-body h3 { margin: 0; font-size: 18px; font-weight: 400; }
.steps-body p { margin: 0; }
.steps-body .note { margin: 0; }
.steps-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 6px !important; }

/* ---- お問い合わせ ---- */
.contact-info { margin: 36px 0 0; border-top: 1px solid var(--ink); max-width: 760px; }
.contact-info > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.contact-info dt { font-weight: 400; }
.contact-info dd { margin: 0; font-size: 14px; color: var(--mute); }
.form-wrap { background: var(--paper); border-radius: 12px; padding: clamp(20px, 4vw, 48px); }
.form-wrap .CF7_table { width: 100%; border-collapse: collapse; }
.form-wrap .CF7_table th, .form-wrap .CF7_table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.form-wrap .CF7_table th { width: 240px; padding-right: 24px; font-weight: 400; font-size: 15px; }
.form-wrap .CF7_table p { margin: 0; }
.CF7_req, .CF7_unreq { display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.5; vertical-align: 2px; }
.CF7_req { background: var(--pink-grad); color: #fff; }
.CF7_unreq { background: var(--soft); color: var(--mute); border: 1px solid var(--line); }
.form-wrap input[type="text"], .form-wrap input[type="email"], .form-wrap input[type="tel"], .form-wrap textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: 300 15px/1.6 var(--f-body); color: var(--ink); }
.form-wrap input:focus, .form-wrap textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 22, 162, 0.15); }
.form-wrap textarea { min-height: 200px; resize: vertical; }
.form-wrap ::placeholder { color: #b3afb5; }
.form-wrap .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form-wrap .wpcf7-list-item { margin: 0; }
.form-wrap .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-wrap input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pink); }
.form-wrap .CF7_btn { margin: 32px 0 0; text-align: center; }
.form-wrap .wpcf7-submit { appearance: none; border: 0; border-radius: 999px; padding: 18px 56px; background: var(--night); color: #fff; font: 400 15px/1 var(--f-body); letter-spacing: 0.08em; cursor: pointer; transition: background .2s ease; }
.form-wrap .wpcf7-submit:hover { background: var(--pink-grad); }
.form-wrap .wpcf7-not-valid-tip { font-size: 12.5px; color: var(--pink); margin-top: 6px; }
.form-wrap .wpcf7-response-output { margin: 24px 0 0 !important; padding: 14px 18px !important; border-radius: 8px; font-size: 14px; }
.form-line { margin: 24px 0 0; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }

/* ---- 特商法・プライバシーポリシー ---- */
.legal-list dd a { color: var(--pink); }
.legal-list dt { display: block; }
.legal-list dt::before { content: none; }
.policy-intro { margin: 0 0 32px; max-width: 72ch; }
.policy { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.policy li { padding: 26px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.policy h3 { margin: 0 0 4px; font-size: 17px; font-weight: 400; display: flex; gap: 16px; align-items: baseline; }
.policy h3 b { font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--pink); }
.policy p { margin: 0; max-width: 72ch; font-size: 14.5px; }
.policy-date { text-align: right; margin-top: 24px; }

/* ---- INDUSTRY ---- */
.industry { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.industry li { font-size: clamp(15px, 1.9vw, 20px); font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink); }

/* ---- FLOW ---- */
/* 流れ:1段階ずつ四角で囲み、間を▶でつなぐ。行の終わりには▶を出さない */
.flow { list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 26px; border-top: 1px solid var(--ink); }
.flow li { position: relative; padding: 16px 14px; border: 1px solid var(--pink); border-radius: 6px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.flow li::after { content: ""; position: absolute; top: 50%; right: -19px; transform: translateY(-50%); border-style: solid; border-width: 7px 0 7px 10px; border-color: transparent transparent transparent var(--pink); }
.flow li:last-child::after { content: none; }
.flow b { font-family: var(--f-display); font-weight: 500; font-size: 28px; line-height: 1; color: var(--pink); }
.flow span { font-size: 14px; font-weight: 700; line-height: 1.6; }
.flow-more { margin: 36px 0 0; }

/* ---- CONTACT・フッター ---- */
.contact { background: var(--contact-grad); color: #fff; }
.contact .wrap { padding-block: 96px; display: grid; gap: 28px; }
.contact-big { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 54px); line-height: 0.9; letter-spacing: -0.02em; }
.contact-lead { margin: 0; font-size: 16px; font-weight: 400; }
.site-foot { background: var(--night); color: var(--night-mute); font-size: 12.5px; }
.site-foot .wrap { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 24px 40px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-foot .logo { color: var(--night-fg); margin-right: 0; white-space: nowrap; }
.site-foot nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot nav a:hover { color: var(--pink); }
.copy { margin: 0; }

/* ---- 下層ページの本文 ---- */
.entry { overflow-x: clip; }
.entry-body { max-width: 1100px; padding-block: 72px 96px; }
.entry-body > * + * { margin-top: 1.2em; }
.entry-body > h2, .entry-body > h3 { margin: 2.4em 0 0.6em; line-height: 1.5; font-weight: 700; }
.entry-body > h2 { font-size: 22px; }
.entry-body > h3 { font-size: 17px; padding-left: 14px; border-left: 3px solid var(--pink); }
.entry-body > h2:first-child, .entry-body > h3:first-child { margin-top: 0; }
.entry-body > p, .entry-body > ul, .entry-body > ol { max-width: 72ch; margin-bottom: 0; }
.entry-body > p a { color: var(--pink-ink); }

/* ---- 日本語のタイトル(細め) ---- */
.hero-copy, .concept-big, .word-sub, .works-head h3, .partner-copy h2, .page-title,
.entry-body > h2, .entry-body > h3 { font-family: var(--f-title); font-weight: 300; }
.industry li, .flow span, .bubble, .screen-top, .grid-works figcaption { font-weight: 400; }
.word-sub { font-weight: 400; } /* 説明文は薄く見えるので300にしない(Codex 3回目) */

/* スマホだけで改行する所 */
br.sp { display: none; }

/* ---- 幅ごとの調整 ---- */
@media (max-width: 900px) {
	.burger { display: inline-flex; }
	/* 右から出る引き出し。画面の半分ほどの幅で、残りはうすく暗くする(10/31 伊藤「全画面ではなく半分ぐらいに」→「まだ右に寄せてよい」で6割→半分) */
	.gnav { position: fixed; top: 0; right: 0; bottom: 0; width: min(50vw, 300px); z-index: 30; background: var(--night); flex-direction: column; justify-content: center; gap: 0; padding: 96px 20px 48px; font-size: 20px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.2; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; }
	.site-head::before { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(20, 19, 22, 0.45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
	.nav-open .site-head::before { opacity: 1; visibility: visible; }
	.gnav { justify-content: flex-start; overflow-y: auto; }
	.gnav > a, .gnav-group > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--night-line); }
	.gnav > :first-child > a, .gnav > a:first-child { border-top: 1px solid var(--night-line); }
	/* 英字の下に添える日本語(10/31 伊藤「英語だけだと何が何か分かりづらい」)。11/1 からは PHP 側の small で出す */
	.gnav small { display: block; margin-top: 4px; font-family: var(--f-body); font-size: 12px; font-weight: 300; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
	/* TOP のプルダウンは、スマホでは TOP の下に常に展開(11/1) */
	.gnav-group > a::after { content: none; }
	.gnav-group::after { content: none; }
	.gnav-drop { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; border-bottom: 1px solid var(--night-line); border-radius: 0; box-shadow: none; min-width: 0; padding: 6px 0 10px 14px; }
	.gnav-drop a { padding: 6px 0; font-size: 14px; letter-spacing: 0.08em; }
	.gnav-drop small { display: block; margin: 1px 0 0; font-size: 11px; } /* 横に並べると折り返して読みにくいので下に */
	.nav-open .gnav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.concept-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.word-row { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding-block: 20px; }
	.word-name { height: 220px; }
	.cap-visual { width: 440px; height: 220px; }
	.word-text { left: 196px; top: 84px; gap: 8px; }
	.word { font-size: 56px; }
	.grid-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.partner-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.cards { grid-template-columns: minmax(0, 1fr); }
	.problems { grid-template-columns: minmax(0, 1fr); }
	.service-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.price-cards { grid-template-columns: minmax(0, 1fr); }
	.contact-info > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.form-wrap .CF7_table, .form-wrap .CF7_table tbody, .form-wrap .CF7_table tr, .form-wrap .CF7_table th, .form-wrap .CF7_table td { display: block; width: 100%; }
	.form-wrap .CF7_table th { padding: 18px 0 8px; border-bottom: 0; }
	.form-wrap .CF7_table td { padding: 0 0 18px; }
	.partner-photo { max-width: 220px; margin-inline: auto; }
	.partner-photo figcaption { text-align: center; }
	.pyramid div { height: 72px; }
	.flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.flow li:nth-child(3n)::after { content: none; }
}
@media (max-width: 600px) {
	br.sp { display: inline; }
	.hero, .page-hero { min-height: 430px; }
	.hero-badges { gap: 8px; }
	.hero-badges li { width: calc((100% - 16px) / 3); max-width: 112px; }
	.hb-sub { font-size: 9.5px; }
	.hb-main { font-size: 13.5px; }
	.hb-num { font-size: 26px; }
	.hb-num small { font-size: 10px; }
	.hb-num-s { font-size: 15px; }
	.results { padding-block: 64px 8px; }
	.result-card { width: 220px; padding: 22px 14px 16px; }
	.rc-num { font-size: 25px; }
	.sec { padding-block: 72px; }
	.word-name { height: 190px; }
	.cap-visual { width: 380px; height: 190px; }
	.word-text { left: 136px; top: 70px; }
	.word { font-size: 46px; }
	.word-sub { font-size: 12.5px; white-space: nowrap; }
	.flow { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
	.flow li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
	.flow li::after, .flow li:nth-child(3n)::after { content: ""; top: auto; right: auto; bottom: -19px; left: 50%; transform: translateX(-50%); border-width: 10px 8px 0 8px; border-color: var(--pink) transparent transparent transparent; }
	.flow li:last-child::after { content: none; }
	.phones { --ph-gap: 18px; grid-auto-columns: 189px; }
	.print-ph { height: 260px; padding: 14px; }
	.phones-light { --ph-gap: 14px; grid-auto-columns: 153px; }
	.cards-light .card { padding-left: 76px; }
	.cards-light .card::before { font-size: 92px; left: 12px; }
	.prints { --pr-gap: 16px; }
	.entry-body { padding-block: 48px 72px; }
	.steps li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.form-wrap .wpcf7-submit { width: 100%; }
}
