/* 共通 */
:root {
	--font-family: 'Noto Serif JP', serif;
	--sans: 'Noto Sans JP', sans-serif;
	--ink: #2d2117;
	--gold: #c7953c;
	--paper: #fbf8f1;
	--page-gutter: clamp(16px, 10vw, 200px);
	--content-padding: max(var(--page-gutter), calc((100% - 1440px) / 2));
	--section-space: clamp(40px, 6vw, 80px);
}

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

html {
	scroll-behavior: smooth;
}

.one-year-modal__content {
	margin: 0;
	font-family: var(--font-family);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.8;
	overflow-wrap: anywhere;
}

button {
	font-family: inherit;
	cursor: pointer;
}

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

h2,
h3,
p {
	margin: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: var(--ink);
	text-decoration: none;
}

.section,
.section-lpsection,
.section-postersection,
.gallery,
.gallery2,
.section-flow {
	padding: var(--section-space) var(--content-padding);
}

.section,
.section-flow,
.titele-section {
	text-align: center;
}

.section h2,
.section-lpsection h2,
.section-postersection h2,
.section-flow h2 {
	font-size: clamp(25px, 4vw, 60px);
	font-weight: 400;
}

.titele-section {
	margin-bottom: clamp(32px, 6vw, 100px);
}

.titele-section h2 {
	font-size: clamp(22px, 4vw, 48px);
}

.titele {
	color: var(--gold);
	font-size: clamp(18px, calc(14.9px + 0.829vw), 24px);
	font-style: italic;
	letter-spacing: .06em;
}




/* ------------------------------------------------------------ */
/* ------------------------------------------------------------ */
/* ------------------------------------------------------------ */
/* ------------------------------------------------------------ */


/* ページトップ・固定タブ */
#page-top {
	position: fixed;
	right: 8px;
	bottom: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	width: 44px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}

/* コンセプト */
.campaign-section {
	padding: clamp(40px, 6.4vw, 140px) 24px;
	background: #f5edd8;
}

.campaign-title {
	text-align: center;
	letter-spacing: -0.08em;
}

.campaign-title p {
	margin-bottom: 6px;
	font-size: clamp(14px, calc(11.93px + 0.92vw), 18px);
	font-style: italic;
	letter-spacing: .06em;
}

.campaign-title h2 {
	font-size: clamp(2.4rem, 1.3655rem + 2.7586vw, 4.4rem);
	font-weight: 400;
	line-height: 1.6;
}

.campaign-divider {
	width: 1px;
	height: clamp(30px, 5vw, 72px);
	margin: clamp(16px, 2.5vw, 36px) auto;
	background: rgb(45 33 23 / 50%);
}

.campaign-copy {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, calc(3vw + 20px), 60px);
	width: 90%;
	max-width: 1000px;
	margin: 0 auto;
	align-items: start;
}

.campaign-lead {
	width: fit-content;
	margin-left: auto;
	font-size: clamp(18px, calc(3.2px + 3.2vw), 28px);
	line-height: 1.9;
	letter-spacing: -0.04em;
	transform: translateY(-7px);
}

.campaign-description {
	padding-top: .4em;
	font-family: sans-serif;
	font-size: clamp(14px, calc(13.03px + 0.27vw), 16px);
	line-height: 1.6;
}

.campaign-description p+p {
	margin-top: 1.4em;
}

#page-top.visible {
	opacity: .7;
	pointer-events: auto;
}

#page-top:hover {
	opacity: 1;
}

#page-top .arrow {
	position: relative;
	flex-shrink: 0;
	width: 2px;
	height: 120px;
	margin-right: 15px;
	background: #000;
}

#page-top .arrow::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 50%;
	width: 20px;
	height: 20px;
	border-left: 2px solid #000;
	transform: translateX(-50%) rotate(45deg);
}

#page-top .page-text {
	position: absolute;
	top: 0;
	left: 26px;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 5px;
	color: #000;
	white-space: nowrap;
	writing-mode: vertical-rl;
}

.floating-set-switch {
	position: absolute;
	left: 50%;
	bottom: 20px;
	z-index: 10001;
	display: flex;
	width: min(440px, calc(100% - 50px));
	padding: 6px;
	gap: 6px;
	border: 1.5px solid var(--gold);
	border-radius: 999px;
	background: var(--paper);
	box-shadow: 0 4px 20px rgb(45 33 23 / 16%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.floating-set-switch.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.floating-set-switch button {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 10px 6px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: clamp(12px, 3.2vw, 18px);
}

.floating-set-switch button[aria-pressed='true'] {
	background: var(--gold);
	color: #fff;
}

.floating-set-switch button:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.one-year-modal__stage {
	position: relative;
}




/* 追加した対象条件・注記のみ。既存カードのスタイルは変更しない */
.gift-section .gift-value {
	max-width: fit-content;
	margin: 0 auto;
	padding-left: clamp(100px, 24vw, 360px);
	font: 12px/1.6 var(--sans);
	text-align: right;
}

.gift-condition {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	padding-left: 16px;
	border-left: 1px solid #d6b97f;
	font: 14px/1.6 var(--sans);
	text-align: left;
}

.gift-condition-label {
	color: var(--gold);
	font-size: 12px;
}

.gift-notes {
	margin-top: 14px;
	font: 12px/1.7 var(--sans);
	text-align: left;
}

.gift-note-detail {
	padding-left: 1em;
}

/* ギフト概要 */
/* ギフト概要 */
/* ギフト概要 */
/* ギフト概要 */
/* ギフト概要 */
.cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: clamp(16px, 2vw, 24px);
	margin-top: clamp(24px, 4vw, 50px);
	text-align: left;
}

.cards>b {
	align-self: center;
	text-align: center;
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 700;
}

.cards article {
	display: grid;
	align-content: start;
	gap: 20px;
	min-width: 0;
	min-height: 190px;
	padding: clamp(16px, 2vw, 22px);
	border: 2px solid #d6b97f;
	border-radius: 12px;
}

.cards h3 {
	font-size: clamp(20px, 2vw, 25px);
}

.cards p {
	font: 500 17px/1.5 var(--sans);
}

.cards .card-note {
	font-size: 14px;
}

.card-summary {
	padding-bottom: 8px;
	border-bottom: 1px solid #999;
}

.card-checklist>li {
	position: relative;
	padding-left: 28px;
	font: 400 15px/1.8 var(--sans);
}

.card-checklist>li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .9em;
	width: 20px;
	height: 18px;
	transform: translateY(-50%);
	background: url('../images/one-year-free/check-n.png') center / contain no-repeat;
}

/* タブと各サービスの紹介 */
/* タブと各サービスの紹介 */
/* タブと各サービスの紹介 */
/* タブと各サービスの紹介 */
.tabs {
	display: flex;
	padding: 40px var(--content-padding) 0;
}

.tab {
	width: 100%;
	min-width: 0;
	padding: clamp(12px, 2vw, 20px);
	border: 0;
	border-bottom: 2px solid #b8904a;
	border-radius: 12px 12px 0 0;
	background: none;
	color: var(--ink);
	font-size: clamp(16px, 2vw, 25px);
}

.tab:hover,
.tab.is-active {
	background: #b8904a;
	color: #fff;
}

.tab.is-active {
	border: 2px solid var(--gold);
	border-bottom-color: var(--paper);
}

.tab:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 4px;
}

.tab-panel[hidden] {
	display: none;
}

.tab-panel.is-active {
	animation: set-fade-in .45s ease-out;
}

.lp-detail,
.poster-detail {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: clamp(24px, 4vw, 80px);
}

.lp-detail>*,
.poster-detail>* {
	min-width: 0;
}

.lp-detail img {
	width: 48%;
	border-radius: 18px;
}

.poster-detail img {
	width: 60%;
	border-radius: 18px;
}

.lp-textsec h2,
.poster-textsec h2 {
	font-size: clamp(22px, 2.8vw, 32px);
	text-align: left;
}

.lp-textsec h2 {
	margin-bottom: clamp(20px, 3vw, 40px);
}

.lp-about {
	margin-top: clamp(28px, 4vw, 48px);
}

/* 特徴カード */
/* 特徴カード */
/* 特徴カード */
/* 特徴カード */
/* 特徴カード */
/* 特徴カード */
/* 特徴カード */
.poster-reference>.feature-section-title {
	margin-top: 10%;
	font-size: 30px;
	font-weight: 400;
	text-align: center;
}
.poster-feature-rows {
	display: flex;
	gap: 24px;
	margin-top: 2%;
	padding-bottom: 16px;
}
.section-lpsection .poster-feature-rows {
	--slide-width: 39%;
	position: relative;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.section-lpsection .poster-feature-rows::-webkit-scrollbar {
	display: none;
}
.section-lpsection .poster-feature-rows::after {
	content: '';
	flex: 0 0 calc(100% - var(--slide-width) - 24px);
}
.section-postersection>.poster-feature-rows {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.poster-feature-row {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
	padding: 24px;
	border-radius: 14px;
	background: #fff;
	scroll-snap-align: start;
}
.section-lpsection .poster-feature-row {
	flex: 0 0 var(--slide-width);
}
.poster-feature-placeholder {
	order: -1;
	flex: none;
	aspect-ratio: 105 / 62;
	object-fit: cover;
	object-position: center 10%;
	border-radius: 10px;
	background: #d3d3d3;
}
.poster-feature-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
.poster-feature-copy h2 {
	font-family: var(--sans);
	font-size: clamp(20px, 1.7vw, 23px);
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	letter-spacing: .05em;
}
.poster-feature-copy p {
	margin-top: auto;
	font: 400 15px/1.4 var(--sans);
	text-align: left;
}
.poster-feature-copy .note {
	font-family: var(--sans);
	font-size: clamp(13px, calc(12.48px + 0.138vw), 14px);
}
/* デザイン見本 共通のカルーセル操作 */
/* デザイン見本 共通のカルーセル操作 */
/* デザイン見本 共通のカルーセル操作 */
/* デザイン見本 共通のカルーセル操作 */
/* デザイン見本 共通のカルーセル操作 */
/* デザイン見本 共通のカルーセル操作 */
/* デザイン見本 共通のカルーセル操作 */
.gallery,
.gallery2 {
	background: #f5edd8;
}

.gallery h3,
.gallery2 h3 {
	margin-bottom: 50px;
	font-size: clamp(20px, 2.2vw, 30px);
}
.gallery p,
.gallery2 p {
	line-height: 1.7;
}
.subheading {
	font-weight: 400;
	text-align: left;
}

.posterimg {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 60px;
}

.lpimg {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: clamp(60px, 6vw, 90px);
	position: relative;
	min-width: 0;
}

.sample {
	display: grid;
	align-content: start;
	gap: 20px;
}

.sample,
.sample2 {
	min-width: 0;
}

.name h3 {
	margin-top: 3%;
	font-size: 25px;
}

.button {
	display: inline-block;
	position: relative;
	width: fit-content;
	max-width: 100%;
	font-size: 14px;
	transition: color .3s ease;
}

.button:hover {
	color: var(--gold);
}

.button::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .25s ease-out;
}

.button:hover::after,
.button:focus-visible::after {
	transform: scaleX(1);
}

.feature-carousel-nav,
.gallery-controls {
	--dot-color: #d6b97f;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.gallery-controls {
	display: none;
}

.feature-carousel-dots,
.gallery-dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.feature-carousel-arrow,
.gallery-arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
}

.feature-carousel-arrow svg,
.gallery-arrow svg {
	width: 46px;
	height: 12px;
}

.feature-carousel-arrow:disabled,
.gallery-arrow:disabled {
	opacity: .3;
	cursor: default;
}

.feature-carousel-dot,
.gallery-controls .dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--dot-color);
	transition: width .2s ease, background-color .2s ease;
}

.feature-carousel-dot[aria-current='true'],
.gallery-controls .dot.is-active {
	width: 18px;
	background: var(--ink);
}

/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
/* 利用流れ */
.section-flow {
	color: #000;
	padding-bottom: 130px;
}
.flow-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(24px, 4vw, 60px);
}
.flow-grid article {
	min-width: 0;
}
.flow-grid article img {
	height: clamp(180px, 20vw, 300px);
	object-fit: contain;
}
.section-flow h3 {
	margin: 0 0 10px;
}
.section-flow p {
	line-height: 1.7;
}

/* ポスターポップアップ用 */
/* ポスターポップアップ用 */
/* ポスターポップアップ用 */
/* ポスターポップアップ用 */
/* ポスターポップアップ用 */
/* ポスターポップアップ用 */
.poster-preview-trigger {
	cursor: zoom-in;
}

.poster-preview-trigger:focus-visible {
	outline: 3px solid #b8904a;
	outline-offset: 5px;
}

.poster-preview {
	position: fixed;
	width: min(760px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: clamp(48px, 6vw, 76px) clamp(20px, 4vw, 40px) clamp(28px, 4vw, 48px);
	border: 0;
	border-radius: clamp(10px, 4vw, 16px);
	color: var(--ink);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.poster-preview::backdrop {
	background: rgb(0 0 0 / 72%);
}

.poster-preview-close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	font-size: 32px;
	line-height: 1;
}

.poster-preview-image {
	max-height: 60dvh;
	object-fit: contain;
	border-radius: 6px;
}

.poster-preview h2 {
	margin: 8px 0 16px;
	color: #000;
	font-size: clamp(32px, 6vw, 64px);
	font-weight: 400;
	font-style: italic;
	text-align: center;
	line-height: 1.4;
}

.poster-preview-description {
	max-width: 560px;
	margin-inline: auto;
	font: clamp(15px, 2.5vw, 22px)/1.6 var(--sans);
	text-align: center;
}

@keyframes set-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* タブレット */
@media (max-width: 1000px) {
	:root {
		--page-gutter: clamp(20px, 5vw, 50px);
	}

	.cards,
	.flow-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.flow-grid {
		gap: 40px;
	}

	.flow-grid article img {
		height: 300px;
	}

	.lp-detail,
	.poster-detail {
		flex-direction: column;
		gap: 25px;
	}

	.lp-detail img,
	.poster-detail img {
		width: 100%;
		max-width: 680px;
	}
}

/* スマートフォン */
@media (max-width: 600px) {
	.titele-section {
		margin: 20px 0 32px;
	}
	.titele-section p {
		margin-bottom: 8px;
		font-size: 15px;
	}
	/*
	.titele-section h2 {
		font-size: clamp(28px, 8vw, 36px);
	}*/
	.campaign-copy {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: 420px;
		gap: 20px;
	}
	.campaign-lead {
		margin-left: 0;
	}
	.campaign-description {
		font-size: 14px;
	}
	.tab {
		padding: 16px 8px;
		font-size: clamp(14px, 4vw, 18px);
	}
	.cards {
		gap: 20px;
	}
	.cards article {
		gap: 18px;
	}
	.cards h3 {
		font-size: 24px;
	}
	.cards p {
		font-size: 18px;
	}
	.cards .card-note {
		font-size: 14px;
	}
	.lp-textsec,
	.poster-textsec {
		order: -1;
	}
	.lp-textsec h2,
	.poster-textsec h2 {
		text-align: center;
	}
	.section-lpsection .poster-feature-rows {
		flex-direction: column;
		overflow-x: visible;
		scroll-snap-type: none;
	}
	.section-lpsection .poster-feature-row {
		flex: none;
	}
	.section-lpsection .poster-feature-rows::after,
	.feature-carousel-nav {
		display: none;
	}
	.section-postersection>.poster-feature-rows {
		grid-template-columns: 1fr;
	}
	.poster-feature-row {
		padding: 20px;
		gap: 24px;
	}
	.gallery h3,
	.gallery2 h3 {
		font-size: 20px;
		text-align: center;
	}
	.gallery-track {
		display: flex;
		position: relative;
		align-items: flex-start;
		gap: 72px;
		padding-bottom: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.gallery-track::-webkit-scrollbar {
		display: none;
	}
	.gallery-track> :is(.sample, .sample2) {
		flex: 0 0 85%;
		scroll-snap-align: start;
		text-align: left;
	}
	.gallery-track>.sample {
		gap: 12px;
	}
	.gallery-track .name h3 {
		margin: 0;
		font-size: 25px;
		text-align: left;
	}
	.gallery-track::after {
		content: '';
		flex: 0 0 max(0px, calc(15% - 24px));
	}
	.gallery-controls {
		display: flex;
	}
	.section-flow h2 {
		font-size: 30px;
		margin-bottom: 10%;
	}
	.flow-grid article {
		display: grid;
		grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
		column-gap: 16px;
		row-gap: 4px;
		align-content: center;
		text-align: left;
	}
	.flow-grid article img {
		grid-column: 1;
		grid-row: 1 / 4;
		align-self: center;
		height: auto;
		max-height: 180px;
	}
	.flow-grid article h2 {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		font-size: 28px;
		line-height: 1.1;
	}
	.flow-grid article h3 {
		grid-column: 2;
		grid-row: 2;
		font-size: clamp(14px, 3.6vw, 18px);
		line-height: 1.5;
	}
	.flow-grid article p {
		grid-column: 2;
		grid-row: 3;
		font-size: 12px;
		line-height: 1.7;
	}
	.floating-set-switch button {
		font-size: 12px;
		line-height: 1.2;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.tab-panel.is-active {
		animation: none;
	}

	.floating-set-switch {
		transition: none;
	}
}

/* モーダル全体：左右の余白を半分にする */
.one-year-modal__content {
	--original-content-padding: max(var(--page-gutter), calc((100% - 1440px) / 2));
	--content-padding: calc(var(--original-content-padding) / 2);
}