/*
Theme Name: Shiratori Dental
Theme URI: https://test.orthodontics-clinic.jp/
Author: Shiratori Dental & Orthodontics
Author URI: https://test.orthodontics-clinic.jp/
Description: 白鳥歯科・矯正歯科のオリジナルWordPressテーマ。yard-dental.com にインスパイアされた、ブランドカラー(スカイブルー #009CE0)を基調とした上質なデザイン。Customizerからキャッチコピー・電話番号・診療時間などを編集できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shiratori
Tags: one-page, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================================
   Shiratori Dental & Orthodontics
   Design inspired by yard-dental.com
   =========================================== */

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

/* ---------- VARIABLES ---------- */
:root {
  --bg: #FCFCFC;            /* off-white */
  --bg-alt: #F2F8FC;        /* very light sky */
  --bg-deep: #E1F0F9;       /* light sky */
  --text: #1F2937;          /* deep slate */
  --text-soft: #4B5563;     /* muted slate */
  --text-faint: #9CA3AF;
  --line: rgba(0, 156, 224, 0.16);
  --accent: #009CE0;        /* brand sky blue (matches logo) */
  --accent-soft: #5BBEEC;
  --accent-deep: #007FB8;
  --white: #FFFFFF;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-jp-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --max: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
}

/* ---------- BASE ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- LOADING ---------- */
.loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loading__logo {
  display: block;
  width: auto;
  height: clamp(56px, 7vw, 88px);
  max-width: 80vw;
  object-fit: contain;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1.2s var(--ease-out) 0.2s forwards;
}
.loading__line {
  width: 0;
  height: 1px;
  background: var(--text);
  animation: lineGrow 1.2s var(--ease-out) 0.8s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  to { width: 80px; }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad-x);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
  pointer-events: none;
}
.header > * { pointer-events: auto; }

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity 0.3s var(--ease);
}
.header__logo:hover { opacity: 0.7; }
.header__logo img {
  display: block;
  width: auto;
  height: clamp(40px, 4vw, 56px);
  max-width: 240px;
  object-fit: contain;
  transition: height 0.4s var(--ease);
}
.header.is-scrolled .header__logo img {
  height: clamp(34px, 3.4vw, 46px);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text);
}
.header__tel svg { color: var(--accent); }
.header__reserve {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: background 0.3s var(--ease);
}
.header__reserve:hover { background: var(--text); }

.header__toggle {
  display: none;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  z-index: 110;
}
.header__toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.header__toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.header__toggle span:nth-child(2) { transform: translate(-50%, 0); }
.header__toggle span:nth-child(3) { transform: translate(-50%, 6px); }
.header__toggle em {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.15em;
}
.header__toggle.is-open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- NAV (Drawer) ---------- */
.nav {
  position: fixed;
  inset: 0;
  background: var(--text);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px var(--pad-x) 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  z-index: 105;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
}
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}
.nav__list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition: opacity 0.3s var(--ease);
}
.nav__list a:hover { opacity: 0.6; }
.nav__en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.nav__jp {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}
.nav__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav__tel, .nav__reserve {
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__reserve { background: var(--bg); color: var(--text); border-color: var(--bg); }
.nav__tel:hover { background: var(--bg); color: var(--text); }

/* ---------- SECTION COMMON ---------- */
section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}

.section__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: clamp(40px, 6vw, 80px);
  position: relative;
}
.section__label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-right: 12px;
}
.section__label-en {
  font-family: var(--font-en);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}
.section__label-en--italic {
  font-style: italic;
  color: var(--accent);
}
.section__label--light { color: var(--bg); }
.section__label--light::before { background: var(--bg); }
.section__label--light .section__label-en { color: var(--bg); }
.section__label--light .section__label-en--italic { color: var(--bg-deep); }

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-jp-serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text);
  padding: 16px 0;
  position: relative;
  border-bottom: 1px solid var(--text);
  transition: gap 0.4s var(--ease);
}
.link-arrow i {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--text);
  position: relative;
}
.link-arrow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 1px;
  background: var(--text);
  transform: rotate(35deg);
  transform-origin: right;
}
.link-arrow:hover { gap: 24px; }
.link-arrow--small {
  font-size: 12px;
  padding: 8px 0;
  gap: 10px;
}
.link-arrow--small i { width: 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(20px, 5vw, 60px);
}
.hero__lead {
  font-family: var(--font-jp-serif);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--accent);
  overflow: hidden;
  display: block;
  width: fit-content;
  padding-left: 48px;
  position: relative;
}
.hero__lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.hero__sub {
  font-family: var(--font-en);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-top: 16px;
  position: relative;
  padding-left: 32px;
  display: block;
  width: fit-content;
}
.hero__sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--text-soft);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0.3); transform-origin: right; }
}

.hero__title {
  position: absolute;
  bottom: 200px;
  left: var(--pad-x);
  z-index: 2;
  font-family: var(--font-en);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: var(--text);
  pointer-events: none;
}
/* Japanese variant for hero__title (auto-applied when title contains Japanese chars) */
.hero__title--jp {
  font-family: var(--font-jp-serif);
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.3;
  bottom: 160px;
  max-width: 60%;
  color: var(--text);
}
.hero__title--jp span {
  display: inline;
  background: linear-gradient(transparent 0%, transparent 60%, rgba(0, 156, 224, 0.18) 60%, rgba(0, 156, 224, 0.18) 92%, transparent 92%);
  padding: 0 6px;
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.hero__slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s var(--ease), transform 8s linear;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__news {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero__news-label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.hero__news-item {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  flex: 1;
  align-items: center;
}
.hero__news-item time {
  font-family: var(--font-en);
  color: var(--text-soft);
  white-space: nowrap;
}
.hero__news-item span {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__marquee {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.hero__marquee-inner {
  display: flex;
  gap: 40px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(36px, 8vw, 96px);
  font-weight: 300;
  white-space: nowrap;
  color: var(--text);
  opacity: 0.15;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.hero__marquee-inner span { padding: 0 20px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- MESSAGE ---------- */
.message {
  background: var(--bg);
}
.message__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.message__image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.message__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 1.5s var(--ease);
}
.message__image:hover img { transform: scale(1.04); }
.message__image-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  color: var(--bg);
  background: rgba(42, 38, 32, 0.6);
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.message__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
}
.message__text p {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg-alt);
  padding-bottom: 0;
}
.about__inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto clamp(60px, 8vw, 100px);
}
.about__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 32px;
}
.about__text {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 2.2;
  color: var(--text-soft);
  margin-bottom: 48px;
}

.about__gallery {
  width: 100%;
  overflow: hidden;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.about__gallery-track {
  display: flex;
  gap: 24px;
  animation: galleryScroll 50s linear infinite;
  width: max-content;
}
.about__gallery-item {
  flex-shrink: 0;
  width: clamp(240px, 26vw, 400px);
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
}
.about__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes galleryScroll {
  to { transform: translateX(-50%); }
}

/* ---------- FEATURE ---------- */
.feature {
  background: var(--bg);
}
.feature__intro {
  max-width: 720px;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.feature__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  line-height: 1.4;
}
.feature__lead {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2.2;
  color: var(--text-soft);
}
.feature__list {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 140px);
}
.feature__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
}
.feature__item:nth-child(even) .feature__image { order: 2; }
.feature__item:nth-child(even) .feature__body { order: 1; }
.feature__num {
  position: absolute;
  top: -40px;
  left: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  opacity: 0.85;
  pointer-events: none;
}
.feature__item:nth-child(even) .feature__num {
  left: auto;
  right: 0;
}
.feature__image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 1.5s var(--ease);
}
.feature__image:hover img { transform: scale(1.05); }
.feature__heading {
  font-family: var(--font-jp-serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text);
}
.feature__desc {
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 2;
  color: var(--text-soft);
}

/* ---------- SERVICE ---------- */
.service {
  background: var(--bg-alt);
}
.service__intro {
  max-width: 720px;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.service__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.service__lead {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2.2;
  color: var(--text-soft);
}
.service__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service__link {
  display: block;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service__link:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(42, 38, 32, 0.15);
}
.service__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service__link:hover .service__image img { transform: scale(1.06); }
.service__body {
  padding: 32px 28px 36px;
  position: relative;
}
.service__sub {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-jp-serif);
  font-style: normal;
}
.service__name {
  font-family: var(--font-jp-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  line-height: 1.4;
}
.service__desc {
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.service__arrow {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--text);
  position: relative;
  margin-top: 8px;
  transition: width 0.4s var(--ease);
}
.service__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 1px;
  background: var(--text);
  transform: rotate(35deg);
  transform-origin: right;
}
.service__link:hover .service__arrow { width: 48px; }

/* ---------- DOCTOR MESSAGE ---------- */
.doctor {
  position: relative;
  background: var(--text);
  color: var(--bg);
  overflow: hidden;
  padding: clamp(100px, 14vw, 200px) var(--pad-x);
}
.doctor__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(60%);
}
.doctor__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}
.doctor__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--bg);
  margin-bottom: 56px;
}
.doctor__text p {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.doctor__sign {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.doctor__sign-role {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}
.doctor__sign-name {
  font-family: var(--font-jp-serif);
  font-size: 24px;
  letter-spacing: 0.15em;
  color: var(--bg);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg);
}
.faq__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.faq__intro { position: sticky; top: 120px; }
.faq__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.faq__lead {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 2;
  color: var(--text-soft);
}
.faq__list {
  display: flex;
  flex-direction: column;
}
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__q-mark {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  text-align: center;
}
.faq__q-text {
  font-family: var(--font-jp-serif);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.08em;
  line-height: 1.6;
  font-weight: 500;
}
.faq__q-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--text);
  display: inline-block;
}
.faq__q-toggle::before,
.faq__q-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}
.faq__q-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__q-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: start;
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 0 0;
}
.faq__item.is-open .faq__a {
  max-height: 500px;
  padding: 0 0 36px;
}
.faq__a-mark {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 28px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.2;
}
.faq__a-text {
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 2;
  color: var(--text-soft);
  grid-column: 2;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg-alt);
}
.contact__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.contact__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin-bottom: 24px;
}
.contact__lead {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2.2;
  color: var(--text-soft);
  margin-bottom: 56px;
}
.contact__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact__btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.contact__btn-label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.15em;
  transition: color 0.4s var(--ease);
}
.contact__btn:hover .contact__btn-label { color: var(--bg-deep); }
.contact__btn-main {
  font-family: var(--font-en);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: 0.05em;
}
.contact__btn-sub {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  transition: color 0.4s var(--ease);
}
.contact__btn:hover .contact__btn-sub { color: var(--bg-deep); }
.contact__btn--web .contact__btn-main {
  font-family: var(--font-jp-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.15em;
}

/* ---------- ACCESS ---------- */
.access {
  background: var(--bg);
}
.access__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.access__name {
  font-family: var(--font-jp-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 40px;
}
.access__details { display: flex; flex-direction: column; }
.access__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.access__row:last-child { border-bottom: 1px solid var(--line); }
.access__row dt {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.access__row dd {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  letter-spacing: 0.08em;
}
.access__row dd a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.hours th, .hours td {
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.05em;
}
.hours thead th { color: var(--text-soft); font-weight: 500; font-size: 12px; }
.hours td:first-child, .hours th:first-child {
  text-align: left;
  font-family: var(--font-en);
  font-style: italic;
}
.hours__note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.access__map {
  border-radius: 4px;
  overflow: hidden;
  filter: saturate(0.85) brightness(1.02);
}
.access__map iframe { display: block; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 40px;
  position: relative;
  overflow: hidden;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.footer__logo-img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 20px;
  /* invert dark logo to render on dark background */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer__tagline {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__nav a {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--bg); }
.footer__copyright {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}
.footer__visual {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 300;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  line-height: 1;
}

/* ---------- FIXED CTA ---------- */
.fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg);
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}
.fixed-cta__tel, .fixed-cta__web {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--font-jp-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.fixed-cta__tel { color: var(--text); }
.fixed-cta__web { background: var(--accent); color: var(--bg); }

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .header__cta { display: none; }
  .header__toggle { display: flex; align-items: center; justify-content: center; }

  .hero {
    padding-top: 100px;
  }
  .hero__image {
    width: 100%;
    height: 60%;
    top: auto;
    bottom: 0;
  }
  .hero__title {
    font-size: clamp(80px, 28vw, 200px);
    bottom: auto;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg);
    mix-blend-mode: difference;
  }
  .hero__title--jp {
    font-size: clamp(28px, 7vw, 56px);
    bottom: auto;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 86%;
    text-align: center;
    color: var(--white);
    mix-blend-mode: normal;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px 24px;
    border-radius: 4px;
  }
  .hero__title--jp span {
    background: none;
    padding: 0;
  }

  .message__inner,
  .access__inner {
    grid-template-columns: 1fr;
  }
  .feature__item,
  .feature__item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .feature__item:nth-child(even) .feature__image,
  .feature__item:nth-child(even) .feature__body {
    order: initial;
  }
  .feature__num {
    position: relative;
    top: 0;
    left: 0 !important;
    right: auto !important;
    margin-bottom: 12px;
  }
  .service__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq__inner {
    grid-template-columns: 1fr;
  }
  .faq__intro {
    position: relative;
    top: 0;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .hero__copy { margin-top: 0; }
  .hero__lead { font-size: 12px; letter-spacing: 0.18em; padding-left: 40px; }
  .hero__lead::before { width: 28px; }
  .hero__news {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }
  .hero__news-item { font-size: 11px; gap: 8px; }
  .contact__buttons { grid-template-columns: 1fr; }
  .service__list { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; gap: 24px; }
  .fixed-cta { display: grid; }
  body { padding-bottom: 60px; }

  .access__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hours th, .hours td { padding: 8px 2px; font-size: 11px; }
  .nav__en { font-size: 28px; }
  .nav__list a { gap: 12px; }
  .nav__jp { font-size: 11px; }
}
