/*
Theme Name: アテンドる
Theme URI: https://example.com/
Author: アテンドる開発チーム
Description: 会員制 出張型マッサージ・プラットフォーム「アテンドる」専用テーマ。ダーク基調＋ゴールドのプレミアムデザイン。
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: attendoru
*/

/* ===== カラー・基本変数 ===== */
:root {
	--atd-bg: #0d0c0a;
	--atd-bg-2: #141109;
	--atd-card: #16130d;
	--atd-line: #2a261d;
	--atd-gold: #c8a45c;
	--atd-gold-soft: #b8995a;
	--atd-text: #e8e2d6;
	--atd-text-2: #b8b0a0;
	--atd-muted: #8c8472;
	--atd-faint: #5f5a4d;
	--atd-serif: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
	--atd-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--atd-bg);
	color: var(--atd-text);
	font-family: var(--atd-sans);
	font-weight: 300;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* キーボード操作のフォーカスを明示（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--atd-gold);
	outline-offset: 2px;
}

/* iOS で入力時に拡大しないよう、フォーム文字は16px以上 */
input, select, textarea { font-size: 16px; }

/* ボタンの押下感 */
.atd-btn { transition: opacity 0.15s ease, transform 0.1s ease; min-height: 46px; }
.atd-btn:active { transform: scale(0.985); }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.atd-container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.atd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	padding-top: calc(18px + env(safe-area-inset-top, 0px));
	padding-left: calc(20px + env(safe-area-inset-left, 0px));
	padding-right: calc(20px + env(safe-area-inset-right, 0px));
	border-bottom: 1px solid var(--atd-line);
	position: sticky;
	top: 0;
	background: rgba(13, 12, 10, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	z-index: 50;
}
.atd-logo {
	font-family: var(--atd-serif);
	color: var(--atd-gold);
	font-size: 20px;
	letter-spacing: 0.14em;
	font-weight: 600;
}
.atd-nav-toggle { background: none; border: none; color: var(--atd-gold); font-size: 22px; cursor: pointer; }

/* ===== セクション共通 ===== */
.atd-eyebrow { letter-spacing: 0.35em; font-size: 10px; color: var(--atd-muted); }
.atd-rule { width: 40px; height: 1px; background: var(--atd-gold); margin: 18px auto; }
.atd-section { padding: 44px 0; }
.atd-section-title { font-family: var(--atd-serif); font-size: 19px; letter-spacing: 0.1em; color: var(--atd-text); margin: 0; }

/* ===== ヒーロー ===== */
.atd-hero { text-align: center; padding: 56px 24px 40px; }
.atd-hero-copy { font-family: var(--atd-serif); font-size: 22px; line-height: 1.7; color: #ece6da; margin: 14px 0; }
.atd-hero-copy .g { color: var(--atd-gold); }
.atd-hero-lead { font-size: 12px; color: var(--atd-muted); line-height: 2; margin-bottom: 26px; }

/* ===== ボタン ===== */
.atd-btn {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	padding: 13px;
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	font-family: var(--atd-sans);
}
.atd-btn-gold { background: var(--atd-gold); color: #141109; border: none; font-weight: 500; }
.atd-btn-ghost { background: transparent; color: var(--atd-gold); border: 1px solid #4a3f29; }
.atd-btn-stack { display: flex; flex-direction: column; align-items: center; gap: 11px; }

/* ===== キャスト一覧 ===== */
.atd-cast-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.atd-cast-card {
	border: 1px solid var(--atd-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--atd-card);
}
.atd-cast-photo {
	height: 180px;
	background: #1c1813 center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}
.atd-cast-photo .lock { color: #4a3f29; font-size: 28px; }
.atd-cast-body { padding: 10px 12px 14px; }
.atd-cast-name { font-family: var(--atd-serif); font-size: 15px; color: #d8d0c0; margin: 0 0 4px; }
.atd-cast-catch { font-size: 11px; color: var(--atd-muted); line-height: 1.7; margin: 0 0 6px; min-height: 2.6em; }
.atd-cast-meta { font-size: 11px; color: var(--atd-text-2); }
.atd-badge {
	display: inline-block;
	font-size: 10px;
	padding: 1px 8px;
	border-radius: 3px;
	border: 1px solid #4a3f29;
	color: var(--atd-gold);
}
.atd-badge-paused { color: var(--atd-muted); border-color: var(--atd-line); }

/* ===== キャスト詳細 ===== */
.atd-single { padding: 28px 0 60px; }
.atd-single-hero { height: 360px; background: #1c1813 center/cover no-repeat; border-radius: 12px; }
.atd-single-name { font-family: var(--atd-serif); font-size: 26px; color: var(--atd-text); margin: 22px 0 6px; }
.atd-single-catch { color: var(--atd-gold); font-size: 14px; margin: 0 0 18px; }
.atd-single-intro { color: var(--atd-text-2); font-size: 14px; line-height: 2; }
.atd-spec { width: 100%; border-collapse: collapse; margin: 22px 0; }
.atd-spec th, .atd-spec td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--atd-line); font-size: 13px; font-weight: 300; }
.atd-spec th { color: var(--atd-muted); width: 34%; }
.atd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.atd-thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--atd-line); }

/* ===== フッター ===== */
.atd-footer { border-top: 1px solid var(--atd-line); padding: 30px 20px 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.atd-footer .links a { color: var(--atd-muted); font-size: 12px; margin: 0 10px; }
.atd-jobs-link {
	display: inline-block;
	color: var(--atd-gold);
	font-size: 12px;
	border: 1px solid #4a3f29;
	border-radius: 20px;
	padding: 7px 18px;
	min-height: 0;
}
.atd-footer .copy { color: var(--atd-faint); font-size: 11px; margin-top: 18px; }

/* ===== フォーム（会員登録など） ===== */
.atd-form-card {
	max-width: 420px;
	margin: 30px auto;
	padding: 26px 22px;
	border: 1px solid var(--atd-line);
	border-radius: 12px;
	background: var(--atd-card);
}
.atd-form-title { font-family: var(--atd-serif); font-size: 18px; color: var(--atd-text); text-align: center; margin: 0 0 20px; }
.atd-form-lead { font-size: 13px; color: var(--atd-text-2); line-height: 1.9; text-align: center; margin: 0 0 20px; }
.atd-lb { display: block; font-size: 12px; color: var(--atd-text-2); margin: 0 0 5px; }
.atd-in {
	width: 100%;
	background: var(--atd-bg-2);
	border: 1px solid var(--atd-line);
	border-radius: 6px;
	color: var(--atd-text);
	padding: 11px;
	font-size: 16px;
	margin-bottom: 15px;
}
.atd-in:focus { outline: none; border-color: var(--atd-gold); }
.atd-file { padding: 9px; font-size: 12px; }
.atd-note { font-size: 11px; color: var(--atd-faint); line-height: 1.7; margin: 0 0 16px; }
.atd-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--atd-muted); margin-bottom: 18px; line-height: 1.6; }
.atd-check input { margin-top: 3px; }
.atd-form-error {
	background: rgba(179, 38, 30, 0.12);
	border: 1px solid #7a2b25;
	color: #e6a9a3;
	font-size: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.atd-center { text-align: center; }
.atd-status-icon { font-size: 34px; color: var(--atd-gold); margin: 0 0 6px; }
.atd-status-icon .dashicons { width: 40px; height: 40px; font-size: 40px; }
.atd-pill {
	display: inline-block;
	font-size: 11px;
	color: var(--atd-gold);
	border: 1px solid #4a3f29;
	border-radius: 20px;
	padding: 5px 16px;
	margin-top: 8px;
}
.atd-form-card .atd-btn { max-width: none; }

/* ===== 予約 ===== */
.atd-booking {
	border: 1px solid var(--atd-line);
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 12px;
	background: var(--atd-bg-2);
}
.atd-booking-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.atd-booking-meta { font-size: 12px; color: var(--atd-text-2); line-height: 1.8; }
.atd-booking-bank { font-size: 12px; color: var(--atd-text); line-height: 1.9; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--atd-line); }
.atd-booking-actions { display: flex; gap: 10px; margin-top: 12px; }
.atd-booking-actions .atd-btn { max-width: 160px; padding: 9px; }

.atd-book-slots { margin: 10px 0; }
.atd-book .atd-slot {
	display: flex; align-items: center; justify-content: space-between;
	border: 1px solid var(--atd-line); border-radius: 8px;
	padding: 10px 12px; margin-bottom: 8px; font-size: 13px; color: var(--atd-text-2);
}
.atd-book-req {
	background: var(--atd-gold); color: #141109; border: none;
	border-radius: 6px; padding: 7px 14px; font-size: 12px; cursor: pointer; font-family: var(--atd-sans);
}
.atd-book-req:disabled { background: #4a3f29; color: #8c8472; cursor: default; }

/* ===== 安全機能コントロール ===== */
.atd-safety { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--atd-line); }
.atd-safety-row { display: flex; gap: 8px; margin-bottom: 8px; }
.atd-safe-btn {
	flex: 1;
	background: var(--atd-bg);
	border: 1px solid var(--atd-line);
	color: var(--atd-text);
	border-radius: 6px;
	padding: 10px;
	font-size: 12px;
	cursor: pointer;
	font-family: var(--atd-sans);
}
.atd-safe-btn:disabled { color: var(--atd-muted); cursor: default; }
.atd-safe-panic { border-color: #7a2b25; color: #e6a9a3; font-weight: 500; }
.atd-safe-loc { color: var(--atd-gold); border-color: #4a3f29; }
.atd-safe-msg { font-size: 12px; margin: 4px 0 0; }

/* ===== 注意書き・施錠案内 ===== */
.atd-locked-note {
	text-align: center;
	color: var(--atd-muted);
	font-size: 12px;
	border: 1px solid var(--atd-line);
	border-radius: 8px;
	padding: 18px;
	margin: 20px 0;
	background: var(--atd-bg-2);
}
