/*
Theme Name: Sapporo Visa Support
Theme URI: https://example.com
Author: 
Author URI: 
Description: 札幌ビザ＆帰化申請サポートセンター向けオリジナルWordPressテーマ。「親しみやすさ」をコンセプトに、暖色を基調としたデザインです。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sapporo-visa-support
*/

/* ==========================================================================
   0. リセット・変数
   ========================================================================== */

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

:root {
	--color-cream: #FAEEDA;
	--color-cream-deep: #F5E2C4;
	--color-coral: #D85A30;
	--color-coral-dark: #99361D;
	--color-coral-light: #F0997B;

	--color-green-bg: #EAF3DE;
	--color-green-text: #173404;
	--color-green-icon: #3B6D11;

	--color-pink-bg: #FBEAF0;
	--color-pink-text: #4B1528;
	--color-pink-icon: #993556;

	--color-teal-bg: #E1F5EE;
	--color-teal-text: #04342C;
	--color-teal-icon: #0F6E56;

	--color-ink: #2C2C2A;
	--color-muted: #5F5E5A;
	--color-border: #E6DFD0;
	--color-white: #FFFFFF;

	--font-heading: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	--font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-pill: 999px;

	--container-width: 1120px;
	--container-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-white);
	line-height: 1.8;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 0.6em;
}

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

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--color-coral-dark);
	background: var(--color-cream);
	padding: 6px 16px;
	border-radius: var(--radius-pill);
	margin-bottom: 16px;
}
.eyebrow--light { color: #FFFFFF; background: rgba(255,255,255,0.16); }

.section { padding: 88px 0; }
.section--cream { background: var(--color-cream); }
.section--dark { background: var(--color-ink); color: #F1EFE8; }
.section--dark .contact-lead a { color: var(--color-coral-light); }

.section-title { font-size: 28px; margin-bottom: 32px; }
.section-title--light { color: #FFFFFF; }

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

/* ボタン */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	transition: transform .15s ease, opacity .15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-coral); color: #FFFFFF; }
.btn--primary:hover { background: var(--color-coral-dark); }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--ghost-light { border-color: rgba(255,255,255,0.6); color: #FFFFFF; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   1. ヘッダー・ナビゲーション
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
	gap: 24px;
}
/* ヘッダーは他セクションの.container(1120px)より広い専用の最大幅を使う。
   ナビ項目数が多く、通常のコンテナ幅だと詰まって折り返してしまうため。 */
.site-header__inner.container {
	max-width: 1360px;
}

.site-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--color-ink);
	white-space: nowrap;
}
.site-branding { flex-shrink: 0; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
}
.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-ink);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav__list { display: flex; gap: 22px; }
.primary-nav__list li { flex-shrink: 0; }
.primary-nav__list a {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-ink);
	position: relative;
	white-space: nowrap;
}
.primary-nav__list a:hover { color: var(--color-coral); }
.nav-cta { flex-shrink: 0; padding: 10px 22px; font-size: 13px; }

.lang-switch {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	background: var(--color-cream);
	border-radius: var(--radius-pill);
	padding: 3px;
}
.lang-switch__item {
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	color: var(--color-muted);
	white-space: nowrap;
}
.lang-switch__item:hover { color: var(--color-coral-dark); }
.lang-switch__item.is-active {
	background: var(--color-coral);
	color: #FFFFFF;
}

.mobile-fixed-cta {
	display: none;
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	text-align: center;
	background: var(--color-coral);
	color: #fff;
	padding: 14px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(216,90,48,0.35);
}

/* ==========================================================================
   2. ヒーロー
   ========================================================================== */

.hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,15,10,0.55) 0%, rgba(20,15,10,0.72) 100%);
}
.hero__inner {
	position: relative;
	z-index: 1;
	color: #FFFFFF;
	padding: 120px 24px;
	max-width: 760px;
}
.hero__title { font-size: 38px; color: #FFFFFF; }
.hero__lead { font-size: 16px; color: #F1EFE8; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__inner--split {
	max-width: var(--container-width);
	display: flex;
	align-items: flex-start;
	gap: 32px;
	padding-top: 88px;
}
.hero__content { max-width: 560px; }

/* 代表者写真：幅で明示的にサイズ管理し、下端をFVの下端に完全フラッシュさせる
   PC: 200px（画面幅に応じて140〜220pxの範囲で可変）
   ポイント：img は width:100%; height:auto; のみを指定（heightは指定しない）ことで
   縦横比を保ったまま、コンテナ(.hero__person)の下端 = 画像の下端 = FVの下端 が必ず一致する。 */
.hero__person {
	position: absolute;
	right: max(24px, calc((100% - var(--container-width)) / 2 + 24px));
	bottom: 0;
	width: clamp(180px, 20vw, 260px);
	z-index: 1;
	pointer-events: none;
}
.hero__person img {
	display: block;
	width: 100%;
	height: auto;
}
.hero__person-caption {
	margin: 0 0 14px;
	padding-right: 14px;
	border-right: 3px solid var(--color-coral);
	text-align: right;
	line-height: 1.3;
}
.hero__person-name {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 17px;
	color: #FFFFFF;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.hero__person-role {
	display: block;
	font-size: 11px;
	color: #F1EFE8;
	letter-spacing: 0.08em;
	margin-top: 3px;
	text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* ==========================================================================
   3. お悩みカード・取扱業務
   ========================================================================== */

.worry-cards { margin-bottom: 56px; }
.worry-card {
	border-radius: var(--radius-lg);
	padding: 28px 20px;
	text-align: center;
	border: 1px solid transparent;
	box-shadow: 0 6px 18px rgba(44,44,42,0.06);
}
.worry-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(255,255,255,0.7);
}
.worry-card__icon svg { width: 26px; height: 26px; }
.worry-card__text { font-weight: 700; margin: 0; font-size: 15px; }

/* 背景（クリーム色）と同化しないよう、彩度を上げた色＋境界線でコントラストを確保 */
.worry-card--green {
	background: #C3DE9B;
	border-color: #97C459;
	color: var(--color-green-text);
}
.worry-card--pink {
	background: #F3B9CE;
	border-color: #ED93B1;
	color: var(--color-pink-text);
}
.worry-card--teal {
	background: #9BDDC0;
	border-color: #5DCAA5;
	color: var(--color-teal-text);
}

.service-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	background: #FFFFFF;
	border-radius: var(--radius-lg);
	padding: 32px;
}
.service-detail__image img { border-radius: var(--radius-md); }
.service-detail__heading { font-size: 18px; margin-bottom: 20px; }

.check-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 14px;
	font-size: 15px;
}
.check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-coral);
	font-weight: 700;
}

/* ==========================================================================
   4. 選ばれる理由
   ========================================================================== */

.reason-layout {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
}
.reason-layout__image img { border-radius: var(--radius-lg); }
.reason-item {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}
.reason-item:last-child { border-bottom: none; }
.reason-item__num {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-coral);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-family: var(--font-heading);
}
.reason-item h3 { font-size: 16px; margin-bottom: 6px; }
.reason-item p { margin: 0; color: var(--color-muted); font-size: 14.5px; }

/* ==========================================================================
   5. 代表挨拶
   ========================================================================== */

.greeting {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 56px;
	align-items: start;
}
.greeting__photo img {
	border-radius: var(--radius-lg);
	width: 100%;
}
.greeting__name {
	text-align: center;
	font-weight: 700;
	font-family: var(--font-heading);
	margin-top: 16px;
}
.greeting__name span {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--color-muted);
	margin-top: 2px;
}
.greeting__text p { color: var(--color-muted); }

/* ==========================================================================
   6. 相談の流れ
   ========================================================================== */

.flow-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0,1fr));
	gap: 16px;
	counter-reset: flow;
}
.flow-item {
	background: var(--color-cream);
	border-radius: var(--radius-md);
	padding: 24px 18px;
	text-align: center;
}
.flow-item__num {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--color-coral);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	margin-bottom: 12px;
}
.flow-item h3 { font-size: 14.5px; margin-bottom: 8px; }
.flow-item p { font-size: 13px; color: var(--color-muted); margin: 0; }

/* ==========================================================================
   7. 事務所概要
   ========================================================================== */

.office-table {
	width: 100%;
	border-collapse: collapse;
	background: #FFFFFF;
	border-radius: var(--radius-md);
	overflow: hidden;
}
.office-table th, .office-table td {
	padding: 16px 20px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
	font-size: 14.5px;
}
.office-table th {
	width: 160px;
	color: var(--color-muted);
	font-weight: 500;
	background: #FDFAF3;
}
.office-table tr:last-child th, .office-table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   8. FAQ
   ========================================================================== */

.faq-item {
	background: #FFFFFF;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 18px 22px;
	margin-bottom: 14px;
}
.faq-item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	list-style: none;
	position: relative;
	padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: 20px;
	color: var(--color-coral);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 14px 0 0; color: var(--color-muted); font-size: 14.5px; }

/* ==========================================================================
   9. お問い合わせフォーム
   ========================================================================== */

.contact-lead { color: #D9D3C6; margin-bottom: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--half { flex-direction: row; gap: 20px; }
.form-row--half > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.contact-form label { font-size: 14px; font-weight: 700; }
.required { color: var(--color-coral-light); font-weight: 400; font-size: 12px; }
.contact-form input, .contact-form textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	border: none;
	font-family: var(--font-body);
	font-size: 15px;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status--success { color: #9FE1CB; }
.form-status--error { color: #F0997B; }

/* ==========================================================================
   10. フッター
   ========================================================================== */

.site-footer {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #F1EFE8;
}
.site-footer__overlay { background: rgba(20,15,10,0.82); padding: 64px 0 0; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-office-name { font-family: var(--font-heading); font-weight: 700; margin-bottom: 6px; }
.footer-tagline { color: #D9D3C6; font-size: 14px; }
.footer-widget-title { font-size: 14px; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; color: #D9D3C6; margin: 0 0 10px; }
.footer-col a:hover { color: var(--color-coral-light); }
.footer-nav li { margin-bottom: 8px; font-size: 13.5px; }
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 20px 24px;
	font-size: 12.5px;
	color: #B8B0A0;
}

/* ==========================================================================
   11. レスポンシブ
   ========================================================================== */

@media (max-width: 900px) {
	.service-detail, .reason-layout, .greeting { grid-template-columns: 1fr; }
	.reason-layout__image, .greeting__photo { max-width: 320px; margin: 0 auto; }
	.flow-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }

	/* テキストと写真が重ならないよう、タブレット幅以下は縦積みレイアウトに切り替える */
	.hero { flex-direction: column; align-items: stretch; padding-bottom: 40px; }
	.hero__content { max-width: 100%; }
	.hero__person {
		position: static;
		order: 2;
		width: clamp(140px, 32vw, 200px);
		margin: 8px auto 0;
	}
	.container.hero__inner--split { order: 1; }
	.hero__person-caption {
		text-align: center;
		padding-right: 0;
		border-right: none;
		padding-bottom: 8px;
		border-bottom: 2px solid var(--color-coral);
	}
}

/* ナビ項目数が多いため、通常のタブレット幅より早めにハンバーガーメニューへ切り替える。
   これにより「入りきらず折り返す」状態が発生しなくなる。 */
@media (max-width: 1040px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: fixed;
		top: 76px;
		left: 0;
		right: 0;
		bottom: 0;
		background: #FFFFFF;
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 24px;
		gap: 24px;
		transform: translateX(100%);
		transition: transform .25s ease;
		overflow-y: auto;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav__list { flex-direction: column; gap: 20px; width: 100%; }
	.primary-nav__list a { white-space: normal; }
	.lang-switch { width: 100%; justify-content: center; }
	.lang-switch__item { flex: 1; text-align: center; }
	.nav-cta { width: 100%; }
}

@media (max-width: 680px) {
	.hero__title { font-size: 28px; }
	.hero__actions { flex-direction: column; align-items: stretch; }
	.hero__inner { padding: 96px 24px 64px; }

	.hero__inner--split { flex-direction: column; padding-top: 48px; }
	.hero__content { max-width: 100%; }
	.hero__actions { align-items: stretch; }

	.hero__person { width: 130px; margin-top: 4px; }
	.hero__person-name { font-size: 14px; }
	.hero__person-role { font-size: 10px; }

	.grid--3 { grid-template-columns: 1fr; }
	.flow-list { grid-template-columns: 1fr; }
	.form-row--half { flex-direction: column; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }

	.mobile-fixed-cta { display: block; }
	body { padding-bottom: 64px; }
}
