/*
Theme Name: 0720井ノ原法務事務所
Theme URI: https://inohara-houmu.jp/
Author: v0
Description: 兵庫県たつの市の司法書士・社会福祉士事務所「井ノ原法務事務所」のコーポレートサイト用WordPressテーマ。相続・遺言・成年後見・不動産登記・商業登記・福祉相談に対応したランディングページです。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inohara
*/

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --primary: oklch(0.28 0.06 255);
  --primary-foreground: oklch(1 0 0);
  --primary-light: oklch(0.96 0.01 255);
  --primary-dark: oklch(0.20 0.05 255);

  --accent: oklch(0.58 0.12 70);
  --accent-foreground: oklch(1 0 0);
  --accent-light: oklch(0.96 0.02 70);

  --background: oklch(0.995 0 0);
  --foreground: oklch(0.25 0.02 255);
  --card: oklch(1 0 0);
  --secondary: oklch(0.97 0.005 255);
  --muted: oklch(0.96 0.005 255);
  --muted-foreground: oklch(0.50 0.02 255);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.92 0.005 255);

  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --rose-400: #fb7185;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;

  --radius: 0.5rem;
  --header-height: 72px;

  --font-sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* ============================================================
   Base / Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: var(--background);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }
}

.bg-white { background-color: var(--card); }
.bg-secondary { background-color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-muted { background-color: color-mix(in oklch, var(--muted) 30%, transparent); }

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-header__lead {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}
.section-header--light .section-header__title { color: #fff; }
.section-header--light .section-header__lead { color: rgba(255,255,255,0.7); }

@media (min-width: 768px) {
  .section-header__title { font-size: 2.25rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background-color: var(--primary);
  color: #fff;
  padding: 0.625rem 1.25rem;
}
.btn--primary:hover { background-color: color-mix(in oklch, var(--primary) 90%, black); }
.btn--accent {
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 15px -3px color-mix(in oklch, var(--accent) 25%, transparent);
}
.btn--accent:hover {
  background-color: color-mix(in oklch, var(--accent) 90%, black);
  box-shadow: 0 20px 25px -5px color-mix(in oklch, var(--accent) 30%, transparent);
}
.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
}
.btn--ghost:hover { background-color: color-mix(in oklch, var(--primary) 5%, transparent); }
.btn--outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.btn--outline:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.btn--lg { padding: 0.875rem 2rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn__icon { width: 1rem; height: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }

/* ------------------------------------------------------------
   アイコン共通サイズ
   inohara_icon() が出力する <svg> は width/height 属性を持たない
   ため、既定値を与えないと親要素いっぱいまで拡大される。
   ------------------------------------------------------------ */
svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hero__cta-tel svg,
.hero__cta-mail svg,
.hero__side a svg,
.insta__tag svg,
.insta__handle svg,
.insta__follow a svg,
.contact__submit svg,
.faq__q svg {
  width: 1.25rem;
  height: 1.25rem;
}

.flow__step-icon svg,
.flow__online-icon svg,
.access__item-icon svg,
.contact__phone-icon svg,
.links-group__icon svg,
.menu-toggle svg,
.mobile-drawer__close svg,
.insta__cell-sample-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.4s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header__logo img { width: 40px; height: 40px; }
.site-header__logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
  white-space: nowrap;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.5rem 0.625rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border-radius: 9999px;
  transition: all 0.2s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: color-mix(in oklch, var(--primary) 70%, transparent);
  background-color: color-mix(in oklch, var(--primary) 5%, transparent);
}
.site-header__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}
.site-header__tel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
/* 幅が足りない帯域では番号を隠し、アイコンだけ残して発信導線は維持する */
.site-header__tel > span:not(.site-header__tel-icon) { display: none; }
.site-header__tel-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
}
.site-header__tel-icon svg { width: 1rem; height: 1rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--primary);
}
.menu-toggle:hover { background-color: color-mix(in oklch, var(--primary) 5%, transparent); }

/* 8項目のナビ＋電話＋CTAが1行に収まるのは 1160px から */
@media (min-width: 1160px) {
  .site-nav { display: flex; }
  .site-header__actions { display: flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) {
  .site-nav a { padding: 0.5rem 0.75rem; }
  .site-header__tel > span:not(.site-header__tel-icon) { display: inline; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer__head span { font-size: 1.125rem; font-weight: 600; }
.mobile-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer__nav {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
}
.mobile-drawer__nav a {
  display: flex;
  align-items: center;
  padding: 1rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  border-radius: 0.75rem;
}
.mobile-drawer__nav a:hover { background-color: var(--muted); }
.mobile-drawer__foot {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-drawer__foot .btn { height: 3rem; border-radius: 0.75rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.3));
}
.hero__overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.7));
}
.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 8rem 0;
}
.hero__inner { max-width: 42rem; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.badge--primary { background-color: var(--primary); }
.badge--sky { background-color: var(--sky-500); }
.hero__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: color-mix(in oklch, var(--primary) 60%, transparent);
  margin-bottom: 1rem;
}
.hero__label svg { color: var(--rose-400); width: 1rem; height: 1rem; }
.hero__title {
  line-height: 1.15;
  margin-bottom: 2rem;
}
.hero__title-1 {
  display: block;
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: color-mix(in oklch, var(--primary) 80%, transparent);
}
.hero__title-2 {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}
.hero__title-3 {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--sky-600);
}
.hero__desc {
  color: color-mix(in oklch, var(--foreground) 70%, transparent);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero__cta-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}
.hero__cta-tel:hover { background-color: color-mix(in oklch, var(--primary) 90%, black); }
.hero__cta-tel-num { font-size: 1.5rem; letter-spacing: 0.02em; }
.hero__cta-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--sky-500);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}
.hero__cta-mail:hover { background-color: var(--sky-600); }
.hero__hours {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: color-mix(in oklch, var(--foreground) 50%, transparent);
  font-size: 0.875rem;
}
.hero__banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, var(--primary), var(--sky-600));
}
.hero__banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.hero__banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}
.hero__banner-tag {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.2);
  border-radius: 9999px;
}
.hero__banner-text { font-size: 1rem; font-weight: 500; }
.hero__banner-link {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero__banner-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__side { display: none; }

@media (min-width: 640px) {
  .hero__title-1 { font-size: 2.25rem; }
  .hero__title-2, .hero__title-3 { font-size: 3rem; }
  .hero__desc { font-size: 1.125rem; }
  .hero__cta { flex-direction: row; }
  .hero__banner-inner { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero__title-1 { font-size: 3rem; }
  .hero__title-2, .hero__title-3 { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .hero__title-2, .hero__title-3 { font-size: 4.5rem; }
}
@media (min-width: 1280px) {
  .hero__side {
    display: flex;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero__side a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 5rem;
    color: #fff;
    border-radius: 0.5rem 0 0 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
  }
  .hero__side a span { font-size: 10px; margin-top: 0.25rem; }
  .hero__side-tel { background-color: var(--primary); }
  .hero__side-tel:hover { background-color: color-mix(in oklch, var(--primary) 90%, black); }
  .hero__side-mail { background-color: var(--sky-500); }
  .hero__side-mail:hover { background-color: var(--sky-600); }
}

/* ============================================================
   Grid utilities
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid--gap-sm { gap: 1rem; }

/* ============================================================
   Lifestage
   ============================================================ */
.lifestage__grid {
  display: grid;
  gap: 1.5rem;
}
.lifestage__card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
}
.lifestage__card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: color-mix(in oklch, var(--primary) 20%, transparent);
}
.lifestage__num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3.75rem;
  font-weight: 700;
  color: color-mix(in oklch, var(--primary) 5%, transparent);
  transition: color 0.2s;
}
.lifestage__card:hover .lifestage__num { color: color-mix(in oklch, var(--primary) 10%, transparent); }
.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s;
}
.lifestage__card:hover .card-icon,
.strength__card:hover .card-icon {
  background-color: var(--primary);
  color: #fff;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.lifestage__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.lifestage__subtitle {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.lifestage__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.lifestage__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.lifestage__card:hover .lifestage__link { gap: 0.75rem; }

@media (min-width: 768px) {
  .lifestage__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Concerns
   ============================================================ */
.concerns__grid {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
.concern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--secondary);
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.concern:hover { border-color: color-mix(in oklch, var(--primary) 20%, transparent); }
.concern__check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.concern__check svg { width: 0.875rem; height: 0.875rem; color: var(--primary); }
.concern p { font-size: 15px; color: var(--foreground); line-height: 1.7; }

@media (min-width: 768px) {
  .concerns__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Services (Tabs + cards + modal)
   ============================================================ */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.tab {
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #fff;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tab.is-active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px color-mix(in oklch, var(--primary) 25%, transparent);
}
.services__panel { display: none; }
.services__panel.is-active { display: grid; }
.services__grid {
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: color-mix(in oklch, var(--primary) 20%, transparent);
}
.service-card__media {
  position: relative;
  height: 12rem;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.service-card__media h3 {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}
.service-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card__case {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}
.service-card__actions .btn { font-size: 0.875rem; }

@media (min-width: 768px) {
  .services__panel.is-active { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services__panel.is-active { grid-template-columns: repeat(6, 1fr); }
  .services__grid .service-card-wrap { grid-column: span 2; }
  /* 個人向け5件: 2段目(4,5番目)を中央 */
  .services__panel[data-panel="personal"] .service-card-wrap:nth-child(4) { grid-column: 2 / span 2; }
  .services__panel[data-panel="personal"] .service-card-wrap:nth-child(5) { grid-column: 4 / span 2; }
  /* 法人向け1件: 中央 */
  .services__panel[data-panel="corporate"] .service-card-wrap:nth-child(1) { grid-column: 3 / span 2; }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__media {
  position: relative;
  height: 10rem;
  overflow: hidden;
}
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal__close:hover { background: #fff; }
.modal__header {
  padding: 0 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
}
.modal__header-inner {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.modal__title { font-size: 1.25rem; font-weight: 700; color: var(--foreground); }
.modal__subtitle { font-size: 0.875rem; color: var(--muted-foreground); }
.modal__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.modal__block h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.modal__block p { font-size: 0.875rem; color: var(--foreground); line-height: 1.7; }
.modal__footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ============================================================
   Strengths
   ============================================================ */
.strengths__grid {
  display: grid;
  gap: 1.5rem;
}
.strength__card {
  position: relative;
  background-color: var(--secondary);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}
.strength__card:hover {
  background-color: var(--primary);
  box-shadow: 0 20px 25px -5px color-mix(in oklch, var(--primary) 20%, transparent);
}
.strength__card:hover .card-icon {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
}
.strength__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.strength__card:hover .strength__title { color: #fff; }
.strength__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  transition: color 0.2s;
}
.strength__card:hover .strength__desc { color: rgba(255,255,255,0.8); }

@media (min-width: 768px) {
  .strengths__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .strengths__grid { grid-template-columns: repeat(6, 1fr); }
  .strengths__grid .strength__card { grid-column: span 2; }
  .strengths__grid .strength__card:nth-child(4) { grid-column: 2 / span 2; }
  .strengths__grid .strength__card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ============================================================
   Team
   ============================================================ */
.team__rep { margin-bottom: 3rem; }
.team__rep-mobile {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.team__rep-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.team__rep-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team__rep-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--primary) 60%, transparent), transparent 60%);
}
.team__rep-photo-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
}
.team__rep-photo-label p { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 0.25rem; }
.team__rep-photo-label h3 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.team__rep-body { padding: 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.badge-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  border-radius: 9999px;
  font-weight: 500;
}
.team__specialty { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.team__sub-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.team__profile { margin-bottom: 1rem; }
.team__profile ul { display: flex; flex-direction: column; gap: 0.25rem; }
.team__profile li {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.team__profile li::before { content: "・"; color: var(--primary); }
.team__message p { font-size: 0.875rem; color: var(--foreground); line-height: 1.7; }

.team__rep-desktop { display: none; }

.team__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}
.team-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.team-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.team-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--primary) 60%, transparent), transparent 60%);
}
.team-card__photo-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
}
.team-card__photo-label p { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 0.25rem; }
.team-card__photo-label h3 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.team-card__body { padding: 1.5rem; }
.team-card__body p.msg { font-size: 0.875rem; color: var(--foreground); line-height: 1.7; }

@media (min-width: 640px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team__rep-mobile { display: none; }
  .team__rep-desktop { display: block; }
  .team__rep-desktop-inner {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    min-height: 550px;
  }
  .team__rep-desktop-inner > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .team__rep-overlay {
    position: absolute;
    inset: 0;
    display: flex;
  }
  .team__rep-overlay-box {
    width: 40%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .team__rep-overlay-box .team__rep-name p { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 0.25rem; }
  .team__rep-overlay-box .team__rep-name h3 { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin-bottom: 1rem; }
  .team__rep-overlay-box .badges { margin-bottom: 1.5rem; }
  .team__rep-overlay-box .team__profile { margin-bottom: 1.5rem; }
}

/* ============================================================
   Flow
   ============================================================ */
.flow__layout {
  display: grid;
  gap: 2.5rem;
}
.flow__steps { position: relative; }
.flow__line {
  display: none;
  position: absolute;
  left: 1.75rem;
  top: 3rem;
  bottom: 3rem;
  width: 1px;
  background-color: var(--border);
}
.flow__list { display: flex; flex-direction: column; gap: 2rem; }
.flow__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.flow__step-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s;
}
.flow__step:hover .flow__step-icon { background-color: var(--primary); color: #fff; }
.flow__step-body { padding-top: 0.5rem; }
.flow__step-num { font-size: 0.75rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.flow__step-title { font-size: 1.125rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.5rem; }
.flow__step-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }
.flow__online {
  background-color: var(--primary);
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  height: fit-content;
}
.flow__online-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.flow__online-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.flow__online-desc { color: rgba(255,255,255,0.8); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.flow__online-list { display: flex; flex-direction: column; gap: 0.75rem; }
.flow__online-item { display: flex; align-items: center; gap: 0.75rem; }
.flow__online-item span.n {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--accent);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.flow__online-item p { font-size: 0.875rem; }

@media (min-width: 768px) {
  .flow__line { display: block; }
}
@media (min-width: 1024px) {
  .flow__layout { grid-template-columns: 1fr 320px; }
}

/* ============================================================
   Metrics
   ============================================================ */
.metrics__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.metric {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.metric__value { font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; white-space: nowrap; }
.metric__unit { font-size: 1.125rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.metric__label { color: rgba(255,255,255,0.8); }

@media (min-width: 640px) {
  .metrics__grid { grid-template-columns: repeat(3, 1fr); }
  .metric__value { font-size: 3.75rem; }
}

/* ============================================================
   Cases
   ============================================================ */
.cases__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.cases__filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  border: none;
  transition: all 0.2s;
}
.cases__filter-btn.is-active {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 15px -3px color-mix(in oklch, var(--primary) 25%, transparent);
}
.cases__grid {
  display: grid;
  gap: 1.5rem;
}
.case-card {
  background-color: var(--secondary);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}
.case-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.case-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover .case-card__media img { transform: scale(1.05); }
.case-card__cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}
.case-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.case-card__block h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}
.case-card__block p {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card.is-hidden { display: none; }

@media (min-width: 768px) {
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cases__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.testimonial {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.testimonial__quote {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial__quote svg { width: 1rem; height: 1rem; color: #fff; }
.testimonial__stars { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; padding-top: 0.5rem; }
.testimonial__stars svg { width: 1rem; height: 1rem; fill: var(--accent); color: var(--accent); }
.testimonial__text { color: var(--foreground); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial__author { padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial__author p:first-child { font-weight: 600; color: var(--foreground); }
.testimonial__author p:last-child { font-size: 0.875rem; color: var(--muted-foreground); }

@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Fees
   ============================================================ */
.fees__wrap { max-width: 56rem; margin: 0 auto; }
.fees__table {
  background-color: var(--secondary);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.fees__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
  align-items: center;
}
.fees__row--head {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.fees__row--even { background: #fff; }
.fees__row--odd { background-color: var(--secondary); }
.fees__row .svc { font-weight: 500; color: var(--foreground); }
.fees__row .price { font-weight: 700; color: var(--primary); }
.fees__row .note { color: var(--muted-foreground); }
.fees__notes {
  background-color: color-mix(in oklch, var(--primary) 5%, transparent);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.fees__notes h4 { font-size: 0.875rem; font-weight: 600; color: var(--foreground); margin-bottom: 1rem; }
.fees__notes ul { display: flex; flex-direction: column; gap: 0.5rem; }
.fees__notes li {
  font-size: 0.875rem;
  color: var(--foreground);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.fees__notes li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--primary);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.fees__cta { text-align: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__wrap {
  max-width: 48rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  background: transparent;
  border: none;
}
.faq__q span {
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}
.faq__q:hover span { color: var(--primary); }
.faq__q svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; padding-bottom: 1.25rem; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  padding-right: 2.5rem;
}

@media (min-width: 768px) {
  .faq__wrap { padding: 2rem; }
}

/* ============================================================
   Instagram
   ============================================================ */
.insta__head { text-align: center; margin-bottom: 3rem; }
.insta__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #a855f7, #ec4899, #f97316);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.insta__tag span { font-size: 0.875rem; font-weight: 600; }
.insta__title { font-size: 1.875rem; font-weight: 700; color: var(--foreground); margin-bottom: 1rem; }
.insta__lead { color: var(--muted-foreground); max-width: 42rem; margin: 0 auto; }
.insta__handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.insta__handle:hover { text-decoration: underline; }
.insta__banner {
  background-color: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.insta__banner p { color: var(--amber-800); font-size: 0.875rem; font-weight: 500; }
.insta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.insta__cell {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--muted);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.insta__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.insta__cell:hover img { transform: scale(1.05); }
.insta__cell-sample {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(168,85,247,0.2), rgba(236,72,153,0.2), rgba(249,115,22,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.insta__cell-sample-box {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
}
.insta__cell-sample-box svg { width: 1.5rem; height: 1.5rem; color: #ec4899; margin: 0 auto 0.25rem; }
.insta__cell-sample-box span { font-size: 0.75rem; color: var(--muted-foreground); }
.insta__follow { text-align: center; margin-top: 2rem; }
.insta__follow a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #a855f7, #ec4899, #f97316);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.insta__follow a:hover { opacity: 0.9; }

@media (min-width: 768px) {
  .insta__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .insta__title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .insta__grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   Access
   ============================================================ */
.access__layout {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
.access__images { display: flex; flex-direction: column; gap: 1rem; }
.access__img {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
}
.access__img img { width: 100%; height: 100%; object-fit: cover; }
.access__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--primary) 60%, transparent), transparent 60%);
}
.access__img--soft::after { background: linear-gradient(to top, color-mix(in oklch, var(--primary) 40%, transparent), transparent 60%); }
.access__img-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
}
.access__img-label p { color: #fff; }
.access__img-label p.title { font-size: 0.875rem; font-weight: 500; }
.access__img-label p.sub { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.access__info { display: flex; flex-direction: column; gap: 1.5rem; }
.access__item { display: flex; align-items: flex-start; gap: 1rem; }
.access__item-icon {
  width: 3rem;
  height: 3rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s;
}
.access__item:hover .access__item-icon { background-color: var(--primary); color: #fff; }
.access__item-body { padding-top: 0.25rem; }
.access__item-body h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.access__item-body p { color: var(--foreground); }
.access__item-body p.sub { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.125rem; }

@media (min-width: 1024px) {
  .access__layout { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Contact
   ============================================================ */
.contact__layout {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
.contact__form {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.form-fields { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group .req { color: var(--destructive); }
.form-control {
  width: 100%;
  height: 3rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  background: #fff;
  color: var(--foreground);
}
textarea.form-control { height: auto; padding: 0.75rem 0.875rem; resize: vertical; }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 20%, transparent);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  transition: all 0.2s;
}
.chip.is-selected {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px color-mix(in oklch, var(--primary) 20%, transparent);
}
.chip:not(.is-selected):hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.form-check { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-check input { margin-top: 0.2rem; width: 1rem; height: 1rem; }
.form-check label { font-size: 0.875rem; line-height: 1.7; }
.form-check a { color: var(--primary); }
.form-check a:hover { text-decoration: underline; }
.contact__submit { height: 3.5rem; font-size: 1rem; }
.contact__sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__phone {
  background-color: var(--primary);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #fff;
}
.contact__phone-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.contact__phone-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__phone-head h3 { font-size: 1.125rem; font-weight: 600; }
.contact__phone-num { display: block; font-size: 1.875rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact__phone-hours { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.contact__trust {
  background-color: color-mix(in oklch, var(--secondary) 50%, transparent);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.contact__trust p { font-size: 0.75rem; color: var(--muted-foreground); text-align: center; }

@media (min-width: 768px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .contact__layout { grid-template-columns: 1fr 360px; }
}

/* ------------------------------------------------------------
   Contact Form 7 との調整
   フォーム本体は管理画面「お問い合わせ」で定義し、
   入力欄には class:form-control を付けて既存スタイルを流用する。
   ------------------------------------------------------------ */
.contact__form .wpcf7 { margin: 0; }
.contact__form .wpcf7-form-control-wrap { display: block; }
.contact__form-fallback {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-align: center;
  padding: 2rem 0;
}

/* チェックボックス（ご相談内容） */
.contact__form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
}
.contact__form .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.contact__form .wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
}
.contact__form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* プライバシーポリシー同意 */
.contact__form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact__form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  cursor: pointer;
}
.contact__form .wpcf7-acceptance a { color: var(--primary); }
.contact__form .wpcf7-acceptance a:hover { text-decoration: underline; }

/* 送信ボタン（CF7 は input[type=submit] のため擬似要素が使えず、アイコンは背景で描画） */
.contact__submit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(50% + 2.75rem) center;
  background-size: 1.25rem 1.25rem;
}
.contact__submit:disabled { opacity: 0.6; cursor: default; }

/* バリデーションエラー・送信結果 */
.contact__form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--destructive);
}
.contact__form .form-control.wpcf7-not-valid {
  border-color: var(--destructive);
}
.contact__form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
}
.contact__form .wpcf7 form.sent .wpcf7-response-output {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  background-color: color-mix(in oklch, var(--primary) 5%, transparent);
  color: var(--primary);
}
.contact__form .wpcf7 form.invalid .wpcf7-response-output,
.contact__form .wpcf7 form.unaccepted .wpcf7-response-output,
.contact__form .wpcf7 form.failed .wpcf7-response-output,
.contact__form .wpcf7 form.aborted .wpcf7-response-output {
  border-color: color-mix(in oklch, var(--destructive) 40%, transparent);
  background-color: color-mix(in oklch, var(--destructive) 5%, transparent);
  color: var(--destructive);
}
.contact__form .wpcf7-spinner { margin: 0.75rem auto 0; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--primary);
  color: #fff;
}
.site-footer__inner { padding: 4rem 0; }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer__brand-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.site-footer__brand-logo img { width: 40px; height: 40px; }
.site-footer__brand-logo span { font-size: 1.125rem; font-weight: 600; }
.site-footer__brand p { font-size: 0.875rem; }
.site-footer__brand-desc { color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 24rem; margin-bottom: 1rem; }
.site-footer__brand-addr { color: rgba(255,255,255,0.6); }
.site-footer__col h4 { font-weight: 600; margin-bottom: 1rem; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer__bottom p { text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.5); }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__brand { grid-column: span 2; }
}

/* ============================================================
   Mobile CTA
   ============================================================ */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__inner { display: flex; gap: 0.5rem; }
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.mobile-cta a svg { width: 1rem; height: 1rem; }
.mobile-cta__tel { background-color: var(--primary); color: #fff; }
.mobile-cta__reserve { background-color: var(--accent); color: #fff; }
.mobile-cta__online { background-color: var(--secondary); color: var(--foreground); }

/* ハンバーガー表示の帯域では下部CTAを残す（ヘッダー切替と同じ 1160px） */
@media (min-width: 1160px) {
  .mobile-cta { display: none; }
}

/* ============================================================
   下層ページ共通
   ============================================================ */
/* トップ以外はヒーローが無いため、ヘッダーを常に不透明にする */
body:not(.home) .site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.container--narrow { max-width: 56rem; }

.content-page {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
}
.content-page--error { min-height: 70vh; display: flex; align-items: center; }

/* 記事・固定ページ本文 */
.entry__header { margin-bottom: 2rem; }
.entry__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.entry__meta { font-size: 0.875rem; color: var(--muted-foreground); }
.entry__thumb {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.entry__content { color: var(--foreground); line-height: 1.9; }
.entry__content > * + * { margin-top: 1.5rem; }
.entry__content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.entry__content h3 { font-size: 1.125rem; font-weight: 700; }
.entry__content ul, .entry__content ol { padding-left: 1.5rem; }
.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }
.entry__content li + li { margin-top: 0.5rem; }
.entry__content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry__content img { border-radius: 0.75rem; }
.entry__content blockquote {
  padding: 1rem 1.25rem;
  background-color: var(--secondary);
  border-left: 3px solid var(--primary);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--muted-foreground);
}
.entry__content table { width: 100%; border-collapse: collapse; }
.entry__content th, .entry__content td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  text-align: left;
}
.entry__content th { background-color: var(--secondary); font-weight: 600; }

.entry__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
}
.entry__nav a { color: var(--primary); }
.entry__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 投稿一覧 */
.archive__header { margin-bottom: 2.5rem; text-align: center; }
.archive__title { font-size: 1.75rem; font-weight: 700; color: var(--foreground); }
.archive__desc { color: var(--muted-foreground); margin-top: 0.75rem; }

.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-list__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.post-list__item:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: color-mix(in oklch, var(--primary) 20%, transparent);
}
.post-list__title { font-size: 1.25rem; font-weight: 700; color: var(--foreground); }
.post-list__title a:hover { color: var(--primary); }
.post-list__meta { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.post-list__excerpt { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.8; margin-top: 1rem; }
.post-list__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.post-list__more:hover { text-decoration: underline; text-underline-offset: 4px; }

.no-posts {
  text-align: center;
  color: var(--muted-foreground);
  padding: 3rem 0;
}

.pagination { margin-top: 3rem; }
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.pagination .page-numbers:hover { color: var(--primary); }
.pagination .page-numbers.current {
  background-color: var(--primary);
  color: #fff;
}
.pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* 404 */
.error-404 { text-align: center; margin: 0 auto; }
.error-404__code {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: color-mix(in oklch, var(--primary) 20%, transparent);
  margin-bottom: 1rem;
}
.error-404__title { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.75rem; }
.error-404__lead { color: var(--muted-foreground); margin-bottom: 2rem; }

@media (min-width: 768px) {
  .entry__title, .archive__title { font-size: 2.25rem; }
  .error-404__code { font-size: 6rem; }
}

/* ============================================================
   関連リンク一覧ページ
   ============================================================ */
.links-hero {
  background: linear-gradient(to bottom, color-mix(in oklch, var(--primary) 5%, transparent), var(--background));
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  text-align: center;
}
.links-hero__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.links-hero__lead {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.8;
}

.links-list-section { padding: 3rem 0 5rem; }
.links-groups { display: flex; flex-direction: column; gap: 2.5rem; }

.links-group__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.links-group__icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.links-group__title { font-size: 1.25rem; font-weight: 700; color: var(--foreground); }

.links-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
}
.links-card__item { border-bottom: 1px solid var(--border); }
.links-card__item:last-child { border-bottom: none; }
.links-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  transition: background-color 0.2s;
}
a.links-card__link:hover { background-color: color-mix(in oklch, var(--muted) 30%, transparent); }
a.links-card__link:hover .links-card__name { color: var(--primary); }
.links-card__link--disabled { cursor: default; }
.links-card__text { display: flex; flex-direction: column; gap: 0.25rem; }
.links-card__name {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}
.links-card__note { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.7; }
.links-card__badge {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background-color: color-mix(in oklch, var(--muted) 50%, transparent);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}
.links-card__ext {
  display: flex;
  align-items: center;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.links-back { margin-top: 3rem; text-align: center; }
.links-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}
.links-back__link:hover { color: color-mix(in oklch, var(--primary) 80%, transparent); }

@media (min-width: 768px) {
  .links-hero { padding: calc(var(--header-height) + 4rem) 0 3rem; }
  .links-hero__title { font-size: 2.25rem; }
  .links-card__link { padding: 1.25rem; }
}
