/* =========================================================
   WD Salon - main stylesheet（モバイルファースト）
   基準＝スマホ。@media (min-width) で広い画面へ拡張します。
   カスタマイザーの色は :root の --wd-* で上書きされます
   ブレークポイント: 681px（タブレット）/ 901px（PC）
   ========================================================= */

:root {
	--wd-primary: #b08968;
	--wd-accent: #c9a98c;
	--wd-base: #faf7f2;
	--wd-surface: #ffffff;
	--wd-text: #3a3633;
	--wd-muted: #8a817a;
	--wd-border: #e8e1d8;
	--wd-radius: 4px;
	--wd-max: 1140px;
	--wd-narrow: 760px;
	--wd-font-base: 'Noto Sans JP', -apple-system, 'Hiragino Sans', Meiryo, sans-serif;
	--wd-font-heading: 'Shippori Mincho', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--wd-font-base);
	color: var(--wd-text);
	background: var(--wd-base);
	line-height: 1.8;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	/* スマホ追従バーぶんの余白（基準＝スマホ） */
	padding-bottom: 56px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wd-primary); text-decoration: none; }
a:hover { opacity: .8; }

h1, h2, h3, h4 { font-family: var(--wd-font-heading); font-weight: 500; line-height: 1.4; }

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

/* ---------- buttons（タップ領域を確保） ---------- */
.btn {
	display: inline-block;
	padding: .95em 2.2em;
	min-height: 44px;
	border-radius: 999px;
	font-size: .95rem;
	letter-spacing: .05em;
	text-align: center;
	transition: .25s;
	cursor: pointer;
	border: 1px solid transparent;
}
.btn--primary { background: var(--wd-primary); color: #fff; }
.btn--primary:hover { opacity: .9; }
.btn--outline { background: transparent; border-color: var(--wd-primary); color: var(--wd-primary); }
.btn--outline:hover { background: var(--wd-primary); color: #fff; opacity: 1; }
.btn--sm { padding: .6em 1.4em; min-height: 0; font-size: .85rem; }

/* =========================================================
   header / nav（基準＝スマホ：ハンバーガー＋ドロワー）
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--wd-border);
}
.site-header__inner {
	max-width: var(--wd-max); margin: 0 auto; padding: .8rem 1.2rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header__title { font-family: var(--wd-font-heading); font-size: 1.25rem; color: var(--wd-text); }
.custom-logo { max-height: 48px; width: auto; }

.nav-toggle {
	display: block; background: none; border: 0; width: 44px; height: 44px; position: relative; z-index: 120;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ''; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--wd-text); transition: .25s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

.primary-nav {
	position: fixed; inset: 0 0 0 30%; z-index: 110;
	background: #fff;
	display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
	padding: 5rem 1.5rem;
	transform: translateX(100%);
	transition: .3s;
	box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav__list { display: flex; flex-direction: column; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav__list a { color: var(--wd-text); font-size: 1rem; }
.primary-nav__cta { margin-top: .5rem; }
body.nav-open { overflow: hidden; }

/* ---------- hero（スライダー） ---------- */
.hero {
	position: relative;
	min-height: 68vh;
	display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
	padding: 3.5rem 1.2rem;
	overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
	position: absolute; inset: 0;
	background-position: center; background-size: cover; background-repeat: no-repeat;
	opacity: 0; transition: opacity 1.1s ease;
	transform: scale(1.05);
	animation: wd-kenburns 9s ease-in-out infinite alternate;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide--placeholder { background: var(--wd-accent); }
@keyframes wd-kenburns { from { transform: scale(1.05); } to { transform: scale(1.16); } }

.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(58,54,51,.15), rgba(58,54,51,.5)); }
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: clamp(1.8rem, 7vw, 3rem); margin: 0 0 1rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero__line { display: block; width: 56px; height: 1px; background: #fff; margin: 1rem auto 1.2rem; transform-origin: center; }
.hero__sub { font-size: clamp(.95rem, 3.6vw, 1.15rem); margin: 0 0 2rem; }

.hero__dots { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 3; display: flex; gap: .5rem; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .2s; }
.hero__dot.is-active { background: #fff; transform: scale(1.2); }

.hero__scroll {
	position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 3;
	writing-mode: vertical-rl; letter-spacing: .25em; font-size: .65rem; color: #fff;
	padding-bottom: 34px;
}
.hero__scroll::after {
	content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px; background: #fff;
	animation: wd-scrolldown 1.8s ease-in-out infinite;
}
@keyframes wd-scrolldown { 0%,100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(8px); opacity: .3; } }

/* ---------- スクロール連動フェードイン（JS有効時のみ隠す） ---------- */
.wd-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.wd-js [data-reveal].is-visible { opacity: 1; transform: none; }
.wd-js [data-reveal].d1 { transition-delay: .12s; }
.wd-js [data-reveal].d2 { transition-delay: .24s; }
.wd-js [data-reveal].d3 { transition-delay: .36s; }
.wd-js [data-reveal].d4 { transition-delay: .48s; }
.hero [data-reveal] { transition-duration: 1s; }
@media (prefers-reduced-motion: reduce) {
	.wd-js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.hero__slide { animation: none; }
}

/* ---------- 矢印付きリンク演出 ---------- */
.wd-arrow { display: inline-block; transition: transform .35s; }
.wd-link:hover .wd-arrow { transform: translateX(6px); }

/* ---------- section common ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 1.2rem; }
.section:nth-of-type(even) { background: var(--wd-surface); }
.section__inner { max-width: var(--wd-max); margin: 0 auto; }
.section__inner--narrow { max-width: var(--wd-narrow); }
.section__more { text-align: center; margin-top: 2.5rem; }
.section__empty { text-align: center; color: var(--wd-muted); }

.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading__en { display: block; color: var(--wd-primary); letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; }
.section-heading__ja { font-size: clamp(1.4rem, 5.5vw, 2rem); margin: .3rem 0 0; }

/* ---------- concept ---------- */
.section--concept { text-align: center; }
.section--concept__lead { font-family: var(--wd-font-heading); font-size: clamp(1.2rem, 5vw, 1.7rem); }
.section--concept__text { max-width: 640px; margin: 1.5rem auto 0; color: var(--wd-muted); }

/* ---------- menu（基準＝1列） ---------- */
.menu-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.menu-list__item { padding-bottom: 1.2rem; border-bottom: 1px solid var(--wd-border); }
.menu-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-list__title { font-size: 1.1rem; margin: 0; }
.menu-list__price { color: var(--wd-primary); font-weight: 700; white-space: nowrap; }
.menu-list__duration { font-size: .8rem; color: var(--wd-muted); }
.menu-list__desc { font-size: .9rem; color: var(--wd-muted); margin: .5rem 0 0; }

/* ---------- staff（基準＝2列） ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.staff-card { text-align: center; }
.staff-card__photo { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--wd-radius); background: var(--wd-border); }
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card__role { color: var(--wd-primary); font-size: .8rem; margin: .8rem 0 .2rem; }
.staff-card__name { font-size: 1.05rem; margin: 0; }
.staff-card__ig { font-size: .8rem; }

/* ---------- gallery（番号付き／ホバー名称） ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.gallery-grid__item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--wd-radius); background: var(--wd-border); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-grid__num { position: absolute; top: 8px; left: 10px; z-index: 2; color: #fff; font-family: var(--wd-font-heading); font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gallery-grid__cap {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	background: rgba(58,54,51,.78); color: #fff; font-size: .8rem; padding: .5rem .6rem;
	transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.gallery-grid__item:hover .gallery-grid__cap { transform: translateY(0); }

/* ---------- instagram ---------- */
.instagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.instagram-grid__item { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--wd-border); border-radius: var(--wd-radius); color: var(--wd-muted); transition: .3s; }
.instagram-grid__item:hover { background: var(--wd-accent); color: #fff; }
.instagram-grid__icon { font-family: var(--wd-font-heading); font-size: 1.4rem; }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.news-list__item { border-bottom: 1px solid var(--wd-border); }
.news-list__link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; color: var(--wd-text); }
.news-list__date { color: var(--wd-muted); font-size: .85rem; white-space: nowrap; }

/* ---------- access（基準＝1列） ---------- */
.access { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.access__table { width: 100%; border-collapse: collapse; }
.access__table th { text-align: left; padding: .8rem 1rem .8rem 0; vertical-align: top; white-space: nowrap; color: var(--wd-primary); border-bottom: 1px solid var(--wd-border); }
.access__table td { padding: .8rem 0; border-bottom: 1px solid var(--wd-border); }

/* ---------- cta section ---------- */
.section--cta { background: var(--wd-primary) !important; color: #fff; text-align: center; }
.section--cta .section-heading__en, .section--cta .section-heading__ja { color: #fff; }
.section--cta__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.section--cta__buttons .btn--outline { border-color: #fff; color: #fff; }
.section--cta__buttons .btn--outline:hover { background: #fff; color: var(--wd-primary); }

/* ---------- post list / single（基準＝1列） ---------- */
.post-list { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
.post-card { background: var(--wd-surface); border-radius: var(--wd-radius); overflow: hidden; border: 1px solid var(--wd-border); }
.post-card__thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1rem 1.2rem 1.4rem; }
.post-card__date { color: var(--wd-muted); font-size: .8rem; }
.post-card__title { font-size: 1.05rem; margin: .3rem 0 0; color: var(--wd-text); }

.page-header { text-align: center; margin-bottom: 2.5rem; }
.page-header__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

.single__header { text-align: center; margin-bottom: 1.5rem; }
.single__role { color: var(--wd-primary); margin: 0; }
.single__title { font-size: clamp(1.5rem, 6vw, 2.2rem); margin: .3rem 0; }
.single__date { color: var(--wd-muted); font-size: .85rem; }
.single__thumb { margin: 1.5rem 0; border-radius: var(--wd-radius); overflow: hidden; }
.single__content > * { margin-top: 1.2em; }

/* ---------- footer（基準＝1列） ---------- */
.site-footer { background: var(--wd-text); color: #e7e1da; padding: 3rem 1.2rem 1.5rem; }
.site-footer__inner { max-width: var(--wd-max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer__name { font-family: var(--wd-font-heading); font-size: 1.2rem; color: #fff; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer__list a, .site-footer__social a { color: #e7e1da; }
.site-footer__social { display: grid; gap: .6rem; align-content: start; }
.site-footer__copyright { text-align: center; margin: 2.5rem 0 0; font-size: .8rem; color: #b4aaa1; }

/* ---------- sticky bar（基準＝スマホで表示） ---------- */
.sticky-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; }
.sticky-bar__item { flex: 1; text-align: center; padding: .9rem 0; min-height: 44px; color: #fff; font-size: .85rem; font-weight: 700; }
.sticky-bar__tel { background: var(--wd-text); }
.sticky-bar__line { background: #06c755; }
.sticky-bar__reserve { background: var(--wd-primary); }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.pagination .page-numbers { padding: .5em .9em; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wd-border); border-radius: var(--wd-radius); color: var(--wd-text); }
.pagination .current { background: var(--wd-primary); color: #fff; border-color: var(--wd-primary); }

/* =========================================================
   タブレット以上（min-width: 681px）
   ========================================================= */
@media (min-width: 681px) {
	body { padding-bottom: 0; } /* 追従バーを隠すので余白も解除 */
	.sticky-bar { display: none; }

	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.instagram-grid { grid-template-columns: repeat(6, 1fr); }
	.post-list { grid-template-columns: repeat(2, 1fr); }
	.news-list__link { flex-direction: row; gap: 1.5rem; align-items: baseline; }

	/* PC型グローバルナビへ */
	.nav-toggle { display: none; }
	.primary-nav {
		position: static; inset: auto; transform: none;
		flex-direction: row; align-items: center; gap: 2rem;
		padding: 0; background: transparent; box-shadow: none;
	}
	.primary-nav__list { flex-direction: row; gap: 1.6rem; }
	.primary-nav__list a { font-size: .95rem; }
	.primary-nav__cta { margin: 0 0 0 1rem; }
}

/* =========================================================
   PC（min-width: 901px）
   ========================================================= */
@media (min-width: 901px) {
	.site-header__title { font-size: 1.3rem; }
	.custom-logo { max-height: 56px; }

	.hero { min-height: 72vh; padding: 4rem 1.2rem; }

	.menu-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
	.staff-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
	.gallery-grid { grid-template-columns: repeat(4, 1fr); }
	.post-list { grid-template-columns: repeat(3, 1fr); }
	.access { grid-template-columns: 1fr 1.2fr; }
	.site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* マウス精度のデバイスのみホバー拡大（タッチ端末の誤作動を防ぐ） */
@media (hover: hover) {
	.gallery-grid__item:hover img { transform: scale(1.1); }
}
