/*
Theme Name: Profession1
Theme URI: https://example.com/profession1
Author: WATANABE RYOSUKE
Author URI: https://example.com
Description: A minimal custom WordPress theme scaffold.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: profession1
*/

:root {
  --container: 1200px;
  --header-container: 1340px;
  --font-base: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Header design tokens: change these values to update similar parts together. */
  --header-font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --header-font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --header-nav-font-size: 0.88rem;
  --header-nav-font-weight: 600;
  --header-utility-font-size: 0.7rem;
  --header-brand-font-size: 1.5rem;
  --header-brand-font-size-mobile: 1.12rem;
  --header-brand-sub-font-size: 0.7rem;
  --header-brand-text-gap: 6px;
  --header-brand-sub-offset: 3px;
  --header-letter-spacing: 0.02em;
  --header-nav-gap: clamp(16px, 1.6vw, 28px);
  --header-control-height: 49px;
  --header-control-radius: 7px;
  --ink-900: #0f2648;
  --ink-700: #37587a;
  --ink-500: #5f7b97;
  --line: #dce5f0;
  --surface: #ffffff;
  --bg: #f4f8fc;
  --primary: #0b5ec7;
  --primary-strong: #084ca2;
  --green: #0aa164;
  --green-strong: #07804f;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 28px rgba(10, 42, 86, 0.08);
  --section-label-color: #2e71c7;
  --section-accent-color: #ffd21d;
  --section-title-size: clamp(1.8rem, 2.5vw, 2.35rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: 0.02em;
  /* 日本語の約物を詰めて余白ムラを抑える */
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.news-date {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
}

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

a:hover {
  opacity: 0.92;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.top-hero {
  background: linear-gradient(105deg, #f9fcff 0%, #f3f8fe 46%, #eaf3fb 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  color: #092e60;
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 3px 14px rgba(9, 34, 66, 0.035);
}

.header-container {
  width: min(calc(100% - 44px), var(--header-container));
  margin-inline: auto;
}

.header-utility {
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.header-utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #4e5d6e;
  font-family: var(--header-font-sans);
  font-size: var(--header-utility-font-size);
  font-weight: 500;
  letter-spacing: var(--header-letter-spacing);
}

.header-utility-inner p {
  margin: 0;
}

.utility-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #1f344c;
  font-weight: 500;
}

.utility-nav a,
.global-nav a {
  transition: color 0.18s ease;
}

.utility-nav a:hover,
.global-nav a:hover {
  color: #2469bd;
  opacity: 1;
}

.header-main {
  background: #fff;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: #2f75ce;
}

.brand:hover {
  opacity: 1;
}

.brand-mark {
  width: 45px;
  height: 43px;
  flex: none;
  margin-right: 9px;
}

.brand-text {
  display: grid;
  justify-items: start;
  gap: var(--header-brand-text-gap);
}

.brand-name,
.brand-sub {
  width: 100%;
  padding-inline: 0;
  text-align: left;
  text-indent: 0;
}

.brand-name {
  display: block;
  margin: 0;
  color: #173e72;
  font-family: var(--header-font-serif);
  font-size: var(--header-brand-font-size);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.18;
}

.brand-sub {
  display: block;
  margin: 0;
  position: relative;
  left: var(--header-brand-sub-offset);
  color: #54779f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--header-brand-sub-font-size);
  letter-spacing: 0.045em;
  line-height: 1;
  left: 7px;
}

.header-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  min-width: 0;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: var(--header-nav-gap);
  font-family: var(--header-font-sans);
  font-size: var(--header-nav-font-size);
  font-weight: var(--header-nav-font-weight);
  letter-spacing: var(--header-letter-spacing);
  white-space: nowrap;
}

.global-nav a {
  color: #143f71;
}

.global-nav a:hover {
  color: var(--primary);
  opacity: 1;
}

.global-nav .is-active {
  color: #124d91;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-action {
  min-height: var(--header-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--header-control-radius);
  font-family: var(--header-font-sans);
  font-size: var(--header-nav-font-size);
  font-weight: var(--header-nav-font-weight);
  letter-spacing: var(--header-letter-spacing);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.header-action:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-action-web {
  color: #153e73;
  border: 1px solid #92add0;
  background: #fff;
  cursor: default;
}

.header-action-web:hover {
  color: #fff;
  background: #153e73;
}

.header-action-consult {
  color: #113d6e;
  border: 1px solid #f4c900;
  background: #ffd51d;
}

.header-action-consult:hover {
  background: #ffe052;
}

.header-action-icon {
  width: 18px;
  height: 18px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.web-support-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23153e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='13' rx='2'/><path d='M8 21h8M12 17v4M9 9l-2 2 2 2M15 9l2 2-2 2'/></svg>");
}

.header-action-web:hover .web-support-icon {
  filter: brightness(0) invert(1);
}

.consult-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23153e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 14a4 4 0 0 1-4 4H8l-5 3 1.7-5.1A7 7 0 0 1 3 11a7 7 0 0 1 7-7h4a7 7 0 0 1 7 7v3Z'/><path d='M8 11h.01M12 11h.01M16 11h.01'/></svg>");
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #123e70;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle-lines {
  display: grid;
  gap: 5px;
}

.menu-toggle-lines i {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero-inner {
  position: relative;
  width: min(100%, 1440px);
  min-height: 600px;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 53%;
  padding: 62px 40px 62px max(60px, calc((100vw - 1340px) / 2));
}

.hero-title {
  margin: 0;
  color: #0a3264;
  font-family: var(--header-font-serif);
  font-size: clamp(2.35rem, 3.05vw, 3.15rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.055em;
}

.hero-lead {
  margin: 22px 0 0;
  color: #263d59;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.035em;
}

.hero-cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-button {
  min-width: 220px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 25px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(10, 49, 99, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 49, 99, 0.18);
}

.hero-button-primary {
  color: #fff;
  background: #083f91;
}

.hero-button-consult {
  color: #143c6c;
  background: #ffd42b;
}

.hero-button-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 400;
}

.hero-consult-icon {
  width: 22px;
  height: 22px;
  flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143c6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 14a4 4 0 0 1-4 4H8l-5 3 1.7-5.1A7 7 0 0 1 3 11a7 7 0 0 1 7-7h4a7 7 0 0 1 7 7v3Z'/><path d='M8 11h.01M12 11h.01M16 11h.01'/></svg>");
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 61%;
  overflow: hidden;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(231, 241, 251, 0.25) 0%, transparent 22%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
}

.message-section {
  padding: 88px 0 82px;
  background: #fff;
  font-family: var(--header-font-serif);
}

.message-section .section-label {
  font-family: var(--header-font-serif);
}

.message-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.section-label {
  margin: 0 0 8px;
  color: var(--section-label-color);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-title {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 16px;
  color: #0c3364;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.045em;
}

.message-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.message-intro,
.message-text {
  color: #17375c;
  font-family: var(--header-font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.025em;
}

.message-intro {
  margin: 0;
}

.message-text {
  margin: 22px 0 0;
}

.message-signature {
  margin: 23px 0 0;
  display: flex;
  align-items: baseline;
  gap: 15px;
  color: #17375c;
  font-size: 0.82rem;
  font-weight: 600;
}

.message-signature strong {
  font-family: var(--header-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.message-profile-link {
  width: min(100%, 320px);
  min-height: 54px;
  margin-top: 25px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #123d72;
  border: 1px solid #2b64ab;
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.message-profile-link::after {
  content: "→";
  margin-left: auto;
  font-size: 1rem;
  font-weight: 400;
}

.message-profile-link:hover {
  color: #fff;
  background: #123d72;
  opacity: 1;
  transform: translateY(-1px);
}

.message-image {
  margin: 0;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eef5;
  box-shadow: 0 12px 28px rgba(13, 46, 84, 0.09);
}

.message-image img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.voices-section {
  padding: 78px 0 84px;
  background: linear-gradient(180deg, #f7fbff 0%, #f2f8fd 100%);
}

.voices-heading-row {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.voices-title {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #0c3364;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
}

.voices-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.section-list-link {
  padding: 7px 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #2c67ad;
  border-bottom: 1px solid #8fb1d9;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-list-link::after {
  content: "→";
  font-size: 1rem;
  font-weight: 400;
}

.section-list-link:hover {
  color: #0c3d79;
  border-color: #0c3d79;
  opacity: 1;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.voice-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 65, 115, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(18, 65, 115, 0.13);
}

.voice-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background: #e8eff5;
}

.voice-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.35s ease;
}

.voice-card:hover .voice-card-image img {
  transform: scale(1.025);
}

.voice-image-note {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 8px;
  color: #fff;
  border-radius: 3px;
  background: rgba(13, 48, 84, 0.76);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.voice-card-body {
  padding: 22px 22px 20px;
}

.voice-card-body h3 {
  margin: 0;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.025em;
}

.voice-meta {
  margin: 13px 0 0;
  color: #52677e;
  font-size: 0.76rem;
  font-weight: 600;
}

.voice-excerpt {
  margin: 16px 0 0;
  color: #465a70;
  font-size: 0.82rem;
  line-height: 1.85;
}

.services-section {
  padding: 78px 0 86px;
  background: #fff;
}

.services-heading-row {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.services-title {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #0c3364;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
}

.services-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-item-card {
  min-width: 0;
  padding: 24px 20px 21px;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfe0f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(19, 69, 122, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 26px rgba(19, 69, 122, 0.1);
}

.service-item-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-number {
  color: #2f79d6;
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.service-item-heading h3 {
  margin: 0;
  color: #163c67;
  font-family: var(--header-font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.service-item-media {
  width: calc(100% + 12px);
  margin: 18px -6px 15px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.service-item-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.service-item-card > p {
  margin: 0;
  flex: 1;
  color: #485c72;
  font-size: 0.78rem;
  line-height: 1.85;
}

.service-item-link {
  margin-top: 17px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #164b86;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-item-link::after {
  content: "→";
  font-size: 0.95rem;
  font-weight: 400;
}

.service-item-link:hover {
  color: #2874c8;
  opacity: 1;
}

.features-section {
  padding: 72px 0 82px;
  background: #f8fbfe;
  border-top: 1px solid #eef4fa;
}

.features-heading {
  margin-bottom: 32px;
}

.features-title {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #0c3364;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
}

.features-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.features-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 65, 115, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(18, 65, 115, 0.12);
}

.feature-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef5;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.feature-card-body {
  position: relative;
  min-height: 140px;
  padding: 28px 22px 22px 82px;
}

.feature-icon {
  position: absolute;
  left: 18px;
  top: -30px;
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 50%;
  background-color: #0a438f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 27px;
  box-shadow: 0 5px 13px rgba(9, 54, 112, 0.2);
}

.feature-icon-consult {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11a7 7 0 0 1-7 7H8l-4 3 1.3-4A7 7 0 0 1 3 11a7 7 0 0 1 7-7h3a7 7 0 0 1 7 7Z'/><path d='m9 11 2 2 4-4'/></svg>");
}

.feature-icon-online {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='13' rx='2'/><path d='M8 21h8M12 17v4'/><circle cx='12' cy='10.5' r='2.5'/></svg>");
}

.feature-icon-response {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/><path d='M17 3h4v4'/></svg>");
}

.feature-card-body h3 {
  margin: 0;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.feature-card-body p {
  margin: 9px 0 0;
  color: #4a5e74;
  font-size: 0.78rem;
  line-height: 1.75;
}

.flow-section {
  padding: 78px 0 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(197, 222, 247, 0.28), transparent 30%),
    #fff;
}

.flow-heading {
  margin-bottom: 38px;
}

.flow-title {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #0c3364;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
}

.flow-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.flow-lead {
  margin: 17px 0 0;
  color: #526980;
  font-size: 0.88rem;
  line-height: 1.8;
}

.flow-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.flow-step {
  position: relative;
  min-width: 0;
  min-height: 285px;
  padding: 25px 17px 22px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1px solid #d8e6f2;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 65, 115, 0.07);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(18, 65, 115, 0.12);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 91px;
  right: -25px;
  width: 31px;
  height: 31px;
  border: 5px solid #fff;
  border-radius: 50%;
  background:
    center / 11px 11px no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231b5595' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='m4 2 4 4-4 4'/></svg>"),
    #ffd529;
  box-shadow: 0 3px 10px rgba(15, 61, 112, 0.15);
}

.flow-step-number {
  color: #4480c2;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.flow-step-number strong {
  margin-left: 3px;
  color: #175596;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flow-step-icon {
  width: 70px;
  height: 70px;
  margin-top: 15px;
  display: block;
  flex: none;
  border: 1px solid #cfe0ef;
  border-radius: 50%;
  background-color: #eff6fc;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px;
  box-shadow: inset 0 0 0 7px #fff;
}

.flow-step-icon-contact {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 14a4 4 0 0 1-4 4H8l-5 3 1.7-5.1A7 7 0 0 1 3 11a7 7 0 0 1 7-7h4a7 7 0 0 1 7 7v3Z'/><path d='M8 11h.01M12 11h.01M16 11h.01'/></svg>");
}

.flow-step-icon-hearing {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3'/><path d='M3.5 19a5.5 5.5 0 0 1 11 0'/><path d='M15 6h6M15 10h4M17 14h4'/></svg>");
}

.flow-step-icon-estimate {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M9 8h6M9 12h6M9 16h3'/><path d='m15 16 1.5 1.5L20 14'/></svg>");
}

.flow-step-icon-contract {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h6l10-10a2.1 2.1 0 0 0-6-6L4 14v6Z'/><path d='m13 5 6 6M4 14l6 6'/></svg>");
}

.flow-step-icon-complete {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m8 12 2.7 2.7L16.5 9'/></svg>");
}

.flow-step h3 {
  margin: 16px 0 0;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.flow-step p {
  margin: 9px 0 0;
  color: #53687d;
  font-size: 0.73rem;
  line-height: 1.75;
}

.flow-note {
  margin: 18px 0 0;
  color: #72869b;
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: right;
}

.flow-note span {
  color: #ca9f00;
}

.consultation-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 58px 0 54px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 48, 112, 0.98) 0%, rgba(5, 52, 121, 0.93) 53%, rgba(5, 44, 101, 0.82) 100%),
    url("assets/images/hero-consultation.jpg") center 43% / cover no-repeat;
}

.consultation-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 48%;
  opacity: 0.26;
  background:
    linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.12) 25%, transparent 26%) 0 0 / 42px 42px,
    linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.08) 25%, transparent 26%) 0 0 / 42px 42px;
}

.consultation-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.consultation-cta h2 {
  margin: 0;
  font-family: var(--header-font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.consultation-cta p {
  margin: 10px 0 0;
  color: #d9e8fa;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.consultation-cta-buttons {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.consultation-cta-button {
  width: min(100%, 330px);
  min-height: 64px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(1, 22, 55, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.consultation-cta-button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(1, 22, 55, 0.3);
}

.consultation-cta-primary {
  color: #143c6c;
  background: #ffd42b;
}

.consultation-cta-line {
  color: #fff;
  background: #087f45;
}

.consultation-cta-line:hover {
  background: #066b3a;
}

.consultation-cta-icon {
  width: 23px;
  height: 23px;
  flex: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.consultation-cta-icon-chat {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143c6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 14a4 4 0 0 1-4 4H8l-5 3 1.7-5.1A7 7 0 0 1 3 11a7 7 0 0 1 7-7h4a7 7 0 0 1 7 7v3Z'/><path d='M8 11h.01M12 11h.01M16 11h.01'/></svg>");
}

.consultation-cta-icon-line {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20.5 11.2c0 4.2-3.8 7.6-8.5 7.6-.8 0-1.6-.1-2.3-.3L5 21l1.2-3.8c-1.7-1.4-2.7-3.6-2.7-6 0-4.2 3.8-7.6 8.5-7.6s8.5 3.4 8.5 7.6Z'/><path d='M8 11.3h.01M12 11.3h.01M16 11.3h.01'/></svg>");
}

.consultation-cta-arrow {
  margin-left: auto;
  font-size: 1.05rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 240px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.btn-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.btn-text small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-line {
  background: #04a248;
  color: #fff;
}

.btn-mail {
  background: #0a3f96;
  color: #fff;
}

.btn-line .btn-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
}

.btn-mail .btn-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>");
}

.section {
  padding: 46px 0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title-wrap::before,
.section-title-wrap::after {
  content: "";
  width: 54px;
  height: 2px;
  background: #7eb0e2;
}

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: 0.04em;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.strength-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.strength-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 50% 42%, #eaf3fd 0%, #dbeaf8 100%);
  border: 1px solid #d4e4f6;
  position: relative;
}

.strength-icon::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f7fe0 0%, #0d55b3 100%);
}

.strength-body h3 {
  margin: 6px 0 8px;
  color: var(--ink-900);
  font-size: 1.05rem;
  line-height: 1.4;
}

.strength-body p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.service-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e2f0;
  box-shadow: var(--shadow-soft);
}

.service-head {
  padding: 24px 24px 4px;
}

.service-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f5bbd;
  font-size: 1.4rem;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}

.service-icon-blue {
  background: linear-gradient(135deg, #2f7fe0 0%, #0d55b3 100%);
}

.service-icon-green {
  background: linear-gradient(135deg, #16c072 0%, #0a9a58 100%);
}

.service-head p {
  margin: 12px 0 0;
  color: var(--ink-700);
}

.service-main {
  padding: 16px 24px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 28px;
  color: #36587b;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff 0%, #fff 24%, #1b73d2 27%, #1b73d2 100%);
}

.service-list-green li::before {
  background: radial-gradient(circle at 38% 34%, #fff 0%, #fff 24%, #12a866 27%, #12a866 100%);
}

.service-image {
  min-height: 170px;
  height: 100%;
  border-radius: var(--radius-md);
  background:
    linear-gradient(140deg, rgba(15, 94, 199, 0.08) 0%, rgba(15, 94, 199, 0.02) 42%, transparent 100%),
    linear-gradient(45deg, #eef5fd 0%, #ddeafa 100%);
}

.service-action {
  padding: 6px 24px 22px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 180px;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid #0a3f96;
  color: #0a3f96;
  font-weight: 700;
  font-size: 0.92rem;
  background: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-ghost::after {
  content: "→";
  font-weight: 400;
}

.btn-ghost:hover {
  opacity: 1;
  background: #0a3f96;
  color: #fff;
}

.btn-ghost-green {
  border-color: #0a9a58;
  color: #0a9a58;
}

.btn-ghost-green:hover {
  background: #0a9a58;
}

.about-block {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e2f0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.about-content {
  padding: 28px;
}

.about-content h3 {
  margin: 0 0 12px;
  font-size: 1.9rem;
}

.about-content p {
  margin: 0;
  color: var(--ink-700);
}

.about-visual {
  background:
    linear-gradient(165deg, rgba(6, 53, 111, 0.08) 0%, rgba(6, 53, 111, 0.02) 34%, transparent 100%),
    linear-gradient(45deg, #f2f7fc 0%, #dde8f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.about-visual-text {
  color: #1f4775;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.topics-home-section {
  padding: 80px 0 88px;
  background: #fff;
}

.topics-home-heading-row {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.topics-home-title {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #0c3364;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
}

.topics-home-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.topics-home-layout {
  display: block;
}

.topics-home-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.topic-home-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(18, 65, 115, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 27px rgba(18, 65, 115, 0.13);
}

.topic-home-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.topic-home-card-link:hover {
  opacity: 1;
}

.topic-home-media {
  position: relative;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: #e9f0f6;
}

.topic-home-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.topic-home-card:hover .topic-home-media img {
  transform: scale(1.035);
}

/* ---- Top page motion ---- */
@keyframes home-hero-rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes home-hero-visual-in {
  from {
    opacity: 0;
    translate: 28px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes home-hero-image-settle {
  from {
    scale: 1.035;
  }
  to {
    scale: 1;
  }
}

body.home .hero-title,
body.home .hero-lead,
body.home .hero-cta-row {
  opacity: 1;
}

html.home-loader-complete body.home .hero-title,
html.home-loader-complete body.home .hero-lead,
html.home-loader-complete body.home .hero-cta-row {
  animation: home-hero-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.home-loader-complete body.home .hero-title {
  animation-delay: 0.08s;
}

html.home-loader-complete body.home .hero-lead {
  animation-delay: 0.22s;
}

html.home-loader-complete body.home .hero-cta-row {
  animation-delay: 0.36s;
}

html.home-loader-complete body.home .hero-visual {
  animation: home-hero-visual-in 0.95s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.home-loader-complete body.home .hero-visual img {
  animation: home-hero-image-settle 1.35s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.has-home-loader {
  overflow: hidden;
}

.home-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  place-items: center;
  color: #123963;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

html.has-home-loader .home-loader {
  display: grid;
}

.home-loader[hidden] {
  display: none;
}

.home-loader-inner {
  width: min(calc(100% - 40px), 520px);
  display: grid;
  justify-items: center;
  text-align: center;
  transition: opacity 0.36s ease, translate 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-loader-logo-shell {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  animation: home-loader-logo-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-loader-logo-shell img {
  width: 100%;
  height: 100%;
  display: block;
}

.home-loader-title {
  margin-top: 18px;
  font-family: var(--header-font-serif);
  font-size: clamp(1.22rem, 3vw, 1.62rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  animation: home-loader-title-in 0.58s 0.12s ease both;
}

.home-loader.is-home-loader-leaving {
  opacity: 0;
  visibility: hidden;
}

.home-loader.is-home-loader-leaving .home-loader-inner {
  opacity: 0;
  translate: 0 -5px;
}

@keyframes home-loader-logo-in {
  from {
    opacity: 0;
    scale: 0.9;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes home-loader-title-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

html.home-motion-ready body.home .home-motion-item {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--home-motion-delay, 0ms);
  will-change: opacity, translate;
}

html.home-motion-ready body.home .home-motion-item.home-motion-from-left {
  translate: -34px 0;
}

html.home-motion-ready body.home .home-motion-item.home-motion-from-right {
  translate: 34px 0;
}

html.home-motion-ready body.home .home-motion-item.is-home-motion-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html.home-loader-complete body.home .hero-title,
  html.home-loader-complete body.home .hero-lead,
  html.home-loader-complete body.home .hero-cta-row,
  html.home-loader-complete body.home .hero-visual,
  html.home-loader-complete body.home .hero-visual img,
  .home-loader-logo-shell,
  .home-loader-title {
    animation: none !important;
  }

  .home-loader {
    transition-duration: 0.2s;
  }

  html.home-motion-ready body.home .home-motion-item {
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }
}

.topic-home-category {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 58px;
  padding: 6px 10px;
  color: #fff;
  background: #123e72;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.topic-home-body {
  flex: 1;
  padding: 15px 15px 16px;
  display: flex;
  flex-direction: column;
}

.topic-home-body h3 {
  margin: 0;
  color: #183a61;
  font-family: var(--header-font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.topic-home-body time {
  margin-top: auto;
  padding-top: 14px;
  color: #7890a8;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

body.home .site-footer {
  margin-top: 0;
}

.site-footer {
  margin-top: 34px;
  color: #e7f1ff;
  background:
    radial-gradient(circle at 14% 22%, rgba(45, 101, 173, 0.2), transparent 28%),
    linear-gradient(180deg, #0b3367 0%, #082957 100%);
}

.footer-main {
  padding: 54px 0 40px;
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(420px, 1.9fr) minmax(230px, 0.92fr);
  grid-template-areas: "profile navigation actions";
  align-items: start;
  gap: clamp(38px, 5vw, 76px);
}

.footer-profile {
  grid-area: profile;
  min-width: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  color: #fff;
}

.footer-brand:hover {
  opacity: 1;
}

.footer-brand-mark {
  width: 43px;
  height: 41px;
  margin-right: 10px;
  flex: none;
  color: #f3f8ff;
}

.footer-brand-text {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.footer-brand-text strong {
  color: #fff;
  font-family: var(--header-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.035em;
}

.footer-brand-text small {
  color: #a9c5e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.035em;
}

.footer-description {
  margin: 20px 0 0;
  color: #c5d9ef;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.025em;
}

.footer-office-link {
  width: min(100%, 206px);
  min-height: 43px;
  margin-top: 17px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dceaff;
  border: 1px solid rgba(183, 211, 242, 0.7);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.footer-office-link span:last-child {
  margin-left: auto;
  font-size: 0.9rem;
}

.footer-office-link:hover {
  color: #123e70;
  background: #fff;
  opacity: 1;
}

.footer-office-icon {
  width: 15px;
  height: 15px;
  flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dceaff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18M5 21V8l7-5 7 5v13M9 21v-7h6v7'/></svg>");
}

.footer-office-link:hover .footer-office-icon {
  filter: brightness(0) saturate(100%) invert(20%) sepia(27%) saturate(2347%) hue-rotate(171deg) brightness(92%);
}

.footer-navigation {
  grid-area: navigation;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 50px);
}

.footer-nav-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-nav-group h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.footer-nav-group a {
  width: fit-content;
  color: #c6d9ef;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
}

.footer-nav-group a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-actions {
  grid-area: actions;
  display: grid;
  gap: 11px;
}

.footer-action {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #153e73;
  border: 1px solid #dce8f5;
  border-radius: 4px;
  background: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(2, 19, 44, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.footer-action:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-action-consult {
  border-color: #f3ca00;
  background: #ffd51d;
}

.footer-action-consult:hover {
  background: #ffe04b;
}

.footer-action-icon {
  width: 17px;
  height: 17px;
  flex: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-action-web {
  cursor: default;
}

.footer-web-support-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23153e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='13' rx='2'/><path d='M8 21h8M12 17v4M9 9l-2 2 2 2M15 9l2 2-2 2'/></svg>");
}

.footer-consult-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23153e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 14a4 4 0 0 1-4 4H8l-5 3 1.7-5.1A7 7 0 0 1 3 11a7 7 0 0 1 7-7h4a7 7 0 0 1 7 7v3Z'/><path d='M8 11h.01M12 11h.01M16 11h.01'/></svg>");
}

.footer-action-arrow {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid rgba(188, 214, 242, 0.16);
}

.footer-bottom-inner {
  position: relative;
  min-height: 62px;
  padding: 20px 64px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  margin: 0;
  color: #9fbbda;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-page-top {
  position: absolute;
  right: 0;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #d6e6f8;
  border: 1px solid rgba(199, 220, 244, 0.45);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.footer-page-top span {
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

.footer-page-top:hover {
  color: #123e70;
  background: #fff;
  opacity: 1;
}

@media (max-width: 1240px) {
  .header-utility {
    display: none;
  }

  .site-header-inner {
    min-height: 76px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .header-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding: 0 max(22px, calc((100% - var(--header-container)) / 2));
    background: #fff;
    border-top: 1px solid #edf1f5;
    box-shadow: 0 12px 24px rgba(12, 43, 78, 0.12);
    transition: max-height 0.28s ease, visibility 0.28s ease, padding 0.28s ease;
  }

  .is-menu-open .header-navigation {
    max-height: 680px;
    visibility: visible;
    padding-top: 12px;
    padding-bottom: 22px;
  }

  .global-nav {
    display: grid;
    width: 100%;
    gap: 0;
    font-size: var(--header-nav-font-size);
  }

  .global-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid #edf1f5;
  }

  .header-actions {
    width: 100%;
    margin-top: 16px;
  }

  .header-action {
    flex: 1 1 0;
  }

  .is-menu-open .menu-toggle-lines i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .is-menu-open .menu-toggle-lines i:nth-child(2) {
    opacity: 0;
  }

  .is-menu-open .menu-toggle-lines i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about-block {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strength-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
    grid-template-areas:
      "profile actions"
      "navigation navigation";
    gap: 38px 52px;
  }

  .footer-navigation {
    padding-top: 34px;
    border-top: 1px solid rgba(188, 214, 242, 0.16);
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-title {
    grid-row: 2;
    padding: 34px 28px 0;
    font-size: clamp(2rem, 6vw, 2.75rem);
  }

  .hero-visual {
    grid-row: 1;
    position: relative;
    width: 100%;
    height: min(58vw, 470px);
    clip-path: none;
  }

  .hero-lead {
    grid-row: 3;
    margin: 0;
    padding: 30px 28px 0;
  }

  .hero-cta-row {
    grid-row: 4;
    margin-top: 30px;
    padding: 0 28px 40px;
  }

  .message-section {
    padding: 68px 0;
  }

  .message-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .message-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .message-image img {
    min-height: 0;
  }

  .voices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step {
    min-height: 265px;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .topics-home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .footer-main {
    padding: 46px 0 34px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "actions"
      "navigation";
    gap: 34px;
  }

  .footer-brand-text strong {
    font-size: 1.08rem;
  }

  .footer-brand-text small {
    font-size: 0.56rem;
  }

  .footer-description {
    font-size: 0.78rem;
  }

  .footer-actions {
    width: min(100%, 360px);
  }

  .footer-action {
    min-height: 50px;
    font-size: 0.78rem;
  }

  .footer-navigation {
    padding-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .footer-nav-group:last-child {
    grid-column: 1 / -1;
  }

  .footer-nav-group h2 {
    font-size: 0.86rem;
  }

  .footer-nav-group a {
    font-size: 0.76rem;
  }

  .footer-bottom-inner {
    min-height: 70px;
    padding-right: 50px;
    justify-content: flex-start;
  }

  .footer-bottom p {
    text-align: left;
  }

  .footer-page-top {
    width: 36px;
    height: 36px;
  }

  .header-container {
    width: min(calc(100% - 28px), var(--header-container));
  }

  .site-header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    margin-right: 6px;
  }

  .brand-name {
    font-size: clamp(0.9rem, 4.4vw, var(--header-brand-font-size-mobile));
    letter-spacing: 0.025em;
  }

  .brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.035em;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .header-navigation {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-action {
    width: 100%;
  }

  .hero-title {
    padding: 32px 20px 0;
    font-size: 1.9rem;
  }

  .service-grid,
  .service-main {
    grid-template-columns: 1fr;
  }

  .strength-list {
    gap: 20px;
  }

  .hero-button {
    width: 100%;
    min-width: 0;
  }

  .hero-lead {
    padding: 26px 20px 0;
  }

  .hero-cta-row {
    padding: 0 20px 34px;
  }

  .hero-lead br {
    display: none;
  }

  .hero-visual {
    height: 66vw;
    min-height: 280px;
    max-height: 380px;
  }

  .message-section {
    padding: 52px 0;
  }

  .message-title {
    margin-bottom: 22px;
    font-size: clamp(1.2rem, 5.3vw, 1.35rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .message-intro,
  .message-text {
    font-size: 0.9rem;
  }

  .message-intro br,
  .message-text br {
    display: none;
  }

  .message-signature {
    align-items: center;
    gap: 10px;
  }

  .message-signature strong {
    font-size: 1.15rem;
  }

  .message-profile-link {
    width: 100%;
  }

  .message-image {
    aspect-ratio: 4 / 3;
  }

  .voices-section {
    padding: 56px 0 62px;
  }

  .voices-heading-row {
    margin-bottom: 26px;
    align-items: flex-start;
  }

  .voices-title {
    font-size: 1.75rem;
  }

  .section-list-link {
    margin-top: 18px;
    font-size: 0.75rem;
  }

  .voices-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voice-card-body h3 br {
    display: none;
  }

  .services-section {
    padding: 56px 0 64px;
  }

  .services-heading-row {
    margin-bottom: 26px;
    align-items: flex-start;
  }

  .services-title {
    font-size: 1.75rem;
  }

  .services-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-item-media {
    aspect-ratio: 4 / 3;
  }

  .features-section {
    padding: 54px 0 62px;
  }

  .features-title {
    font-size: 1.75rem;
  }

  .features-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-card-body {
    min-height: 0;
  }

  .flow-section {
    padding: 56px 0 62px;
  }

  .flow-heading {
    margin-bottom: 28px;
  }

  .flow-title {
    font-size: 1.75rem;
  }

  .flow-lead {
    font-size: 0.82rem;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow-step {
    min-height: 0;
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 17px;
    text-align: left;
  }

  .flow-step-number {
    grid-column: 2;
    grid-row: 1;
  }

  .flow-step-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 64px;
    height: 64px;
    margin: 0;
    align-self: center;
    background-size: 29px;
  }

  .flow-step h3 {
    grid-column: 2;
    grid-row: 2;
    margin-top: 7px;
  }

  .flow-step p {
    grid-column: 2;
    grid-row: 3;
    margin-top: 6px;
    font-size: 0.75rem;
  }

  .flow-note {
    text-align: left;
  }

  .consultation-cta {
    padding: 48px 0 46px;
  }

  .consultation-cta h2 {
    font-size: clamp(1.2rem, 5.3vw, 1.35rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .consultation-cta p {
    font-size: 0.82rem;
    line-height: 1.8;
  }

  .consultation-cta-buttons {
    margin-top: 24px;
    flex-direction: column;
    gap: 13px;
  }

  .consultation-cta-button {
    width: 100%;
    min-height: 58px;
  }

  .topics-home-section {
    padding: 56px 0 64px;
  }

  .topics-home-heading-row {
    margin-bottom: 26px;
    align-items: flex-start;
  }

  .topics-home-title {
    font-size: 1.75rem;
  }

  .topics-home-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .topic-home-media {
    aspect-ratio: 16 / 9;
  }

  .topic-home-body h3 {
    font-size: 0.96rem;
  }

  .about-content h3 {
    font-size: 1.45rem;
  }

  .about-visual {
    font-size: 1.4rem;
    min-height: 180px;
  }
}

/* ==========================================================================
   下層ページ共通（事務所情報など）
   ========================================================================== */

.page-hero {
  position: relative;
  background: linear-gradient(120deg, #eaf2fb 0%, #dfeaf7 58%, #d5e5f6 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 26px 0 54px;
}

.page-hero-visual {
  position: absolute;
  inset: 0 0 0 44%;
  background:
    linear-gradient(90deg, #e3edf8 0%, rgba(227, 237, 248, 0) 34%),
    linear-gradient(140deg, #d9e6f4 0%, #c2d4e8 48%, #9fb6cf 100%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-700);
  font-size: 0.8rem;
}

.breadcrumb a:hover {
  color: var(--primary);
  opacity: 1;
}

.breadcrumb [aria-current="page"] {
  font-weight: 700;
  color: var(--ink-900);
}

.page-hero-title {
  margin: 26px 0 12px;
  font-family: var(--header-font-serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: #123b6b;
  letter-spacing: 0.06em;
}

.page-hero-lead {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7d94ad;
}

/* 見出し（左に縦ラインを引くタイプ） */
.office-block-title {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.office-block-title-center {
  padding-left: 0;
  border-left: 0;
  text-align: center;
  margin-bottom: 22px;
}

/* ==========================================================================
   事務所情報ページ
   ========================================================================== */

.office-page {
  background: var(--surface);
}

.office-message-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.office-message-title {
  margin: 0 0 22px;
  font-family: var(--header-font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: #123b6b;
  letter-spacing: 0.04em;
}

.office-message-body p {
  margin: 0 0 16px;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.office-signature {
  margin-top: 26px !important;
  color: var(--ink-900) !important;
}

.office-signature strong {
  margin-left: 6px;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

/* 写真の差し替え時は background-image を指定する */
.office-message-photo,
.office-profile-photo,
.office-access-photo,
.office-gallery-image,
.office-map {
  margin: 0;
  border-radius: var(--radius-md);
  background:
    linear-gradient(140deg, rgba(15, 94, 199, 0.1) 0%, rgba(15, 94, 199, 0.02) 45%, transparent 100%),
    linear-gradient(45deg, #eef5fd 0%, #d9e7f7 100%);
  border: 1px solid #d6e2f0;
  background-size: cover;
  background-position: center;
}

.office-message-photo {
  aspect-ratio: 4 / 3;
}

.office-philosophy {
  background: linear-gradient(180deg, #f2f7fc 0%, #eaf2fb 100%);
  border-block: 1px solid var(--line);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.philosophy-card {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #d9e5f2;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.philosophy-card h3 {
  margin: 18px 0 12px;
  font-size: 1.15rem;
  color: #123b6b;
}

.philosophy-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.88rem;
  line-height: 1.75;
}

.philosophy-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.philosophy-icon-talk {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231b73d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='15' cy='16' r='6'/><path d='M5 40c0-6 4.5-10 10-10s10 4 10 10'/><rect x='27' y='8' width='17' height='13' rx='3'/><path d='m32 21-1 5 6-5'/></svg>");
}

.philosophy-icon-clock {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231b73d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='25' r='15'/><path d='M24 16v9l6 4M18 6h12'/></svg>");
}

.philosophy-icon-heart {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231b73d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M24 20c-2-4-8-5-11-1-2.6 3.4-1 8 2 11l9 8 9-8c3-3 4.6-7.6 2-11-3-4-9-3-11 1Z'/><path d='M6 34c3 5 9 8 18 8s15-3 18-8'/></svg>");
}

.office-profile-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: stretch;
}

/* 高さは隣の表に追従させる（写真は cover でトリミング） */
.office-profile-photo {
  height: 100%;
  min-height: 340px;
}

.office-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
}

.office-table th,
.office-table td {
  padding: 14px 18px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.office-table th {
  width: 26%;
  background: #f2f7fc;
  color: var(--ink-900);
  font-weight: 700;
  white-space: nowrap;
}

.office-table td {
  color: var(--ink-700);
}

.office-table small {
  color: var(--ink-500);
  font-size: 0.8em;
}

.office-table a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-table-list {
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.9;
}

.office-overview {
  background: #f7fafd;
  border-block: 1px solid var(--line);
}

.office-overview-grid,
.office-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.office-map {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
}

.office-map-pin {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #123b6b;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 22px rgba(10, 42, 86, 0.25);
}

.office-map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  transform: translateY(4px) rotate(45deg);
  background: #123b6b;
}

.office-access-title {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: #123b6b;
}

.office-access-icon {
  width: 24px;
  height: 24px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b73d2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='14' rx='3'/><path d='M5 9h14M8 21l2-4M16 21l-2-4'/><circle cx='9' cy='13.5' r='.8' fill='%231b73d2'/><circle cx='15' cy='13.5' r='.8' fill='%231b73d2'/></svg>");
}

.office-access-body p {
  margin: 0 0 18px;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.office-access-photo {
  aspect-ratio: 16 / 9;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.office-gallery-item {
  margin: 0;
}

.office-gallery-image {
  display: block;
  aspect-ratio: 4 / 3;
}

.office-gallery-item figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--ink-700);
  font-size: 0.82rem;
}

.office-editor {
  color: var(--ink-700);
}

.office-cta {
  position: relative;
  padding: 40px 0;
  background: linear-gradient(115deg, #0d3561 0%, #12467f 58%, #1c5a9c 100%);
  color: #fff;
  overflow: hidden;
}

.office-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.office-cta-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: 0.04em;
}

.office-cta-text {
  margin: 0;
  color: #cfe1f6;
  font-size: 0.92rem;
}

.office-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 260px;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-cta::after {
  content: "→";
  font-weight: 400;
}

.btn-cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-cta-icon {
  width: 20px;
  height: 20px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.btn-cta-primary {
  color: #113d6e;
  background: #ffd51d;
  border: 1px solid #f4c900;
}

.btn-cta-secondary {
  color: #123b6b;
  background: #fff;
  border: 1px solid #dbe6f2;
}

@media (max-width: 1240px) {
  .office-message-inner,
  .office-profile-inner,
  .office-overview-grid,
  .office-access-grid {
    grid-template-columns: 1fr;
  }

  .office-profile-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-width: 320px;
    margin-inline: auto;
  }

  .philosophy-grid {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .page-hero-visual {
    inset: 0 0 0 62%;
  }

  .philosophy-grid,
  .office-gallery {
    grid-template-columns: 1fr;
  }

  .office-table th {
    width: 32%;
    padding: 12px;
    white-space: normal;
  }

  .office-table td {
    padding: 12px;
  }

  .btn-cta {
    width: 100%;
    min-width: 0;
  }
}

.site-main {
  width: min(100% - 32px, var(--container));
  margin: 30px auto 48px;
}

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
}

.post-title {
  margin: 0 0 10px;
}

.post-meta {
  margin: 0 0 14px;
  color: var(--ink-500);
  font-size: 0.86rem;
}

.pagination {
  display: flex;
  gap: 14px;
}

/* ==========================================================================
   お役立ち情報ページ（page-topics.php）
   ========================================================================== */

.topics-breadcrumb-row {
  padding: 14px 0;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
}

.topics-breadcrumb {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.74rem;
}

/* ---- Main layout ---- */
.topics-main {
  padding: 54px 0 76px;
  background: #fff;
}

.topics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas: "content sidebar";
  gap: 36px;
  align-items: start;
}

/* ---- Sidebar ---- */
.topics-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 110px;
}

.topics-cat-box {
  background: transparent;
}

.topics-sidebar-title {
  margin: 0 0 22px;
  padding: 0 0 13px;
  position: relative;
  color: #123b6b;
  font-family: var(--header-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topics-sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: #f2c500;
}

.topics-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 7px;
  background: #fff;
}

.topics-cat-item {
  border-bottom: 1px solid #edf2f8;
}

.topics-cat-item:last-child {
  border-bottom: 0;
}

.topics-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #173e72;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topics-cat-item a::after {
  content: "›";
  color: #315b8e;
  font-size: 1.1rem;
  font-weight: 400;
  flex: none;
}

.topics-cat-item a:hover {
  background: #f0f6fe;
  color: var(--primary);
  opacity: 1;
}

.topics-cat-item a:hover::after {
  color: var(--primary);
}

.topics-cat-item.is-active a {
  font-weight: 700;
  color: #173e72;
  background: #f7faff;
}

.topics-cat-item.is-active a::after {
  color: var(--primary);
}

/* Sidebar CTA box */
.topics-sidebar-cta {
  padding: 22px 16px 16px;
  background: #f4f8fd;
  border: 1px solid #dce7f3;
  border-radius: 7px;
  box-shadow: none;
}

.topics-sidebar-cta-label {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.5;
}

.topics-sidebar-cta-text {
  margin: 0 0 16px;
  font-size: 0.72rem;
  color: var(--ink-700);
  line-height: 1.75;
}

.topics-sidebar-cta-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  min-height: 48px;
  font-size: 0.78rem;
  padding: 10px 12px;
}

/* ---- Content area ---- */
.topics-content {
  grid-area: content;
  min-width: 0;
}

.topics-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: 0;
}

.topics-content-title {
  margin: 0;
  padding-bottom: 13px;
  position: relative;
  font-family: var(--header-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
}

.topics-content-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: #f2c500;
}

/* ---- Article grid (3 columns) ---- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 20px;
}

/* ---- Article card ---- */
.topics-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(17, 70, 141, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.topics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 70, 141, 0.13);
}

.topics-card-thumb-wrap {
  display: block;
  flex: none;
}

.topics-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.topics-card:hover .topics-card-thumb {
  transform: scale(1.04);
}

/* Placeholder gradient variants (1〜6) */
.topics-card-thumb--1 { background-color: #b8cfe8; background-image: linear-gradient(140deg, #a8c4e0 0%, #6fa0cc 55%, #4882b8 100%); }
.topics-card-thumb--2 { background-color: #b6d4be; background-image: linear-gradient(140deg, #a8ccb4 0%, #6aaa7e 55%, #459660 100%); }
.topics-card-thumb--3 { background-color: #d8cdb6; background-image: linear-gradient(140deg, #d4c6aa 0%, #b89e70 55%, #9c7e42 100%); }
.topics-card-thumb--4 { background-color: #b8c4d6; background-image: linear-gradient(140deg, #aab8d0 0%, #6882aa 55%, #3e5e8e 100%); }
.topics-card-thumb--5 { background-color: #c8bedc; background-image: linear-gradient(140deg, #c0b4d8 0%, #8e7ab8 55%, #6a52a0 100%); }
.topics-card-thumb--6 { background-color: #b8cec8; background-image: linear-gradient(140deg, #aac8c0 0%, #68a89e 55%, #428e84 100%); }

.topics-card-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 13px;
  border-radius: 0 0 5px 0;
  background: #0b3269;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  z-index: 1;
}

.topics-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topics-card-date {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-en);
  font-size: 0.76rem;
  color: var(--ink-500);
  letter-spacing: 0.05em;
}

.topics-card-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink-900);
}

.topics-card-title a {
  color: inherit;
  transition: color 0.15s ease;
}

.topics-card-title a:hover {
  color: var(--primary);
  opacity: 1;
}

.topics-card-excerpt {
  margin: 0 0 14px;
  font-size: 0.76rem;
  color: var(--ink-700);
  line-height: 1.75;
  flex: 1;
}

.topics-card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.15s ease;
  margin-top: auto;
}

.topics-card-more:hover {
  opacity: 1;
  gap: 9px;
}

/* ---- Pagination ---- */
.topics-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 44px;
}

.topics-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topics-pagination .page-numbers:hover {
  background: #eef5ff;
  color: var(--primary);
  border-color: #b8d4f4;
  opacity: 1;
}

.topics-pagination .page-numbers.current {
  background: #0f2648;
  color: #fff;
  border-color: #0f2648;
}

.topics-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

/* ---- Empty state ---- */
.topics-empty {
  padding: 60px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.92rem;
}

.topics-empty a {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .topics-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 30px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topics-sidebar {
    position: static;
    order: 2;
  }

  .topics-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
    gap: 32px;
  }

  .topics-content {
    order: 1;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

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

  .topics-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   ブログ詳細ページ（single.php）
   ========================================================================== */

.single-article-page {
  padding: 36px 0 80px;
  background: #fff;
}

.single-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 300px;
  gap: 64px;
  align-items: start;
}

.single-article {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.single-breadcrumb {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: #71859c;
  font-size: 0.72rem;
  white-space: nowrap;
}

.single-breadcrumb [aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #71859c;
}

.single-article-header {
  margin-top: 30px;
}

.single-article-category {
  display: inline-block;
  margin-bottom: 10px;
  color: #0759bc;
  font-size: 0.78rem;
  font-weight: 700;
}

.single-article-title {
  max-width: 760px;
  margin: 0;
  color: #0c3264;
  font-family: var(--header-font-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.single-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #647b96;
  font-family: var(--font-en);
  font-size: 0.74rem;
}

.single-article-meta time::before {
  content: "◷";
  margin-right: 6px;
  color: #234d82;
}

.single-meta-category {
  padding: 3px 11px;
  border-radius: 3px;
  background: #eef3f9;
  color: #46627f;
  font-family: var(--font-base);
  font-weight: 600;
}

.single-article-hero {
  margin: 26px 0 30px;
  overflow: hidden;
  border-radius: 2px;
  background: #edf3f9;
}

.single-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.single-article-content {
  color: #263d57;
  font-size: 0.92rem;
  line-height: 2;
}

.single-article-content > *:first-child {
  margin-top: 0;
}

.single-article-content p {
  margin: 0 0 20px;
}

.single-article-content h2,
.single-article-content h3 {
  color: #123e72;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.single-article-content h2 {
  margin: 38px 0 18px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid #126ee0;
  font-size: 1.18rem;
  line-height: 1.5;
}

.single-article-content h3 {
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dbe5f0;
  font-size: 1.05rem;
}

.single-article-content ul,
.single-article-content ol {
  margin: 14px 0 22px;
  padding-left: 1.6em;
}

.single-article-content li {
  margin: 5px 0;
}

.single-article-content li::marker {
  color: #0b65ce;
}

.single-article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.single-article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid #92b9e8;
  background: #f5f8fc;
}

.single-page-links {
  margin: 28px 0;
  color: var(--primary);
  font-weight: 700;
}

/* 関連記事 */
.single-related {
  margin-top: 42px;
  padding: 18px;
  border: 1px solid #cfdceb;
  border-radius: 3px;
}

.single-related-title {
  margin: 0 0 18px;
  color: #123e72;
  font-size: 1rem;
}

.single-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.single-related-card {
  min-width: 0;
}

.single-related-image {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: #edf3f9;
}

.single-related-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.single-related-card:hover img {
  transform: scale(1.04);
}

.single-related-card h3 {
  margin: 9px 0 6px;
  color: #173e72;
  font-size: 0.74rem;
  line-height: 1.55;
}

.single-related-card time {
  color: #7c8fa5;
  font-family: var(--font-en);
  font-size: 0.66rem;
}

/* 右サイドバー */
.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 112px;
}

.single-sidebar-box {
  overflow: hidden;
  border: 1px solid #d8e2ee;
  border-radius: 4px;
  background: #fff;
}

.single-sidebar-heading {
  margin: 0;
  padding: 13px 18px;
  background: #f1f5f9;
  color: #173e72;
  font-size: 0.9rem;
  font-weight: 700;
}

.single-sidebar-heading-blue {
  background: linear-gradient(120deg, #0b3268, #0d4b9b);
  color: #fff;
}

.single-search-form {
  position: relative;
  margin: 14px;
}

.single-search-form input {
  width: 100%;
  height: 42px;
  padding: 8px 42px 8px 13px;
  border: 1px solid #cfdceb;
  border-radius: 3px;
  outline: none;
  color: #263d57;
  font: inherit;
  font-size: 0.78rem;
}

.single-search-form input:focus {
  border-color: #3e78bd;
  box-shadow: 0 0 0 2px rgba(62, 120, 189, 0.12);
}

.single-search-form button {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  background: center / 18px no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4c9d' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-4-4'/></svg>");
  cursor: pointer;
}

.single-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-category-list li {
  margin: 0;
  border-top: 1px solid #e6edf5;
}

.single-category-list li:first-child {
  border-top: 0;
}

.single-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 11px 18px;
  color: #173e72;
  font-size: 0.78rem;
  font-weight: 700;
}

.single-category-list a::after {
  content: "›";
  color: #1265ca;
  font-size: 1.2rem;
  font-weight: 400;
}

.single-category-list a:hover {
  background: #f7faff;
  color: #0b5ec7;
  opacity: 1;
}

.single-popular-list {
  padding: 0 14px;
}

.single-popular-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #e6edf5;
}

.single-popular-item:first-child {
  border-top: 0;
}

.single-popular-image {
  overflow: hidden;
  border-radius: 3px;
  background: #edf3f9;
}

.single-popular-image img {
  display: block;
  width: 100%;
  height: 66px;
  object-fit: cover;
}

.single-popular-item h3 {
  margin: 0 0 5px;
  color: #173e72;
  font-size: 0.72rem;
  line-height: 1.55;
}

.single-popular-item time {
  color: #7c8fa5;
  font-family: var(--font-en);
  font-size: 0.64rem;
}

.single-consult-box {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  padding: 20px 18px 16px;
  border: 1px solid #174b91;
  border-radius: 5px;
  background: #fff;
}

.single-consult-icon {
  width: 38px;
  height: 38px;
  background: center / contain no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230b4c9d' stroke-width='1.8' stroke-linecap='round'><path d='M11 27v-5a13 13 0 0 1 26 0v5'/><rect x='6' y='25' width='8' height='12' rx='3'/><rect x='34' y='25' width='8' height='12' rx='3'/><path d='M38 37c0 4-4 6-9 6h-3'/><circle cx='23' cy='43' r='2'/></svg>");
}

.single-consult-copy h2 {
  margin: 0 0 5px;
  color: #123e72;
  font-size: 0.9rem;
}

.single-consult-copy p {
  margin: 0;
  color: #516b88;
  font-size: 0.72rem;
  line-height: 1.7;
}

.single-consult-box > a {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 4px;
  background: #ffcf24;
  color: #123e72;
  font-size: 0.78rem;
  font-weight: 700;
}

.single-consult-box > a:hover {
  background: #ffdc57;
  opacity: 1;
}

@media (max-width: 1100px) {
  .single-article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 34px;
  }

  .single-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .single-article-page {
    padding-top: 24px;
  }

  .single-article-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-search-box,
  .single-consult-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .single-article-title {
    font-size: 1.55rem;
  }

  .single-breadcrumb {
    font-size: 0.66rem;
  }

  .single-article-content {
    font-size: 0.88rem;
  }

  .single-related-grid,
  .single-sidebar {
    grid-template-columns: 1fr;
  }

  .single-search-box,
  .single-consult-box {
    grid-column: auto;
  }
}

/* ==========================================================================
   お問い合わせページ（page-contact.php）
   ========================================================================== */

.contact-page {
  background: #fff;
}

body.page-template-page-contact .site-footer {
  margin-top: 0;
}

.contact-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: linear-gradient(105deg, #f5f9fe 0%, #edf5fc 50%, #e4eff9 100%);
}

.contact-hero-inner {
  min-height: 380px;
  display: flex;
  align-items: center;
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
  width: 48%;
  padding: 36px 0;
}

.contact-hero-copy h1 {
  margin: 0 0 24px;
  color: #0e386b;
  font-family: var(--header-font-serif);
  font-size: clamp(2.15rem, 3.1vw, 3rem);
  letter-spacing: 0.08em;
}

.contact-hero-intro {
  margin: 0 0 18px;
  color: #173e72;
  font-size: 1rem;
  font-weight: 700;
}

.contact-hero-text {
  margin: 0;
  color: #385778;
  font-size: 0.88rem;
  line-height: 2;
}

.contact-hero-visual {
  position: absolute;
  inset: 0 0 0 44%;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(237, 245, 252, 0.9), rgba(237, 245, 252, 0.08) 30%, transparent 55%),
    url("assets/images/feature-online.jpg") center / cover no-repeat;
}

.contact-main-section {
  padding: 60px 0 66px;
}

.contact-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
}

.contact-form-column {
  min-width: 0;
}

.contact-section-header h2,
.contact-methods > h2 {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #123e72;
  font-family: var(--header-font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.contact-section-header h2::after,
.contact-methods > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: #f3c300;
}

.contact-section-header p {
  margin: 18px 0 30px;
  color: #536d89;
  font-size: 0.78rem;
}

.contact-notice {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
}

.contact-notice-success {
  border: 1px solid #9bcfb2;
  background: #effaf4;
  color: #17653c;
}

.contact-notice-error {
  border: 1px solid #e2aaa7;
  background: #fff4f3;
  color: #9a2923;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
  width: 100%;
}

/* Contact Form 7 が自動挿入する p / br をレイアウトに影響させない */
.contact-field-row > p {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: 100%;
  margin: 0;
}

.contact-field-row > p > br {
  display: none;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-field-row > label,
.contact-field-row > p > label,
.contact-field-row > legend {
  color: #173e72;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.7;
}

.contact-field-row > legend {
  float: left;
  width: 190px;
  padding: 0;
}

.field-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.45;
  vertical-align: 1px;
}

.field-required {
  background: #0e5bbb;
  color: #fff;
}

.field-optional {
  background: #e6ebf1;
  color: #667b92;
}

.contact-field-row input[type="text"],
.contact-field-row input[type="email"],
.contact-field-row input[type="tel"],
.contact-field-row select,
.contact-field-row textarea {
  width: 100%;
  border: 1px solid #ccd8e6;
  border-radius: 4px;
  background: #fff;
  color: #263d57;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field-row input[type="text"],
.contact-field-row input[type="email"],
.contact-field-row input[type="tel"],
.contact-field-row select {
  height: 48px;
  padding: 9px 15px;
}

.contact-field-row textarea {
  min-height: 142px;
  padding: 13px 15px;
  resize: vertical;
}

.contact-field-row input::placeholder,
.contact-field-row textarea::placeholder {
  color: #a7b5c5;
}

.contact-field-row input:focus,
.contact-field-row select:focus,
.contact-field-row textarea:focus {
  border-color: #3978bd;
  box-shadow: 0 0 0 3px rgba(57, 120, 189, 0.1);
}

.contact-select-wrap {
  position: relative;
}

.contact-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #24558d;
  border-bottom: 2px solid #24558d;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-select-wrap select {
  appearance: none;
  padding-right: 42px;
}

.contact-field-textarea {
  align-items: start;
}

.contact-field-textarea > label,
.contact-field-textarea > p > label {
  padding-top: 12px;
  align-self: start;
}

.contact-choice-row {
  display: block;
  min-width: 0;
}

.contact-choice-row::after {
  content: "";
  display: block;
  clear: both;
}

.contact-choice-list {
  margin-left: 212px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.contact-choice-list > p {
  width: 100%;
  margin: 0;
}

.contact-choice-list label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #284866;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-choice-list .wpcf7-list-item {
  margin: 0;
}

.contact-choice-list .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.contact-time-list .wpcf7-form-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
}

.contact-choice-list input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0b5ec7;
}

.contact-time-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
}

.contact-submit-area {
  position: relative;
  padding-top: 16px;
  text-align: center;
}

.contact-submit-area > p:first-child {
  margin: 0;
}

.contact-submit-area button,
.contact-submit-area input[type="submit"] {
  width: min(100%, 470px);
  min-height: 58px;
  padding: 13px 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc51e, #ffd947);
  color: #123e72;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 160, 0, 0.13);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.contact-submit-area button span {
  margin-left: 22px;
}

.contact-submit-area button:hover,
.contact-submit-area input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.contact-submit-area p {
  margin: 15px 0 0;
  color: #75899f;
  font-size: 0.68rem;
  line-height: 1.8;
}

.contact-submit-area .wpcf7-spinner {
  position: absolute;
  top: 33px;
  margin-left: 10px;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b32d2e;
  font-size: 0.72rem;
}

.contact-form .wpcf7-not-valid {
  border-color: #d96b6b;
  background: #fffafa;
}

.contact-form .wpcf7-response-output {
  margin: 8px 0 0;
  padding: 13px 16px;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.7;
}

/* 右側のお問い合わせ方法 */
.contact-methods {
  padding: 30px 26px 24px;
  background: linear-gradient(180deg, #f6f9fd, #f0f6fc);
}

.contact-methods > h2 {
  font-size: 1rem;
}

.contact-method-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 13px;
  padding: 26px 0;
  border-bottom: 1px solid #dbe5f0;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e3eefb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
}

.contact-method-icon-line {
  display: grid;
  place-items: center;
  background: #04833e;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-method-icon-email {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b58ad' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>");
}

.contact-method-card h3 {
  margin: 3px 0 10px;
  color: #123e72;
  font-size: 0.92rem;
}

.contact-method-card p {
  margin: 0;
  color: #536d89;
  font-size: 0.72rem;
  line-height: 1.8;
}

.contact-method-button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  margin-top: 5px;
  padding: 10px 15px;
  border: 1px solid #164d94;
  border-radius: 4px;
  background: #fff;
  color: #123e72;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-method-button-line {
  border-color: #036f35;
  background: #04833e;
  color: #fff;
}

.contact-method-button-line:hover {
  background: #036f35;
}

.contact-method-button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 1040px) {
  .contact-main-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 38px;
  }

  .contact-field-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .contact-field-row > p {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .contact-field-row > legend {
    width: 160px;
  }

  .contact-choice-list {
    margin-left: 182px;
  }
}

@media (max-width: 820px) {
  .contact-hero,
  .contact-hero-inner {
    min-height: 330px;
  }

  .contact-hero-copy {
    width: 62%;
  }

  .contact-hero-visual {
    inset: 0 0 0 54%;
    opacity: 0.65;
  }

  .contact-main-layout {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .contact-methods > h2 {
    grid-column: 1 / -1;
  }

  .contact-method-card {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .contact-hero-copy {
    width: 100%;
  }

  .contact-hero-visual {
    inset: 0;
    clip-path: none;
    opacity: 0.17;
  }

  .contact-hero-text br {
    display: none;
  }

  .contact-main-section {
    padding: 44px 0;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-field-row > p {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-field-row > legend {
    float: none;
    width: auto;
    margin-bottom: 10px;
  }

  .contact-field-textarea > label,
  .contact-field-textarea > p > label {
    padding-top: 0;
  }

  .contact-choice-list {
    margin-left: 0;
  }

  .contact-time-list {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    display: block;
    padding-inline: 20px;
  }

  .contact-method-card {
    border-bottom: 1px solid #dbe5f0;
  }

}

/* ==========================================================================
   取扱業務一覧ページ（page-services.php）
   ========================================================================== */

.services-page {
  color: #102f58;
  background: #fff;
}

.services-page-hero {
  overflow: hidden;
  background: linear-gradient(105deg, #edf6fd 0%, #e6f1fb 54%, #f8fbfe 54%);
}

.services-page-hero-inner {
  min-height: 330px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: stretch;
}

.services-page-hero-copy {
  position: relative;
  z-index: 2;
  padding: 48px 30px 46px 0;
  align-self: center;
}

.services-page-breadcrumb {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #496984;
  font-size: 0.73rem;
  font-weight: 600;
}

.services-page-breadcrumb a {
  color: #1f5e9e;
}

.services-page-hero-copy h1 {
  margin: 0;
  color: #0d3566;
  font-family: var(--header-font-serif);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.services-page-hero-copy p {
  margin: 17px 0 0;
  color: #173e6c;
  font-family: var(--header-font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.9;
}

.services-page-hero-image {
  position: relative;
  margin-right: calc((100vw - min(100vw - 32px, var(--container))) / -2);
  overflow: hidden;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  background: #e9f0f7;
}

.services-page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(230, 241, 251, 0.45), transparent 26%);
  pointer-events: none;
}

.services-page-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 68% center;
}

.services-page-list-section {
  padding: 58px 0 50px;
}

.services-page-intro {
  margin-bottom: 38px;
  text-align: center;
}

.services-page-intro h2 {
  margin: 0;
  color: #123965;
  font-family: var(--header-font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.035em;
}

.services-page-intro p {
  margin: 15px 0 0;
  color: #4c6278;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 2;
}

.services-page-list {
  display: grid;
  gap: 7px;
}

.services-page-item {
  min-height: 184px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 225px minmax(230px, 1fr) minmax(250px, 1.05fr) 150px;
  align-items: center;
  gap: 25px;
  border: 1px solid #cbddef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 69, 119, 0.035);
  scroll-margin-top: 110px;
}

.services-page-item-image {
  height: 154px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f7fc;
}

.services-page-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-page-item:hover .services-page-item-image img {
  transform: scale(1.025);
}

.services-page-item-main {
  min-width: 0;
}

.services-page-item-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.services-page-item-heading span {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: #174f88;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  box-shadow: none;
}

.services-page-item-heading span::before {
  content: "SERVICE";
  color: #8499ad;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.services-page-item-heading span::after {
  content: "";
  width: 24px;
  height: 1px;
  margin-left: 2px;
  background: #b8c9d9;
}

.services-page-item-heading h2 {
  margin: 0;
  color: #103665;
  font-family: var(--header-font-serif);
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1.45;
}

.services-page-item-main > p {
  margin: 18px 0 0 59px;
  color: #4a6076;
  font-size: 0.78rem;
  line-height: 1.9;
}

.services-page-item-details {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.services-page-item-details li {
  position: relative;
  padding-left: 16px;
  color: #264765;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.55;
}

.services-page-item-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a70cc;
}

.services-page-item-button {
  min-height: 52px;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #143e71;
  border: 1px solid #1b5aa1;
  border-radius: 5px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.services-page-item-button:hover {
  color: #fff;
  background: #124b8c;
  opacity: 1;
  transform: translateY(-1px);
}

.services-page-item-button span:last-child {
  font-size: 1rem;
  font-weight: 400;
}

.services-page-list-note {
  margin: 14px 0 0;
  color: #7a8da1;
  font-size: 0.67rem;
  text-align: center;
}

/* ---- Services list page motion ---- */
@keyframes services-hero-copy-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes services-hero-image-in {
  from {
    opacity: 0;
    scale: 1.025;
    translate: 24px 0;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

body.page-template-page-services .services-subpage-hero .subpage-hero-copy {
  animation: services-hero-copy-in 0.76s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-template-page-services .services-subpage-hero .subpage-hero-image {
  animation: services-hero-image-in 0.92s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.services-motion-ready .services-motion-item {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--services-motion-delay, 0ms);
  will-change: opacity, translate;
}

html.services-motion-ready .services-page-item.services-motion-item:nth-child(odd) {
  translate: -30px 0;
}

html.services-motion-ready .services-page-item.services-motion-item:nth-child(even) {
  translate: 30px 0;
}

html.services-motion-ready .services-motion-item.is-services-motion-visible {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 620px) {
  html.services-motion-ready .services-page-item.services-motion-item:nth-child(odd),
  html.services-motion-ready .services-page-item.services-motion-item:nth-child(even) {
    translate: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-services .services-subpage-hero .subpage-hero-copy,
  body.page-template-page-services .services-subpage-hero .subpage-hero-image {
    animation: none !important;
  }

  html.services-motion-ready .services-motion-item {
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }
}

.services-page-section-title {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 12px;
  color: #103665;
  font-family: var(--header-font-serif);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-align: center;
}

.services-page-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: #ffd21d;
  transform: translateX(-50%);
}

.services-page-features {
  padding: 46px 0 40px;
  background: linear-gradient(180deg, #f0f7fd, #eaf4fb);
}

.services-page-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.services-page-feature-grid article {
  min-height: 128px;
  padding: 23px 22px;
  display: flex;
  align-items: center;
  gap: 19px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(18, 65, 115, 0.055);
}

.services-page-feature-icon {
  width: 65px;
  height: 65px;
  display: block;
  flex: none;
  border-radius: 50%;
  background-color: #eef6fd;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 35px;
}

.services-page-feature-icon-free {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135398' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 8h8M9 5l3 3 3-3M9 12h6M9 16h6M12 8v10'/></svg>");
}

.services-page-feature-icon-online {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135398' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='13' rx='2'/><path d='M8 21h8M12 17v4M8 10l2 2 5-5'/></svg>");
}

.services-page-feature-icon-area {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135398' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/><circle cx='12' cy='10' r='2.5'/><path d='M3 21h18'/></svg>");
}

.services-page-feature-grid h3 {
  margin: 0;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.services-page-feature-grid p {
  margin: 7px 0 0;
  color: #53687d;
  font-size: 0.7rem;
  line-height: 1.75;
}

.services-page-flow {
  padding: 48px 0 40px;
  background: #fff;
}

.services-page-flow-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px;
  list-style: none;
}

.services-page-flow-list li {
  position: relative;
  min-height: 145px;
  padding: 22px 19px 18px;
  border: 1px solid #cddff0;
  border-radius: 6px;
  background: #fff;
}

.services-page-flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #174e89;
  border-right: 3px solid #174e89;
  transform: translateY(-50%) rotate(45deg);
}

.services-page-flow-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1766ba;
  border: 2px solid #1a78d4;
  border-radius: 5px;
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 700;
}

.services-page-flow-list h3 {
  margin: 11px 0 0;
  color: #173b65;
  font-family: var(--header-font-serif);
  font-size: 0.93rem;
}

.services-page-flow-list p {
  margin: 7px 0 0;
  color: #53687d;
  font-size: 0.7rem;
  line-height: 1.7;
}

.services-page-help {
  padding: 0 0 44px;
  background: #fff;
}

.services-page-help-inner {
  min-height: 112px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 25px;
  border: 1px solid #e7bd37;
  border-radius: 7px;
  background: #fffcf3;
}

.services-page-help-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #15569a;
  border: 2px solid #8cb6dc;
  border-radius: 50%;
  background: #fff;
  font-family: var(--header-font-serif);
  font-size: 2rem;
  font-weight: 700;
}

.services-page-help h2 {
  margin: 0;
  color: #173b65;
  font-family: var(--header-font-serif);
  font-size: 1.08rem;
}

.services-page-help p {
  margin: 5px 0 0;
  color: #596d80;
  font-size: 0.72rem;
  line-height: 1.7;
}

.services-page-help a {
  min-height: 52px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #123e70;
  border-radius: 6px;
  background: #ffd329;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 7px 17px rgba(173, 131, 0, 0.15);
}

.services-page-help a:hover {
  background: #ffe052;
  opacity: 1;
}

body.page-template-page-services .site-footer {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .services-page-item {
    grid-template-columns: 190px minmax(230px, 1fr) minmax(230px, 1fr);
    gap: 20px;
  }

  .services-page-item-image {
    grid-row: 1 / 3;
  }

  .services-page-item-button {
    grid-column: 2 / 4;
    width: 160px;
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .services-page-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .services-page-hero-copy {
    padding: 42px 0 38px;
  }

  .services-page-hero-image {
    height: 270px;
    margin: 0 calc((100vw - min(100vw - 32px, var(--container))) / -2);
    clip-path: none;
  }

  .services-page-item {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .services-page-item-image {
    grid-row: 1 / 4;
  }

  .services-page-item-details {
    grid-column: 2;
  }

  .services-page-item-button {
    grid-column: 2;
    width: 160px;
  }

  .services-page-feature-grid {
    grid-template-columns: 1fr;
  }

  .services-page-feature-grid article {
    min-height: 0;
  }

  .services-page-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .services-page-flow-list li:not(:last-child)::after {
    display: none;
  }

  .services-page-help-inner {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .services-page-help a {
    grid-column: 2;
    width: 210px;
  }
}

@media (max-width: 560px) {
  .services-page-hero-copy h1 {
    font-size: 2rem;
  }

  .services-page-hero-copy p {
    font-size: 0.85rem;
  }

  .services-page-hero-copy p br,
  .services-page-intro h2 br,
  .services-page-intro p br {
    display: none;
  }

  .services-page-list-section {
    padding: 46px 0 40px;
  }

  .services-page-item {
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-page-item-image,
  .services-page-item-main,
  .services-page-item-details,
  .services-page-item-button {
    grid-column: 1;
    grid-row: auto;
  }

  .services-page-item-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .services-page-item-heading h2 {
    font-size: 1.2rem;
  }

  .services-page-item-main > p {
    margin: 13px 0 0;
  }

  .services-page-item-button {
    width: 100%;
  }

  .services-page-flow-list {
    grid-template-columns: 1fr;
  }

  .services-page-help-inner {
    padding: 22px 18px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .services-page-help-icon {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }

  .services-page-help h2 {
    font-size: 0.95rem;
  }

  .services-page-help a {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ==========================================================================
   下層ページ共通ヒーロー（template-parts/page-hero.php）
   ========================================================================== */

.subpage-hero {
  overflow: hidden;
  border-bottom: 1px solid #dce8f3;
  background: linear-gradient(105deg, #edf6fd 0%, #e7f2fb 100%);
}

.subpage-hero-inner {
  min-height: 330px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: stretch;
}

.subpage-hero-copy {
  position: relative;
  z-index: 2;
  padding: 46px 32px 44px 0;
  align-self: center;
}

.subpage-breadcrumb {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #547089;
  font-size: 0.72rem;
  font-weight: 600;
}

.subpage-breadcrumb a {
  color: #235f9e;
}

.subpage-breadcrumb a:hover {
  color: #0b4f96;
  opacity: 1;
}

.subpage-breadcrumb [aria-current="page"] {
  color: #2e4e6e;
  font-weight: 700;
}

.subpage-hero-copy h1 {
  margin: 0;
  color: #0d3566;
  font-family: var(--header-font-serif);
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.075em;
}

.subpage-hero-copy h1::after {
  content: "";
  width: 48px;
  height: 3px;
  margin-top: 15px;
  display: block;
  border-radius: 3px;
  background: #ffd21d;
}

.subpage-hero-copy > p {
  margin: 16px 0 0;
  color: #294e73;
  font-family: var(--header-font-serif);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.9;
}

.subpage-hero-image {
  position: relative;
  margin: 0 calc((100vw - min(100vw - 32px, var(--container))) / -2) 0 0;
  overflow: hidden;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  background: #e6eef6;
}

.subpage-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(231, 242, 251, 0.52), transparent 27%);
  pointer-events: none;
}

.subpage-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 66% center;
}

/* この画像は左側に大きな余白があるため、下層ヒーローでは右側を基準に拡大して表示する。 */
.office-subpage-hero .subpage-hero-image img,
.services-subpage-hero .subpage-hero-image img {
  object-position: right center;
  transform: scale(1.25);
  transform-origin: right center;
}

.topics-subpage-hero .subpage-hero-image img {
  object-position: center;
}

/* お役立ち情報だけヒーローが内容量に応じて伸びないよう、PCでは共通寸法に揃える。 */
@media (min-width: 901px) {
  .topics-subpage-hero .subpage-hero-inner {
    height: 330px;
    min-height: 330px;
  }
}

.contact-subpage-hero .subpage-hero-image img {
  object-position: center 42%;
}

.subpage-section-heading {
  margin-bottom: 34px;
}

.subpage-section-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: #0d3566;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.045em;
}

.subpage-section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: var(--section-accent-color);
}

.subpage-section-heading > p:last-child:not(.section-label) {
  margin: 16px 0 0;
  color: #526980;
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ==========================================================================
   事務所情報ページ v2
   ========================================================================== */

.office-page-v2 {
  background: #fff;
  font-family: var(--header-font-sans);
}

.office-v2-message {
  padding: 82px 0;
  font-family: var(--header-font-serif);
}

.office-v2-message .section-label {
  font-family: var(--header-font-serif);
}

.office-v2-message-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
}

.office-v2-message-body h2 {
  position: relative;
  margin: 0 0 27px;
  padding-bottom: 15px;
  color: #0d3566;
  font-family: var(--header-font-serif);
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.045em;
}

.office-v2-message-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: #ffd21d;
}

.office-v2-message-body p {
  margin: 0 0 17px;
  color: #17375c;
  font-family: var(--header-font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.025em;
}

.office-v2-message-body .office-v2-message-lead {
  margin-bottom: 23px;
  color: #17375c;
  font-family: var(--header-font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 2.05;
}

.office-v2-signature {
  margin: 25px 0 0 !important;
  display: flex;
  align-items: baseline;
  gap: 13px;
  color: #173d68 !important;
  font-size: 0.78rem !important;
  font-weight: 600;
}

.office-v2-signature strong {
  font-family: var(--header-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.office-v2-message-image {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: #e8eff6;
  box-shadow: 0 16px 36px rgba(13, 54, 97, 0.12);
}

.office-v2-message-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.office-v2-values {
  padding: 72px 0 78px;
  border-block: 1px solid #e4edf5;
  background:
    radial-gradient(circle at 100% 0, rgba(190, 217, 243, 0.3), transparent 30%),
    linear-gradient(180deg, #f4f9fd, #edf6fc);
}

.office-v2-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.office-v2-value-grid article {
  position: relative;
  min-height: 270px;
  padding: 31px 27px 27px;
  overflow: hidden;
  border: 1px solid #d5e4f1;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 24px rgba(18, 65, 115, 0.065);
}

.office-v2-value-number {
  position: absolute;
  top: 16px;
  right: 19px;
  color: #e0ebf6;
  font-family: var(--font-en);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
}

.office-v2-value-icon {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
  background-color: #eef6fd;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 34px;
}

.office-v2-value-icon-talk {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175a9e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 14a4 4 0 0 1-4 4H8l-5 3 1.7-5.1A7 7 0 0 1 3 11a7 7 0 0 1 7-7h4a7 7 0 0 1 7 7v3Z'/><path d='M8 11h.01M12 11h.01M16 11h.01'/></svg>");
}

.office-v2-value-icon-speed {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175a9e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='13' r='8'/><path d='M12 9v4l3 2M9 3h6M12 5V3'/></svg>");
}

.office-v2-value-icon-support {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175a9e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20s-8-4.5-8-10a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.5-8 10-8 10Z'/><path d='M8.5 12h7'/></svg>");
}

.office-v2-value-grid h3 {
  margin: 19px 0 10px;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 1.1rem;
}

.office-v2-value-grid p {
  margin: 0;
  color: #52677c;
  font-size: 0.79rem;
  line-height: 1.85;
}

.office-v2-information {
  padding: 76px 0 82px;
}

.office-v2-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.office-v2-info-card {
  overflow: hidden;
  border: 1px solid #d7e4ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(18, 65, 115, 0.055);
  font-family: var(--header-font-sans);
}

.office-v2-info-card h3 {
  margin: 0;
  padding: 18px 22px;
  color: #fff;
  background: #123f73;
  font-family: var(--header-font-sans);
  font-size: 1.05rem;
  letter-spacing: 0.035em;
}

.office-v2-info-card dl {
  margin: 0;
}

.office-v2-info-card dl > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  border-bottom: 1px solid #e3ebf3;
}

.office-v2-info-card dl > div:last-child {
  border-bottom: 0;
}

.office-v2-info-card dt,
.office-v2-info-card dd {
  margin: 0;
  padding: 16px 20px;
  font-family: var(--header-font-sans);
  font-size: 0.9rem;
  line-height: 1.8;
}

.office-v2-info-card dt {
  color: #173e69;
  background: #f1f7fc;
  font-weight: 700;
}

.office-v2-info-card dd {
  color: #4c6278;
}

.office-v2-info-card dd small {
  color: #73879a;
  font-size: 0.9em;
}

.office-v2-info-card dd a {
  color: #1768bb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.office-v2-services {
  padding: 62px 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(68, 126, 189, 0.3), transparent 34%),
    linear-gradient(120deg, #0b3265, #0d447d);
}

.office-v2-services-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 64px;
}

.office-v2-services .section-label {
  color: #8fc1f1;
}

.office-v2-services h2 {
  margin: 0;
  font-family: var(--header-font-serif);
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  letter-spacing: 0.045em;
}

.office-v2-services-inner > div > p:last-child {
  margin: 15px 0 0;
  color: #c7dcef;
  font-size: 0.82rem;
  line-height: 1.85;
}

.office-v2-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.office-v2-service-links a {
  min-height: 60px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #163c68;
  border-radius: 6px;
  background: #fff;
  font-family: var(--header-font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.office-v2-service-links a::after {
  content: "→";
  margin-left: auto;
  color: #2d6dac;
  font-family: var(--font-en);
  font-weight: 400;
}

.office-v2-service-links a:hover {
  background: #f1f7fd;
  opacity: 1;
  transform: translateY(-2px);
}

.office-v2-service-links span {
  color: #1770c8;
  font-family: var(--font-en);
  font-size: 0.76rem;
}

.office-v2-access {
  padding: 76px 0 82px;
  background: #f6f9fc;
}

.office-v2-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  gap: 34px;
  align-items: stretch;
}

.office-v2-access-map {
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #d0e0ee;
  border-radius: 9px;
  background: #e8eef4;
  box-shadow: 0 8px 24px rgba(20, 67, 110, 0.07);
}

.office-v2-access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  border: 0;
}

.office-v2-access-body {
  padding: 34px 36px;
  border: 1px solid #d7e4ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 67, 110, 0.06);
}

.office-v2-access-body h3 {
  margin: 0;
  color: #133b67;
  font-family: var(--header-font-serif);
  font-size: 1.2rem;
}

.office-v2-access-body p {
  margin: 16px 0 0;
  color: #52677c;
  font-size: 0.8rem;
  line-height: 1.85;
}

.office-v2-access-body .office-v2-address {
  padding: 0;
  color: #173f6a;
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
}

.office-v2-access-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.office-v2-access-actions a {
  min-height: 46px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  border: 1px solid #14599b;
  border-radius: 5px;
  background: #14599b;
  font-size: 0.75rem;
  font-weight: 700;
}

.office-v2-access-actions a:last-child {
  color: #14599b;
  background: #fff;
}

.office-v2-access-actions a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.office-v2-editor {
  padding: 60px 0;
}

@media (max-width: 900px) {
  .subpage-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .subpage-hero-copy {
    padding: 42px 0 38px;
  }

  .subpage-hero-image {
    height: 280px;
    margin: 0 calc((100vw - min(100vw - 32px, var(--container))) / -2);
    clip-path: none;
  }

  .subpage-hero-image::after {
    display: none;
  }

  .office-v2-message-inner,
  .office-v2-info-grid,
  .office-v2-services-inner,
  .office-v2-access-grid {
    grid-template-columns: 1fr;
  }

  .office-v2-message-image {
    width: min(100%, 650px);
    justify-self: center;
  }

  .office-v2-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-v2-services-inner {
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .subpage-hero-copy h1 {
    font-size: 2rem;
  }

  .subpage-hero-copy > p {
    font-size: 0.84rem;
  }

  .subpage-hero-copy > p br,
  .office-v2-message-lead br {
    display: none;
  }

  .subpage-hero-image {
    height: 225px;
  }

  .subpage-section-heading h2,
  .office-v2-message-body h2 {
    font-size: 1.7rem;
  }

  .office-v2-message,
  .office-v2-information,
  .office-v2-access {
    padding: 56px 0 62px;
  }

  .office-v2-message-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .office-v2-message-image {
    aspect-ratio: 4 / 3;
  }

  .office-v2-values {
    padding: 54px 0 60px;
  }

  .office-v2-value-grid,
  .office-v2-service-links {
    grid-template-columns: 1fr;
  }

  .office-v2-value-grid article {
    min-height: 0;
  }

  .office-v2-info-card dl > div {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .office-v2-info-card dt,
  .office-v2-info-card dd {
    padding: 14px;
    font-size: 0.84rem;
  }

  .office-v2-services {
    padding: 50px 0;
  }

  .office-v2-access-map,
  .office-v2-access-map iframe {
    min-height: 235px;
  }

  .office-v2-access-body {
    padding: 25px 21px;
  }

  .office-v2-access-actions {
    display: grid;
  }

  .office-v2-access-actions a {
    justify-content: space-between;
  }
}

/* ==========================================================================
   取扱業務詳細ページ（template-parts/service-detail.php）
   ========================================================================== */

.service-detail-page {
  color: #14375f;
  background: #fff;
}

.service-detail-page + .site-footer {
  margin-top: 0;
}

.service-detail-hero .subpage-hero-image {
  background: #eef6fc;
}

.service-detail-hero .subpage-hero-image img {
  object-fit: cover;
  object-position: center;
}

.service-detail-support {
  padding: 72px 0 78px;
  border-block: 1px solid #e1ebf4;
  background: linear-gradient(180deg, #f4f9fd, #edf6fc);
}

.service-detail-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-detail-support-grid article {
  position: relative;
  min-height: 260px;
  padding: 29px 25px 25px;
  overflow: hidden;
  border: 1px solid #d5e3ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 65, 115, 0.06);
}

.service-detail-support-number {
  position: absolute;
  top: 15px;
  right: 18px;
  color: #e3edf7;
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.service-detail-support-icon {
  width: 61px;
  height: 61px;
  display: block;
  border-radius: 50%;
  background:
    center / 30px no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175c9f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M9 8h6M9 12h6M9 16h3'/><path d='m15 16 1.5 1.5L20 14'/></svg>"),
    #eef6fd;
}

.service-detail-support-grid h3 {
  margin: 18px 0 10px;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 1.08rem;
}

.service-detail-support-grid p {
  margin: 0;
  color: #52687d;
  font-size: 0.77rem;
  line-height: 1.85;
}

.service-detail-scope {
  margin-top: 25px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border: 1px solid #cbddec;
  border-radius: 8px;
  background: #fff;
}

.service-detail-scope h3 {
  margin: 0;
  color: #123963;
  font-family: var(--header-font-serif);
  font-size: 1rem;
}

.service-detail-scope ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 25px;
  list-style: none;
}

.service-detail-scope li {
  position: relative;
  padding-left: 19px;
  color: #3e5972;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-detail-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1770c8;
}

.service-detail-pricing {
  padding: 76px 0 82px;
  background: #fff;
}

.service-detail-centered-heading {
  text-align: center;
}

.service-detail-centered-heading h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.service-detail-price-table {
  overflow: hidden;
  border: 1px solid #ccdeed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 63, 108, 0.055);
}

.service-detail-price-head,
.service-detail-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.service-detail-price-head {
  color: #fff;
  background: linear-gradient(100deg, #0e3a6e, #165391);
  font-size: 0.74rem;
  font-weight: 700;
}

.service-detail-price-group {
  padding: 13px 21px;
  color: #123f70;
  border-bottom: 1px solid #ccdeed;
  background: #eaf3fb;
  font-family: var(--header-font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.service-detail-price-head span,
.service-detail-price-row > * {
  padding: 16px 21px;
  border-right: 1px solid rgba(208, 225, 239, 0.7);
}

.service-detail-price-head span:last-child,
.service-detail-price-row > *:last-child {
  border-right: 0;
}

.service-detail-price-row {
  min-height: 66px;
  align-items: center;
  border-bottom: 1px solid #dfe9f2;
}

.service-detail-price-row:last-child {
  border-bottom: 0;
}

.service-detail-price-row:nth-child(odd) {
  background: #f7fafd;
}

.service-detail-price-row strong {
  color: #173e68;
  font-size: 0.8rem;
}

.service-detail-price-service,
.service-detail-price-amount {
  display: grid;
  gap: 4px;
}

.service-detail-price-service span,
.service-detail-price-amount span {
  color: #53697e;
  font-size: 0.74rem;
  line-height: 1.65;
}

.service-detail-price-amount {
  justify-items: end;
}

.service-detail-price-amount b {
  color: #0d5eb0;
  font-family: var(--header-font-serif);
  font-size: 1rem;
  line-height: 1.6;
  text-align: right;
}

.service-detail-price-amount span {
  text-align: right;
}

.service-detail-price-notes {
  margin-top: 18px;
}

.service-detail-price-notes p {
  margin: 4px 0 0;
  color: #718599;
  font-size: 0.68rem;
  line-height: 1.65;
}

.service-detail-faq {
  padding: 74px 0 80px;
  background: #f5f9fc;
}

.service-detail-faq-list {
  width: min(100%, 940px);
  margin-inline: auto;
  display: grid;
  gap: 11px;
}

.service-detail-faq-list details {
  overflow: hidden;
  border: 1px solid #d3e1ed;
  border-radius: 7px;
  background: #fff;
}

.service-detail-faq-list summary {
  position: relative;
  min-height: 64px;
  padding: 15px 56px 15px 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #173e68;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.service-detail-faq-list summary::-webkit-details-marker {
  display: none;
}

.service-detail-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  color: #1768ba;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.service-detail-faq-list details[open] summary::after {
  content: "−";
}

.service-detail-faq-list summary span,
.service-detail-faq-list details > div > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  border-radius: 50%;
  background: #1768ba;
  font-family: var(--font-en);
  font-size: 0.77rem;
}

.service-detail-faq-list details > div {
  padding: 17px 58px 19px 19px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-top: 1px solid #e4ecf3;
  background: #fbfdff;
}

.service-detail-faq-list details > div > span {
  color: #173e68;
  background: #ffd42b;
}

.service-detail-faq-list details > div p {
  margin: 3px 0 0;
  color: #53697e;
  font-size: 0.77rem;
  line-height: 1.8;
}

.service-detail-related {
  padding: 72px 0 78px;
  border-top: 1px solid #dce8f2;
  background: linear-gradient(180deg, #fff, #f3f8fc);
}

.service-detail-related .subpage-section-heading {
  margin-bottom: 30px;
}

.service-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-detail-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: #173e68;
  border: 1px solid #d4e2ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(18, 65, 115, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-detail-related-card:hover {
  transform: translateY(-5px);
  border-color: #8cb8df;
  box-shadow: 0 15px 32px rgba(18, 65, 115, 0.13);
  opacity: 1;
}

.service-detail-related-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8f0f6;
}

.service-detail-related-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-detail-related-card:hover .service-detail-related-media img {
  transform: scale(1.035);
}

.service-detail-related-body {
  padding: 20px 20px 19px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.service-detail-related-body small {
  color: #1770c8;
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-detail-related-body strong {
  margin-top: 8px;
  color: #153c67;
  font-family: var(--header-font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
}

.service-detail-related-body > span {
  margin-top: 10px;
  color: #586e83;
  font-family: inherit;
  font-size: 0.73rem;
  line-height: 1.75;
}

.service-detail-related-body b {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1768b5;
  font-size: 0.73rem;
}

.service-detail-related-body i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #1768b5;
  font-style: normal;
  font-weight: 400;
}

@media (max-width: 900px) {
  .service-detail-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-support-grid article:last-child {
    grid-column: 1 / -1;
  }

  .service-detail-price-head,
  .service-detail-price-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  }

  .service-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-related-card:last-child {
    width: calc(50% - 11px);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .service-detail-pricing,
  .service-detail-faq {
    padding: 56px 0 62px;
  }

  .service-detail-support,
  .service-detail-related {
    padding: 54px 0 60px;
  }

  .service-detail-support-grid,
  .service-detail-scope ul,
  .service-detail-related-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-support-grid article:last-child {
    grid-column: auto;
  }

  .service-detail-support-grid article {
    min-height: 0;
  }

  .service-detail-scope {
    padding: 21px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-detail-price-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .service-detail-price-head {
    display: none;
  }

  .service-detail-price-group {
    margin: 25px 0 10px;
    padding: 10px 14px;
    border: 1px solid #c7dbea;
    border-radius: 5px;
  }

  .service-detail-price-head + .service-detail-price-group {
    margin-top: 0;
  }

  .service-detail-price-row {
    margin-bottom: 10px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    border: 1px solid #d3e1ed;
    border-radius: 6px;
    background: #fff !important;
  }

  .service-detail-price-row > * {
    padding: 0;
    border: 0;
  }

  .service-detail-price-amount {
    justify-items: start;
  }

  .service-detail-price-amount b {
    margin-top: 5px;
    font-size: 1.08rem;
    text-align: left;
  }

  .service-detail-price-amount span {
    text-align: left;
  }

  .service-detail-faq-list summary {
    padding-right: 45px;
    font-size: 0.77rem;
  }

  .service-detail-faq-list details > div {
    padding-right: 20px;
  }

  .service-detail-related-card:last-child {
    width: 100%;
    grid-column: auto;
  }
}

/* ==========================================================================
   404ページ
   ========================================================================== */

.error-page {
  color: #153b65;
  background: #f7fafd;
}

.error-page + .site-footer {
  margin-top: 0;
}

.error-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dce7f2;
  background:
    radial-gradient(circle at 87% 18%, rgba(42, 111, 185, 0.12), transparent 27%),
    linear-gradient(115deg, #f9fcff 0%, #edf5fc 100%);
}

.error-hero::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -80px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(27, 94, 164, 0.09);
  border-radius: 50%;
}

.error-hero-inner {
  min-height: 570px;
  padding-top: clamp(70px, 9vw, 112px);
  padding-bottom: clamp(70px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.error-copy {
  position: relative;
  z-index: 2;
}

.error-label {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3577bc;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.error-label span {
  padding: 6px 10px;
  color: #fff;
  border-radius: 3px;
  background: #145b9f;
  letter-spacing: 0.08em;
}

.error-copy h1 {
  margin: 0;
  color: #103963;
  font-family: var(--header-font-serif);
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.035em;
}

.error-description {
  margin: 26px 0 0;
  color: #58718a;
  font-size: 0.9rem;
  line-height: 2;
}

.error-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-button {
  min-width: 190px;
  min-height: 54px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid #145b9f;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.error-button:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.error-button-primary {
  color: #fff;
  background: #145b9f;
  box-shadow: 0 9px 22px rgba(16, 68, 119, 0.18);
}

.error-button-primary:hover {
  background: #0d477f;
}

.error-button-secondary {
  color: #164f84;
  background: rgba(255, 255, 255, 0.82);
}

.error-button-secondary:hover {
  color: #fff;
  background: #145b9f;
}

.error-visual {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
}

.error-number {
  position: relative;
  z-index: 2;
  color: #145b9f;
  font-family: var(--font-en);
  font-size: clamp(7.4rem, 13vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 13px 28px rgba(27, 89, 151, 0.13);
}

.error-visual-ring {
  position: absolute;
  border-radius: 50%;
}

.error-visual-ring-large {
  width: 340px;
  height: 340px;
  border: 1px solid rgba(20, 91, 159, 0.15);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 0 0 34px rgba(255, 255, 255, 0.24);
}

.error-visual-ring-small {
  top: 18px;
  right: 2px;
  width: 76px;
  height: 76px;
  border: 17px solid rgba(255, 209, 29, 0.84);
}

.error-visual-card {
  position: absolute;
  z-index: 3;
  right: 3%;
  bottom: 28px;
  min-width: 188px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #416484;
  border: 1px solid #d9e6f2;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(16, 55, 96, 0.13);
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.error-visual-icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background:
    center / 15px no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'><path d='M12 7v6M12 17h.01'/><circle cx='12' cy='12' r='9'/></svg>"),
    #145b9f;
}

.error-guide {
  padding: 62px 0 76px;
  background: #fff;
}

.error-guide-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 95px);
}

.error-guide-heading p {
  margin: 0 0 12px;
  color: #377abd;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.error-guide-heading h2 {
  margin: 0;
  color: #123e6d;
  font-family: var(--header-font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.65;
}

.error-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #dbe6f1;
  border-left: 1px solid #dbe6f1;
}

.error-link-grid a {
  min-height: 76px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: #153e69;
  border-right: 1px solid #dbe6f1;
  border-bottom: 1px solid #dbe6f1;
  background: #fff;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.error-link-grid a:hover {
  color: #fff;
  background: #145b9f;
  opacity: 1;
}

.error-link-number {
  color: #6b94bd;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
}

.error-link-grid a:hover .error-link-number {
  color: #bedaf3;
}

.error-link-grid strong {
  font-size: 0.8rem;
}

.error-link-arrow {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .error-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 30px;
  }

  .error-visual-ring-large {
    width: 290px;
    height: 290px;
  }

  .error-guide-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .error-hero-inner {
    min-height: 0;
    padding-top: 58px;
    padding-bottom: 62px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .error-copy {
    text-align: center;
  }

  .error-label,
  .error-actions {
    justify-content: center;
  }

  .error-copy h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .error-description {
    font-size: 0.82rem;
  }

  .error-description br {
    display: none;
  }

  .error-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .error-button {
    width: 100%;
  }

  .error-visual {
    min-height: 245px;
  }

  .error-number {
    font-size: clamp(6.6rem, 37vw, 9rem);
  }

  .error-visual-ring-large {
    width: 240px;
    height: 240px;
  }

  .error-visual-ring-small {
    top: 0;
    right: 7%;
    width: 58px;
    height: 58px;
    border-width: 13px;
  }

  .error-visual-card {
    right: 5%;
    bottom: 0;
  }

  .error-guide {
    padding: 48px 0 58px;
  }

  .error-guide-heading {
    text-align: center;
  }

  .error-link-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   モバイル本文の可読性
   ========================================================================== */

@media (max-width: 720px) {
  main p:not(.section-label):not(.voice-meta):not(.flow-note) {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  main li:not(.flow-step):not(.topics-cat-item) {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .office-v2-info-card dt,
  .office-v2-info-card dd {
    font-size: 0.92rem;
  }

  .service-detail-price-service span,
  .service-detail-price-amount span {
    font-size: 0.82rem;
  }

  .service-detail-related-body > span {
    font-size: 0.9rem;
  }

  main .service-detail-price-notes p {
    font-size: 0.78rem;
    line-height: 1.7;
  }
}
