@font-face {
  font-family: 'はれのそら明朝';
  src: url('../fonts/harenosora-mincho.woff2') format('woff2'),
    url('../fonts/harenosora-mincho.woff') format('woff');
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #005183;
  --muted: #666464;
  --line: #dfdfdf;
  --accent: #e8f2f9;
  --accent-strong: #9cc7eb;
  --card: #ffffff;
  --hero: #003a60;
  --hero-overlay: rgba(0, 50, 80, .40);
  --max: 1200px;
  --shadow: 0 2px 12px rgba(0, 81, 131, .06);

  /* ===== 左右余白（サイドパディング）の一括管理 =====
     ここを変えると container / header / footer のサイド余白が
     一括で変わります。スマホの可読性は 16px を基準に設定。 */
  --side-pad: 20px;
  --side-pad-mobile: 16px;

  /* ===== スマホ共通ヘッダーの基本値（まとめて管理） ===== */
  --mobile-header-logo: 44px;
  --mobile-header-pad-y: 8px;
  --mobile-header-brand-name: 14.5px;
  --mobile-header-kicker: 12px;
  --mobile-header-nav-font: 12.5px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-x: clip
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  color: #222222;
  background: var(--bg);
  line-height: 2.2;
  letter-spacing: 0.12em;
  font-feature-settings: "palt"
}

a {
  color: inherit;
  transition: opacity 0.4s;
  opacity: 1;
}

a:hover {
  opacity: 0.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line)
}

.site-header a,
.brand,
.brand-name,
.nav-item {
  text-decoration: none;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand-logo {
  width: 74px;
  height: 74px;
  flex: 0 0 74px
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0
}

.brand-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted)
}

.brand-name {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.35
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 36px;
  height: 28px
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 7px 0;
  border-radius: 999px
}

.nav-list {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  letter-spacing: 0.1em
}

.nav-item {
  font-size: 15px;
  color: var(--text)
}

.nav-item.cta {
  padding: 8px 14px;
  border: 1px solid var(--text);
  border-radius: 3px;
  background: #fff
}

main {
  min-height: 60vh
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

.hero {
  position: relative;
  overflow: hidden;
  background: #003a60;
  color: #fff
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--hero-overlay), rgba(0, 50, 80, .22) 55%, rgba(0, 50, 80, .12)), url('../img/photo1.jpg') center/cover no-repeat
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 50, 80, .08))
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px
}

/* トップページのみ：文字ブロックを左下寄りに配置 */
.home-page .hero {
  min-height: 560px;
}

.home-page .hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 560px;
  padding-top: 48px;
  padding-bottom: 52px;
}

.hero-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .40);
  border-radius: 2px;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  letter-spacing: .18em;
  margin-bottom: 18px
}

.hero h1 {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 900px;
  letter-spacing: 0.2em
}

.hero-emphasis {
  font-size: 1.28em;
}

.hero p {
  margin: 0;
  font-size: 16px;
  max-width: 850px;
  color: rgba(255, 255, 255, .88);
  letter-spacing: 0.14em;
  line-height: 2
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 3px;
  border: 1px solid var(--text);
  background: #fff;
  color: var(--text);
  min-width: 170px;
  letter-spacing: 0.14em;
  transition: opacity .4s
}

.button:hover {
  opacity: 0.6;
}

.hero .button {
  border-color: rgba(255, 255, 255, .6)
}

.hero .button:not(.primary) {
  background: transparent;
  color: #fff
}

.button.primary {
  background: var(--text);
  color: #fff
}

.section {
  padding: 80px 0
}

.section.alt {
  background: #f2f2f3
}

.section h2 {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: 0.2em
}

.section-lead {
  color: #222222;
  max-width: 860px;
  margin: 0 0 36px;
  letter-spacing: 0.1em
}

.grid {
  display: grid;
  gap: 20px
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.card,
.news-item,
.blog-item,
.work-item,
.cta-box,
.profile-card,
.fee-guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none
}

.card {
  padding: 26px 28px
}

.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.18em
}

.card p {
  margin: 0;
  color: #222222
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none
}

.list li {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.meta {
  color: var(--muted);
  font-size: 14px
}

.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  background: #fff
}

.page-hero h1,
.page-hero h2 {
  margin: 0 0 8px;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 25px;
  font-weight: 400;
  color: #005183;
  letter-spacing: 0.2em
}

.breadcrumbs {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted)
}

.breadcrumbs a {
  text-decoration: none
}

.content {
  max-width: 800px
}

.content h2,
.content h3 {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400;
  line-height: 1.5
}

.content h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line)
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: #005183
}

.content h3:first-child {
  margin-top: 0
}

.content p {
  margin: 0 0 18px
}

.content ul,
.content ol {
  margin: 0 0 18px 1.25em
}

.content li {
  margin: 0 0 8px
}

.news-list,
.blog-list {
  display: grid;
  gap: 16px
}

.news-item,
.blog-item,
.work-item {
  padding: 22px
}

.news-item time,
.blog-item .meta,
.work-item .meta {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px
}

.news-item h3,
.blog-item h3,
.work-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 2px;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.1em
}

.notice {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--text);
  background: #f8fbfe;
  border-radius: 0
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.faq-item:first-child {
  padding-top: 0;
  overflow: hidden
}

.faq-item:last-child {
  border-bottom: none
}

.content .faq-item:first-child h3 {
  margin-top: 0
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #005183
}

.cta-box {
  background: #f2f2f3;
  padding: 36px 32px
}

.cta-box h3 {
  color: #005183;
  font-weight: 400
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.footer-links a {
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
  font-size: inherit
}

.table td {
  font-size: 0.88rem
}

.table th {
  width: 28%;
  color: var(--muted);
  font-weight: 400
}

.profile-card {
  overflow: hidden
}

.profile-photo {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover
}

.profile-body {
  padding: 22px
}

.profile-name {
  margin: 0 0 6px;
  font-size: 24px;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400
}

.profile-role {
  margin: 0 0 14px;
  color: var(--muted)
}

.mini-logo {
  width: 92px;
  margin: 0 0 18px
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-body .list {
  margin: 0;
  gap: 0;
}

.profile-body .list li {
  margin: 0;
}

.profile-header .mini-logo {
  width: 52px;
  margin: 0;
  flex-shrink: 0;
}

.profile-header .profile-name {
  margin: 0 0 2px;
}

.profile-header .profile-role {
  margin: 0;
}

.logo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.logo-strip img {
  width: 64px;
  height: 64px;
}

.logo-strip h3 {
  margin: 0 0 6px;
  line-height: 1.5;
}

.logo-strip .meta {
  margin: 0;
}

.home-profile {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.highlight-card {
  background: #fff;
  min-width: 0;
}

/* ===== top only: logoなし・右上ハンバーガー ===== */

.home-page .site-header.home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.home-page .home-header .header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.home-page .brand-overlay {
  display: block;
  min-width: 0;
}

.home-page .brand-text-overlay {
  color: #fff;
}

.home-page .brand-kicker-overlay {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 4px 16px rgba(0, 0, 0, .20);
}

.home-page .brand-name-line {
  display: block;
  white-space: nowrap;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .22);
}

/* 通常ナビはトップでは隠す */
.home-page .nav {
  display: none;
}

/* 開いた時だけ表示 */
.home-page .nav.open {
  display: block;
}

.home-page .nav-toggle {
  display: block;
}

.home-page .nav-toggle-overlay {
  width: 44px;
  height: 44px;
  padding: 6px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.home-page .nav-toggle-overlay span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: #fff;
}

.home-page .nav-overlay-panel .nav-item.cta {
  margin-top: 12px;
  padding: 14px 18px;
  text-align: center;
  border: 1px solid var(--text);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
}

.home-page .hero .container {
  padding-top: 190px;
  padding-bottom: 110px;
}

@media (max-width: 900px) {
  .home-page .home-header .header-inner {
    padding: 16px 16px 0;
    gap: 12px;
  }

  .home-page .brand-name-line {
    font-size: clamp(17px, 5vw, 24px);
    line-height: 1.4;
    white-space: normal;
  }

  .home-page .brand-kicker-overlay {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .home-page .nav-toggle-overlay {
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .home-page .nav-overlay-panel {
    width: 100%;
    padding: 84px 20px 24px;
  }

  .home-page .nav-overlay-panel .nav-item {
    font-size: 20px;
  }

  .home-page .hero .container {
    padding-top: 150px;
    padding-bottom: 88px;
  }
}

.home-page .nav-toggle {
  display: block !important;
  position: relative;
  z-index: 60;
}

.home-page .nav-overlay-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  padding: 84px 28px 28px;
  background: rgba(255, 255, 255, .98);
  border-left: 1px solid var(--line);
  box-shadow: -4px 0 20px rgba(0, 81, 131, .08);
  z-index: 40;
  display: none;
}

.home-page .nav-overlay-panel.open {
  display: block;
}

/* ===== トップの屋号を少し下げる ===== */
.home-page .brand-name-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}

/* ===== ヒーロー内の肩書きラベル幅を少し縮める ===== */
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

/* ===== 開いたメニューの見た目 ===== */
.home-page .nav-overlay-panel .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.home-page .nav-overlay-panel .nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== 閉じるボタン ===== */
.home-page .nav-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page .nav-close:hover {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .home-page .brand-name-group {
    margin-top: 10px;
  }

  .hero-kicker {
    font-size: 12px;
    padding: 5px 10px;
  }

  .home-page .nav-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
}

/* ===== HeroをPCで1画面いっぱいにする ===== */
.home-page .hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
}

.home-page .hero::before {
  background:
    linear-gradient(115deg, var(--hero-overlay), rgba(0, 50, 80, .22) 55%, rgba(0, 50, 80, .10)),
    url('../img/photo1.jpg') center center / cover no-repeat;
}

.home-page .hero .container {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 68px;
}

/* ===== PCで画面がかなり横長な時も自然に見せる ===== */
@media (min-width: 901px) {
  .home-page .hero::before {
    background-position: 82% center;
  }
}

/* ===== スマホでは太陽側（右上）が見えるようにする ===== */
@media (max-width: 900px) {
  .home-page .hero {
    min-height: 100svh;
  }

  .home-page .hero::before {
    background:
      linear-gradient(115deg, var(--hero-overlay), rgba(0, 50, 80, .22) 55%, rgba(0, 50, 80, .10)),
      url('../img/photo1.jpg') 70% 20% / cover no-repeat;
  }
}

@media (min-width: 901px) {
  .home-page .hero .container {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 150px;
    padding-bottom: 60px;
  }

  .home-page .hero .container {
    padding-top: 130px;
    padding-bottom: 36px;
    min-height: auto;
  }

  .home-page .brand-name-group {
    margin-top: 6px;
    gap: 0;
  }

  .home-page .brand-name-line {
    line-height: 1.28;
  }

  .home-page .hero-kicker {
    margin-top: 18px;
    margin-bottom: 14px;
    padding: 5px 10px;
  }

  .home-page .hero h1 {
    margin-bottom: 18px;
    line-height: 1.32;
  }

  .home-page .hero p {
    margin-bottom: 18px;
    line-height: 1.8;
  }

  .home-page .hero-actions {
    margin-top: 18px;
    gap: 10px;
  }
}

.highlight-card h3,
.highlight-card p,
.highlight-card li {
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 1200px) {
  .home-profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {

  .grid.two,
  .grid.three,
  .split,
  .home-profile {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open {
    display: block
  }
}

/* ===== final mobile spacing adjust ===== */
@media (max-width: 900px) {
  .home-page .home-header .header-inner {
    padding: 12px 14px 0;
    gap: 10px;
  }

  .home-page .brand-name-group {
    margin-top: 12px;
    gap: 0;
  }

  .home-page .brand-name-line {
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1.18;
  }

  .home-page .hero .container {
    padding-top: 112px;
    padding-bottom: 20px;
    min-height: auto;
  }

  .home-page .hero-kicker {
    margin-top: -3px;
    margin-bottom: 10px;
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1.2;
  }

  .home-page .hero h1 {
    margin: 4 4 12px;
    line-height: 1;
  }

  .home-page .hero p {
    margin: 0 0 12px;
    line-height: 1.65;
    font-size: 32px;
  }

  .home-page .hero-actions {
    margin-top: 12px;
    gap: 8px;
  }

  .home-page .hero .button {
    min-width: 160px;
    padding: 11px 18px;
  }
}

/* about page only */
.about-profile-card .profile-photo {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* ===== about page fix ===== */

.about-section {
  padding-top: 40px;
}

.page-hero {
  padding: 40px 0 24px;
}

.page-hero h1,
.page-hero h2 {
  margin: 0 0 6px;
}

.page-hero .meta {
  margin: 0;
}

.about-profile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.about-profile-table,
.about-profile-card {
  height: 100%;
  width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .about-section {
    padding-top: 28px;
  }

  .page-hero {
    padding: 28px 0 18px;
  }
}

/* ===== final: header layout adjust ===== */
.header-inner {
  max-width: 1180px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  margin-left: 8px;
}

.brand-text {
  min-width: 0;
}

.brand-kicker {
  margin-bottom: 2px;
}

.brand-name {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0;
}

.nav {
  flex: 0 0 auto;
}

@media (max-width: 1200px) {
  .header-inner {
    max-width: 1120px;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .brand-logo {
    margin-left: -4px;
  }
}

@media (max-width: 900px) {
  .brand-logo {
    margin-left: 8px;
  }

  .brand-text {
    padding-right: 0;
  }

  .brand-name {
    white-space: normal;
  }

  .about-section {
    padding-top: 18px;
  }

  .page-hero+.about-section {
    padding-top: 14px;
  }

  .about-profile-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  @media (min-width: 901px) {
    .brand-text {
      padding-right: 100px;
    }

    .nav {
      margin-left: 82px;
    }
  }
}


@media (min-width: 901px) {
  .header-inner {
    max-width: 1180px !important;
    justify-content: flex-start !important;
    gap: 24px !important;
  }

  .brand-logo {
    margin-left: -24px !important;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 24px !important;
    flex: 0 0 auto !important;
  }

  .brand-text {
    padding-right: 0 !important;
    min-width: 0;
  }

  .nav {
    margin-left: 8px !important;
    flex: 0 0 auto !important;
  }
}


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

.flow-list li {
  position: relative;
  padding: 0 0 34px;
  margin: 0 0 22px;
}

.flow-list li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.flow-list li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}

.flow-title {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 400;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}


/* ===== tax page pricing table ===== */
.tax-content {
  max-width: 100%;
}

.pricing-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 18px;
}

.price-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  min-width: 0;
}

.price-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

.price-panel-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

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

.price-table th {
  background: #e8f2f9;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.1em
}

.price-service-cell {
  width: 34%;
}

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

.service-bullets li {
  margin: 0 0 6px;
  padding-left: 1em;
  text-indent: -1em;
}

.service-bullets li::before {
  content: "・";
}

.service-note {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.price-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pricing-panels {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .price-panel {
    padding: 18px;
  }

  .price-panel h3 {
    font-size: 24px;
  }

  .price-table {
    min-width: 560px;
  }
}

.pricing-content {
  max-width: 100%;
}

.management-pricing .price-table th {
  background: #f0ede8;
}

.spot-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

@media (min-width: 901px) {
  .home-page .home-header .header-inner {
    justify-content: space-between !important;
  }

  .home-page .brand-overlay {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-page .nav-toggle-overlay {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (min-width: 901px) {
  .home-page .brand-name-group {
    margin-top: 20px;
    margin-left: 24px;
  }
}

/* トップページ：代表プロフィール → お知らせ・記事 を縦並びにする */
.home-page .split {
  grid-template-columns: 1fr !important;
  gap: 40px;
}

/* 主なサービスのカード高さを揃える */
.home-page .section .grid.three {
  align-items: stretch;
}

.home-page .section .grid.three>.card,
.home-page .section .grid.three>a.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 税理士業務カードの補足 */
.service-subnote {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* トップページ「主なサービス」のカード高さをそろえる */
@media (min-width: 901px) {
  .home-page .section .grid.three {
    align-items: stretch;
  }

  .home-page .section .grid.three>.card,
  .home-page .section .grid.three>a.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 190px;
  }
}

.blog-item-with-image {
  overflow: hidden;
  display: block;
  padding: 0;
}

.blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item-body {
  padding: 22px;
}

/* ===== top page: standard header without hamburger ===== */
.home-page.static-header-home .site-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.home-page.static-header-home .header-inner {
  align-items: center;
}

.home-page.static-header-home .brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.home-page.static-header-home .brand-logo {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  margin-left: 8px;
}

.home-page.static-header-home .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 0 !important;
  color: var(--text);
}

.home-page.static-header-home .brand-kicker {
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
  line-height: 1.15;
  margin-bottom: 0;
}

.home-page.static-header-home .brand-name {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text);
}

.home-page.static-header-home .nav,
.home-page.static-header-home .site-nav-static {
  display: block !important;
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-left: 8px !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.home-page.static-header-home .nav-list {
  display: flex !important;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

.home-page.static-header-home .nav-toggle,
.home-page.static-header-home .nav-close,
.home-page.static-header-home .nav-toggle-overlay {
  display: none !important;
}

.home-page.static-header-home .hero {
  min-height: calc(100svh - 96px);
}

.home-page.static-header-home .hero .container {
  min-height: calc(100svh - 96px);
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 60px;
}

.home-page.static-header-home .brand-name-group,
.home-page.static-header-home .brand-name-line,
.home-page.static-header-home .brand-overlay,
.home-page.static-header-home .brand-text-overlay,
.home-page.static-header-home .nav-overlay-panel {
  all: unset;
}

@media (max-width: 1200px) {
  .home-page.static-header-home .header-inner {
    max-width: 1120px;
  }

  .home-page.static-header-home .brand-name {
    font-size: 14.5px;
  }
}

@media (max-width: 900px) {
  .home-page.static-header-home .header-inner {
    padding: 3px 3px;
    align-items: flex-start;
  }

  .home-page.static-header-home .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .home-page.static-header-home .brand-name {
    white-space: normal;
    font-size: 14.5px;
    line-height: 1.35;
  }

  .home-page.static-header-home .nav,
  .home-page.static-header-home .site-nav-static {
    width: 100%;
    margin-left: 0 !important;
  }

  .home-page.static-header-home .nav-list {
    gap: 4px 16px;
    justify-content: center;
    padding-top: 3px !important;
  }

  .home-page.static-header-home .nav-item {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 10px;
  }

  .home-page.static-header-home .nav-item.cta {
    padding: 2px 6px;
  }

  .home-page.static-header-home .hero .container {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 36px;
  }
}


/* ===== header CTA: consolidated ===== */

.nav-list {
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-cta-group .nav-item.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.66rem 1rem;
  border-radius: 0;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.1em;
}

/* 無料相談：ブルーボタン */
.nav-cta-group .nav-item.cta-free {
  background: #005183;
  color: #ffffff;
  border: 1px solid #005183;
  padding: 1.3rem 1.5rem;
}

.nav-cta-group .nav-item.cta-free:hover {
  background: #003d63;
  color: #ffffff;
  border-color: #003d63;
}

/* TEL：白地 + ブルー枠 */
.nav-cta-group .nav-item.cta-phone {
  background: #ffffff;
  color: #005183;
  border: 1px solid #005183;
  padding: 1.3rem 1.5rem;
}

.nav-cta-group .nav-item.cta-phone:hover {
  background: #e8f2f9;
  color: #005183;
  border-color: #005183;
}

@media (min-width: 1201px) {
  .nav-list {
    flex-wrap: nowrap;
  }

  .nav-item {
    font-size: 0.94rem;
  }
}

@media (max-width: 1200px) {
  .brand-name {
    font-size: 14.5px;
  }

  .nav-item {
    font-size: 0.9rem;
  }

  .nav-cta-group .nav-item.cta {
    padding: 0.62rem 0.88rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .nav-cta-group {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    margin-top: 0.4rem;
  }

  .nav-cta-group .nav-item.cta {
    flex: 1 1 auto;
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .nav-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta-group .nav-item.cta {
    width: 100%;
    max-width: none;
  }
}


.home-page.static-header-home .hero-kicker {
  margin-top: -8px;
  margin-bottom: 14px;
}

/* ===== トップ：代表プロフィールの写真を大きくして右側へ ===== */
.home-page .home-profile {
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.home-page .profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  overflow: hidden;
}

.home-page .profile-body {
  order: 1;
  padding: 28px;
}

.home-page .profile-photo {
  order: 2;
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
}

/* 画面が少し狭い時は写真を少しだけ縮める */
@media (max-width: 1200px) {
  .home-page .profile-card {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .home-page .profile-photo {
    min-height: 280px;
  }
}

/* スマホでは縦並びに戻す */
@media (max-width: 900px) {
  .home-page.static-header-home .hero .container {
    min-height: 440px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 36px;
    gap: 12px;
  }

  .home-page.static-header-home .hero-kicker {
    margin-top: 0;
    margin-bottom: 12px;
  }

  .home-page .home-profile {
    grid-template-columns: 1fr;
  }

  .home-page .profile-card {
    grid-template-columns: 1fr;
  }

  .home-page .profile-body {
    order: 2;
    padding: 22px;
  }

  .home-page .profile-photo {
    order: 1;
    min-height: auto;
    aspect-ratio: 5 / 4;
  }
}

.card {
  transition: opacity .4s ease;
}

.card:hover {
  opacity: 0.85;
}

/* ===== motion ===== */

.js-fade-up,
.js-slide-left,
.js-slide-right {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.js-fade-up {
  transform: translateY(22px);
}

.js-slide-left {
  transform: translateX(-28px);
}

.js-slide-right {
  transform: translateX(28px);
}

.js-fade-up.is-visible,
.js-slide-left.is-visible,
.js-slide-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

.hero-kicker {
  letter-spacing: 0.08em;
}

.hero h1,
.hero p,
.hero-actions {
  will-change: opacity, transform;
}

.card,
.news-item,
.blog-item {
  transition: opacity 0.4s ease;
}

.card:hover,
.news-item:hover,
.blog-item:hover {
  opacity: 0.82;
}

@media (prefers-reduced-motion: reduce) {

  .js-fade-up,
  .js-slide-left,
  .js-slide-right,
  .card,
  .news-item,
  .blog-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== services section: h3 underline ===== */
.section-services .card h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== service icons ===== */
.service-icon {
  width: 52px;
  height: 52px;
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  opacity: 0.9;
}

.card:hover .service-icon {
  transform: translateY(-1px);
  transition: transform .2s ease;
}

@media (max-width: 640px) {
  .service-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }
}

/* ===== smartphone typography tuning ===== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.06em;
  }

  h1 {
    font-size: 25px;
    line-height: 1.35;
    letter-spacing: 0.1em;
  }

  h2,
  .page-hero h2,
  .section h2,
  .content h2 {
    font-size: 20px;
    line-height: 1.4;
  }

  h3,
  .page-hero h3,
  .card h3,
  .faq-item h3,
  .content h3,
  .news-item h3,
  .blog-item h3 {
    font-size: 18px;
    line-height: 1.45;
  }

  p,
  li,
  .meta,
  .section-lead,
  .card p,
  .news-item p,
  .blog-item p,
  .footer-links a {
    font-size: 0.92rem;
  }

  .hero-kicker,
  .breadcrumbs {
    font-size: 0.78rem;
  }
}

/* ===== smartphone compact layout ===== */
@media (max-width: 768px) {

  .section,
  .page-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* ヒーローも少し詰める */
  .hero .container {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-kicker {
    font-size: 0.74rem;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
  }

  h1 {
    font-size: 25px;
    line-height: 1.3;
  }

  h2 {
    font-size: 20px;
    line-height: 1.35;
  }

  h3 {
    font-size: 18px;
  }

  p,
  li,
  .meta,
  .section-lead,
  .card p,
  .news-item p,
  .blog-item p,
  .button,
  .footer-links a {
    font-size: 0.88rem;
  }

  .grid.three,
  .home-profile,
  .split {
    gap: 16px;
  }

  .card,
  .cta-box,
  .profile-card,
  .form-wrap {
    padding: 18px;
  }
}


/* ===== mobile final adjust ===== */
@media (max-width: 768px) {

  /* セクション余白 */
  .section,
  .page-hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .footer-inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ===== header office names split ===== */
.brand-name {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.18em;
}

.brand-name-tax,
.brand-name-labor {
  display: inline-block;
}


/* ===== mobile 375px: 横幅オーバーフロー防止 ===== */
@media (max-width: 480px) {

  /* ボタンの最小幅を解除 */
  .button {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* ヒーローのボタン2つを縦並びに */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* 文字間を縮小 */
  body {
    letter-spacing: 0.06em;
  }

  h1, h2, h3,
  .hero h1,
  .section h2,
  .page-hero h1,
  .page-hero h2 {
    letter-spacing: 0.1em;
  }

  .hero-kicker {
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  /* コンテナ余白 */
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* ブランド名の間隔 */
  .brand-name {
    gap: 0;
    display: block;
  }

  .brand-name-tax,
  .brand-name-labor {
    display: block;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* セクション */
  .section {
    padding: 20px 0;
  }

  .page-hero {
    padding: 36px 0 24px;
  }

  /* カード */
  .card {
    padding: 18px 16px;
  }

  /* グリッド */
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  /* about の2カラムを1カラムに */
  .about-profile-row,
  .split {
    grid-template-columns: 1fr !important;
  }
}

/* ===== mobile only floating CTA ===== */
.floating-cta {
  display: none;
}

/* スマホだけ：ヘッダーCTAとヒーローボタンを消す */
@media (max-width: 768px) {

  .home-page.static-header-home .nav-cta-group,
  .home-page.static-header-home .hero-actions {
    display: none !important;
  }

  .home-page.static-header-home {
    padding-bottom: 68px;
  }

  .floating-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    gap: 8px;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0, 81, 131, .08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(110%);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }

  .floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .floating-cta-item {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 1.4rem 1.05rem;
    border-radius: 0;
    font-size: 0.84rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .floating-cta-free {
    background: #005183;
    color: #fff;
    border: 1px solid #005183;
  }

  .floating-cta-phone {
    background: #fff;
    color: #005183;
    border: 1px solid #005183;
  }
}

@media (max-width: 768px) {
  .floating-cta-free {
    background: #005183;
    color: #ffffff;
    border: 1px solid #005183;
  }

  .floating-cta-free:hover {
    background: #003d63;
    color: #ffffff;
    border-color: #003d63;
  }

  .floating-cta-phone {
    background: #ffffff;
    color: #005183;
    border: 1px solid #005183;
  }

  .floating-cta-phone:hover {
    background: #e8f2f9;
    color: #005183;
    border-color: #005183;
  }
}

.home-page.static-header-home .brand {
  display: flex;
  width: 100%;
}

/* =========================================
   services page header unified with home
   style.css の一番下に追加
========================================= */

/* 共通 */
:is(.static-header-service, .static-header-unified) .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

:is(.static-header-service, .static-header-unified) .header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

:is(.static-header-service, .static-header-unified) .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

:is(.static-header-service, .static-header-unified) .brand-logo {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  margin-left: 8px;
}

:is(.static-header-service, .static-header-unified) .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

:is(.static-header-service, .static-header-unified) .brand-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

:is(.static-header-service, .static-header-unified) .brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text);
}

:is(.static-header-service, .static-header-unified) .brand-name-tax,
:is(.static-header-service, .static-header-unified) .brand-name-labor {
  display: inline-block;
}

:is(.static-header-service, .static-header-unified) .nav,
:is(.static-header-service, .static-header-unified) .site-nav-static {
  display: block !important;
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-left: 8px !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

:is(.static-header-service, .static-header-unified) .nav-list {
  display: flex !important;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

:is(.static-header-service, .static-header-unified) .nav-item {
  font-size: 15px;
}

:is(.static-header-service, .static-header-unified) .nav-item.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.66rem 1rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

:is(.static-header-service, .static-header-unified) .nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.45rem;
  flex-shrink: 0;
}

:is(.static-header-service, .static-header-unified) .nav-cta-group .cta-free {
  background: var(--text);
  color: #ffffff;
  border: 1px solid var(--text);
}

:is(.static-header-service, .static-header-unified) .nav-cta-group .cta-phone {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--text);
}


/* (override) */

.compact-profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.compact-profile-card .profile-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  aspect-ratio: auto;
}

.compact-profile-card .profile-body {
  padding: 24px;
}

.compact-strength-list {
  gap: 10px;
  margin-top: 16px;
}

.compact-strength-list li {
  padding: 12px 14px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .compact-profile-card {
    grid-template-columns: 1fr;
  }

  .compact-profile-card .profile-photo {
    min-height: auto;
    aspect-ratio: 5 / 4;
  }

  .compact-profile-card .profile-body {
    padding: 20px;
  }
}

/* =========================================================
   ★ UNIFIED MOBILE HEADER & SIDE PADDING  （全ページ共通）
   - 2種類のレイアウト（.home-page.static-header-home と
     .static-header-unified / .static-header-service）を
     スマホ（768px以下）で同じ見た目に揃える統合ブロック。
   - 左右余白は --side-pad-mobile（:root で管理）に統一。
   - 見た目を変更したい場合は :root の変数を変えるだけで
     全ページに反映される。
========================================================= */
@media (max-width: 768px) {

  /* --- 左右余白をすべてのページで統一 --- */
  .container,
  .header-inner,
  .footer-inner,
  .home-page.static-header-home .container,
  .home-page.static-header-home .header-inner,
  .home-page.static-header-home .footer-inner,
  :is(.static-header-service, .static-header-unified) .container,
  :is(.static-header-service, .static-header-unified) .header-inner,
  :is(.static-header-service, .static-header-unified) .footer-inner {
    width: 100%;
    max-width: none;
    padding-left: var(--side-pad-mobile);
    padding-right: var(--side-pad-mobile);
  }

  /* --- ヘッダー本体（背景・固定位置） --- */
  .site-header,
  .home-page.static-header-home .site-header,
  :is(.static-header-service, .static-header-unified) .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 0;
  }

  /* --- ヘッダー中身：ロゴ＋屋号を1段目、ナビを2段目 --- */
  .header-inner,
  .home-page.static-header-home .header-inner,
  :is(.static-header-service, .static-header-unified) .header-inner {
    display: block;
    padding-top: var(--mobile-header-pad-y);
    padding-bottom: var(--mobile-header-pad-y);
    padding-left: 0;
    padding-right: 0;
    align-items: flex-start;
  }

  /* --- ロゴ＋屋号テキストの並び --- */
  .brand,
  .home-page.static-header-home .brand,
  :is(.static-header-service, .static-header-unified) .brand {
    display: grid;
    grid-template-columns: var(--mobile-header-logo) 1fr;
    gap: 16px;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  /* --- ロゴサイズ --- */
  .brand-logo,
  .home-page.static-header-home .brand-logo,
  :is(.static-header-service, .static-header-unified) .brand-logo {
    width: var(--mobile-header-logo);
    height: var(--mobile-header-logo);
    flex: 0 0 var(--mobile-header-logo);
    flex-basis: var(--mobile-header-logo);
    margin: 0 0 0 8px;
  }

  /* --- 肩書き（元国税職員…） --- */
  .brand-kicker,
  .home-page.static-header-home .brand-kicker,
  :is(.static-header-service, .static-header-unified) .brand-kicker {
    font-size: var(--mobile-header-kicker);
    line-height: 1.2;
    margin-bottom: 1px;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  /* --- 屋号（高野晶弘税理士事務所 はれそら社労士事務所） --- */
  .brand-name,
  .home-page.static-header-home .brand-name,
  :is(.static-header-service, .static-header-unified) .brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    font-family: 'はれのそら明朝', "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: var(--mobile-header-brand-name);
    line-height: 1.3;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    letter-spacing: 0;
    color: var(--text);
  }

  .brand-name-tax,
  .brand-name-labor {
    display: inline-block;
    font-size: 15px;
  }

  /* --- ナビのコンテナ：2段目として横幅いっぱいに --- */
  .nav,
  .site-nav-static,
  .home-page.static-header-home .nav,
  .home-page.static-header-home .site-nav-static,
  :is(.static-header-service, .static-header-unified) .nav,
  :is(.static-header-service, .static-header-unified) .site-nav-static {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
  }

  /* --- ナビ項目のリスト --- */
  .nav-list,
  .home-page.static-header-home .nav-list,
  :is(.static-header-service, .static-header-unified) .nav-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
    justify-content: center;
    padding: 4px 0 0 !important;
    margin: 0 !important;
    list-style: none;
  }

  /* --- ナビ項目（ホーム / サービス・料金 など） --- */
  .nav-item,
  .home-page.static-header-home .nav-item,
  :is(.static-header-service, .static-header-unified) .nav-item {
    font-size: var(--mobile-header-nav-font);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
  }

  /* --- ヘッダー内のCTAボタンはフローティングCTAに委ねて非表示 --- */
  .nav-cta-group,
  .home-page.static-header-home .nav-cta-group,
  :is(.static-header-service, .static-header-unified) .nav-cta-group {
    display: none !important;
  }

  /* --- ハンバーガー関連は使わないので完全に非表示 --- */
  .nav-toggle,
  .nav-close,
  .nav-toggle-overlay,
  .home-page.static-header-home .nav-toggle,
  .home-page.static-header-home .nav-close,
  .home-page.static-header-home .nav-toggle-overlay {
    display: none !important;
  }
}

/* ===== 375px スマホ最終調整 ===== */
@media (max-width: 480px) {

  /* セクション見出しのletter-spacingを縮小 */
  .section h2,
  .page-hero h1,
  .page-hero h2 {
    letter-spacing: 0.1em;
  }

  /* hero-kicker */
  .hero-kicker,
  .home-page .hero-kicker,
  .home-page.static-header-home .hero-kicker {
    letter-spacing: 0.04em;
    font-size: 11px;
  }

  /* CTA boxの中のhero-actionsを縦並び */
  .cta-box .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-box .hero-actions .button {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  /* 全ボタンの最小幅を解除・幅を内側に合わせる */
  .button {
    min-width: 0;
  }

  /* content長文テキストのletter-spacing */
  .content p,
  .content li,
  p, li {
    letter-spacing: 0.04em;
  }

  /* セクション余白を縮小 */
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-hero {
    padding-top: 32px;
    padding-bottom: 20px;
  }

  /* コンテナ余白 */
  .container,
  .header-inner,
  .footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* 本文リンクの下線を非表示（h3のborder-bottomは維持） */
  a {
    text-decoration: none;
  }
}

/* =====================================================
   モバイルタイポグラフィ調整（768px以下）
   letter-spacing・line-height を引き締めて
   情報密度・可読性を高める
===================================================== */
@media (max-width: 768px) {

  /* 1. body 全体 */
  body {
    letter-spacing: 0.05em;
    line-height: 1.8;
  }

  /* 2. 見出し */
  .hero h1,
  .page-hero h1,
  .page-hero h2 {
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .section h2 {
    letter-spacing: 0.1em;
    line-height: 1.45;
  }

  .card h3 {
    letter-spacing: 0.06em;
    line-height: 1.45;
  }

  .news-item h3,
  .blog-item h3 {
    letter-spacing: 0.06em;
    line-height: 1.45;
  }

  /* 3. 本文 */
  .hero p {
    letter-spacing: 0.04em;
    line-height: 1.75;
  }

  .section-lead {
    letter-spacing: 0.04em;
    line-height: 1.75;
  }

  .content p,
  .content li {
    letter-spacing: 0.04em;
    line-height: 1.75;
  }

  .card p {
    letter-spacing: 0.04em;
    line-height: 1.75;
  }

  /* 4. ナビ・ボタン */
  .nav-list {
    letter-spacing: 0.04em;
  }

  .nav-item {
    letter-spacing: 0.04em;
  }

  .button {
    letter-spacing: 0.06em;
  }
}

/* ===== ヒーロー：文字後ろのボックス ===== */
.hero-content-box {
  display: inline-block;
  background: none;
  border-radius: 0;
  padding: 28px 32px;
}

/* ボックス内テキストを白に */
.home-page.static-header-home .hero-content-box,
.home-page.static-header-home .hero-content-box h1,
.home-page.static-header-home .hero-content-box p,
.home-page.static-header-home .hero-content-box .hero-emphasis {
  color: #fff;
  text-shadow: none;
}

.home-page.static-header-home .hero-content-box p {
  font-size: 14px;
}

.home-page.static-header-home .hero-content-box .hero-kicker {
  color: #fff;
  text-shadow: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: none;
}

@media (max-width: 768px) {
  .hero-content-box {
    padding: 10px 10px;
  }
}

/* ===== 代表プロフィール 経歴・資格リスト ===== */
.career-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 5em 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}
.career-list dt {
  font-weight: inherit;
  grid-column: 1;
  padding-top: 2px;
}
.career-list dd {
  margin: 0;
  grid-column: 2;
}

/* ===== スマホ：トップページ hero 左下配置 ===== */
@media (max-width: 768px) {
  .home-page .hero {
    min-height: 440px;
  }
  .home-page .hero .container {
    min-height: 440px;
    padding-top: 32px;
    padding-bottom: 36px;
  }
}

/* ===== スマホ：トップページ セクション背景の交互切替 =====
   サービス一覧（白）とご相談の流れ（薄グレー）を
   視覚的に区切るためのモバイル専用クラス。
   デスクトップでは背景を変えない。
======================================================= */
@media (max-width: 768px) {
  .section-bg-light {
    background: #f2f2f3;
  }
  /* .section.alt のグレーをモバイルで白に上書き */
  .section.section-bg-white {
    background: #ffffff;
  }
}

/* ===== スマホ：代表プロフィール 経歴 2列グリッド ===== */
@media (max-width: 768px) {
  .career-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.6em;
    row-gap: 3px;
    align-items: start;
  }
  .career-list dt {
    margin-top: 0;
  }

  /* 経歴・資格・趣味 の th/td 余白をプロフィールテーブル内だけ縮める */
  .about-profile-table .table th,
  .about-profile-table .table td {
    padding: 8px 4px;
  }

  /* th 横幅を縮める */
  .about-profile-table .table th {
    width: 20%;
  }

  /* テーブルの外側マージンを削除 */
  .about-profile-table .table {
    margin: 0;
  }

  /* 代表行（先頭行）の上余白を縮める */
  .about-profile-table .table tr:first-child th,
  .about-profile-table .table tr:first-child td {
    padding-top: 0;
  }

  /* テーブル行間をさらに詰める */
  .about-profile-table .table th,
  .about-profile-table .table td {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* プロフィールカード（右側）の内側余白を縮める */
  .about-profile-card .profile-body {
    padding: 14px 12px;
  }
}
