:root {
  --color-navy: #064536;
  --color-blue: #218466;
  --color-light-blue: #eaf7f1;
  --color-gold: #b89545;
  --color-text: #243833;
  --color-muted: #657a73;
  --color-border: #d8e9e1;
  --color-bg: #f6fbf8;
  --shadow: 0 20px 50px rgba(6, 69, 54, 0.12);
  --radius: 22px;
  --scroll-offset: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  scrollbar-gutter: stable;
}

html.is-loading,
html.is-loader-exiting {
  overflow: hidden;
}

body {
  color: #414141;
  font-family: "Klee One", cursive;
  font-weight: bold;
  line-height: 1.8;
  font-size: 18px;
  background: #fff;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.page-loader__inner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 0;
  transform: translate(-50%, -50%);
}

.page-loader__logo-wrap {
  display: block;
  line-height: 0;
  animation: page-loader-pulse 1.4s ease-in-out infinite;
}

.page-loader__logo {
  display: block;
  width: 72px;
  height: auto;
}

.page-loader__spinner {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-blue);
  border-radius: 50%;
  animation: page-loader-spin 0.75s linear infinite;
}

html.is-loader-exiting .page-loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes page-loader-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.78;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 1920px;
  width: 100%;
  margin: auto;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
  color: var(--color-navy);
  font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header_logo {
  display: block;
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

footer img.header_logo {
  filter: grayscale();
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
}

.logo_mini {
  color: var(--color-gold);
  font-size: 0.85rem;

}

.global-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--color-navy);
  font-weight: bold;
}

.global-nav a {
  position: relative;
  padding: 8px 0;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--color-gold);
  transition: width 0.2s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

.header-brand {
  min-width: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 10px;
  color: var(--color-navy);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--color-light-blue);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-backdrop {
  display: none;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
}

.hero-bg,
.hero_img_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero_img_container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero_img_container img {
  height: 100%;
  width: auto;
  object-fit: contain;
  margin-right: 0;
}

.hero-bg {
  background: linear-gradient(135deg, #1e4b8a 0%, #3071c5 100%);
  clip-path: var(--stripe-path);
  z-index: 1;
}

.hero-content .text {
  z-index: 3;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  padding: 50px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.eyebrow {
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .text h1 {
  color: var(--color-navy);
  font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: bold;
  color: (--color-navy);
}

h2 {
  font-size: 2.5rem;
}

.hero-content .text h1 span {
  color: var(--color-gold);
}

.hero-lead {
  max-width: 580px;
  margin-top: 22px;
  color: #314a42;
  font-size: 18px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--color-navy);
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(6, 69, 54, 0.14);
}

.btn-primary {
  color: #fff;
  background: var(--color-navy);
  font-family: "Klee One", cursive;
  font-size: 1rem;
  width: 30%;
}

.btn-outline {
  color: var(--color-navy);
  background: #fff;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.trust-list div {
  padding: 13px 16px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 69, 54, 0.05);
  font-weight: bold;
}

.trust-list dt {
  color: var(--color-muted);
  font-size: 12px;
}

.trust-list dd {
  color: var(--color-navy);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.section {
  margin: 100px auto;
}

.section-soft,
.section-office {
  margin: 200px auto;
}

.section-service {
  position: relative;
  overflow: visible;
  margin: 200px auto;
}

.section-service::before {
  position: absolute;
  top: 23%;
  right: 2%;
  z-index: 0;
  width: 35%;
  aspect-ratio: 1 / 1;
  background-image: url("../images/service_bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.section-service .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 2.5rem;

}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 100px;
}

.service-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 2px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(6, 69, 54, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 24px;
  text-align: center;
}

.service-card h3 {
  color: var(--color-navy);
  font-size: 20px;
  font-weight: bold;
}

.service-card p {
  margin-top: 10px;
}

.text-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--color-navy);
  font-weight: bold;
}

.split,
.office-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.news-list time {
  color: var(--color-blue);
  font-weight: bold;
}

.office-card,
.content-card,
.sidebar-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(6, 69, 54, 0.08);
}

.office-card {
  padding: 40px;
}

.office-card h2 {
  font-size: 2rem;
}

.office-card dl {
  display: grid;
  gap: 16px;
}

.office-card dl div,
.info-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

dt {
  color: var(--color-navy);
  font-weight: bold;
}

.breadcrumb-bar {
  padding: 20px;
  background: #fff;
}

.breadcrumb {
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--color-muted);
}

.breadcrumb-item:not(:last-child)::after {
  margin: 0 10px;
  color: var(--color-muted);
  content: ">";
  font-size: 12px;
}

.breadcrumb-item a {
  color: var(--color-blue);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-item a:hover {
  color: var(--color-navy);
}

.breadcrumb-item span[aria-current="page"] {
  color: var(--color-navy);
  font-weight: bold;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background:
    radial-gradient(circle at 85% 10%,
      var(--color-light-blue) 0%,
      rgba(234, 247, 241, 0.55) 12%,
      transparent 18%),
    radial-gradient(circle at 10% 90%,
      rgba(33, 132, 102, 0.14) 0%,
      rgba(234, 247, 241, 0.35) 10%,
      transparent 16%),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--color-text);
  text-shadow: none;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: 2rem;
  color: var(--color-navy);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.content-card {
  padding: 42px;
}

.article-section+.article-section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--color-border);
}

.article-section h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
  color: var(--color-gold);
}

.article-section p+p {
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 15px auto;
}

.underline {
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 3px;
  text-decoration-color: #138567;
}

p.red {
  color: #8b2e2e;
  font-size: 0.95rem;
}

span.red {
  color: #8b2e2e;
  font-size: 0.95rem;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 999px;
  background: var(--color-gold);
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fbfefc;
}

.step-item>span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: bold;
  border-radius: 999px;
  background: var(--color-navy);
}

.step-item h3,
.step-item h4 {
  color: var(--color-navy);
  font-size: 18px;
  font-weight: bold;
}

.step-item ul {
  list-style: decimal;
  margin-top: 10px;
  margin-left: 30px;
}

.article-section h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--color-navy);
  font-size: 20px;
  font-weight: bold;
}

.setsumei-section h3 {
  margin-top: 28px;
}


.handbook-title {
  margin-top: 32px;
}

.handbook-title:first-of-type {
  margin-top: 0;
}

.subsection-title,
.article-section h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-navy);
  font-size: 18px;
  font-weight: bold;
}

.step-list h4 {
  margin-top: 0;
}

.article-section h2[id],
.article-section h3[id],
.article-section h4[id] {
  scroll-margin-top: var(--scroll-offset);
}

.article-note {
  margin-top: 14px;
  padding-left: 1em;
  text-indent: -1em;
}

.content-sample-label {
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--color-navy);
  font-weight: bold;
}

.content-sample {
  display: inline-block;
  overflow: hidden;
  margin-top: 20px;
}

.content-sample img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.25s ease;
}

.content-sample:hover img {
  filter: brightness(0.82);
}

.pop {
  font-family: "Mochiy Pop P One", sans-serif;
  font-weight: bold;
  font-style: normal;
}

.content-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  border: 2px solid #0b4536;
}

.content-table+.content-table {
  margin-top: 24px;
}

.content-table th,
.content-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.content-table th,
.content-table td {
  border: 2px solid #0b4536;
}

/* 2列表：1行目の右セル（th の次の td）の上枠のみ消す */
.content-table--entries tbody tr:first-child>td {
  border-top: none;
}

.content-table td {
  padding: 12px 34px
}

.content-table thead th {
  color: #fff;
  font-weight: bold;
  background: var(--color-navy);
}

.content-table tbody tr:nth-child(even) {
  background: #fbfefc;
}

.content-table--entries tbody th,
.content-table--office tbody th {
  width: 28%;
  color: #fff;
  font-weight: bold;
  text-align: left;
  vertical-align: top;
  background: var(--color-navy);
}

.content-table--office {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.content-table--office td {
  background: #fff;
  word-break: break-word;
}

.policy h2 {
  margin: 40px 0 0;
  font-size: 1.5rem;
}

.office-profile {
  margin-bottom: 28px;
  text-align: center;
}

.office-profile__photo {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  margin: 20px auto;
}

.office-profile__name {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.15rem;
  font-weight: bold;
}

.office-map {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.office-map iframe {
  display: block;
  width: 100%;
}

.content-table--will-types tbody th {
  vertical-align: middle;
  text-align: center;
}

.content-table--will-types tbody td {
  background: var(--color-bg);
}

.content-table--entries td .content-table-note {
  margin: 0;
  text-indent: 0;
}

.content-table--entries td .check-list {
  margin-top: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fbfefc;
}

.price-item strong {
  color: var(--color-navy);
  font-size: 18px;
  white-space: nowrap;
}

.content-table--price {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.content-table--price td:first-child {
  width: auto;
  background-color: #fff;
  word-break: break-word;
}

.content-table--price .price-table__amount {
  width: 28%;
  min-width: 0;
  color: var(--color-navy);
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: keep-all;
  background: #cbe1c4;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.sidebar-card {
  padding: 24px;
}

.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.sidebar-card a:not(.btn) {
  display: block;
  padding: 8px 0;
  color: var(--color-navy);
  font-weight: bold;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-toc a:not(.btn) {
  border-bottom: none;
}

.sidebar-toc-group+.sidebar-toc-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.sidebar-toc-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sidebar-toc-heading a {
  padding: 0;
  color: var(--color-navy);
}

.sidebar-toc ul {
  margin: 0;
  padding-left: 1.25em;
  list-style: circle;
}

.sidebar-toc li+li {
  margin-top: 2px;
}

.sidebar-toc ul a {
  padding: 5px 0;
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.5;
}

.sidebar-toc ul a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.site-footer {
  padding: 42px 0 26px;
  color: #d8eee5;
  background: #053327;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 30px;
  align-items: start;
}

.site-footer a {
  color: #d8eee5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-nav-title {
  margin-bottom: 12px;
  color: #fff;
  font-weight: bold;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-nav a {
  font-weight: bold;
}

.brand--footer {
  margin-bottom: 14px;
  color: #fff;
}

.brand--footer .logo_mini {
  color: var(--color-gold);
}

.copyright {
  margin-top: 30px;
  color: #9fc7b8;
  font-size: 13px;
  text-align: center;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-family: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  background: var(--color-blue);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-navy);
}

.scroll-top:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.blog-admin-section {
  margin: 80px auto 120px;
}

.blog-admin-container {
  max-width: 760px;
}

.blog-admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.blog-admin-header h1 {
  margin-top: 8px;
  font-size: 2rem;
  color: var(--color-navy);
}

.blog-admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.blog-admin-nav a:not(.btn) {
  color: var(--color-blue);
  font-weight: bold;
}

.blog-admin-panel {
  padding: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(6, 69, 54, 0.08);
}

.blog-flash-list {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid #f0c9c9;
  border-radius: 12px;
  background: #fff5f5;
  color: #8b2e2e;
  list-style: none;
}

.blog-list-actions {
  margin-bottom: 24px;
}

.blog-post-list {
  display: grid;
  gap: 0;
  list-style: none;
}

.blog-post-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-post-list li:first-child {
  padding-top: 0;
}

.blog-post-list a {
  color: var(--color-navy);
  font-weight: bold;
}

.blog-post-list a:hover {
  color: var(--color-blue);
}

.blog-post-list time {
  color: var(--color-muted);
  font-size: 14px;
  white-space: nowrap;
}

.blog-empty {
  color: var(--color-muted);
}

.blog-form {
  display: grid;
  gap: 22px;
}

.blog-field {
  display: grid;
  gap: 8px;
}

.blog-field span {
  color: var(--color-navy);
  font-weight: bold;
}

.blog-field input,
.blog-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}

.blog-field textarea {
  resize: vertical;
  min-height: 220px;
  line-height: 1.8;
}

.blog-field input:focus,
.blog-field textarea:focus {
  outline: 2px solid rgba(33, 132, 102, 0.25);
  border-color: var(--color-blue);
}

.blog-form-submit {
  width: 100%;
}

.blog-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-post-meta {
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.blog-post-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.blog-back-link {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--color-border);
}

.blog-back-link a {
  color: var(--color-blue);
  font-weight: bold;
}

.contact-form {
  display: grid;
  gap: 40px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-privacy {
  margin-top: 8px;
  text-align: center;
}

.contact-privacy__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: var(--color-navy);
  font-weight: bold;
  line-height: 1.5;
  cursor: pointer;
}

.contact-privacy__label input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.contact-privacy__label a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-privacy__label a:hover {
  color: var(--color-navy);
}

.contact-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.contact-form-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form-actions .btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.contact-form .blog-field span em {
  margin-left: 6px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: bold;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-success h2 {
  margin-bottom: 16px;
  color: var(--color-navy);
  font-size: 28px;
}

.contact-success p {
  margin-top: 10px;
}

.contact-success-note {
  color: var(--color-muted);
}

.contact-success .btn {
  margin-top: 28px;
}

.contact-flash {
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Responsive (tablet / smartphone)
   -------------------------------------------------------------------------- */

/* ナビ折りたたみ: 1200px 以下 */
@media (max-width: 1200px) {
  .site-header {
    --header-bar-height: 78px;
    z-index: 30;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 12px;
    min-height: var(--header-bar-height);
    padding: 10px 0;
  }

  .header-brand {
    grid-column: 2;
    justify-self: center;
    max-width: 100%;
  }

  .header-brand .brand {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .header-brand .logo {
    align-items: flex-start;
    text-align: center;
  }

  .nav-toggle {
    position: relative;
    z-index: 31;
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 24;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .global-nav {
    position: fixed;
    top: var(--header-bar-height);
    right: 0;
    left: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-bar-height));
    margin: 0;
    padding: 12px 0 0px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: 0 16px 40px rgba(6, 69, 54, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .global-nav a {
    padding: 16px 24px;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border);
  }

  .global-nav a::after {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .global-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* トップ hero: 画像上 → 白カード下（960px 以下と同じ構成） */
  .hero-content {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 48px;
  }

  .hero_img_container {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 360px;
    margin: 0;
  }

  .hero_img_container img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center 20%;
  }

  .hero-content .text {
    position: relative;
    top: auto;
    left: auto;
    width: min(calc(100% - 32px), 560px);
    margin: 50px auto 0;
    padding: 32px 26px;
    transform: none;
    color: #314a42;
  }

  .hero-content .text h1 {
    font-size: 2.25rem;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1;
    min-width: 0;
  }
}

/* Tablet: 960px 以下 */
@media (max-width: 960px) {
  :root {
    --scroll-offset: 88px;
  }

  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    --header-bar-height: 72px;
  }

  .header-brand .brand {
    font-size: 20px;
  }

  .header_logo {
    height: 52px;
  }

  .hero-grid,
  .split,
  .office-card,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .section {
    margin: 72px auto;
  }

  .section-soft,
  .section-office,
  .section-service {
    margin: 100px auto;
  }

  .section-heading h2,
  h2 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
    gap: 14px;
  }

  .section-service::before {
    width: min(36vw, 320px);
    opacity: 0.3;
  }

  .page-hero {
    padding: 56px 0;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .content-layout {
    gap: 24px;
  }

  .content-card,
  .office-card {
    padding: 32px;
  }

  .article-section h2 {
    font-size: 1.55rem;
  }

  .sidebar {
    position: static;
  }

  .sidebar-card {
    padding: 20px;
  }

  .content-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .content-table td {
    padding: 12px 14px;
  }

  .content-table--price .price-table__amount {
    width: 30%;
    padding: 12px 10px;
  }

  .content-table--entries tbody th {
    width: 32%;
  }

  .content-table--office tbody th {
    width: 32%;
    padding: 12px 12px;
  }

  .content-table--office td {
    padding: 12px 14px;
  }

  .office-card dl div,
  .info-table div {
    grid-template-columns: 110px 1fr;
  }

  .footer-grid {
    gap: 24px;
  }

  .brand--footer {
    max-width: 100%;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .blog-admin-section {
    margin: 56px auto 80px;
  }

  .blog-admin-header h1 {
    font-size: 1.75rem;
  }

  .blog-admin-panel {
    padding: 28px;
  }

  .blog-post-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .blog-post-list time {
    white-space: normal;
  }
}

/* Smartphone: 640px 以下 */
@media (max-width: 640px) {
  :root {
    --scroll-offset: 76px;
  }

  body {
    font-size: 16px;
    line-height: 1.75;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    --header-bar-height: 68px;
  }

  .header-inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 8px 0;
  }

  .header-brand .brand {
    gap: 10px;
    font-size: 17px;
  }

  .header_logo {
    height: 44px;
  }

  .logo_mini {
    font-size: 0.75rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .global-nav a {
    padding: 14px 20px;
    font-size: 16px;
  }

  .hero-content {
    padding-bottom: 32px;
  }

  .hero_img_container {
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }

  .hero-content .text {
    width: min(100% - 24px, 560px);
    margin-top: 20px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .hero-content .text h1 {
    font-size: 2rem;
    line-height: 1.45;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .trust-list,
  .service-grid,
  .news-list a,
  .office-card dl div,
  .info-table div,
  .price-item {
    grid-template-columns: 1fr;
  }

  .news-list a {
    gap: 8px;
    padding: 14px 16px;
  }

  .section {
    margin: 56px auto;
  }

  .section-soft,
  .section-office,
  .section-service {
    margin: 72px auto;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  h2 {
    font-size: 1.65rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }

  .section-service::before {
    display: none;
  }

  .page-hero {
    padding: 40px 0;
  }

  .page-hero h1,
  .hero h1 {
    margin-bottom: 12px;
    font-size: 1.5rem;
  }

  .breadcrumb-bar {
    padding: 14px 0;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .content-card,
  .office-card,
  .sidebar-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .article-section+.article-section {
    margin-top: 32px;
    padding-top: 28px;
  }

  .article-section h2 {
    font-size: 1.35rem;
  }

  .article-section h3,
  .subsection-title,
  .article-section h4 {
    font-size: 17px;
  }

  .step-list {
    margin: 14px 0;
  }

  .step-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .step-item>span {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .content-card {
    overflow-x: visible;
  }

  .content-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .content-table--entries {
    min-width: 0;
  }

  .content-table--entries tr {
    display: block;
  }

  .content-table--entries th,
  .content-table--entries td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .content-table--entries tbody th {
    border-bottom: none;
  }

  .content-table--office tbody th {
    width: 34%;
    padding: 10px 10px;
    font-size: 15px;
    vertical-align: top;
  }

  .content-table--office td {
    padding: 10px 12px;
    font-size: 15px;
  }

  .content-table--price tr {
    display: block;
  }

  .content-table--price td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .content-table--price .price-table__amount {
    width: 100%;
    max-width: none;
    text-align: center;
    border-top: none;
  }

  .content-table td {
    padding: 10px 12px;
  }

  .office-card dl div,
  .info-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .office-card dl div dt,
  .info-table div dt {
    padding-bottom: 0;
    border-bottom: none;
  }

  .office-profile__photo {
    max-width: 160px;
  }

  .office-map iframe {
    height: 240px;
  }

  .policy h2 {
    font-size: 1.25rem;
  }

  .price-item {
    gap: 8px;
    align-items: start;
    padding: 14px 16px;
  }

  .price-item strong {
    white-space: normal;
  }

  .btn {
    min-height: 48px;
    padding: 0 20px;
  }

  .site-footer {
    padding: 32px 0 22px;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-nav ul {
    gap: 8px;
  }

  .copyright {
    margin-top: 22px;
    font-size: 12px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    font-size: 12px;
  }

  .page-loader__logo {
    width: 60px;
  }

  .hero-visual {
    display: none;
  }

  .blog-admin-section {
    margin: 40px auto 64px;
  }

  .blog-admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-admin-nav {
    gap: 16px;
  }

  .blog-admin-panel {
    padding: 20px 18px;
  }

  .blog-field textarea {
    min-height: 180px;
  }

  .contact-success h2 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-loader {
    transition: none;
  }

  .page-loader__logo-wrap {
    animation: none;
  }

  .page-loader__spinner {
    animation: none;
    border-top-color: var(--color-blue);
  }

  .btn:hover,
  .service-card:hover {
    transform: none;
  }

  .scroll-top {
    transition: none;
  }

  .global-nav,
  .nav-backdrop,
  .nav-toggle__bar {
    transition: none;
  }
}