/* 譜読みはじめよう（/fuyomi/）の LP と規約ページ。配色はアプリのアイコンから取っている
   （ミントの音符・濃い緑の輪郭・黄色の光・クリームの地・頬のコーラル）。 */
:root {
	--ink: #0f2e2b;
	--ink-soft: #4f625d;
	--green: #177560;
	--green-dark: #0f5a49;
	--mint: #b9edcf;
	--mint-soft: #ddf4e6;
	--mint-deep: #71cfab;
	--yellow: #fcd06b;
	--cream: #fcf6e4;
	--paper: #fffdf6;
	--coral: #f9a587;
	--line: #e5e1d4;
	--radius: 28px;
	--shadow: 0 10px 30px rgba(15, 46, 43, 0.08);
	--font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.fy {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 500;
	line-height: 1.85;
	-webkit-text-size-adjust: 100%;
	/* 日本語を文節で折り返す（対応ブラウザのみ） */
	word-break: auto-phrase;
	line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
.fy-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.fy-sp { display: none; }

/* ヘッダー */
.fy-header {
	position: sticky; top: 0; z-index: 10;
	background: rgba(252, 246, 228, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(15, 46, 43, 0.06);
}
.fy-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.fy-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 18px; }
.fy-brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(15, 46, 43, 0.08); }
.fy-nav { display: flex; gap: 22px; margin-left: auto; }
.fy-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.fy-nav a:hover { color: var(--green); }

/* ボタン */
.fy-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 56px; padding: 0 32px;
	border-radius: 999px; border: 3px solid var(--ink);
	background: var(--green); color: #fff;
	font-weight: 900; font-size: 17px; text-decoration: none;
	box-shadow: 0 5px 0 var(--ink);
	transition: transform 0.15s, box-shadow 0.15s;
}
.fy-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.fy-btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.fy-btn--small:hover { box-shadow: 0 1px 0 var(--ink); }
.fy-btn--soon { background: var(--paper); color: var(--ink); cursor: default; }
.fy-btn--soon:hover { transform: none; box-shadow: 0 5px 0 var(--ink); }

/* ヒーロー */
.fy-hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.fy-hero::before {
	content: ""; position: absolute; inset: auto -10% -45% auto;
	width: 70vw; max-width: 820px; aspect-ratio: 1;
	background: radial-gradient(circle, var(--mint) 0%, rgba(185, 237, 207, 0) 68%);
	z-index: -1;
}
.fy-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.fy-eyebrow {
	display: inline-block; margin: 0 0 18px; padding: 6px 16px;
	border-radius: 999px; background: var(--mint-soft); color: var(--green-dark);
	font-weight: 700; font-size: 14px;
}
.fy-hero__title { margin: 0; font-weight: 900; font-size: clamp(34px, 5vw, 58px); line-height: 1.32; letter-spacing: 0.02em; }
.fy-hero__lead { margin: 22px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 30em; }
.fy-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fy-cta__note { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.fy-hero__visual { position: relative; }
.fy-hero__logo { width: min(100%, 520px); margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(15, 46, 43, 0.12)); animation: fy-float 5s ease-in-out infinite; }
@keyframes fy-float { 50% { transform: translateY(-10px); } }

/* 見出し */
.fy-h2 { margin: 0 0 40px; text-align: center; font-weight: 900; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.45; }
.fy-h2--left { text-align: left; margin-bottom: 20px; }

/* 悩み */
.fy-worries { padding: 72px 0; background: var(--paper); border-block: 3px solid var(--ink); }
.fy-worries__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fy-worries__list li {
	position: relative; padding: 26px 22px; border-radius: var(--radius);
	background: var(--cream); border: 2px solid var(--ink);
	font-weight: 700; text-align: center; line-height: 1.7;
}
.fy-worries__list li::after {
	content: ""; position: absolute; left: 50%; bottom: -12px; width: 20px; height: 20px;
	background: var(--cream); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
	transform: translateX(-50%) rotate(45deg);
}
.fy-worries__answer { margin: 44px 0 0; text-align: center; font-weight: 900; font-size: 22px; color: var(--green-dark); }

/* できること */
.fy-features { padding: 96px 0 40px; }
.fy-feature { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 64px; margin: 0 auto 88px; max-width: 920px; }
.fy-feature--rev { grid-template-columns: 1fr 300px; }
.fy-feature--rev .fy-phone { order: 2; }
.fy-phone {
	border: 4px solid var(--ink); border-radius: 44px; overflow: hidden; background: #fff;
	box-shadow: 14px 14px 0 var(--mint);
}
.fy-feature--rev .fy-phone { box-shadow: -14px 14px 0 var(--yellow); }
.fy-feature__num { margin: 0; font-weight: 900; font-size: 15px; color: var(--green); letter-spacing: 0.1em; }
.fy-feature h3 { margin: 4px 0 16px; font-weight: 900; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.5; }
.fy-feature p { margin: 0 0 12px; color: var(--ink-soft); font-size: 16px; }

/* 練習の流れ */
.fy-flow { padding: 80px 0; background: var(--mint); border-block: 3px solid var(--ink); }
.fy-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fy-steps li { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 30px 24px 24px; position: relative; }
.fy-steps__n {
	position: absolute; top: -20px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink);
	font-weight: 900; font-size: 20px;
}
.fy-steps h3 { margin: 6px 0 8px; font-weight: 900; font-size: 20px; }
.fy-steps p { margin: 0; color: var(--ink-soft); }

/* 安心 */
.fy-safe { padding: 88px 0; }
.fy-safe__inner { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; max-width: 880px; }
.fy-safe__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fy-safe__list li { position: relative; padding-left: 34px; }
.fy-safe__list li::before {
	content: ""; position: absolute; left: 0; top: 0.35em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.fy-safe__link { margin: 18px 0 0; font-weight: 700; }

/* よくある質問 */
.fy-faq { padding: 80px 0; background: var(--paper); border-top: 3px solid var(--ink); }
.fy-faq .fy-wrap { max-width: 820px; }
.fy-faq details { border: 2px solid var(--ink); border-radius: 20px; background: var(--cream); margin-bottom: 14px; }
.fy-faq summary {
	cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 900; position: relative;
}
.fy-faq summary::-webkit-details-marker { display: none; }
.fy-faq summary::after {
	content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
	font-size: 26px; color: var(--green); line-height: 1;
}
.fy-faq details[open] summary::after { content: "−"; }
.fy-faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

/* 最後の CTA */
.fy-start { padding: 88px 0; background: var(--green); color: #fff; border-top: 3px solid var(--ink); }
.fy-start__inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fy-start img { border-radius: 26px; border: 3px solid var(--ink); margin-bottom: 18px; }
.fy-start .fy-h2 { margin-bottom: 26px; }
.fy-start .fy-btn { background: var(--yellow); color: var(--ink); }

/* フッター */
.fy-footer { padding: 32px 0 40px; background: var(--ink); color: #cfe3dc; font-size: 14px; }
.fy-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fy-footer a { color: #fff; }
.fy-footer__copy { margin: 16px 0 0; }

/* 規約・ポリシーのページ */
.fy-doc { padding: 48px 0 80px; }
.fy-doc__card {
	max-width: 820px; margin-inline: auto; padding: clamp(24px, 5vw, 56px);
	background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
}
.fy-doc h1 { margin: 0 0 8px; font-weight: 900; font-size: clamp(26px, 4vw, 34px); line-height: 1.4; }
.fy-doc h2 { margin: 36px 0 10px; font-weight: 900; font-size: 20px; padding-left: 14px; border-left: 6px solid var(--mint-deep); line-height: 1.5; }
.fy-doc p, .fy-doc li { color: var(--ink); font-size: 16px; }
.fy-doc ul, .fy-doc ol { padding-left: 1.4em; }
.fy-doc .entry-meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.fy-doc__back { max-width: 820px; margin: 24px auto 0; font-weight: 700; }

@media (max-width: 860px) {
	.fy-nav { display: none; }
	.fy-header__inner { justify-content: space-between; }
	.fy-hero { padding: 32px 0 56px; }
	.fy-hero__inner { grid-template-columns: 1fr; gap: 12px; }
	.fy-hero__visual { order: -1; max-width: 230px; margin-inline: auto; }
	.fy-sp { display: inline; }
	.fy-worries__list, .fy-steps { grid-template-columns: 1fr; gap: 28px; }
	.fy-feature, .fy-feature--rev { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
	.fy-feature--rev .fy-phone { order: 0; }
	.fy-phone { width: min(260px, 72%); margin-inline: auto; }
	.fy-safe__inner { grid-template-columns: 1fr; gap: 16px; }
	.fy-safe__inner > img { width: 160px; margin-inline: auto; }
	.fy-h2--left { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.fy-hero__logo { animation: none; }
	html { scroll-behavior: auto; }
}
