@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

:root {
  --primary: #134E4A;
  --primary-dark: #0F3E3A;
  --primary-light: #0F766E;
  --emerald: #047857;
  --navy: #1E3A8A;
  --amber: #B45309;
  --accent: #D97706;
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-soft: #F0FDFA;
  --text-main: #1E293B;
  --text-muted: #475569;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; }
img[src*="0.gif"] {
  width: 1px !important;
  height: 1px !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
img[src*="bgt?"] {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* PR Bar */
.pr-bar {
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.pr-badge {
  display: inline-block;
  background: #CBD5E1;
  color: #1E293B;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
}

/* Header */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.desktop-nav a {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.desktop-nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta {
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(19, 78, 74, 0.22);
}
.header-cta:hover { background: var(--primary-dark); }

.menu-toggle {
  display: none;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 14px 20px 20px;
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 11px 6px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Containers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}
.article-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 72px;
  overflow-x: hidden;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: var(--text-muted); }

/* Hero */
.hero-section {
  background: linear-gradient(180deg, #F0FDFA 0%, #FAF9F6 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
}
.hero-pill {
  display: inline-block;
  background: #CCFBF1;
  color: #115E59;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.38;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 14px;
}
.hero-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.hero-point {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
}
.hero-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: block;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(19, 78, 74, 0.25);
  text-decoration: none !important;
}
.hero-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Section Blocks */
.section-wrap { padding: 40px 0; }
.sec-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px;
  padding-left: 14px;
  border-left: 5px solid var(--primary);
}
.sec-sub { color: var(--text-muted); font-size: 0.93rem; margin: 0 0 22px; }

/* Quick Route Boxes */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}
.route-card {
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.route-card.is-cuore { border-color: #10B981; background: #F0FDF4; }
.route-card.is-110 { border-color: #3B82F6; background: #EFF6FF; }
.route-card.is-poimitsu { border-color: #F59E0B; background: #FFFBEB; }
.route-tag {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}
.is-cuore .route-tag { background: #D1FAE5; color: #065F46; }
.is-110 .route-tag { background: #DBEAFE; color: #1E3A8A; }
.is-poimitsu .route-tag { background: #FEF3C7; color: #92400E; }
.route-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: #0F172A; }
.route-desc { font-size: 0.87rem; color: var(--text-muted); margin: 0 0 14px; }

/* A8 Verbatim Styled CTA Buttons */
.a8-cta-wrap { text-align: center; margin: 12px 0; }
.a8-micro-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.a8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.45;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  max-width: 100%;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.a8-btn:hover { transform: translateY(-1px); opacity: 0.94; text-decoration: none !important; }
.a8-btn-emerald { background: linear-gradient(135deg, #059669 0%, #047857 100%); box-shadow: 0 6px 15px rgba(5, 150, 105, 0.25); }
.a8-btn-navy { background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%); box-shadow: 0 6px 15px rgba(30, 58, 138, 0.25); }
.a8-btn-amber { background: linear-gradient(135deg, #D97706 0%, #B45309 100%); box-shadow: 0 6px 15px rgba(180, 83, 9, 0.25); }

/* Detailed Service Card */
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.service-card.featured { border: 2px solid #059669; }
.service-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.service-name { font-size: 1.28rem; font-weight: 800; color: #0F172A; margin: 0; }
.service-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #065F46;
}
.service-body {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.spec-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.84rem;
}
.spec-item strong { display: block; font-size: 0.74rem; color: var(--text-muted); }
.service-ul { margin: 12px 0; padding-left: 20px; font-size: 0.92rem; }
.service-ul li { margin-bottom: 6px; }
.service-banner-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

/* Responsive Tables */
.table-scroll-hint {
  display: none;
  font-size: 0.76rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 6px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
  margin: 14px 0 24px;
}
table.comp-table, .article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
table.comp-table th, table.comp-table td,
.article-prose table th, .article-prose table td {
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #F1F5F9;
  text-align: left;
  vertical-align: top;
}
table.comp-table thead th, .article-prose table thead th {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  white-space: nowrap;
}
table.comp-table th.col-hl { background: #047857; }
table.comp-table tbody th { background: #F8FAFC; font-weight: 700; color: #0F172A; width: 170px; }

/* Article Prose */
.article-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.article-prose { max-width: 100%; min-width: 0; overflow-x: hidden; }
.article-prose section, .article-prose article, .article-prose div { max-width: 100%; min-width: 0; }
.article-h1 {
  font-size: clamp(1.38rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.4;
  margin: 0 0 12px;
}
.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.article-eyecatch {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: block;
}
.article-prose h2 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding: 6px 0 6px 14px;
  margin: 34px 0 14px;
  background: #F8FAFC;
  border-radius: 0 8px 8px 0;
}
.article-prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0F172A;
  margin: 22px 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #E2E8F0;
}
.article-prose h4 {
  font-size: 0.99rem;
  font-weight: 800;
  color: #134E4A;
  margin: 14px 0 6px;
}
.step-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0F766E;
  border-radius: 10px;
  padding: 15px 18px;
  margin: 12px 0;
}
.step-card h4, .step-card strong:first-child {
  margin-top: 0;
  color: #0F172A;
  font-size: 0.99rem;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}
.step-card p:last-child { margin-bottom: 0; }
.article-prose pre, .template-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: 'Noto Sans JP', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: auto;
  max-width: 100%;
  margin: 14px 0 20px;
}
.article-prose details {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
}
.article-prose summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}
.route-card h3.route-title,
.service-card h3.service-name,
.guide-card h3.guide-card-title {
  border-bottom: none;
  margin: 0 0 8px;
  padding-bottom: 0;
}
.service-card .service-head h3.service-name { margin: 0; }
.article-prose h2.sec-heading { background: transparent; border-radius: 0; }
.article-prose p { margin: 0 0 14px; }
.article-prose ul, .article-prose ol { margin: 10px 0 18px; padding-left: 22px; }
.article-prose li { margin-bottom: 7px; }

.callout-box {
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}
.warn-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 5px solid #D97706;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

/* Articles Catalog Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guide-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.guide-card-body { padding: 14px 16px; }
.guide-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: #F0FDFA;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.guide-card-title { font-size: 0.94rem; font-weight: 700; color: #0F172A; line-height: 1.45; margin: 0; }

.sub-archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 16px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sub-archive-list a { font-size: 0.86rem; color: var(--text-main); padding: 4px 0; display: block; }
.sub-archive-list a:hover { color: var(--primary); }

/* FAQ */
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-q { font-weight: 800; color: var(--primary); margin: 0 0 6px; font-size: 0.98rem; }
.faq-a { margin: 0; font-size: 0.92rem; color: var(--text-main); }

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 44px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-title { color: #FFFFFF; font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #CBD5E1; font-size: 0.86rem; }
.footer-links a:hover { color: #FFFFFF; }
.footer-copy {
  border-top: 1px solid #334155;
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Mobile Sticky Bottom Bar (hidden until scroll) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid var(--primary);
  padding: 10px 14px;
  z-index: 950;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
}
.mobile-sticky-bar.visible { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-sticky-text { font-size: 0.78rem; font-weight: 700; color: #0F172A; line-height: 1.3; }
.mobile-sticky-btn {
  background: var(--primary);
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none !important;
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .hero-grid, .route-grid, .service-body, .article-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; }
  .sub-archive-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-card { padding: 20px 16px; }
  .service-card { padding: 18px 16px; }
  .spec-grid { grid-template-columns: 1fr; }
  .table-scroll-hint { display: block; }
  .site-logo { font-size: 0.94rem; }
  body { padding-bottom: 66px; }
}
@media (min-width: 641px) {
  .mobile-sticky-bar { display: none !important; }
}
