@charset "utf-8";

/* パッと見せ 紹介ページ用スタイル
   アプリ本体の世界観に合わせる。紙のような温かい生成り色に、手書きの
   ネイビーインク、そして「見せる」ときのハイライト（アンバー）の3色。 */

:root {
	--bg: #f6f1e6;
	--bg-2: #efe7d5;
	--surface: #fffdf8;
	--surface-2: #f1ead9;
	--border: #ddd2ba;

	--ink: #0c3960;
	--ink-deep: #072338;
	--ink-line: rgba(12, 57, 96, .18);

	--amber: #e2a63a;
	--amber-deep: #c07f1c;
	--amber-line: rgba(226, 166, 58, .5);

	--paper-red: #c8452f;

	--text: #2a2318;
	--muted: #7a705d;

	--radius: 16px;
	--gap: 24px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ink);
	text-underline-offset: .2em;
}

a:hover {
	color: var(--amber-deep);
}

.wrap {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px;
}

.wrap-narrow {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ============ スクロール連動の出現 ============ */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ============ ヘッダー ============ */
.site-header {
	position: relative;
	z-index: 3;
	padding: 22px 0;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.studio {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text);
}

.studio img {
	width: 40px;
	border-radius: 11px;
	display: block;
}

.studio span {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .1em;
	white-space: nowrap;
	color: var(--text);
}

/* ============ ヒーロー ============ */
.hero {
	position: relative;
	padding: 56px 0 100px;
	overflow: hidden;
	background:
		radial-gradient(900px 520px at 78% 6%, rgba(226, 166, 58, .16), transparent 62%),
		radial-gradient(760px 520px at 8% 82%, rgba(12, 57, 96, .07), transparent 62%),
		linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
}

.hero .wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.12fr .88fr;
	align-items: center;
	gap: 48px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 6px 18px;
	background: rgba(226, 166, 58, .14);
	border: 1px solid var(--amber-line);
	border-radius: 999px;
	color: var(--amber-deep);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
}

.badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--amber-deep);
	animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(226, 166, 58, .5);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px rgba(226, 166, 58, 0);
	}
}

.hero-title-row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 18px;
}

.hero-app-icon {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 22%;
	box-shadow: 0 8px 20px rgba(30, 20, 0, .2);
}

.hero h1 {
	margin: 0;
	font-size: clamp(32px, 5.4vw, 54px);
	line-height: 1.25;
	letter-spacing: .02em;
	font-weight: 800;
	color: var(--ink-deep);
}

.hero h1 .subtitle {
	display: inline-block;
	margin-left: .3em;
	font-size: .38em;
	font-weight: 700;
	color: var(--muted);
	vertical-align: middle;
}

.hero .tagline {
	margin: 0 0 18px;
	font-size: clamp(18px, 3.2vw, 25px);
	line-height: 1.6;
	font-weight: 700;
	color: var(--ink);
}

.hero .tagline em {
	font-style: normal;
	box-shadow: inset 0 -.5em 0 rgba(226, 166, 58, .4);
}

.hero .desc {
	margin: 0 0 32px;
	color: var(--muted);
	font-size: 15.5px;
}

/* ---- CTA ---- */
.cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.btn-store {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .02em;
	border: 1px solid var(--border);
	transition: transform .25s ease, box-shadow .25s ease;
}

.btn-store.is-soon {
	background: var(--surface);
	color: var(--muted);
	cursor: default;
}

.btn-store.is-live {
	background: linear-gradient(180deg, var(--ink), var(--ink-deep));
	border-width: 2px;
	border-color: var(--amber);
	color: #fdf6e6;
	box-shadow: 0 10px 26px rgba(12, 57, 96, .25);
}

.btn-store.is-live:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(12, 57, 96, .32);
}

.btn-store svg {
	flex: none;
}

.cta-note {
	color: var(--muted);
	font-size: 13px;
	letter-spacing: .02em;
}

/* ============ ヒーロー: 紙とインクのビジュアル ============ */
.hero-visual {
	position: relative;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
}

.paper-card {
	position: relative;
	padding: 30px 26px;
	background:
		repeating-linear-gradient(var(--surface) 0 37px, var(--ink-line) 37px 38px);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow:
		0 2px 0 var(--border),
		0 22px 44px rgba(30, 20, 0, .16);
	transform: rotate(-3deg);
}

.paper-card svg {
	display: block;
	width: 100%;
	height: auto;
}

.paper-card .stroke {
	fill: none;
	stroke: var(--ink);
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 340;
	stroke-dashoffset: 340;
	animation: draw 2.6s ease-out .3s forwards infinite;
}

.paper-card .stroke.s2 {
	stroke: var(--paper-red);
	animation-delay: 1.1s;
}

@keyframes draw {
	0% {
		stroke-dashoffset: 340;
	}

	55%,
	100% {
		stroke-dashoffset: 0;
	}
}

/* 「白黒反転」を表す浮遊バッジ。実際のツールバーの見た目と揃えている */
.float-pill {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 10px;
	background: var(--ink-deep);
	color: #fdf6e6;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	box-shadow: 0 12px 24px rgba(7, 35, 56, .35);
}

.float-pill.pill-invert {
	top: -18px;
	right: -14px;
}

.float-pill.pill-full {
	bottom: -16px;
	left: -18px;
	background: var(--amber-deep);
}

.float-pill .dot {
	width: 20px;
	height: 20px;
	flex: none;
	border-radius: 50%;
	background: linear-gradient(90deg, #fdf6e6 50%, var(--ink-deep) 50%);
	border: 1px solid rgba(255, 255, 255, .4);
}

.float-pill svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* ============ セクション共通 ============ */
.section {
	padding: 96px 0;
}

.section-alt {
	background: var(--surface);
	border-block: 1px solid var(--border);
}

.section-head {
	margin: 0 0 56px;
	text-align: center;
}

.section-head .eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2em;
	color: var(--amber-deep);
}

.section-head h2 {
	margin: 0 0 18px;
	font-size: clamp(24px, 4.6vw, 34px);
	line-height: 1.4;
	letter-spacing: .01em;
	color: var(--ink-deep);
}

.section-head h2::after {
	content: "";
	display: block;
	width: 96px;
	height: 2px;
	margin: 16px auto 0;
	background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.section-head p {
	max-width: 620px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 15px;
}

/* ============ 特徴 ============ */
.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
}

.feature {
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 1px 0 var(--border);
	transition: border-color .3s ease, transform .3s ease;
}

.feature:hover {
	border-color: var(--amber);
	transform: translateY(-3px);
}

/* 実機のスクリーンショット。その機能が実際どう見えるかをそのまま見せる。
   cover だと横長の実機画面(1.6:1)を 4:3 の枠に合わせる際に左右の文字が
   切れてしまうため、contain で全体を欠けさせずに収める */
.feature-shot {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.feature-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 26px 28px;
}

.feature .icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	background: rgba(12, 57, 96, .08);
	border: 1px solid rgba(12, 57, 96, .16);
	border-radius: 12px;
	color: var(--ink);
}

.feature h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--ink-deep);
}

.feature p {
	margin: 0;
	color: var(--muted);
	font-size: 14.5px;
}

/* 先頭の3枚（書く→見せる→白黒反転、という導入の核となる機能）を横長にして目立たせる */
@media (min-width: 861px) {

	.feature:nth-child(-n+3) {
		display: flex;
		align-items: stretch;
		grid-column: span 3;
	}

	.feature:nth-child(-n+3) .feature-shot {
		width: 44%;
		/* img は置換要素なので min-width が既定で intrinsic サイズ(1400px)に
		   なり、44% まで縮まずテキスト側を潰してしまう。0 にして縮められるようにする */
		min-width: 0;
		flex: none;
		/* aspect-ratio は基本ルールの 4/3 のままにする。auto にすると画像の
		   実寸比率（1.6等）になり、カードの高さがテキスト量とずれてしまう */
		border-bottom: none;
		border-right: 1px solid var(--border);
	}

	.feature:nth-child(-n+3) .feature-body {
		flex: 1;
		min-width: 0;
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
		padding: 30px 32px;
	}

	.feature:nth-child(-n+3) .icon {
		width: 52px;
		height: 52px;
	}

	.feature:nth-child(-n+3) h3 {
		font-size: 21px;
	}
}

/* ============ 料金・権限の説明 ============ */
.iap {
	padding: 34px 38px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--amber);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.iap h3 {
	margin: 0 0 14px;
	font-size: 18px;
	color: var(--ink-deep);
}

.iap p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 14.5px;
}

.iap p:last-child {
	margin-bottom: 0;
}

.iap strong {
	color: var(--text);
}

/* ============ 最終CTA ============ */
.closing {
	padding: 100px 0;
	text-align: center;
	background:
		radial-gradient(700px 300px at 50% 0%, rgba(226, 166, 58, .14), transparent 70%),
		linear-gradient(180deg, var(--bg), var(--bg-2));
}

.closing h2 {
	margin: 0 0 16px;
	font-size: clamp(24px, 5vw, 36px);
	line-height: 1.4;
	color: var(--ink-deep);
}

.closing p {
	margin: 0 0 32px;
	color: var(--muted);
	font-size: 15px;
}

.closing .cta-row {
	justify-content: center;
}

/* ============ フッター ============ */
.site-footer {
	padding: 30px 0;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.site-footer .f_nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.site-footer .copy {
	margin: 0;
	letter-spacing: .1em;
}

/* ============ レスポンシブ ============ */
@media (max-width: 860px) {
	.hero {
		padding-bottom: 76px;
	}

	.hero .wrap {
		grid-template-columns: 1fr;
		gap: 56px;
		text-align: center;
	}

	.hero-title-row {
		justify-content: center;
	}

	.hero-visual {
		order: -1;
	}

	.cta-row {
		justify-content: center;
	}

	.section {
		padding: 72px 0;
	}

	.features {
		grid-template-columns: 1fr;
	}

	.iap {
		padding: 26px 24px;
	}
}

@media (max-width: 560px) {
	.section-head {
		margin-bottom: 42px;
	}
}

/* 動きを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	.badge::before,
	.paper-card .stroke {
		animation: none;
	}

	.paper-card .stroke {
		stroke-dashoffset: 0;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.feature:hover,
	.btn-store.is-live:hover {
		transform: none;
	}
}
