/* ==========================================================================
   Design tokens（Figma「Day360 サービスサイト / Design｜TOP・下層」の Variables より）
   ========================================================================== */
:root {
	--accent-rose: #9e5c63;
	--accent-deep: #6e3b42;
	--text-primary: #2f2a26;
	--text-secondary: #5e564e;
	--text-tertiary: #786f65;
	--text-accent: #9e5c63;
	--text-on-accent: #fcfaf6;
	--bg-base: #fcfaf6;
	--bg-white: #fff;
	--bg-beige: #f7f1e9;
	--bg-rose: #f3e4e2;
	--bg-sand: #efe3d8;
	--bg-badge: #ede5da;
	--line-base: #e3dace;
	--line-strong: #c9bfb2;
	--line-rose: #c6a3a2;

	--font-sans: "Noto Sans JP", sans-serif;
	--font-serif: "Shippori Mincho", serif;

	--header-height: 80px;
	/* コンテンツ幅：TOP は 1120px（左右 160px）、下層は 880px（左右 280px） */
	--width-wide: 1120px;
	--width-narrow: 880px;
	--gutter: 40px;
}

@media (max-width: 767px) {
	:root {
		--header-height: 64px;
		--gutter: 20px;
	}

	/* 幅 600px 以下では管理バーがページと一緒にスクロールするため、ヘッダーは最上部に固定する */
	html:root {
		--wp-admin--admin-bar--height: 0px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
}

html:root {
	scroll-padding-top: calc(var(--header-height) + var(--wp-admin--admin-bar--height, 0px));
}

body {
	margin: 0;
	color: var(--text-primary);
	background: var(--bg-base);
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.8;
	letter-spacing: 0.04em;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.sp-only {
	display: none;
}

@media (max-width: 767px) {
	.pc-only {
		display: none;
	}

	.sp-only {
		display: inline;
	}
}

/* iPhone は文字が 16px 未満の入力欄を選ぶと画面を拡大するため、スマホでは入力欄の文字を 16px にする */
@media (max-width: 767px) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea {
		font-size: 16px !important;
	}
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	padding: 0 48px;
	background: rgba(252, 250, 246, 0.94);
	backdrop-filter: blur(6px);
}

.site-header__logo {
	display: block;
	flex-shrink: 0;
}

.site-header__logo img {
	display: block;
	width: 92px;
	height: 32px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 36px;
}

.global-nav__list {
	display: flex;
	gap: 36px;
}

.global-nav__list a,
.site-header__mypage {
	color: var(--text-secondary);
	font-size: 13px;
	line-height: normal;
	letter-spacing: 0.08em;
	white-space: nowrap;
	transition: color 0.2s;
}

.global-nav__list a:hover,
.site-header__mypage:hover {
	color: var(--accent-rose);
}

.site-header__divider {
	width: 1px;
	height: 16px;
	background: #d9d1c7;
}

.site-header__buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	color: var(--text-on-accent);
	background: var(--accent-rose);
	font-size: 13px;
	line-height: normal;
	letter-spacing: 0.12em;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.site-header__buy:hover {
	background: var(--accent-deep);
}

.site-header__toggle {
	display: none;
}

.drawer[hidden] {
	display: none;
}

/*
 * SP メニューを開いているあいだは、後ろのページをスクロールさせない（assets/js/main.js が付け外し）。
 * iPhone の Safari は html・body の overflow: hidden だとスクロールやヘッダーの表示が乱れるため、
 * ページ（body）をその位置のまま固定し、ヘッダーも画面の上に固定する。閉じたら元の位置へ戻す
 */
html.is-drawer-open body {
	position: fixed;
	top: var(--drawer-lock-top, 0);
	right: 0;
	left: 0;
	padding-top: var(--header-height);
}

html.is-drawer-open .site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
}

/* 1280px 未満ではナビを省き、メニューボタンから開く */
@media (max-width: 1279px) {
	.global-nav,
	.site-header__divider {
		display: none;
	}

	.site-header__actions {
		gap: 24px;
	}

	.site-header__toggle {
		position: relative;
		display: block;
		width: 24px;
		height: 24px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	/* ☰（Figma では 15px のテキスト）を線 3 本で描く */
	.site-header__toggle-bar,
	.site-header__toggle-bar::before,
	.site-header__toggle-bar::after {
		position: absolute;
		left: 5px;
		width: 14px;
		height: 1.5px;
		background: var(--text-secondary);
		transition: transform 0.2s, opacity 0.2s;
	}

	.site-header__toggle-bar {
		top: 11px;
	}

	.site-header__toggle-bar::before,
	.site-header__toggle-bar::after {
		content: "";
		left: 0;
	}

	.site-header__toggle-bar::before {
		top: -5px;
	}

	.site-header__toggle-bar::after {
		top: 5px;
	}

	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar {
		background: transparent;
	}

	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::before {
		transform: translateY(5px) rotate(45deg);
	}

	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::after {
		transform: translateY(-5px) rotate(-45deg);
	}

	.drawer {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-height));
		max-height: calc(100dvh - var(--header-height)); /* スマホのアドレスバーの分を除いた高さ */
		overflow-y: auto;
		overscroll-behavior: contain; /* メニューの端までスクロールしても後ろのページに伝えない */
		padding: 8px 28px 40px;
		background: var(--bg-base);
		border-top: 1px solid var(--line-base);
		box-shadow: 0 12px 24px rgba(47, 42, 38, 0.06);
	}

	.drawer__list li {
		border-bottom: 1px solid var(--line-base);
	}

	.drawer__list a {
		display: block;
		padding: 16px 0;
		font-size: 14px;
	}

	.drawer__actions {
		display: grid;
		gap: 12px;
		margin-top: 28px;
	}
}

@media (max-width: 767px) {
	.site-header {
		padding: 0 28px;
	}

	/* 線の右端を、ロゴや本文と同じ右から 28px の位置にそろえる（ボタンの余白 5px 分ずらす） */
	.site-header__toggle {
		margin-right: -5px;
	}

	.site-header__logo img {
		width: 75px;
		height: 26px;
	}

	.site-header__actions {
		gap: 16px;
	}

	.site-header__mypage {
		font-size: 12px;
	}

	.site-header__buy {
		padding: 8px 16px;
		font-size: 12px;
	}
}

/* 先行公開用のヘッダー（ロゴ＋発売予告。inc/prelaunch.php）。高さ・余白は共通ヘッダーと同じ */
.site-header__notice {
	padding: 10px 22px;
	border: 1px solid var(--line-rose);
	border-radius: 4px;
	color: var(--text-primary);
	background: var(--bg-rose);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: center;
	white-space: nowrap;
}

/* 発売日をいちばん目立たせる（明朝・ローズ） */
.site-header__notice-date {
	color: var(--accent-rose);
	font-family: var(--font-serif);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

@media (max-width: 767px) {
	.site-header__notice {
		padding: 5px 12px 6px;
		font-size: 12px;
		line-height: 1.3;
		letter-spacing: 0.06em;
	}

	.site-header__notice-date {
		font-size: 16px;
	}
}

/* 幅の狭いスマートフォン（iPhone SE など）でもロゴとぶつからないよう、少し詰める */
@media (max-width: 374px) {
	.site-header--prelaunch {
		gap: 10px;
		padding: 0 16px;
	}

	.site-header__notice {
		padding: 5px 8px 6px;
		font-size: 11px;
		letter-spacing: 0.04em;
	}

	.site-header__notice-date {
		font-size: 15px;
	}
}

/* 購入画面の簡易ヘッダー（ロゴ＋「セキュア決済」）。ロゴの大きさは共通ヘッダーと同じ */
.site-header--simple {
	height: 64px;
	padding: 0 28px;
	border-bottom: 1px solid var(--line-base);
}

.site-header__secure {
	color: var(--text-secondary);
	font-size: 13px;
	letter-spacing: 0.04em;
}

@media (max-width: 767px) {
	.site-header__secure {
		font-size: 12px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 72px 160px 56px;
	border-top: 1px solid var(--line-base);
}

.site-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.site-footer__logo img {
	display: block;
	width: 160px;
	height: 70px;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 40px;
}

.footer-nav__list a {
	display: block;
	padding: 16px 0;
	font-size: 12px;
	line-height: 1.7;
	letter-spacing: 0.04em;
	transition: color 0.2s;
}

.footer-nav__list a:hover {
	color: var(--accent-rose);
}

.site-footer__copy {
	color: var(--text-tertiary);
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
	.site-footer {
		padding: 56px 28px;
	}

	.site-footer__top {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.site-footer__logo {
		align-self: flex-start;
	}

	.footer-nav__list {
		flex-direction: column;
	}

	.footer-nav__list li {
		border-top: 1px solid var(--line-base);
	}

	.footer-nav__list li:last-child {
		border-bottom: 1px solid var(--line-base);
	}
}

/* ==========================================================================
   Button（Figma「btn｜ボタン」：Primary / Secondary / Inverse / Outline、PC 56px・SP 52px）
   ========================================================================== */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 320px;
	max-width: 100%;
	height: 56px;
	padding: 0 48px;
	border: 1px solid transparent;
	font-size: 15px;
	line-height: normal;
	letter-spacing: 0.12em;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn__arrow {
	position: absolute;
	top: 50%;
	right: 24px;
	width: 19px;
	height: 9px;
	margin-top: -4.5px;
	background: currentColor;
	-webkit-mask: url("../images/arrow-primary.svg") no-repeat center / contain;
	mask: url("../images/arrow-primary.svg") no-repeat center / contain;
	transition: transform 0.2s;
}

.btn:hover .btn__arrow {
	transform: translateX(4px);
}

.btn--primary {
	color: var(--text-on-accent);
	background: var(--accent-rose);
}

.btn--primary:hover {
	background: var(--accent-deep);
}

.btn--secondary {
	color: var(--text-primary);
	background: var(--bg-white);
	border-color: var(--line-strong);
}

.btn--secondary:hover {
	border-color: var(--text-primary);
}

.btn--inverse {
	color: var(--accent-deep);
	background: var(--bg-base);
}

.btn--inverse:hover {
	background: var(--bg-white);
}

.btn--outline {
	color: var(--text-on-accent);
	border-color: var(--text-on-accent);
}

.btn--outline:hover {
	background: rgba(252, 250, 246, 0.1);
}

.btn--block {
	width: 100%;
}

.btn[aria-disabled="true"],
.btn:disabled {
	opacity: 0.4;
	pointer-events: none;
}

@media (max-width: 767px) {
	.btn {
		width: 334px;
		height: 52px;
		font-size: 14px;
	}

	/* 矢印は PC のみ */
	.btn__arrow {
		display: none;
	}
}

/* ==========================================================================
   下層ページ共通（Figma「Design｜下層PC / SP」）
   ========================================================================== */

/* パンくず */
.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.8;
	letter-spacing: 0.04em;
}

.breadcrumb li + li::before {
	content: "＞";
	margin: 0 0.25em;
}

.breadcrumb a:hover {
	color: var(--accent-rose);
}

/* パンくずだけの帯（ヒーローのあるページ） */
.breadcrumb-bar {
	padding: 40px max(var(--gutter), calc((100% - var(--width-narrow)) / 2));
	background: var(--bg-base);
}

/* 見出し帯（パンくず＋H1＋リード） */
.page-head {
	padding: 48px max(var(--gutter), calc((100% - var(--width-narrow)) / 2));
	background: var(--bg-base);
}

.page-head__inner {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.page-head__breadcrumb ol {
	line-height: normal;
}

.page-head__title {
	padding-bottom: 16px;
	font-family: var(--font-serif);
	font-size: 38px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.06em;
}

.page-head__lead {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.8;
}

@media (max-width: 767px) {
	.breadcrumb ol {
		font-size: 12px;
	}

	.breadcrumb-bar {
		padding: 20px;
	}

	.page-head {
		padding: 24px 20px;
	}

	.page-head__inner {
		gap: 10px;
	}

	.page-head__title {
		padding-bottom: 0;
		font-size: 27px;
	}

	.page-head__lead {
		font-size: 16px;
	}
}

/* セクション（左右 280px・上下 60px。背景は base / beige を交互に） */
.l-section {
	padding: 96px max(var(--gutter), calc((100% - var(--width-narrow)) / 2));
	background: var(--bg-base);
}

.l-section--beige {
	background: var(--bg-beige);
}

.l-section--white {
	background: var(--bg-white);
}

.l-section > * + * {
	margin-top: 15px;
}

.l-title {
	padding-bottom: 16px;
	font-family: var(--font-serif);
	font-size: 29px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.06em;
}

.l-text {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.8;
}

/* 白いカード（タイトル＋本文） */
.l-card {
	padding: 16px;
	background: var(--bg-white);
	border: 1px solid var(--line-base);
}

.l-card--rose {
	background: var(--bg-rose);
	border: 2px solid var(--line-rose);
}

.l-card__title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
}

.l-card__text {
	margin-top: 6px;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.8;
}

/* 注記（※） */
.l-note {
	color: var(--text-tertiary);
	font-size: 12px;
	line-height: 1.8;
}

@media (max-width: 767px) {
	.l-section {
		padding: 48px 20px;
	}

	.l-section > * + * {
		margin-top: 10px;
	}

	.l-title {
		padding-bottom: 0;
		font-size: 21px;
	}

	.l-text {
		font-size: 15px;
	}

	.l-card__title {
		font-size: 15px;
	}

	.l-card__text {
		font-size: 13px;
	}

	.l-note {
		font-size: 12px;
	}
}

/* 管理画面で入力した本文（コラム・規約など）の基本スタイル */
.entry-content > * + * {
	margin-top: 1.4em;
}

.entry-content h2 {
	margin-top: 2.4em;
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.6;
}

.entry-content h3 {
	margin-top: 2em;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
}

.entry-content p,
.entry-content li {
	color: var(--text-secondary);
	line-height: 1.9;
}

.entry-content ul {
	padding-left: 1.4em;
	list-style: disc;
}

.entry-content ol {
	padding-left: 1.4em;
	list-style: decimal;
}

.entry-content a {
	color: var(--accent-rose);
	text-decoration: underline;
}

@media (max-width: 767px) {
	.entry-content h2 {
		font-size: 21px;
	}

	.entry-content h3 {
		font-size: 17px;
	}

	.entry-content p,
	.entry-content li {
		font-size: 15px;
	}
}

/* SP では文字を 1px 大きくする（PC の大きさのまま SP にも効いていたもの。SP 用の指定は各所で +1px 済み） */
@media (max-width: 767px) {
	body {
		font-size: 16px;
	}

	.global-nav__list a {
		font-size: 14px;
	}

	.drawer__list a {
		font-size: 15px;
	}

	.footer-nav__list a {
		font-size: 13px;
	}

	.site-footer__copy {
		font-size: 12px;
	}
}
