/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Sawarabi+Mincho&family=Roboto+Condensed:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand */
  --green:         #00A040;
  --green-dark:    #007830;
  --green-deeper:  #003013;
  --accent:        #abcd03;
  --accent-dark:   #8aa300;

  /* Semantic */
  --blue:          #2563a8;
  --blue-bg:       #eff6ff;
  --blue-border:   #93c5fd;
  --amber:         #b45309;
  --amber-bg:      #fffbeb;
  --amber-border:  #fcd34d;
  --red:           #b91c1c;
  --red-bg:        #fef2f2;
  --red-border:    #fca5a5;

  /* Neutrals */
  --text:          #222222;
  --text-muted:    #74847a;
  --text-light:    #9ca3af;
  --bg:            #ffffff;
  --bg-soft:       #f3fff3;
  --border:        #d1d5db;
  --border-light:  #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

  /* Typography */
  --font-body:     'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-heading:  'Sawarabi Mincho', 'Hiragino Mincho ProN', serif;
  --font-en:       'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-mono:     'SFMono-Regular', 'Consolas', monospace;

  /* Spacing */
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--green-dark); text-decoration: underline; }
a:hover { color: var(--green); }

/* ── Typography ── */

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--green-deeper);
  padding-bottom: .6rem;
  margin-bottom: 1.6rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green) 0%, var(--accent) 100%) 1;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--green-deeper);
  margin-top: 1rem;
  margin-bottom: 3.5rem;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

h2::before,
h2::after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--green), var(--accent));
}
h2::before {
  left: 0;
}
h2::after {
  right: 0;
}

@media (max-width: 768px) {
  h2 {
    padding-bottom: 0.9rem;
  }
  h2::before {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 60px;
    transform: translateX(-50%);
  }
  h2::after {
    display: none;
  }
}

/* CTA・フッター内の見出しは装飾線なし */
.hero h2::before,
.hero h2::after,
footer h2::before,
footer h2::after {
  display: none;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 1.8rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.4rem;
  margin-bottom: .4rem;
  padding-left: .8rem;
  border-left: 2px solid var(--accent);
}

p { margin-bottom: 1rem; }

blockquote {
  border-left: 3px solid var(--border);
  background: #fafafa;
  color: #666;
  font-size: .9rem;
  line-height: 1.8;
  padding: .8rem 1.2rem;
  margin: 1rem 0 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Intro Box ── */

.intro-box {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

.intro-box h3 {
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--border-light);
}
.intro-box h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--green), var(--accent));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Intro Layout with Image ── */

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .intro-layout {
    grid-template-columns: 1fr;
  }
}

.intro-image {
  text-align: center;
}

.intro-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ── Section Decoration ── */

.section-decoration {
  text-align: center;
  margin: 2rem 0;
}

.section-decoration img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ── Strengths Layout with Image ── */

.strengths-layout {
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .strengths-layout {
    grid-template-columns: 1fr;
  }
}

.strengths-image {
  text-align: center;
}

.strengths-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .strengths-grid {
    grid-template-columns: 1fr;
  }
}

ul, ol {
  margin: .5rem 0 1rem 1.5rem;
  padding: 0;
}
li { margin-bottom: .3rem; }

ul li::marker { color: var(--green); }
ol li::marker { color: var(--green); font-weight: 700; }

strong { font-weight: 700; color: var(--green-deeper); }
em { font-style: normal; font-weight: 500; color: var(--green-dark); }

/* ── Layout ── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding-left: calc(var(--space-lg) / 2);
    padding-right: calc(var(--space-lg) / 2);
  }
}

.container--wide { max-width: 1100px; }
.container--narrow { max-width: 640px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

/* ── Cards ── */

.card {
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green),
              0 3px 8px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .3s;
  position: relative;
}

.card__title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #222;
  margin-bottom: .8rem;
  line-height: 1.4;
}

.card--accent {
  background-color: var(--bg-soft);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green);
  color: var(--green-deeper);
}

/* Card Accent カラーバリエーション */
.card--accent:nth-child(2) {
  background-color: var(--blue-bg);
  box-shadow: 0 0 0 2px var(--blue);
  color: var(--blue);
}

.card--accent:nth-child(3) {
  background-color: var(--amber-bg);
  box-shadow: 0 0 0 2px var(--amber);
  color: var(--amber);
}

.card--accent:nth-child(4) {
  background-color: var(--red-bg);
  box-shadow: 0 0 0 2px var(--red);
  color: var(--red);
}

/* ── Specialist Link Button ── */

.specialist-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.8rem 1.4rem;
  background: white;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.specialist-link:hover {
  background: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.specialist-link:hover .specialist-link__url,
.specialist-link:hover .specialist-link__arrow {
  color: white;
}

.specialist-link__url {
  font-family: var(--font-en);
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.specialist-link__arrow {
  font-size: 1.1rem;
  transition: transform 0.3s, color 0.3s;
}

.specialist-link:hover .specialist-link__arrow {
  transform: translate(2px, -2px);
}

/* ── Hero Section ── */

.hero {
  background: linear-gradient(135deg, rgba(0, 122, 48, 0.95) 0%, rgba(0, 160, 64, 0.75) 100%),
              url('../images/hero-bg.jpg') center / cover no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 7rem var(--space-lg) 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  border-bottom: none;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  letter-spacing: 0.1em;
}

.hero a {
  color: var(--green-deeper);
  text-decoration: none;
  background: white;
  border: none;
  padding: 1rem 2.5rem;
  border: 2px solid #fff;
  border-radius: var(--radius-xl);
  display: inline-block;
  transition: all .3s;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero a:hover {
  background: var(--accent);
  color: var(--green-deeper);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* Sub-page Hero（下層ページ用：高さ縮小・黒オーバーレイ） */

.hero--sub {
  background: url('../images/hero-bg.jpg') no-repeat center -100px/100% auto;
  background-attachment: fixed;
  background-size: 100% auto;
  padding: 4.5rem var(--space-lg) 2.5rem;
  min-height: 350px;
  box-sizing: border-box;
}

.hero--sub::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.65)) center / cover no-repeat;*/
  background: linear-gradient(120deg, rgba(1, 87, 35, 0.95) 0%, rgba(0, 160, 64, 0.75) 100%) center / cover no-repeat;

}

.hero--sub .hero__title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: .8rem;
}

.hero--sub .hero__subtitle {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero--sub {
    padding: 2.5rem var(--space-lg) 2rem;
  }
}

/* CTA Section */

.hero-cta {
  margin-top: 0;
}

.hero-cta-title {
  color: white;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.hero-cta-text {
  color: white;
  margin: 1rem 0 2rem;
}

.btn-cta {
  background: white;
  color: var(--green);
  border: none;
}

/* ── Section with Accent ── */

.section--light {
  background:
    linear-gradient(135deg, var(--bg-soft) 0%, rgba(171, 205, 3, 0.05) 100%) center / cover no-repeat;
  padding: 4rem var(--space-lg) 3rem;
  position: relative;
}

.section--light#support {
  background:
    linear-gradient(135deg, var(--bg-soft) 0%, rgba(171, 205, 3, 0.05) 100%),
    url('../images/specialist-sites-bg.jpg') center / cover no-repeat;
  padding: 4rem var(--space-lg) 3rem;
  position: relative;
}

.section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-deeper) 0%, var(--green) 50%, var(--accent) 100%);
}

.section--light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-deeper) 0%, var(--green) 50%, var(--accent) 100%);
}

/* ── Service Cards Grid ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

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

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: white;
  box-shadow: 0 0 0 1px var(--text-muted);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0 2rem 2rem;
  transition: all .3s;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card__icon {
  width: calc(100% + 4rem);
  height: 240px;
  margin: 0 -2rem 1.5rem -2rem;
  background: linear-gradient(135deg, #fff 0%, var(--blue-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deeper);
  margin-bottom: 0.8rem;
}

.service-card__desc {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.service-card__link {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.service-card__link:hover {
  text-decoration: underline;
}

.service-card__other {
  margin-top: 2rem;
  text-align: right;
}
/* ── Button ── */

.btn {
  display: inline-block;
  padding: .8rem 2rem;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all .2s;
  border: none;
  cursor: pointer;
  border: 2px solid var(--green);
}

.btn:hover {
  background: var(--green-dark);
  color: #fff;
  border: 2px solid #fff;
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green-dark);
}

.btn--secondary:hover {
  background: var(--bg-soft);
}

.btn-sub {
  display: inline-block;
  padding: .4rem 2rem;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: .9em;
  font-weight: 500;
  transition: background .2s;
  border: none;
  cursor: pointer;
}

.btn-sub:hover {
  background: var(--green-dark);
  color: #fff;
}
/* ── Profile Layout ── */

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.profile-image-wrapper h3 {
  margin-top: 0;
  margin-bottom: 1.8rem;
  font-size: 1.3rem;
  display: block;
}
.profile-image-wrapper h3 span.license {
  font-weight: 400;
  font-size: .8em;
}
.profile-image-wrapper h3 span.kana {
  font-size: .6em;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}
.profile-image-wrapper h3 strong {
  letter-spacing: 0.3em;
}

/* ── Profile Strength Box ── */

.profile-strength-box {
  position: relative;
  margin: 3rem 0;
  padding: 3rem;
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--accent);
}

.profile-strength-box h3 {
  color: var(--green-deeper);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.profile-strength-box h3::before {
  display: none;
}

.profile-strength-box p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.profile-strength-box strong {
  color: var(--green-deeper);
  font-weight: 700;
}

.profile-strength-box .profile-btn-wrapper {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.profile-strength-box .btn {
  background: var(--green);
  color: white;
  text-decoration: none;
}

.profile-strength-box .btn:hover {
  background: var(--green-dark);
}

/* ── Profile Image ── */

.profile-image-wrapper {
  text-align: center;
}

.profile-image-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ── Two Column Layout ── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

@media (max-width: 640px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Header ── */

.header {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  position: relative;
  z-index: 100;
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  animation: headerSlideDown 0.5s ease forwards;
  box-shadow: var(--shadow);
  z-index: 200;
}

.header__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
  font-size: .9em;
}

.header__nav a:hover {
  color: var(--green);
}

.header__nav .btn {
  margin-left: var(--space-sm);
  color: #fff;

    display: inline-block;
    padding: .8rem 2rem;
    background: var(--green);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: background .2s;
    border: none;
    cursor: pointer;  
}
.header__nav .btn:hover {
  background: var(--green-dark);
  color: #fff;
  letter-spacing: 0;
  transform: none;
}

/* Dropdown Menu */
.header__nav-item--dropdown {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  z-index: 10;
}

.header__nav-item--dropdown:hover .header__dropdown {
  display: flex;
}

.header__dropdown a {
  color: var(--text);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: background-color .2s;
  font-weight: 400;
  font-size: 0.95rem;
}

.header__dropdown a:last-child {
  border-bottom: none;
}

.header__dropdown a:hover {
  background-color: var(--bg-soft);
  color: var(--green);
}

/* Hamburger Menu Button */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.header__hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header__container {
    height: 60px;
    padding: 0 var(--space-md);
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .header__nav.active {
    max-height: 400px;
    border-bottom: 1px solid var(--border-light);
  }

  .header__nav a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__nav .btn {
    margin: var(--space-sm) var(--space-lg);
    width: auto;
    justify-content: center;
  }

  .header__logo img {
    height: 40px;
  }

  /* Mobile Dropdown */
  .header__nav-item--dropdown {
    position: relative;
    width: 100%;
  }

  .header__dropdown {
    position: static;
    background: var(--bg-soft);
    border: none;
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    min-width: auto;
    display: none;
    flex-direction: column;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .header__nav-item--dropdown.active .header__dropdown {
    display: flex;
    max-height: 300px;
  }

  .header__dropdown a {
    padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) * 2);
    font-size: 0.9rem;
  }

  .header__dropdown a:last-child {
    border-bottom: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    transition: opacity .3s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* ── Footer ── */

footer {
  background: var(--green-deeper);
  color: white;
  padding: 4rem var(--space-lg) 2rem;
  overflow: hidden;
}

footer .container {
  max-width: 1100px;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 3fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

footer h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: block;
  border: none;
  padding: 0;
}

footer h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
  border: none;
  padding: 0;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}

footer li {
  margin-bottom: 0.8rem;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer h3 img {
  filter: brightness(0) invert(1);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
}

footer .footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

footer .footer-bottom p:last-child {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 0 2rem;
  }
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ── Footer Link ── */

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--green);
}

/* ── Section Intro ── */

.section-intro {
  padding: 3rem 0;
}

.section-intro-text {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  line-height: 2.0em;
}

.arrow-icon {
  margin-left: 0.3rem;
}

.contents-image {
  height: 260px;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: var(--radius);
}
.contents-image.contents-image--tall {
  height: 360px;
}

.contents-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ── Specialist Grid ── */

.specialist-grid {
  margin-top: 2rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.card-title-no-margin {
  margin: 0;
}

/* ── Strengths Grid ── */

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.strength-item {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  transition: all .3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.strength-item--lawyer {
  background-image: url('../images/strength-lawyer.jpg');
}

.strength-item--security {
  background-image: url('../images/strength-security.jpg');
}

.strength-item--creative {
  background-image: url('../images/strength-creative.jpg');
}

.strength-item__overlay {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  padding: 0;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}


.strength-item__title {
  font-weight: 700;
  color: var(--green-deeper);
  padding: 0.3em 0;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  transform: rotate(-3deg) translateY(5px) scaleX(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  position: absolute;
  left: 0;
  bottom: 5em;
}

.strength-item__overlay p {
  padding: 3rem 1rem 1rem;
}
.strength-item--security .strength-item__title {
  color: var(--blue);
}

.strength-item--creative .strength-item__title {
  color: var(--amber);
}

.strength-item p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Service Area (支援領域一覧の各領域) ── */

.service-area {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}

.service-area:last-child {
  margin-bottom: 0;
}

.service-area__title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--green-deeper);
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.service-area__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  letter-spacing: 0;
}

.service-area__num--alt {
  width: auto;
  min-width: 2.4rem;
  padding: 0 .75rem;
  height: 2.4rem;
  font-size: 1rem;
  border-radius: 1.2rem;
  letter-spacing: .05em;
}

.service-area__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .5rem 1rem;
}

.service-area__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1rem;
  line-height: 1.6;
}

.service-area__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: .7rem;
  height: .7rem;
  background: var(--accent);
  border-radius: 50%;
}

.service-area__cta {
  margin-top: 1.5rem;
  margin-bottom: 0;
  text-align: center;
}

/* ── Feature List（特徴セクションの縦積みカード） ── */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--green-deeper);
  margin: 0 0 1.2rem;
  padding: 0 0 .8rem;
  border: none;
  display: flex;
  align-items: center;
  gap: .8rem;
  position: relative;
}

.feature-card__title::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0, 160, 64, 0.12);
}

.feature-card__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--accent) 60%, transparent 100%);
}

.feature-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }
}

/* ── Process List（対応の流れ） ── */

.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  position: relative;
  padding-bottom: 1.8rem;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.2rem;
  bottom: -.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 160, 64, 0.15) 100%);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(0, 160, 64, 0.10);
  margin-top: .2rem;
  z-index: 1;
  position: relative;
}

.process-step__body {
  padding-top: .3rem;
  min-width: 0;
}

.process-step__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--green-deeper);
  margin: 0 0 .5rem;
  padding: 0;
  border: none;
  display: block;
}

.process-step__body p {
  margin-bottom: .5rem;
}

.process-step__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .process-step__num {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.15rem;
  }
  .process-step:not(:last-child)::before {
    left: 1.2rem;
    top: 2.6rem;
  }
}

/* ── FAQ List（よくある質問） ── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--green);
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1.1rem 3rem 1.1rem 1.5rem;
  font-weight: 700;
  color: var(--green-deeper);
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.6;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::before {
  content: 'Q';
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  width: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.faq-item__q::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}

.faq-item[open] .faq-item__q::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item__a {
  position: relative;
  padding: 0 1.5rem 1.2rem 4rem;
  color: var(--text);
}

.faq-item__a::before {
  content: 'A';
  position: absolute;
  left: 1.5rem;
  top: -.05rem;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.4rem;
  line-height: 1.4;
}

.faq-item__a p {
  margin-bottom: .5rem;
}

.faq-item__a p:last-child {
  margin-bottom: 0;
}

/* ── Card CTA（カード内のボタン用） ── */

.card__cta {
  margin-top: 1.2rem;
  margin-bottom: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .service-area {
    padding: 1.5rem;
  }
  .service-area__title {
    font-size: 1.1rem;
  }
}

/* ── About Page ── */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: .5rem;
}

.value-card {
  position: relative;
  background: var(--bg);
  border: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.4rem;
  transition: box-shadow .2s;
}
.value-card:nth-child(2) { border-color: var(--blue); }
.value-card:nth-child(3) { border-color: var(--amber); }
.value-card:nth-child(4) { border-color: var(--accent-dark); }
.value-card:hover { box-shadow: var(--shadow); }

.value-card__num {
  position: absolute;
  top: -14px;
  left: 12px;
  display: inline-block;
  padding: 0 8px;
  line-height: 1;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.6rem;
  background: #fff;
  color: var(--green);
}
.value-card:nth-child(2) .value-card__num { color: var(--blue); }
.value-card:nth-child(3) .value-card__num { color: var(--amber); }
.value-card:nth-child(4) .value-card__num { color: var(--accent-dark); }

.value-card h3 {
  font-size: 1.2rem;
  margin-top: .4rem;
  margin-bottom: .8rem;
  color: var(--green-deeper);
}
.value-card h3::before { display: none; }
.value-card p { font-size: .95rem; color: var(--text); }
.value-card p:last-child { margin-bottom: 0; }

.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-nav-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-nav-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--text);
  text-decoration: none;
}

.service-nav-card__title {
  font-weight: 700;
  color: var(--green-deeper);
  margin-bottom: .5rem;
  font-size: 1rem;
}

.service-nav-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.service-nav-card__arrow {
  font-size: .85rem;
  color: var(--green-dark);
  font-weight: 500;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--green-deeper);
  margin-bottom: .3rem;
  border-bottom: none;
  padding-bottom: 0;
}

.profile-name span {
  font-size: 0.6em;
}

.profile-role {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.profile-pic {
  width: 280px;
}
.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cred-list li {
  background: #fff;
  border: 1px solid var(--green);
  color: var(--green-deeper);
  font-size: .85rem;
  padding: .25rem .8rem;
  border-radius: var(--radius-xl);
  margin-bottom: 0;
}

.profile-affiliation {
  margin-top: 1.2rem;
}
.profile-affiliation li { margin-bottom: .2rem; }

.office-quote {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.6rem;
  margin: 1.5rem 0;
  font-style: normal;
}
.office-quote p { margin-bottom: 0; color: var(--green-deeper); }

.section--media {
  background: #f7f8f6;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.media-category h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border-light);
}
.media-category h3::before { display: none; }

.media-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.media-category li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.1rem;
  color: var(--text);
}
.media-category li:last-child { border-bottom: none; }

.media-note {
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

.media-date {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .9rem;
  font-weight: 700;
  display: block;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin-bottom: .15rem;
}

.media-topic {
  font-size: 1rem;
  color: var(--text-muted);
}

.access-block {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}
.access-block address { font-style: normal; margin-bottom: 1rem; }

.access-station {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-deeper);
  color: white;
  padding: .3rem .9rem;
  border-radius: var(--radius-xl);
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* ── Office Table（事務所概要） ── */

.office-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.office-table th,
.office-table td {
  padding: .85rem 1.2rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

.office-table tr:last-child th,
.office-table tr:last-child td {
  border-bottom: none;
}

.office-table th {
  width: 9.5em;
  white-space: nowrap;
  background: var(--bg-soft);
  color: var(--green-deeper);
  font-weight: 700;
  font-size: .9rem;
  border-right: 2px solid var(--green);
}

.office-table td {
  background: var(--bg);
  color: var(--text);
}


@media (max-width: 600px) {
  .office-table,
  .office-table tbody,
  .office-table tr,
  .office-table th,
  .office-table td {
    display: block;
    width: 100%;
  }
  .office-table tr {
    border-bottom: 2px solid var(--border-light);
  }
  .office-table tr:last-child {
    border-bottom: none;
  }
  .office-table th {
    border-right: none;
    border-bottom: 1px solid var(--green);
    white-space: normal;
    padding: .6rem 1rem;
  }
  .office-table td {
    border-bottom: none;
    padding: .6rem 1rem .9rem;
  }
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.consult-box {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.consult-box h3 {
  font-size: 1rem;
  color: var(--green-deeper);
  margin-top: 0;
  margin-bottom: 1rem;
}
.consult-box h3::before { display: none; }
.consult-box p:last-of-type { margin-bottom: 1rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
}
.related-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }

.about-logo {
  width: 80%;
  max-width: 450px;
  margin: 2rem auto;
}
@media (max-width: 640px) {
  .consult-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Fee Page ── */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fee-note {
  font-size: .875rem;
  margin: .3rem 0 .6rem;
  line-height: 1.7;
}

.fee-note em {
  color: var(--amber);
}

.fee-notice {
  font-size: .875rem;
  color: var(--text);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  margin: 2rem 0 1.4rem;
  padding: .9rem 1.1rem;
  line-height: 1.8;
  position: relative;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 0 0;
  font-size: .95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.fee-table thead th {
  background: var(--green-deeper);
  color: #fff;
  font-weight: 500;
  padding: .7rem 1.1rem;
  text-align: left;
  font-size: .85rem;
  letter-spacing: .04em;
}

.fee-table thead th.col-price,
.fee-table thead th.col-tax {
  text-align: right;
}

.fee-table tbody td {
  padding: .7rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.fee-table tbody tr:last-child td {
  border-bottom: none;
}

.fee-table tbody tr:nth-child(even) td {
  background: var(--bg-soft);
}

.col-price {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  color: var(--green-deeper);
  font-variant-numeric: tabular-nums;
}

.col-tax {
  text-align: right;
  white-space: nowrap;
  font-size: .88rem;
}

.col-desc {
  font-size: .88rem;
  line-height: 1.7;
  padding-left: 4em !important;
}

/* 支払時期カード */
.fee-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.fee-payment-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.fee-payment-card__title {
  font-weight: 700;
  color: var(--green-deeper);
  margin-bottom: .8rem;
  font-size: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}

.fee-payment-card p,
.fee-payment-card ul {
  font-size: .9rem;
}

.fee-payment-card ul {
  margin-left: 1.2rem;
}

/* 著作権コンサルティング プランカード */
.fee-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}

.fee-plan-card {
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.fee-plan-card__head {
  background: var(--bg-soft);
  padding: 1.2rem 1.4rem;
  border-bottom: 2px solid var(--border-light);
}

.fee-plan-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-deeper);
  margin-bottom: .3rem;
}

.fee-plan-card__price {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
}

.fee-plan-card__unit {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: .2rem;
}

.fee-plan-card__body {
  padding: 1.2rem 1.4rem;
  font-size: .875rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  /* グリッドを1列に */
  .fee-plan-grid,
  .fee-payment-grid { grid-template-columns: 1fr; }

  /* 横スクロール型（3〜4列）テーブル */
  .fee-table.fee-table--scroll {
    font-size: .82rem;
    min-width: 500px;
  }
  .fee-table.fee-table--scroll thead th,
  .fee-table.fee-table--scroll tbody td { padding: .55rem .7rem; }

  /* カード型（2列）テーブル */
  .fee-table:not(.fee-table--scroll) {
    font-size: .9rem;
    border: none;
    border-radius: 0;
  }
  .fee-table:not(.fee-table--scroll) thead { display: none; }
  .fee-table:not(.fee-table--scroll) tbody tr {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: .6rem;
    padding: .75rem 1rem;
  }
  .fee-table:not(.fee-table--scroll) tbody tr:nth-child(even) td {
    background: none;
  }
  .fee-table:not(.fee-table--scroll) tbody td {
    display: block;
    padding: .2rem 0 !important;
    border: none;
    text-align: left !important;
    white-space: normal;
  }
  /* 項目名（col-descでない行の最初のtd） */
  .fee-table:not(.fee-table--scroll) tbody td:first-child:not(.col-desc) {
    font-weight: 600;
    color: var(--text);
    padding-bottom: .5rem !important;
    border-bottom: 1px solid var(--border-light) !important;
    margin-bottom: .3rem;
  }
  /* サブ項目 */
  .fee-table:not(.fee-table--scroll) tbody td.col-desc {
    font-size: .85rem;
    padding-left: .5rem !important;
    color: var(--text-muted);
  }
  /* 報酬額ラベルと値 */
  .fee-table:not(.fee-table--scroll) tbody td.col-price::before {
    content: "当事務所報酬";
    display: block;
    font-size: .72rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: .4rem;
    margin-bottom: .1rem;
  }
  .fee-table:not(.fee-table--scroll) tbody td.col-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-deeper);
  }
}

/* ── External Link Icon ── */

.link-external::after {
  content: '';
  display: inline-block;
  width: .75em;
  height: .75em;
  margin-left: .2em;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  background: #f8f6dd;
  font-weight: 500;
  padding: .65rem 1rem;
  text-align: left;
  font-size: .85rem;
  letter-spacing: .03em;
  border-bottom: 1px solid #fff;
}

td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.6;
}

tr:nth-child(even) td { background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  table { font-size: .82rem; }
  th, td { padding: .5rem .7rem; }
}

#page-privacy h2 {
  margin-top: 3rem;
}

/* ── Sitemap ── */

.sitemap-tree {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.sitemap-tree li {
  margin: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.sitemap-tree a {
  color: var(--green-dark);
  text-decoration: none;
}

.sitemap-tree a:hover {
  color: var(--green);
  text-decoration: underline;
}

.sitemap-tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 1.5rem;
}

.sitemap-tree ul li {
  padding-left: 1.5rem;
}

.sitemap-tree ul ul li {
  padding-left: 1.5rem;
}

.sitemap-tree > li > a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-deeper);
}

.sitemap-tree li::before {
  content: '├ ';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.sitemap-tree li:last-child::before {
  content: '└ ';
}

.external-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.form {
  width: 100%;
}
.form th {
  text-align: left;
  vertical-align: top;
}
.form td, .form th {
  padding: 1rem;
}
.form p {
  margin: 0;
}
.form .label {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.2em 1em;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
  background: #c00;
}
.form input[type=text],
.form input[type=email] {
  display: block;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  border: 1px solid #ccc;
  padding: 0.6em;
  box-shadow: 0 0 6px #ddd;
  font-size: 1rem;
  box-sizing: border-box;
}
.form input[type=radio] {
  margin-right: 0.5rem;
}
.form textarea {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
  font-size: 1rem;
  height: 5rem;
}
.form textarea.form-content {
  min-height: 10rem;
  height: 18rem;
}
.form .note {
  margin: 0.3em 0;
  color: #000 !important;
  padding: 0.2em 0.5em;
  background: #eee;
}
.form input.zip {
  width: 5em;
  display: inline-block;
}
.form input[name=tel] {
  width: 20em;
}
@media screen and (max-width: 768px) {
  .form td, .form th, .form tr {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }
  .form th {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .form input[type=text],
  .form input[type=email] {
    box-sizing: border-box;
  }
}

.buttons {
  margin: 3rem 0;
  text-align: center;
}

input[type=submit],
a.btn-send {
  display: inline-block;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #00A040;
  border: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #fff;
  padding: 1rem 3rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
input[type=submit]:hover,
a.btn-send:hover {
  background: #00e75d;
  color: #003a17;
}

a.btn-back {
  display: inline-block;
  margin-left: 1rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #444;
  border: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #fff;
  padding: 1rem 3rem;
  text-decoration: none;
  transition: all 0.2s ease-out;
}
a.btn-back:hover {
  background: #888;
}

.error-mes {
  color: #f00;
  margin: 0;
}

.has-error input, .has-error textarea {
  background: #fffcfc !important;
  border-color: #c00 !important;
}

.sending-message {
  margin: 1rem 0;
  text-align: center;
  color: #00A040;
}

#confirm {
  display: none;
  position: absolute;
  left: 50%;
  top: 10px;
  width: 800px;
  transform: translateX(-50%);
  padding: 2em;
  background: #fff;
  z-index: 100;
  box-shadow: 0 0 5px #ccc;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  #confirm {
    left: 0;
    transform: none;
    width: 96vw;
    margin: 2vw;
    box-sizing: border-box;
    padding: 1rem;
  }
}

#confirm-overlay {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.7);
}

/* ── Scene List Styles ── */
.scene-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-xl);
  row-gap: var(--space-2xl);
}

.scene-item {
  padding: var(--space-lg);
  border-left: 4px solid var(--green);
  background: #fafafa;
  position: relative;
  border-right: 1px solid #f2f2f2;
  border-bottom: 1px solid #f0f0f0;
}

.scene-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%) translateX(-50%);
}

.scene-item__body {
  flex: 1;
}

.scene-item__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--green-deeper);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.scene-item__content {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .scene-list {
    grid-template-columns: 1fr;
  }

  .scene-item {
    flex-direction: column;
    gap: var(--space-md);
  }

  .scene-item__num {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .scene-item__title {
    font-size: 1rem;
  }

  .scene-item__content {
    font-size: 0.9rem;
  }
}

/* ── News Page Styles ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.news-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-out;
}

.news-item__header {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #f8fff8 100%);
  padding: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.news-item__date {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green-deeper);
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.news-item__content {
  padding: var(--space-md);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
  margin: 0;
}

@media (max-width: 768px) {
  .news-list {
    gap: var(--space-lg);
  }

  .news-item__header {
    padding: var(--space-md);
  }

  .news-item__date {
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
  }

  .news-item__title {
    font-size: 1.1rem;
  }

  .news-item__content {
    padding: var(--space-md);
    font-size: 0.95rem;
  }
}

/* ── Annotation / Note ── */

/* 基本注記（※付き・1行〜複数行） */
.note {
  font-size: .825rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 1.2em;
  position: relative;
  margin: .25rem 0;
}
.note::before {
  content: '※';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* 注記リスト（複数行をまとめて） */
.note-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.note-list li {
  font-size: .825rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0;
}
.note-list li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* 出典・参照元（※なし・左線） */
.note--source {
  border-left: 2px solid var(--border);
  padding-left: .7em;
}
.note--source::before { content: none; }

/* 注意系（アンバー色） */
.note--caution {
  color: var(--amber);
}
.note--caution::before {
  color: var(--amber);
}

/* 法令条文・引用（薄背景＋左線） */
.note--law {
  background: #fafaf9;
  border-left: 2px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .3rem .7rem .3rem .8rem;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Quote ── */

/* 基本の引用ブロック：前後の文章から視覚的に隔離する */
.quote {
  position: relative;
  margin: 2rem 1.5rem;
  padding: 1.2rem 1.5rem 1.2rem 2.8rem;
  line-height: 1.9;
  color: var(--green-deeper);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
/* 装飾クォーテーションマーク */
.quote::before {
  content: '\201C';
  position: absolute;
  top: -.1rem;
  left: .45rem;
  font-size: 3.2rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--green);
  line-height: 1;
  opacity: .45;
  pointer-events: none;
}
.quote p:last-child,
.quote p:only-child { margin-bottom: 0; }

/* 出典・引用元 */
.quote__source {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: right;
}
.quote__source::before { content: '— '; }

/* アクセントカラー版 */
.quote--accent {
  border-left-color: var(--accent-dark);
  background: #f7ffd0;
  color: var(--green-deeper);
}
.quote--accent::before { color: var(--accent-dark); }

/* シンプル版（装飾なし・控えめ） */
.quote--simple {
  background: none;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .95rem;
  padding-left: 1.2rem;
  margin: 1.5rem .5rem;
}
.quote--simple::before { content: none; }

@media (max-width: 640px) {
  .quote { margin: 1.5rem .5rem; }
}
.note--law::before { content: none; }
