:root {
  --primary: #1a365d;
  --accent: #e67e22;
  --bg-light: #fdfcf9;
  --text: #333;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--text);
  margin: 0;
  background-color: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }
.nowrap{white-space:nowrap;}
a { color: inherit; }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(230,126,34,0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; }

/* Typography */
h1, h2, h3 { font-family: 'Noto Serif JP', serif; color: var(--primary); }
h2 {
  font-size: 2rem;
  position: relative;
  padding-left: 18px;
  margin: 50px 0 30px;
  border: 0;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 5px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 3px;
}
.no-accent { padding-left: 0; }
.no-accent::before { display: none; }

.lead { font-size: 1.05rem; }
.hero .lead{font-size:1.0rem; line-height:1.75;}

.small { font-size: 0.85rem; color: #666; }
.muted { color: #666; }

.req {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Header & Nav */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 40px; width: auto; }

/* Brand (logo + page name) */
.brand { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-title { font-weight: 900; color: var(--primary); font-size: 1.02rem; line-height: 1.15; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-operator { font-size: 0.76rem; color: #546072; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-operator a { color: inherit; text-decoration: none; }
.brand-operator a:hover { text-decoration: underline; }

.main-nav { justify-self: center; }
.main-nav ul { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; align-items: center; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: bold; font-size: 0.92rem; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a.is-active { color: var(--accent); }

.nav-cta a { background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 4px; min-height: 44px; }

.header-meta {
  display: grid;
  gap: 6px;
  justify-self: end;
  max-width: 380px;
}
.meta-row { display: grid; grid-template-columns: 4.0em 1fr; column-gap: 10px; align-items: start; }
.meta-key { font-size: 0.82rem; color: #546072; font-weight: 800; padding-top: 2px; }
.meta-val { font-size: 0.86rem; color: #111; line-height: 1.25; }
.header-meta .header-tel { font-size: 1.05rem; font-weight: 900; color: var(--primary); text-decoration: none; }

/* Breadcrumb */
.breadcrumb { background: #f7f7f7; border-bottom: 1px solid #eee; }
.breadcrumb ol { display: flex; gap: 10px; list-style: none; padding: 12px 0; margin: 0; font-size: 0.85rem; }
.breadcrumb li::after { content: '›'; margin-left: 10px; color: #999; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Hamburger */
.hamburger-menu { display: none; background: transparent; border: 0; padding: 8px; border-radius: 999px; }
.hamburger-menu span { display: block; height: 2px; background: var(--primary); margin-bottom: 5px; transition: 0.3s; }
.hamburger-menu span:last-child { margin-bottom: 0; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(26,54,93,0.90));
  color: #fff;
}
.hero h1 { color: #fff; font-size: clamp(1.85rem, 3.0vw, 2.35rem); margin: 0 0 16px; line-height: 1.2; }
.hero span { color: var(--accent); }

.hero-grid { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 28px; align-items: center; }
.hero-copy { text-align: left; }
.hero-media { justify-self: end; }
.hero-media img {
  width: 100%;
  max-width: 380px;
  height: auto;
  max-height: 260px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  object-fit: cover;
  display: block;
}
.hero-cta { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero .badge-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Anchor chips */
.anchor-nav { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  min-height: 44px;
}

/* Common Layout */
.section-padding { padding: 80px 0; }
.snuggle-box {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  border: 1px solid #eee;
}

/* TL;DR */
.tldr-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  margin-bottom: 26px;
}
.tldr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.tldr-item { border: 1px solid #eee; border-radius: 14px; padding: 14px; background: #fafafa; }
.tldr-k { font-weight: 900; color: var(--primary); margin-bottom: 6px; }
.tldr-v { color: #222; line-height: 1.6; }

/* Definition (LLMO friendly) */
.definition { margin-top: 18px; }
.definition-title { margin: 0 0 10px; }
.definition-dl { margin: 0; display: grid; gap: 10px; }
.definition-dl > div {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
}
.definition-dl dt { font-weight: 900; color: var(--primary); }
.definition-dl dd { margin: 0; color: #222; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid rgba(26,54,93,0.35); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-dark { color: #111; border-color: rgba(26,54,93,0.18); }

.btn-line { background: #06C755; color: #fff; border: 2px solid #06C755; }
/* Content blocks */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.card h3 { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 26px; position: relative; margin: 8px 0; line-height: 1.6; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0.15em; color: var(--accent); font-weight: 900; }

.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 18px 18px 54px;
  margin: 14px 0;
  position: relative;
}
.step-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Templates */
.template-grid { display: grid; gap: 14px; margin-top: 16px; }
.template-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.template-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.template-pre {
  margin: 12px 0 0;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fafafa;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 0.92rem;
}
.btn-copy { white-space: nowrap; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.simple-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}
.simple-table th, .simple-table td { padding: 14px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
.simple-table th { background: #f7f7f7; color: #1a365d; font-weight: 800; text-align: left; }
.simple-table tr:last-child td { border-bottom: none; }
.simple-table td { color: #222; }

/* Contact */
.contact-area { background: #f4f4f4; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 900; color: #111; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
}
.form-group select { appearance: none; }

.form-hint { margin: 8px 0 0; font-size: 0.82rem; color: #666; line-height: 1.4; }

.field-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #b00020;
  line-height: 1.4;
}

.is-invalid {
  border-color: #d16b6b !important;
  background: #fff8f8;
}

.form-legal { font-size: 0.85rem; text-align: center; margin: 0 0 16px; }
.form-legal a { color: var(--primary); font-weight: 900; text-decoration: underline; }

.submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 18px 26px;
  font-size: 1.05rem;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  font-weight: 900;
  min-height: 52px;
}
.submit-btn:focus { outline: 3px solid rgba(230,126,34,0.35); outline-offset: 2px; }

.notice { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.notice-success { background: #e7f7ee; border: 1px solid #bde9cf; }
.notice-error { background: #fff0f0; border: 1px solid #f2b7b7; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-big a { font-size: 1.6rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.contact-big a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 50px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.footer-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 22px; }
.footer-title { color: #fff; border: none; padding: 0; margin: 0 0 10px; }
.footer-title a { color: inherit; text-decoration: none; }
.footer-title a:hover { text-decoration: underline; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-cta .btn-ghost { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.footer-copy { text-align: center; margin-top: 28px; font-size: 0.85rem; opacity: 0.8; }
.map-embed iframe { width: 100%; height: 260px; border-radius: 12px; }

/* Floating CTA */
.floating-cv { position: fixed; bottom: 0; width: 100%; display: flex; z-index: 2000; opacity: 0; transform: translateY(100%); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.floating-cv.is-visible { opacity: 1; transform: translateY(0); }
.floating-cv a { flex: 1; text-align: center; padding: 18px 10px; color: #fff; text-decoration: none; font-weight: 900; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.cv-form { background: var(--accent); }
.cv-tel { background: #00529b; }
.cv-line { background: #06C755; }

/* Animations base */
.fade-in, .slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible, .slide-in.is-visible { opacity: 1; transform: translateY(0); }
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-right.is-visible { opacity: 1; transform: translateX(0); }

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.slideshow .slide.active { opacity: 1; }
.slideshow .slide-content {
  background: rgba(0,0,0,0.5);
  padding: 20px 40px;
  border-radius: 8px;
  text-align: center;
}

/* Modal (Exit intent) */
.modal { position: fixed; inset: 0; display: none; z-index: 3000; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal__panel { position: relative; max-width: 720px; margin: 10vh auto 0; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.modal__close { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid #eee; background: #fff; font-size: 1.6rem; cursor: pointer; min-height: 42px; }
.modal__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.modal__note { font-size: 0.85rem; color: #666; margin-top: 14px; line-height: 1.5; }

/* FAQ */
.faq { margin-top: 22px; }
.faq details { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--primary); min-height: 44px; display: flex; align-items: center; }
.faq p { margin: 10px 0 0; }

/* Mail toast (fallback) */
#mail-toast { position: fixed; right: 14px; bottom: 86px; z-index: 3000; width: min(360px, calc(100% - 28px)); }
#mail-toast .mail-toast-inner { background: rgba(15,23,42,0.96); color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.28); }
#mail-toast .mail-toast-title { font-weight: 900; font-size: 0.95rem; margin-bottom: 8px; }
#mail-toast .mail-toast-email { font-weight: 800; font-size: 1.05rem; word-break: break-all; margin-bottom: 10px; }
#mail-toast .mail-toast-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#mail-toast .mail-toast-btn { border: 0; border-radius: 12px; padding: 10px 12px; font-weight: 800; cursor: pointer; min-height: 44px; }
#mail-toast .mail-toast-copy { background: var(--accent); color: #fff; }
#mail-toast .mail-toast-close { background: rgba(255,255,255,0.12); color: #fff; }
#mail-toast .mail-toast-note { opacity: 0.85; font-size: 0.78rem; margin-top: 8px; line-height: 1.35; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; justify-self: start; }
  .tldr-grid { grid-template-columns: 1fr; }
  .definition-dl > div { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
  .hamburger-menu { display: block; position: absolute; right: 14px; top: 14px; width: 34px; height: 28px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1200;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid #eee; }
  .main-nav a { display: block; width: 100%; padding: 14px 16px; }

  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .simple-table { min-width: 640px; }

  #mail-toast { right: 14px; left: 14px; width: auto; bottom: 96px; }
  .floating-cv a { padding: 16px 8px; font-size: 0.95rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .slide-in, .slide-in-right {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .slideshow .slide { transition: none !important; }
}

.blog-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-table th,
.blog-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.blog-table th {
    background-color: #f2f2f2;
}

.blog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.blog-row:hover {
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clickable-row:hover {
    background-color: #f9f9f9;
}
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-list {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.blog-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    background-color: #fff;
    transition: background-color 0.2s;
    color: inherit;
}

.blog-list-item:hover {
    background-color: #f5f5f5;
}

.blog-category {
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
}

.blog-title {
    flex: 1;
    font-weight: bold;
    padding: 0 16px;
}

.blog-date {
    font-size: 0.85rem;
    color: #666;
    min-width: 110px;
    text-align: right;
}

.blog-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.blog-list-header h2 {
    margin: 0;
}

.blog-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.blog-search-form input[type="text"],
.blog-search-form select,
.blog-search-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.blog-search-form button {
    background: #4caf50;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.blog-search-form button:hover {
    background: #45a047;
}

.sp-only {
  display: none;
}
@media (max-width: 1100px){
  .main-nav ul{ gap: 12px; }
  .main-nav a{ font-size: 0.9rem; }
}


/* Step4 shared skeleton patch */
.site-network-strip{background:#eef3fb;border-bottom:1px solid rgba(20,47,102,.12);font-size:.92rem;}
.site-network-strip__inner{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;padding:.55rem 0;}
.site-network-strip__label{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;background:#d8e5fb;color:#163a7b;font-weight:700;}
.site-network-strip a{color:#163a7b;text-decoration:none;font-weight:600;}
.site-network-strip a:hover{text-decoration:underline;}
.brand-operator--label{font-weight:700;color:#1f4d9a;}
@media (max-width: 768px){.site-network-strip__inner{gap:.4rem .6rem;padding:.5rem 0;}.site-network-strip__label{font-size:.82rem;}}


/* Common shell alignment */
.site-footer-modern {
    background: #0f2748;
    color: rgba(255,255,255,.82);
    margin-top: 0;
    font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}
.site-footer-modern,
.site-footer-modern * {
    box-sizing: border-box;
}
.site-footer-modern__inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px 28px; }
.site-footer-modern__intro { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.site-footer-modern__intro h2 { margin: 0 0 8px; color: #fff; font-size: 1.5rem; line-height: 1.45; font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif; font-weight: 700; letter-spacing: 0; }
.site-footer-modern__intro p { margin: 0; line-height: 1.75; color: rgba(255,255,255,.78); font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif; font-size: 12.8px; font-weight: 400; }
.site-footer-modern__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 22px; align-items: start; }
.site-footer-modern__grid h3 { margin: 0 0 10px; color: #fff; font-size: 1rem; line-height: 1.45; font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif; font-weight: 700; letter-spacing: 0; }
.site-footer-modern__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer-modern__grid li, .site-footer-modern__grid a { color: rgba(255,255,255,.78); line-height: 1.65; font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif; font-size: 12.8px; font-weight: 400; letter-spacing: 0; }
.site-footer-modern__grid a { text-decoration: none; }
.site-footer-modern__grid a:hover{color:#fff; text-decoration: underline;}
.site-footer-modern__bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11.2px; text-align:center; }
.site-footer-modern__bottom p { margin: 0; font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif; }
@media (min-width: 961px){.fixed-cta{display:none;}}

@media (max-width: 767px) {
  .site-footer-modern__inner { padding: 28px 18px 76px; }
  .site-footer-modern__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer-modern__grid { grid-template-columns: 1fr; }
}

/* phaseD mobile readability */
@media (max-width:980px){
  html{scroll-padding-top:140px;}
  body{padding-bottom:90px;}
  .container{padding-left:16px;padding-right:16px;}
  .section-padding{padding-top:56px;padding-bottom:56px;}
  .cutin__cta{flex-direction:column;align-items:stretch;}
  .cutin__cta .btn{width:100%;}
  .table-wrap,.price-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .price-anchor-nav,.price-anchor-menu{display:flex;flex-wrap:nowrap;overflow:auto;gap:10px;padding-bottom:4px;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-inline:16px;}
  .price-anchor-nav::-webkit-scrollbar,.price-anchor-menu::-webkit-scrollbar{display:none;}
  .price-anchor-nav a,.price-anchor-menu a{flex:0 0 auto;scroll-snap-align:start;}
}
@media (max-width:767px){
  .fixed-cta{gap:6px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));}
  .fixed-cta__btn{min-height:44px;padding:10px 8px;font-size:.82rem;border-radius:10px;}
  .fixed-cta__btn img{width:16px;height:16px;}
  .simple-table th,.simple-table td{padding:12px 12px;}
  .cards-2,.cards-3,.card-grid{grid-template-columns:1fr;}
  .price-card,.card,.snuggle-box,.cutin{border-radius:16px;}
}
@media (max-width:520px){
  .section-head h1,.section-head h2,.price-page-head h1{font-size:clamp(1.55rem,7vw,1.9rem);line-height:1.3;}
}


/* phaseD2 content typography */
main,
body > section.section-padding,
body > .section-padding,
body > .price-page-main{
  font-family:'Noto Sans JP',sans-serif;
  font-size:16px;
  line-height:1.75;
}
main :where(p,li,dt,dd,th,td,label,input,textarea,select,summary),
body > section.section-padding :where(p,li,dt,dd,th,td,label,input,textarea,select,summary),
body > .section-padding :where(p,li,dt,dd,th,td,label,input,textarea,select,summary),
body > .price-page-main :where(p,li,dt,dd,th,td,label,input,textarea,select,summary){
  font-family:'Noto Sans JP',sans-serif;
  font-size:1rem;
  line-height:1.75;
}
main :where(h2,.section-head h1,.price-page-head h1),
body > section.section-padding :where(h2,.section-head h1,.price-page-head h1),
body > .section-padding :where(h2,.section-head h1,.price-page-head h1),
body > .price-page-main :where(h2,.section-head h1,.price-page-head h1){
  font-family:'Noto Serif JP',serif;
  font-size:clamp(1.6rem,2.1vw,1.85rem);
  line-height:1.35;
}
main h3,
body > section.section-padding h3,
body > .section-padding h3,
body > .price-page-main h3{
  font-family:'Noto Serif JP',serif;
  font-size:clamp(1.08rem,1.45vw,1.22rem);
  line-height:1.45;
}
main .lead,
body > section.section-padding .lead,
body > .section-padding .lead,
body > .price-page-main .lead{
  font-size:1rem;
  line-height:1.72;
}


/* 2026-03 renewal: align hero tone with family.hanawa-office.jp */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg, rgba(15,23,42,0.96), rgba(26,54,93,0.90));color:#fff}
.hero::before{content:"";position:absolute;inset:0;background-image:url("../images/life_hero.jpg");background-size:cover;background-position:center;opacity:.10;filter:saturate(.92) contrast(1.04) brightness(1.02);transform:scale(1.03);pointer-events:none}
.hero > .container{position:relative;z-index:1}
.hero h1{font-size:clamp(1.9rem,3.0vw,2.35rem);line-height:1.2}
.hero .lead{font-size:1rem;line-height:1.75;color:rgba(255,255,255,.92)}
.hero .badge{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.25);color:#fff}
.hero .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.65)}
.hero .btn-outline:hover{background:rgba(255,255,255,.10)}
