/*
Theme Name: M8 Share Salon
Theme URI: https://example.com/m8/
Author: M8
Description: M8（エムハチ）プレミアムシェアサロンのブランドサイト用WordPressテーマ。
Version: 2.0.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: m8-share-salon
*/

:root {
	--ink: #292724;
	--ink-soft: #625e58;
	--gold: #bc8c3b;
	--gold-light: #d8b771;
	--ivory: #f8f5ef;
	--paper: #fffefa;
	--line: #e7e0d5;
	--dark: #181817;
	--green: #21ad55;
	--shadow: 0 14px 38px rgba(64, 49, 28, .07);
	--serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 82px;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 15px;
	line-height: 2;
	letter-spacing: .06em;
	-webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
p, h1, h2, h3, blockquote { margin-top: 0; }

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

.skip-link {
	position: fixed; z-index: 9999; top: 8px; left: 8px;
	transform: translateY(-150%); padding: 8px 14px; background: #fff; border: 1px solid var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.shell--narrow { width: min(760px, calc(100% - 64px)); }
.section { padding: 104px 0; }
.section--tint { background: linear-gradient(180deg, #fbf8f3 0%, #f8f3eb 100%); }

.eyebrow {
	margin-bottom: 10px;
	color: #b5aa9c;
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading h2, .about h2, .quality h2, .voice h2 {
	margin-bottom: 0;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .12em;
}
.section-heading h2 span { color: var(--gold); font-size: 1.35em; }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(0, 0, 0, .12); }
.button--dark { background: var(--dark); color: #fff; }
.button--outline { border-color: var(--gold-light); background: rgba(255, 255, 255, .74); color: #7d5d28; }
.button--line { background: var(--green); color: #fff; }

/* Header */
.site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 254, 250, .92);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(14px);
	transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-color: rgba(73, 62, 48, .08); box-shadow: 0 8px 32px rgba(63, 52, 38, .06); }
.site-header__inner { display: flex; align-items: center; min-height: 82px; padding: 0 44px; }
.site-branding { flex: 0 0 auto; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark__main { font-size: 28px; letter-spacing: .24em; text-indent: .24em; }
.wordmark__sub { margin-top: 8px; font-family: var(--sans); font-size: 8px; letter-spacing: .19em; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 54px; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { position: relative; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .14em; }
.site-nav__list a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav__cta { min-height: 44px; padding: 10px 25px; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 45% 55%; min-height: 700px; padding-top: 82px; overflow: hidden; background: #fcfbf8; }
.hero__content { display: contents; }
.hero__copy { z-index: 2; align-self: center; width: min(100%, 500px); margin-left: max(48px, calc((100vw - 1180px) / 2)); padding: 70px 40px 70px 0; }
.hero__kicker { display: none; }
.hero h1 { margin-bottom: 26px; font-size: clamp(35px, 4vw, 57px); font-weight: 400; line-height: 1.62; letter-spacing: .12em; }
.hero h1 span { color: var(--gold); }
.hero__description { margin-bottom: 28px; color: var(--ink-soft); font-size: 18px; line-height: 2.05; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; min-width: 0; }
.hero__visual::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, #fcfbf8 0%, rgba(252,251,248,0) 100%); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 46% center; }

/* About */
.about { padding: 70px 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1.45fr; align-items: center; }
.about__heading { padding: 15px 70px; border-right: 1px solid var(--gold-light); }
.about__body { padding: 15px 70px; color: var(--ink-soft); font-size: 18px; }
.about__body p { margin: 0; }

/* Reasons */
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reason-card { min-height: 300px; padding: 32px 24px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(207, 194, 176, .45); border-radius: 8px; box-shadow: 0 10px 26px rgba(75, 57, 31, .04); text-align: center; }
.reason-card__icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--gold); }
.reason-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reason-card__eyebrow { margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.reason-card h3 { min-height: 71px; margin-bottom: 14px; font-size: 20px; font-weight: 500; line-height: 1.65; }
.reason-card h3 strong { color: var(--gold); font-size: 42px; font-weight: 400; }
.reason-card h3 small { font-size: 17px; }
.reason-card > p:last-child { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.9; }

/* Quality */
.quality { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: #fff; }
.quality__image { min-height: 550px; overflow: hidden; }
.quality__image img { width: 100%; height: 100%; object-fit: cover; }
.quality__content { align-self: center; max-width: 600px; padding: 80px 7vw; }
.quality__content > p:not(.eyebrow) { margin: 22px 0 28px; color: var(--ink-soft); font-size: 13px; }
.quality-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.quality-list li { display: flex; align-items: center; gap: 10px; }
.quality-list span { display: inline-flex; justify-content: center; width: 25px; color: var(--gold); font-family: var(--sans); font-size: 21px; }

/* Gallery */
.gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 9px 25px rgba(73, 56, 33, .045); }
.gallery-card__image { height: 205px; overflow: hidden; }
.gallery-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover .gallery-card__image img { transform: scale(1.045); }
.gallery-card--reception img { object-position: 90% center; }
.gallery-card--booth img { object-position: 5% center; }
.gallery-card--seats img { object-position: 45% center; }
.gallery-card--shampoo img { object-position: center; }
.gallery-card__body { padding: 18px 18px 20px; }
.gallery-card h3 { margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.gallery-card h3 span { color: var(--ink-soft); font-weight: 400; }
.gallery-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.85; }

/* System */
.simulation { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border: 1px solid rgba(207, 194, 176, .5); border-radius: 9px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.simulation__input { display: flex; flex-direction: column; justify-content: center; padding: 46px 50px; border-right: 1px solid var(--line); }
.simulation__input label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.simulation__input output { color: var(--gold); font-size: 26px; }
.simulation__input input { width: 100%; accent-color: var(--gold); cursor: pointer; }
.simulation__scale { display: flex; justify-content: space-between; color: #a1998d; font-family: var(--sans); font-size: 10px; }
.simulation__result { padding: 38px 48px; }
.simulation__label { margin-bottom: 18px; text-align: center; font-size: 14px; }
.simulation__math { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px; border-radius: 5px; background: var(--ivory); text-align: center; }
.simulation__math span { grid-row: 1; color: #8f877d; font-size: 11px; }
.simulation__math span:first-child { grid-column: 1; }
.simulation__math span:nth-of-type(2) { grid-column: 3; }
.simulation__math b { grid-row: 2; color: var(--gold); font-size: 22px; font-weight: 400; }
.simulation__math i { grid-column: 2; grid-row: 1 / span 2; color: #c6bdae; font-size: 22px; font-style: normal; }
.simulation__income { display: flex; align-items: flex-end; justify-content: space-between; margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.simulation__income span { font-size: 13px; }
.simulation__income strong { color: var(--gold); font-size: 42px; font-weight: 400; line-height: 1; }
.simulation__income small { margin-left: 5px; font-size: 15px; }
.simulation__note { margin: 0; color: #a39b91; font-family: var(--sans); font-size: 9px; }

/* Voice */
.voice__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.voice__content { padding-left: 45px; }
.voice__content h2 { margin-bottom: 28px; }
.voice blockquote { margin: 0 0 24px; padding-left: 28px; border-left: 2px solid var(--gold-light); }
.voice blockquote p { margin-bottom: 3px; font-size: 14px; }
.voice blockquote cite { display: block; color: var(--ink-soft); font-size: 11px; font-style: normal; line-height: 1.8; }
.voice__image { overflow: hidden; border-radius: 8px; }
.voice__image img { width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: center 36%; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 26px; }
.plan-card { position: relative; padding: 38px 34px 34px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.76); box-shadow: 0 10px 28px rgba(74, 56, 30, .035); text-align: center; }
.plan-card--featured { margin-block: -12px; padding-top: 50px; border-color: var(--gold-light); background: #fffdf8; box-shadow: 0 13px 34px rgba(122, 88, 31, .10); }
.plan-card__badge { position: absolute; top: -22px; left: -15px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.plan-card__recommend { margin-bottom: 4px; color: var(--gold); font-family: var(--sans); font-size: 10px; }
.plan-card h3 { margin-bottom: 4px; font-size: 19px; font-weight: 500; }
.plan-card__sub { margin-bottom: 20px; color: var(--ink-soft); font-size: 11px; }
.plan-card__label { margin-bottom: 0; font-size: 11px; }
.plan-card__price { margin-bottom: 24px; color: var(--gold); font-size: 14px; }
.plan-card__price strong { font-size: 39px; font-weight: 400; }
.plan-card ul { display: inline-block; margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 11px; line-height: 2; text-align: left; }
.plans__note { margin: 38px 0 0; color: #9a9288; font-family: var(--sans); font-size: 10px; text-align: center; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 20px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.faq-item button span { display: flex; gap: 18px; font-size: 13px; font-weight: 400; }
.faq-item button b, .faq-item__answer b { color: var(--gold); font-family: var(--sans); }
.faq-item button i { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-item button i::before, .faq-item button i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1px; background: var(--ink-soft); transition: transform .25s ease; }
.faq-item button i::before { transform: translate(-50%, -50%); }
.faq-item button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item button[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item__answer { padding: 0 56px 18px; }
.faq-item__answer p { display: flex; gap: 18px; margin: 0; color: var(--ink-soft); font-size: 12px; }

/* CTA & footer */
.contact-cta { padding: 65px 0; background: radial-gradient(circle at 78% 15%, #30302f, transparent 45%), var(--dark); color: #fff; }
.contact-cta__inner { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 90px; }
.contact-cta__title { margin-bottom: 17px; color: #dcc08b; font-size: 30px; line-height: 1.55; letter-spacing: .12em; }
.contact-cta__lead > p:last-child { margin: 0; color: #bbb9b4; font-size: 11px; }
.contact-card { padding: 30px 42px; border-radius: 7px; background: #fff; color: var(--ink); text-align: center; }
.contact-card__label { margin-bottom: 5px; font-size: 11px; }
.contact-card__phone { display: block; margin-bottom: 4px; font-size: clamp(23px, 3vw, 34px); letter-spacing: .12em; }
.contact-card__hours { margin-bottom: 20px; color: #a09a91; font-family: var(--sans); font-size: 10px; }
.contact-card__actions { display: flex; justify-content: center; gap: 18px; }
.contact-card__actions .button { min-width: 190px; }

.site-footer { padding: 28px 0 22px; background: #fff; text-align: center; }
.wordmark--footer { margin-bottom: 18px; }
.wordmark--footer .wordmark__main { font-size: 23px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 23px; margin-bottom: 13px; }
.footer-nav a { font-family: var(--sans); font-size: 8px; letter-spacing: .13em; }
.copyright { margin: 0; color: #aaa49d; font-family: var(--sans); font-size: 8px; letter-spacing: .04em; }
.back-to-top { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; background: rgba(24,24,23,.9); color: #fff; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Sub pages */
.page-content { min-height: 65vh; padding-top: 160px; padding-bottom: 100px; }
.page-content h1 { font-size: 36px; font-weight: 500; }

/* Gentle entrance */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.6,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.button, .gallery-card__image img { transition: none; }
}

@media (max-width: 1120px) {
	.site-header__inner { padding-inline: 28px; }
	.site-nav__list { gap: 12px; }
	.site-nav { gap: 22px; }
	.hero { grid-template-columns: 48% 52%; min-height: 650px; }
	.hero__copy { margin-left: 48px; }
	.reason-card { padding-inline: 16px; }
	.quality__content { padding-inline: 5vw; }
}

@media (max-width: 900px) {
	.shell { width: min(720px, calc(100% - 42px)); }
	.section { padding: 78px 0; }
	.site-header__inner { min-height: 72px; }
	.menu-toggle { position: relative; z-index: 1002; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 9px; border: 0; background: transparent; }
	.menu-toggle > span:not(.screen-reader-text) { display: block; width: 25px; height: 1px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
	.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.site-nav { position: fixed; inset: 0; z-index: 1001; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 90px 25px 35px; background: rgba(255,254,250,.98); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s ease; }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav__list { flex-direction: column; gap: 21px; }
	.site-nav__list a { font-size: 12px; }
	.hero { display: flex; flex-direction: column; min-height: 0; padding-top: 72px; }
	.hero__copy { width: min(720px, calc(100% - 42px)); margin: 0 auto; padding: 70px 0 48px; }
	.hero__visual { height: min(70vw, 560px); }
	.hero__visual::before { display: none; }
	.hero__visual img { object-position: 45% 35%; }
	.about__inner { grid-template-columns: 1fr; }
	.about__heading { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--gold-light); }
	.about__body { padding: 28px 0 0; }
	.reason-grid { grid-template-columns: 1fr 1fr; }
	.quality { grid-template-columns: 1fr; }
	.quality__image { min-height: 440px; }
	.quality__content { max-width: 720px; margin: auto; padding: 68px 32px; }
	.gallery-grid { grid-template-columns: 1fr 1fr; }
	.simulation { grid-template-columns: 1fr; }
	.simulation__input { border-right: 0; border-bottom: 1px solid var(--line); }
	.voice__inner { grid-template-columns: 1fr; gap: 45px; }
	.voice__content { padding-left: 0; }
	.voice__image { order: -1; }
	.plan-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
	.plan-card--featured { order: -1; margin: 8px 0 0; }
	.contact-cta__inner { grid-template-columns: 1fr; gap: 35px; }
	.contact-cta__lead { text-align: center; }
}

@media (max-width: 600px) {
	body { font-size: 14px; line-height: 1.9; }
	.shell, .shell--narrow { width: calc(100% - 36px); }
	.section { padding: 64px 0; }
	.section-heading { margin-bottom: 35px; }
	.section-heading h2, .about h2, .quality h2, .voice h2 { font-size: 23px; letter-spacing: .08em; }
	.site-header__inner { min-height: 66px; padding-inline: 18px; }
	.wordmark__main { font-size: 23px; }
	.wordmark__sub { margin-top: 6px; font-size: 6px; }
	.hero { padding-top: 66px; }
	.hero__copy { width: calc(100% - 36px); padding: 50px 0 38px; }
	.hero__kicker { display: block; margin-bottom: 14px; color: #b7ab9b; font-family: var(--sans); font-size: 8px; letter-spacing: .2em; }
	.hero h1 { margin-bottom: 21px; font-size: 34px; line-height: 1.55; letter-spacing: .08em; }
	.hero__description { font-size: 18px; }
	.hero__description br { display: none; }
	.hero__actions { display: grid; grid-template-columns: 1fr; }
	.hero__actions .button { width: 100%; }
	.hero__visual { height: 94vw; max-height: 520px; }
	.hero__visual img { object-position: 39% center; }
	.about { padding: 55px 0; }
	.reason-grid { grid-template-columns: 1fr; gap: 14px; }
	.reason-card { min-height: 0; padding: 27px 24px; }
	.reason-card h3 { min-height: 0; }
	.quality__image { min-height: 330px; }
	.quality__content { padding: 54px 18px; }
	.quality-list { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr; gap: 16px; }
	.gallery-card__image { height: 240px; }
	.simulation__input, .simulation__result { padding: 30px 20px; }
	.simulation__input output { font-size: 21px; }
	.simulation__math { gap: 5px; padding: 15px 8px; }
	.simulation__math b { font-size: 17px; }
	.simulation__income { align-items: center; }
	.simulation__income strong { font-size: 31px; }
	.voice blockquote { padding-left: 18px; }
	.voice__image img { aspect-ratio: 1.1; object-position: 55% center; }
	.plan-card { padding-inline: 24px; }
	.faq-item button { padding: 16px 4px; }
	.faq-item button span { gap: 10px; font-size: 12px; }
	.faq-item__answer { padding: 0 14px 17px; }
	.faq-item__answer p { gap: 10px; }
	.contact-cta { padding: 55px 0; }
	.contact-cta__title { font-size: 25px; }
	.contact-card { padding: 28px 17px; }
	.contact-card__phone { font-size: 22px; letter-spacing: .07em; }
	.contact-card__actions { flex-direction: column; gap: 11px; }
	.contact-card__actions .button { width: 100%; min-width: 0; }
	.footer-nav { gap: 13px 18px; }
	.back-to-top { right: 12px; bottom: 12px; }
}
