:root {
  --cream: #F7F2E8;
  --cream-2: #EFE6D4;
  --paper: #FBF8F2;
  --brown-900: #2A2019;
  --brown-800: #3A2C21;
  --brown-700: #54402F;
  --brown-section: #4E3B27;
  --text: #3A3128;
  --muted: #786a5a;
  --gold: #AD8A50;
  --gold-deep: #8C6E3C;
  --gold-light: #D8B87A;
  --orange: #E08E10;
  --line: #E3D8C4;
  --shadow: 0 16px 40px -18px rgba(42, 32, 25, 0.35);
  --radius: 16px;
  --header-h: 66px;
  --font-serif: "Noto Serif JP", serif;
  /* 3箇所以上で使われている余白値のみトークン化 */
  --space-sm: clamp(8px, 1.4vh, 14px);
  --space-md: clamp(10px, 1.6vh, 16px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown-900);
  margin: 0;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brown-900);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   Header / Tabs
   ========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 242, 232, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(42, 32, 25, 0.08);
  display: flex;
  align-items: center;
}

.header-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  display: none;
  height: 52px;
  width: auto;
}

.brand-text {
  line-height: 1.25;
}

.brand-text .sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  font-weight: 600;
}

.brand-text .main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18.5px;
  color: var(--brown-900);
  white-space: nowrap;
}

.tabnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brown-700);
  padding: 9px 16px;
  border-radius: 999px;
  position: relative;
  transition: all .2s ease;
}

.tab-btn:hover {
  background: var(--cream-2);
  color: var(--brown-900);
}

.tab-btn.active {
  background: var(--brown-900);
  color: #fff;
}

.header-phone {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
  display: none;
  flex: none;
}

.header-phone b {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--brown-900);
}

@media (min-width: 1150px) {
  .header-phone {
    display: block;
  }
}

.nav-toggle {
  display: none;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--brown-900);
  position: relative;
  transition: all .25s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

body.menu-open .nav-toggle span {
  background: transparent;
}

body.menu-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--brown-900);
}

body.menu-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--brown-900);
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 99;
  background: var(--paper);
  padding: 10px 16px 18px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 24px rgba(42, 32, 25, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  border-radius: 0 0 16px 16px;
}

body.menu-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--brown-900);
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.active {
  color: var(--gold-deep);
}

.mobile-nav .mn-phone {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.mobile-nav .mn-phone b {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--brown-900);
  margin-top: 2px;
}

@media (max-width: 900px) {
  :root {
    --header-h: 56px;
  }
  .tabnav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  .brand img {
    height: 38px;
  }
  .brand-text .sub {
    display: none;
  }
  .brand-text .main {
    font-size: 15.5px;
  }
}

/* =========================================================
   Stage / Panels（タブ切替の外枠）
   ========================================================= */
.tab-stage {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.tab-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-panel.active {
  display: flex;
}

.panel-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(16px, 2.6vh, 34px) 28px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

@media (max-width: 900px) {
  .panel-inner {
    padding: 12px 18px;
  }
}

#features .panel-inner,
#greeting .panel-inner,
#employers .panel-inner,
#access .panel-inner {
  justify-content: center;
}

/* ---------------------------------------------------------
   Home
   --------------------------------------------------------- */
#home {
  background: var(--brown-900);
}

.home-bg {
  position: absolute;
  inset: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.bg-slide.active {
  opacity: 1;
}

.bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.18) saturate(1.03);
}

.home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 14, 10, 0.62) 0%, rgba(20, 14, 10, 0.42) 46%, rgba(20, 14, 10, 0.2) 100%);
}

.home-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(14px, 2.4vh, 28px) 6px;
  gap: clamp(16px, 3.4vh, 34px);
}

.home-open {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(27px, 4.1vw, 48px);
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.home-sub {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 34px);
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.home-h1 {
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  margin-top: auto;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: var(--space-md);
  max-width: 760px;
}

.home-stats div {
  padding: 0 16px 0 0;
  margin-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  flex: none;
}

.home-stats div:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.home-stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(12.5px, 1.2vw, 15px);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.home-stats span {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.home-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  background: rgba(250, 247, 240, 0.94);
  border-radius: 12px;
  padding: 10px 18px 10px 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--brown-800);
  box-shadow: 0 10px 24px -12px rgba(20, 14, 10, 0.35);
}

.home-notice .tag {
  flex: none;
  background: #FFB444;
  color: #241a0c;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .home-inner {
    padding: 10px 4px;
    gap: 14px;
  }
  .home-open {
    font-size: clamp(19px, 6vw, 26px);
  }
  .home-sub {
    font-size: clamp(14px, 4.6vw, 19px);
  }
  .home-h1 {
    font-size: 16px;
    max-width: 100%;
    white-space: normal;
  }
  .home-stats {
    gap: 0;
  }
  .home-stats div {
    padding: 0 10px 6px 0;
    margin-right: 10px;
    flex: 0 0 auto;
  }
  .home-stats div:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .home-stats b {
    font-size: 11px;
  }
  .home-notice {
    font-size: 10.5px;
    padding: 8px 12px 8px 8px;
  }
  .home-notice .tag {
    font-size: 11px;
    padding: 6px 12px;
  }
  .home-actions .btn {
    padding: 8px 16px;
    font-size: 11.5px;
  }
}

@media (max-width: 900px) {
  #features .panel-inner,
  #greeting .panel-inner,
  #employers .panel-inner,
  #access .panel-inner {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------
   Features
   --------------------------------------------------------- */
.feat-head h1 {
  font-size: clamp(19px, 2.1vw, 27px);
  margin-bottom: 2px;
}

.feat-head .lead {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 clamp(10px, 1.8vh, 20px);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.feat-card {
  background: var(--brown-section);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.feat-media {
  flex: 1 1 55%;
  min-height: 0;
  overflow: hidden;
  background: #46331E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feat-media.contain img {
  object-fit: contain;
  object-position: center center;
}

.feat-body {
  padding: 8px 14px 10px;
  flex: none;
}

.feat-num {
  font-family: var(--font-serif);
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.feat-card h3 {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  margin-top: 2px;
}

.feat-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  margin: 3px 0 0;
  line-height: 1.45;
}

.feat-note {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  flex: none;
}

@media (max-width: 900px) {

  .feat-head h1 {
    font-size: 16.5px;
  }

  .feat-head .lead {
    display: none;
  }

  .feat-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 10px;
    flex: none;
  }

  .feat-card {
    min-height: 0;
  }

  /* PC版の印象を残すため、mobileでも画像を明確に見せる */
  .feat-media {
    display: flex;
    flex: none;
    height: 108px;
    min-height: 108px;
  }

  .feat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .feat-body {
    padding: 9px 10px 11px;
    display: block;
    height: auto;
    flex: none;
  }

  .feat-num {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .feat-card h3 {
    font-size: 11.5px;
    line-height: 1.45;
    margin-top: 3px;
  }

  /* 説明文を2行だけ復活 */
  .feat-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.5;
    margin-top: 4px;
    min-height: 2.9em;
  }

  .feat-note {
    font-size: 9px;
    margin-top: 10px;
  }
}

@media (max-width: 420px) {
  .feat-grid {
    gap: 7px;
  }

  .feat-media {
    height: 96px;
    min-height: 96px;
  }

  .feat-body {
    padding: 8px 9px 10px;
  }

  .feat-card h3 {
    font-size: 10.8px;
  }

  .feat-card p {
    font-size: 9px;
  }
}

/* ---------------------------------------------------------
   Greeting
   --------------------------------------------------------- */
.greet-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 22px);
}

.greet-media,
.emp-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex: none;
}

.greet-media img,
.emp-media img {
  width: 100%;
  aspect-ratio: 21/6;
  object-fit: cover;
}

@media (max-width: 900px) {
  .greet-media,
  .emp-media {
    display: block;
  }

  .greet-media img {
    aspect-ratio: 4 / 3;
  }

  .emp-media img {
    aspect-ratio: 4 / 3;
  }
}

.greet-text h1 {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.greet-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.greet-text p {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  line-height: 1.75;
}

.greet-quote {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  color: var(--brown-800);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
}

.greet-sign {
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: var(--space-sm);
}

@media (max-width: 900px) {
  .greet-grid {
    gap: 10px;
  }
  .greet-text h1 {
    font-size: 16.5px;
    margin-bottom: 8px;
  }
  .greet-cols {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .greet-text p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .greet-quote {
    font-size: 11.5px;
    padding: 11px 14px;
  }
  .greet-sign {
    font-size: 10px;
    margin-top: 8px;
  }
}

/* ---------------------------------------------------------
   Employers
   --------------------------------------------------------- */
.emp-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 22px);
}

.emp-grid h1 {
  font-size: clamp(19px, 2.2vw, 26px);
  margin-bottom: clamp(8px, 1.4vh, 12px);
}

.law-badge-sm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--brown-800);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.law-badge-sm .tag {
  flex: none;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.emp-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 22px;
}

.emp-mini h4 {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--brown-900);
  margin: 0 0 4px;
  font-weight: 700;
}

.emp-mini p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .emp-grid {
    gap: 10px;
  }
  .emp-grid h1 {
    font-size: 16.5px;
  }
  .law-badge-sm {
    font-size: 11px;
    padding: 9px 11px;
  }
  .emp-mini {
    grid-template-columns: 1fr 1fr;
    gap: 9px 16px;
  }
  .emp-mini h4 {
    font-size: 12px;
  }
  .emp-mini p {
    font-size: 10.5px;
  }
}

/* ---------------------------------------------------------
   Access
   --------------------------------------------------------- */
.access-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 3.2vw, 50px);
  align-items: stretch;
  flex: 1;
  min-height: 0;
  max-height: 560px;
}

.access-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-grid h1 {
  font-size: clamp(19px, 2.2vw, 27px);
  margin-bottom: var(--space-sm);
}

.access-info-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.access-photo-sm {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--space-md);
  flex: 1;
  min-height: 120px;
}

.access-photo-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.access-lines div {
  font-size: 12.5px;
  color: var(--brown-900);
  line-height: 1.6;
  margin-bottom: 8px;
}

.access-lines b {
  display: inline-block;
  min-width: 56px;
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: top;
}

.access-map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-box {
  flex: 1;
  min-height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

.map-note {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  flex: none;
}

@media (max-width: 900px) {
  .access-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none;
    flex: none;
    min-height: auto;
  }
  .access-info-col {
    min-height: auto;
  }
  .access-grid > div:first-child {
    justify-content: flex-start;
  }
  .access-map-wrap {
    flex: none;
    min-height: auto;
  }
  .access-grid h1 {
    font-size: 16.5px;
  }
  .access-photo-sm {
    display: block;
    flex: none;
    height: 150px;
    min-height: 0;
  }
  .access-lines div {
    font-size: 11.5px;
  }
  .map-box {
    flex: none;
    min-height: 180px;
  }
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
#contact {
  background: var(--brown-section);
}

#contact .panel-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.contact-box {
  max-width: 680px;
  width: 100%;
}

#contact .eyebrow {
  color: var(--gold-light);
}

#contact .eyebrow::before {
  background: var(--gold-light);
}

#contact h1 {
  color: #fff;
  font-size: clamp(28px, 2.8vw, 38px);
  margin-bottom: 10px;
}

#contact .lead-sm {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 clamp(16px, 2vh, 26px);
}

.contact-card-sm {
  background: #46331E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: clamp(28px, 3.2vh, 34px) clamp(34px, 3.6vw, 42px);
}

.contact-card-sm .free {
  display: inline-block;
  background: rgba(216, 184, 122, 0.15);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.contact-card-sm .phone {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  text-decoration: none;
}

.contact-card-sm .phone-mobile {
  display: none;
}

@media (max-width: 900px) {
  .contact-card-sm .phone-mobile {
    display: inline-block;
  }

  .contact-card-sm .phone-pc {
    display: none;
  }
}

.contact-card-sm .phone-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

.contact-meta-sm {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-note-sm {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: 8px;
}

.privacy-note {
  margin-top: 18px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 20px;
  border-radius: 8px;
}

.privacy-note a {
  color: var(--gold-light);
  text-decoration: underline;
}

.privacy-note b {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  display: block;
  margin-bottom: 7px;
}

.contact-dm-stop {
  margin-top: 18px;
}

/* お問い合わせフォーム */
.contact-form-wrap {
  margin-top: 18px;
  text-align: left;
  background: #46331E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: clamp(24px, 3vh, 32px) clamp(22px, 3.6vw, 42px);
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  text-align: center;
  margin: 0 0 6px;
}

.contact-form-lead {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin: 0 0 18px;
}

.contact-form-alert {
  font-size: 13px;
  line-height: 1.7;
  color: #fff;
  background: rgba(224, 142, 16, 0.16);
  border: 1px solid rgba(224, 142, 16, 0.6);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.contact-required {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brown-900);
  background: var(--gold-light);
  padding: 2px 8px;
  border-radius: 999px;
}

.contact-optional {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  padding: 1px 7px;
  border-radius: 999px;
}

.contact-field input:not([type="radio"]),
.contact-field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
}

.contact-field-radio {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}

.contact-field-radio legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  padding: 0;
  margin-bottom: 8px;
}

.contact-field-radio .contact-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 8px;
  cursor: pointer;
}

.contact-field-radio .contact-radio input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--gold-light);
}

.contact-field-radio .contact-radio:has(input:checked) {
  border-color: var(--gold-light);
  background: rgba(216, 184, 122, 0.14);
}

.contact-field-radio.has-error .contact-radio {
  border-color: var(--orange);
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field input:not([type="radio"]):focus,
.contact-field textarea:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
  border-color: var(--gold);
}

.contact-field.has-error input:not([type="radio"]),
.contact-field.has-error textarea {
  border-color: var(--orange);
}

.contact-field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #F5B95A;
}

/* ボット対策（Cloudflare Turnstile）のウィジェット */
.contact-turnstile {
  margin-top: 4px;
  min-height: 65px;
}

/* ハニーポット（人には見えない入力欄。display:none を使わず画面外に置く） */
.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-form-actions .btn {
  font-family: inherit;
}

.contact-form-actions .btn-ghost {
  background: transparent;
}

.contact-form-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-form-actions .btn-primary {
  background: var(--gold-light);
  color: var(--brown-900);
}

.contact-form-actions .btn-primary:hover {
  background: #fff;
}

.contact-confirm {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-confirm-row {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-confirm-row dt {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.contact-confirm-row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #fff;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .contact-form-wrap {
    padding: 20px 18px;
  }

  .contact-confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------
   Site footer（全ページ共通）
   --------------------------------------------------------- */
.site-footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  flex: none;
}

/* ホーム・お問い合わせは背景が暗色のため文字色を反転 */
#home .site-footer {
  position: relative;
  z-index: 2;
}
#contact .site-footer {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  #contact h1 {
    font-size: 20px;
  }

  #contact .lead-sm {
    font-size: 12.5px;
    line-height: 1.7;
  }

  .contact-card-sm {
    padding: 20px 22px;
  }

  .contact-card-sm .phone {
    font-size: 26px;
  }

  .contact-card-sm .phone-sub {
    font-size: 11.5px;
  }

  .contact-meta-sm {
    font-size: 12.5px;
  }

  .contact-note-sm {
    font-size: 11.5px;
  }

  .privacy-note {
    font-size: 11.5px;
    line-height: 1.8;
    padding: 15px 16px;
  }

  .privacy-note b {
    font-size: 12px;
  }

  .site-footer {
    font-size: 9px;
  }
}

/* =========================================================
   Sticky reserve tab（本サイトと共通仕様）
   ========================================================= */
.reserve-tab {
  display: none !important; /* 現在は一時非表示。公開時に削除 */
  display: flex;
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 120;

  width: 64px;
  min-height: 275px;
  padding: 22px 11px 18px;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;

  background: linear-gradient(180deg, #D8AC4E, #C39642);
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: none;
  border-radius: 16px 0 0 16px;

  box-shadow: 0 14px 30px -12px rgba(20, 14, 10, 0.45);

  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.reserve-tab:hover {
  padding-right: 15px;
}

.reserve-tab-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.reserve-tab-en,
.reserve-tab-jp {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
}

.reserve-tab-en {
  letter-spacing: 0.18em;
}

.reserve-tab-jp {
  letter-spacing: 0.14em;
}

.reserve-tab-tag {
  flex: none;
  margin-top: 18px;

  background: rgba(255, 255, 255, 0.94);
  color: var(--gold-deep);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;

  padding: 5px 7px;
  border-radius: 999px;

  white-space: nowrap;
  writing-mode: horizontal-tb;
}

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

.reserve-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 20, 13, 0.55);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reserve-modal-overlay.open {
  display: flex;
}

.reserve-modal {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 36px 30px 30px;
  box-shadow: 0 30px 70px -20px rgba(20, 14, 10, 0.5);
  text-align: left;
}

.reserve-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brown-800);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reserve-modal-close:hover {
  background: var(--cream-2);
}

.reserve-modal-tag {
  display: inline-block;
  background: #FFB444;
  color: #241a0c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.reserve-modal h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--brown-900);
  margin-bottom: 12px;
}

.reserve-modal p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 9px;
}

.reserve-modal-sub {
  color: var(--muted);
  font-size: 12.5px;
}

.reserve-modal-btn {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .reserve-modal {
      padding: 30px 20px 24px;
    }
}
