﻿/* ベース設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* 基本色 */
  --navy: #0369a1;
  --navy-mid: #025e8a;
  --navy-light: #0284c7;

  /* アクセント色 */
  --accent: #f97316;
  --accent-light: #fb923c;

  --gold: #f97316;
  --gold-light: #fb923c;
  --white: #ffffff;
  --off-white: #f0f9ff;
  --gray-light: #e0f2fe;
  --gray: #94a3b8;

  --text: #334155;
  --text-light: #64748b;
  --green: #059669;
  --red: #ef4444;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ページ共通 */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 224, 234, 0.9);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(15, 39, 71, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 38px;
  height: 38px;
  display: block;
}

.logo-text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.logo-text .main {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  display: block;
  line-height: 1.25;
}

.logo-text .sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  /* text-transform: uppercase; */
  font-family: "DM Sans", sans-serif;
  display: block;
  line-height: 1.2;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: #28465f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  cursor: pointer;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
}

.header-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white !important;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.header-sub-cta {
  position: relative;
  background: #ffffff;
  color: var(--navy) !important;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--navy);
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.header-sub-cta.active {
  background: #ffffff;
  color: var(--navy) !important;
  border-color: var(--navy);
}

.header-sub-cta:hover,
.header-sub-cta:focus-visible {
  color: #ffffff !important;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: none;
  transform: translateY(-1px);
  outline: none;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border-color: #c2410c;
  color: #ffffff !important;
  box-shadow: none;
  transform: translateY(-1px);
  outline: none;
}

/* 補助ナビ */
.page-nav {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  background: rgba(3, 105, 161, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page-nav-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: "DM Sans", sans-serif;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
}

.page-nav button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  cursor: pointer;
  font-family: "Zen Kaku Gothic New", sans-serif;
  text-align: left;
  transition: all 0.2s;
  white-space: nowrap;
}

.page-nav button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.page-nav button.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.6);
  color: white;
}

/* 共通レイアウト */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 767px) {
  .container {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.pt-header {
  padding-top: 68px;
}

.section {
  padding: 90px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
  margin-bottom: 14px;
  padding: 5px 14px;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.section-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 14px;
}

.section-title.white {
  color: white;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

.section-desc.white {
  color: rgba(255, 255, 255, 0.8);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.bg-white {
  background: white;
}

.bg-navy {
  background: var(--navy);
}

.bg-off {
  background: var(--off-white);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border-color: #c2410c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.28);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border-color: #c2410c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* カード */
.card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 16px 48px rgba(3, 105, 161, 0.08);
}

/* タグ */
.tag {
  background: rgba(3, 105, 161, 0.06);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--white);
  font-weight: 600;
}

.tag-accent {
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
}

.tag-gold {
  background: rgba(16, 185, 129, 0.15);
  color: var(--off-white);
}

.tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--off-white);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 調整 */
.section.bg-white + .section {
  border-top: 1px solid var(--gray-light);
}

.card,
.listing-card,
.guide-card,
.result-card,
.article-card {
  border-color: var(--gray-light);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
}

a {
  color: inherit;
}

/* グリッド */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* フッター */
footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 52% 62% at 86% 20%,
      rgba(2, 132, 199, 0.09),
      transparent 64%
    ),
    linear-gradient(180deg, #f8fbff 0%, #f0f9ff 100%);
  padding: 84px 0 36px;
  border-top: 1px solid rgba(2, 132, 199, 0.14);
}

footer::before {
  content: "PORTAL";
  position: absolute;
  left: max(20px, calc((100vw - 1180px) / 2));
  top: 34px;
  color: rgba(15, 39, 71, 0.035);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(64px, 10vw, 136px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  pointer-events: none;
}

footer::after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: -154px;
  width: min(42vw, 520px);
  height: min(46vw, 590px);
  background: url("../images/map-japan.png") center / contain no-repeat;
  opacity: 0.045;
  transform: rotate(8deg);
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 52px;
  padding: 30px 34px;
  border: 1px solid rgba(2, 132, 199, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 88% 16%,
      rgba(249, 115, 22, 0.11),
      transparent 28%
    ),
    #ffffff;
  box-shadow: 0 28px 80px rgba(15, 39, 71, 0.08);
  overflow: hidden;
}

.footer-cta-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-cta h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  font-weight: 800;
}

.footer-cta p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.85;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.14);
  margin-bottom: 36px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 310px;
}

.footer-col h4 {
  position: relative;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-family: "Zen Kaku Gothic New", sans-serif;
  margin-bottom: 20px;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #28465f;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition:
    color 0.2s,
    transform 0.2s;
  cursor: pointer;
}

.footer-col ul li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.32);
  flex: 0 0 auto;
  transition: background-color 0.2s;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
  color: var(--accent);
  transform: translateX(2px);
  outline: none;
}

.footer-col ul li a:hover::before,
.footer-col ul li a:focus-visible::before {
  background: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  font-family: "DM Sans", sans-serif;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #28465f;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

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

.sidebar {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-light);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

.sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar h3 a {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

.sticky-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-light);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-light);
  padding: 24px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-light);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.info-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item-text h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.info-item-text p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.phone-big {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.phone-hours {
  font-size: 11px;
  color: var(--text-light);
}

.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.guide-sidebar-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  padding: 20px;
}

.guide-sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-light);
}

.cat-list {
  list-style: none;
}

.cat-list li {
  border-bottom: 1px solid var(--gray-light);
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.cat-list li a:hover {
  color: var(--navy-light);
}

.cat-list li a span {
  font-size: 11px;
  color: var(--text-light);
  background: var(--off-white);
  padding: 1px 8px;
  border-radius: 100px;
  font-family: "DM Sans", sans-serif;
}

.popular-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pop-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.pop-num {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-light);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
}

.pop-title {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 600;
  transition: color 0.2s;
}

.pop-article:hover .pop-title {
  color: var(--navy-light);
}

footer .logo-text .footer-logo-main {
  color: var(--navy);
}

footer .logo-text .footer-logo-sub {
  color: var(--accent);
}

.label-white {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.btn-block-center {
  width: 100%;
  justify-content: center;
}

.tag {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
}

.tag-accent {
  background: #fff1e8;
  border-color: #fed7aa;
  color: #c2410c;
}

.listing-card,
.result-card {
  text-decoration: none;
}

.listing-body h3 a,
.result-info h2 a,
.result-info h3 a,
.featured-more a,
.detail-back-link {
  text-decoration: none;
}

.listing-body h3 a:hover,
.result-info h2 a:hover,
.result-info h3 a:hover,
.featured-more a:hover,
.detail-back-link:hover {
  text-decoration: none;
}

footer a,
footer a:hover,
footer a:focus,
footer a:active,
.footer-col h4 a,
.footer-col h4 a:hover,
.footer-col h4 a:focus,
.footer-col h4 a:active,
footer .logo,
footer .logo:hover,
footer .logo:focus,
footer .logo:active {
  text-decoration: none;
}

@media (max-width: 900px) {
  header {
    height: auto;
    padding: 10px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .logo {
    gap: 10px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .logo-mark img {
    width: 32px;
    height: 32px;
  }

  .logo-text .main {
    font-size: 12px;
  }

  .logo-text .sub {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  nav {
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    font-size: 12px;
    flex: 0 0 auto;
  }

  .header-cta {
    padding: 7px 10px;
    font-size: 12px !important;
  }

  .header-sub-cta {
    padding: 7px 10px;
    font-size: 12px !important;
  }

  .pt-header {
    padding-top: 108px;
  }
}

@media (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }

  body.admin-bar .pt-header {
    padding-top: 154px;
  }
}

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

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

@media (max-width: 767px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

footer {
  border-top: 1px solid rgba(2, 132, 199, 0.14);
}

@media (max-width: 1024px) {
  .footer-cta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-cta-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 767px) {
  footer {
    padding: 64px 0 28px;
  }

  footer::before {
    top: 28px;
    font-size: 52px;
  }

  footer::after {
    right: -110px;
    bottom: -92px;
    width: 300px;
    height: 340px;
  }

  .footer-cta {
    margin-bottom: 36px;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .footer-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
    margin-bottom: 24px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

body.page {
  display: block;
  min-height: auto;
}

body.page.active {
  display: block;
}

.nav-item {
  position: relative;
}

.nav-item-guide {
  display: block;
}

.nav-item-guide::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
}

.nav-summary {
  color: #28465f;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-summary::after {
  content: none;
}

.nav-item-guide.is-open .nav-summary::after {
  transform: none;
}

.nav-summary:hover,
.nav-summary:focus-visible,
.nav-item-guide.is-current .nav-summary {
  color: var(--accent);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(2, 132, 199, 0.14);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  z-index: 260;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.nav-item-guide:hover .nav-submenu,
.nav-item-guide:focus-within .nav-submenu,
.nav-item-guide.is-open .nav-submenu {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-submenu-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 11px 18px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--navy) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.nav-submenu-link:hover {
  background: #f0f9ff;
  color: var(--accent) !important;
  padding-left: 22px;
  transform: none;
}

.nav-submenu-link-wide {
  min-height: 0;
}

@media (max-width: 900px) {
  .nav-item-guide {
    flex: 0 0 auto;
  }

  .nav-submenu {
    display: none;
  }

  .nav-summary {
    font-size: 12px;
  }

  .nav-submenu-link {
    font-size: 13px;
    padding: 10px 14px;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .nav-submenu {
    width: min(88vw, 280px);
  }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 320;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

@media (max-width: 420px) {
  header {
    padding-right: 10px;
    padding-left: 10px;
  }

  nav {
    gap: clamp(8px, 3vw, 13px);
    justify-content: center;
    width: 100%;
  }

  .site-header-search nav {
    transform: translateX(-17px);
  }

  nav a,
  .nav-summary {
    font-size: 11px;
    letter-spacing: 0;
  }

  .header-cta,
  .header-sub-cta {
    padding: 6px 7px;
    font-size: 11px !important;
  }
}

.back-to-top::before {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg) translateY(2px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
  outline: none;
}

@media (max-width: 767px) {
  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

/* ── 登録支援機関 解説セクション ─────────────────────────────────────────── */
.institution-guide-section {
  background: #f8fafc;
  border-top: 1px solid #e5eaf0;
  padding: 56px 0 64px;
  margin-top: 48px;
}

.institution-guide-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.institution-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.institution-guide-block {
  background: white;
  border-radius: 12px;
  padding: 24px 28px;
  border: 1px solid #e5eaf0;
}

.institution-guide-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.institution-guide-block p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 767px) {
  .institution-guide-grid {
    grid-template-columns: 1fr;
  }

  .institution-guide-section {
    padding: 40px 0 48px;
  }
}
