@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Roboto:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* Design tokens: color variables consolidated from sidebar.css */
:root {
  --brand-cyan: #0090CC;
  --nav-blue: #1E2380; /* fixed: map to navy token */
  --future-bg: #FDF2E5;
  --accent-10: rgba(136,109,72,0.1);
  --accent-50: rgba(136,109,72,0.5);
  --brand-orange: #E0852C;
  --text-black: #000000;
  /* --bg-white: #FAFEFF; */
  --bg-white: #ffffff;
  /* removed incorrect override for --bg-white so figma-tokens value is used */
  --sidebar-width: 240px;

  /* Typography tokens (px-based, mapped to Figma tokens) */
  --base-font-size: 16px;
  --font-body-sm: 16px;

  /* Map existing project variables to centralized Figma tokens in assets/css/figma-tokens.css */
  --font-title-55: 55px;
  --font-heading-30: 30px;
  --font-subheading-20: 20px;
  --font-body-18: 18px;
  /* Shadow tokens */
  --shadow-cyan: 0 1px 10px 0 rgba(0,144,204,0.2);
  --box-round: 20px;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  font-family: BlinkMacSystemFont, -apple-system, "Noto Sans JP", "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif
}

.container-1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav_inner {
  a.nav-item {
   color: var(--text-black);
  }
  span.nav-item[disabled] {
   color: var(--accent-50);
    cursor: default;
    &:hover {
      color: var(--accent-50);
    }
  }
}

@media (max-width: 1400px) {
  .nav_inner {
      gap: 20px !important;
    }
    .nav_inner p {
      font-size: 1.3vw !important;
      margin-bottom: 0.5vw;
    }
    .header_logo {
      img {
        width: 24vw !important;
      }
    }
  }

/* Utility: reusable cyan shadow (matches existing Tailwind-like usage)
   Usage:
     - add class: <div class="shadow-cyan">...
     - or reference variable: box-shadow: var(--shadow-cyan);
*/
.shadow-cyan { box-shadow: var(--shadow-cyan); }
.box-round { border-radius: var(--box-round); }
.box-wrapper { box-shadow: var(--shadow-cyan); border-radius: var(--box-round); background: var(--bg-white); }

.container-1400 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-full {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 2rem;
}

.head-tools {
  display: flex;
    min-height: 40px;
    align-items: center;
    .head-tools_nav {
      display: flex;
      gap: 1rem;
      a {
        color :var(--text-black);
        &:hover {
        color :var(--brand-cyan);
        }
      }
    }
}
.header-inner { position: relative; height: 100%; padding: 0 2rem; }
.logo-wrap { position: absolute; left: 39px; top: 31px; width: 351px; height: 57px; }
.nav-wrap { position: absolute; right: 41px; top: 84px; display: flex; gap: 30px; align-items: center; }
.tool-area { position: absolute; right: 41px; top: 14px; display: flex; align-items: center; gap: 16px; }

/* Mega menu container helper */
.mega-menu-container { padding: 20px 2rem; }

/* Hero helpers (migrated from inline styles) */
.hero-bg { 
  position: relative; 
  width: 100%; 
  height: 500px; 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-light) 100%); 
}
.hero-overlay { position: absolute; left: clamp(16px, 5.5vw, 106px); right: clamp(16px, 5.5vw, 107px); top: 0; }
.hero-overlay-inner {
  position: relative;
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 0 60px;
    padding: 0 71px 20px;
    min-height: 284px;
    @media (max-width: 1024px) {
          padding: 0 ;
    }
}


/* ヘッダーナビゲーション */
.nav-item {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* ensure nav items have space for underline and underline sits above other layers */
.nav-item {
  padding-bottom: 12px;
}

/* .nav-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--brand-cyan);
} */

/* 青いバー */
.blue-bar-left {
  position: relative;
  padding-left: 45px;
}

.blue-bar-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 186px;
  background-color: var(--color-navy-blue);
}

/* 紫のバー */
.purple-bar-left {
  position: relative;
}

.purple-bar-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 48px;
  width: 4px;
  height: 48px;
  background-color: var(--color-deep-blue);
}

/* TITLE */

.title__wrapper {
    width: 100%;
    margin-top: 40px;
}
.title__block {
    width: 100%;
      h1 {
          font-size: 55px;
          margin-top: 1rem;
          margin-bottom: 1rem;
          line-height: 1.2;
          font-weight: 500;
          @media (max-width: 1400px) {
            font-size: 2rem;
          }
      }
      p {
        @media (max-width: 1200px) {
          font-size: 16px;
        }
      }
}

.pankuzu {
}

.simpol-icon {
    margin-top: 16px;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 相談カード */
.consultation-card {
  position: relative;
  overflow: hidden;
}

.consultation-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 17px;
  background-color: var(--brand-cyan);
  border-radius: 110px 0 0 110px;
}

.consultation-card {
  /* Figma: solid white background with subtle cyan shadow to match other cards */
  background: #ffffff;
  border: 2px solid var(--brand-cyan);
  border-radius: 20px;
  padding: 2rem 2rem 2rem 3rem;
  box-shadow: 0 8px 24px rgba(0,144,204,0.08);
}
.consultation-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  justify-content: space-between;
}
.consultation-media img {
  width: 360px;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.consultation-content h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 26px; /* larger and bold as requested */
  font-weight: 700;
  color: var(--color-deep-blue);
  margin: 0 0 .5rem 0;
}
.consultation-content p { margin: 0 0 1rem 0; color: #0f172a; }
.consultation-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--brand-cyan); color: white; border: none; }
.btn-outline {  background: var(--bg-white);  color: var(--text-primary); border: 2px solid var(--brand-cyan); }

@media (max-width: 768px) {
  .consultation-inner { flex-direction: column; align-items: center; text-align: center; }
  .consultation-media img { width: 160px; height: 120px; border-radius: 12px; }
}

/* Consultation: phone display / meta */
.consultation-content { max-width: 640px; width: 100%;}
.consultation-meta { font-size: 14px; color: var(--color-deep-blue); margin-bottom: .5rem; }
.consultation-contact { display: flex; flex-direction: column; align-items: flex-end; }
.phone-display { display: flex; align-items: center; gap: 18px; margin-top: 0px; justify-content: flex-end; }
.phone-display .phone-icon img { width: 36px; height: 36px; }
.phone-number { font-size: 60px; font-weight: 700; color: #000; text-decoration: none;  line-height: 1; font-family: 'Zen Maru Gothic', sans-serif; }

@media (max-width: 1024px) {
  .phone-number { font-size: 40px; }
}

@media (max-width: 768px) {
  .consultation-inner { gap: 1rem; }
  .consultation-media img { width: 220px; height: 140px; }
  .phone-number { font-size: 35px; }
  .consultation-content { max-width: 100%; }
  .consultation-inner { text-align: center; }
  /* on small screens keep phone centered */
  .consultation-contact { align-items: center; }
  .phone-display { justify-content: center; }
}


/* リンクカード */
.link-card {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-card:hover {
  box-shadow: 0 10px 30px rgba(0, 144, 204, 0.3);
  transform: translateY(-4px);
}

.link-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 23px;
  background-color: var(--brand-cyan);
  border-radius: 0 20px 20px 0;
}

.link-card .arrow-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: var(--font-caption);
  z-index: 1;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .consultation-card{
    padding: 1.5rem;
  }
  .blue-bar-left::before,
  .consultation-card::before {
    display: none;
  }
  
  .blue-bar-left {
    padding-left: 1rem;
  }
  
  .sidebar {
    display: none;
  }
}

/* Floating CTA (追従型) */
:root { --sidebar-width: 220px; --floating-cta-top: 145px; }
.floating-cta {
  position: fixed;
  /* attach to the very top-right corner (near header) */
  right: 0px;
  top: var(--floating-cta-top);
  width: auto;
  background: transparent;
  z-index: 1400;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  transform: none;
  a {
  &:hover {
    color: var(--brand-cyan);
  }
  }
}

/* pill container */
.floating-cta .cta-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  color: #0f172a;
  border-radius: 10px 0 0 10px;
  padding: 10px 16px 10px 48px; /* left space for toggle */
  min-height: 48px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
      @media (max-width: 767px) {
        font-size: 0.8rem;
        gap: 5px;
        min-height: 20px;
        padding: 10px 5px 10px 40px;
        
      }
  a {
    text-decoration: none;
    display: flex;
    align-items: center;
  }
}

.floating-cta .cta-pill .cta-text { 
  font-size: var(--font-body-sm); font-weight: 700; white-space: nowrap; 
    @media (max-width: 767px) {
    font-size: .85rem;
    font-weight: 500;
    }
}
.floating-cta .cta-pill .cta-right-icon { 
  margin-left: 8px; 
      @media (max-width: 767px) {
        max-width: 20px;
      }
}

/* Toggle handle sits on the left edge of the CTA box; when collapsed the whole box slides right leaving only the handle visible */
.floating-cta .cta-toggle {
  position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    border-radius: 10px 0 0 10px;
  background: var(--brand-cyan); /* site cyan */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.floating-cta .cta-toggle img { width: 18px; height: 18px; }

/* Collapsed state: slide the CTA so only a small tab remains visible (48px) */
.floating-cta.collapsed { transform: translateX(calc(100% - 30px)); }
.floating-cta.collapsed .cta-pill { padding-left: 10px; }

/* When viewport is narrow, hide the floating CTA */
@media (max-width: 1000px) {
  .floating-cta { display: none !important; }
}
@media (max-width: 767px) {
  .floating-cta { display: block !important; 
        display: block !important;
        z-index: 101;
        top: 7px;
        /* max-width: 150px; */
  }
}
/* small accessibility: focus styles for toggle */
.cta-toggle:focus { outline: 3px solid rgba(255,255,255,0.18); }


/* Hide sidebar when overall width is 1000px or less (per spec) */
@media (max-width: 1000px) {
  .sidebar { display: none !important; }
}

@media (max-width: 768px) {
  .container-1200,
  .container-full {
    padding: 0 1rem;
  }
}

@media (max-width: 1024px) {
  .sp-bottom-nav {
    display: block;
  }

  header.hidden.lg\:block {
    display: none !important;
    /* display: block !important; */
  }

  main {
    padding-top: 40px !important;
    padding-bottom: 100px !important;
  }
}

/* Future area tokens and layout adjustments per Figma
   Notes:
   - Background should be applied to the inner wrapper (.future-inner),
     not to the outer .future-area. This keeps the outer section spacing
     independent from the visual card background.
   - Add vertical separators to the right of .future-box elements on
     large screens except for the last item.
*/
.future-area {
  /* outer spacing only - background moved to .future-inner */
  padding: 2rem 1rem;
}
.future-area .future-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem;
  background: var(--future-bg);
  border-radius: 12px; /* subtle rounding to match design */
      @media (max-width: 767px) {
        max-width: fit-content;
        padding: 1rem;
        width: 100%;

      }
}
.future-box {
  width: 100%;
  padding: 1rem 0.5rem;
  background: transparent;
  position: relative;
}
.future-box h3 { margin: .5rem 0; font-weight:700; }

/* Add thin vertical separator to the right of each future-box except the last.
   Only enabled on desktop (lg / 1024px+) so mobile stacking is not affected. */
@media (min-width: 1024px) {
  .future-area .future-inner .grid > .future-box:not(:last-child) {
    border-right: 1px solid var(--accent-50);
    padding-right: 0.5rem;
  }
}

/* On smaller screens remove the divider so single-column and two-column
   layouts remain clean. */
@media (max-width: 1023px) {
  .future-area .future-inner .grid > .future-box:not(:last-child) {
    border-right: none;
    padding-right: 0;
    padding-left: 0;
  }
}

.tag-pill {
  display: flex;
  padding: 0.5rem ;
  border: 1px solid var(--accent-50);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-black);
  background: var(--bg-white);
  line-height: 1;
    min-width: 4rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Gate menu / feature cards */
.gate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .gate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gate-grid { grid-template-columns: repeat(2, 1fr); }
}
.gate-card {
   background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: box-shadow .2s ease, border-color .15s ease, transform .15s ease;
}
.gate-card:hover { box-shadow: 0 8px 24px rgba(0,144,204,0.15); border-color: var(--brand-cyan); transform: translateY(-6px); }
.gate-card .icon {
  width: 80px; height: 80px; border-radius: 999px; background: var(--bg-light); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: var(--font-body-lg);
}

/* Related links cards */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
  position: relative;
   background: var(--bg-white);
  border-radius: 20px;
  border: 2px solid var(--border-light);
  padding: 2rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover { box-shadow: 0 10px 30px rgba(0,144,204,0.3); border-color: var(--brand-cyan); }
.related-card .right-bar { position: absolute; right: 0; top: 0; bottom: 0; width: 23px; background: var(--brand-cyan); border-radius: 0 20px 20px 0; }
.related-card .arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: white; font-size: var(--font-caption); z-index: 10; }

/* Footer styles have been consolidated into assets/css/footer-overrides.css.
   Please edit that file for footer design to avoid duplication and conflicts.
*/

/* === Related links / cards === */
.related-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:2rem 0}
.related-card{background:#fff;border-radius:10px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 6px rgba(2,6,23,0.04);position:relative;overflow:hidden;transition:transform .12s ease,box-shadow .12s ease}
.related-card .left{display:flex;align-items:center;gap:12px}
.related-card .title{font-weight:600;color:#0f172a}
.related-card .meta{color:var(--text-gray);font-size:.9rem}
.related-card .right-bar{position:absolute;right:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#06b6d4,#3b82f6);border-top-right-radius:10px;border-bottom-right-radius:10px}
.related-card .arrow{margin-left:12px;color:var(--text-gray)}
.related-card:hover{transform:translateX(6px);box-shadow:0 10px 30px rgba(2,6,23,0.06)}

/* Duplicate footer block removed: consolidated into footer-overrides.css */

/* Accessibility focus states */
.gate-card:focus-within,.gate-card:focus,.related-card:focus{outline:3px solid rgba(6,182,212,0.18);outline-offset:3px}

/* === Responsive breakpoints === */
@media (min-width:768px){
  .gate-grid{grid-template-columns:repeat(2,1fr)}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .footer-columns{grid-template-columns:1fr 1fr;align-items:start;padding:40px 0px}
  .hero-cards-grid{grid-template-columns:repeat(2,1fr)}
}

@media (min-width:1024px){
  .gate-grid{grid-template-columns:repeat(4,1fr)}
  .hero-cards-grid{grid-template-columns:repeat(3,1fr)}
  .footer-columns{grid-template-columns:1fr 2fr}
  .related-grid{grid-template-columns:repeat(3,1fr)}
  .mega-menu{top:120px}
}

/* small adjustments for very small devices */
@media (max-width:420px){
  .gate-card .icon{width:40px;height:40px;flex-basis:40px}
  .gate-card{padding:12px}
  .related-card{padding:12px}
}

/* Strong override to ensure nav underline is visible and not clipped
   - use header.fixed selector to be more specific than earlier rules
   - show underline on hover or when .active is present
*/
header .nav-item { padding-bottom: 18px; }
header .nav-item .nav-underline {
  /* display: none !important; */
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0px !important;
  height: 4px !important;
  background-color: var(--brand-cyan) !important;
  z-index: 2000 !important;
}
header .nav-item:hover .nav-underline,
header .nav-item.active .nav-underline {
  display: block !important;
}
header span.nav-item[disabled]:hover .nav-underline,
header span.nav-item[disabled].active .nav-underline {
  display: none !important;
}

/* also ensure header container doesn't clip the underline */
header, .site-header { overflow: visible !important; }

/* Extra force: in case other CSS sets visibility hidden, force opacity and pointer-events */
header .nav-item .nav-underline { opacity: 1 !important; pointer-events: auto !important; }
header .nav-item:hover .nav-underline,
header .nav-item.active .nav-underline { opacity: 1 !important; }

/* If utilities are still hiding underline (eg. utility classes), force using a pseudo-element fallback */
header .nav-item[data-menu] {
  position: relative !important;
}

header a.nav-item {
  &:hover,
  &.active {
    p {
    color: var(--brand-cyan) !important;
    }
  }
}
/* header.fixed .nav-item[data-menu]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  height: 4px;
  background: transparent;
  transition: background-color .12s ease;
  pointer-events: none;
  z-index: 1900;
} */
/* header.fixed .nav-item[data-menu]:hover::after,
header.fixed .nav-item[data-menu].active::after {
  background: var(--brand-cyan) !important;
} */

/* DEBUG OVERRIDE removed — underline now controlled by hover/active rules above */

/* ===== HTML-specific header overrides (for index.html edits) ===== */
/* Ensure header height / nav top applied via utility classes are enforced */
.h-\[140px\] { height: 140px !important; }
.top-\[96px\] { top: 96px !important; }

/* Nav underline: default hidden, show on hover or when .active is present on .nav-item */
.nav-item .nav-underline { display: none !important; z-index: 1300; height: 3px; background-color: var(--brand-cyan); left: 0; right: 0; bottom: -6px; }
.nav-item:hover .nav-underline,
.nav-item.active .nav-underline { display: block !important; }

/* make header overflow visible so underline is not clipped */
header.fixed, header[role="banner"], .site-header { overflow: visible !important; }

/* Make sure hero overrides remain consistent with HTML layout */
.hero-section { padding-bottom: 566px !important; }


/* Header / Navigation */
.site-header{position:fixed;top:0;left:0;right:0;height:140px;backdrop-filter:blur(7px);background:rgba(255,255,255,0.9);border-bottom:1px solid var(--border-main);z-index:50;width:100%}
.header-inner{max-width:1512px;margin:0 auto;position:relative;height:100%;padding:0 1rem}
.logo-wrap{position:absolute;left:39px;top:31px;width:351px;height:57px}
.nav-wrap{position:absolute;right:41px;top:96px;display:flex;gap:30px;align-items:center}
.nav-item{text-decoration:none}
.nav-item-inner{display:block;text-align:center}
.nav-item-title{font-weight:700;font-size:18px; color: var(--text-primary);margin:0;letter-spacing:0.9px}
.nav-underline{background:var(--brand-cyan);height:3px;margin-top:6px;width:100%;margin-left:auto;margin-right:auto;}
.nav-item:hover .nav-underline,.nav-item.active .nav-underline{display:block}
.nav-w-185{width:185px}
.nav-w-159{width:159px}
.nav-w-100{width:100px}
.nav-w-190{width:190px}
.nav-w-76{width:76px}
.tool-area{position:absolute;right:41px;top:14px;display:flex;align-items:center;gap:1rem}
.tool-link{display:flex;align-items:center;gap:4px;text-decoration:none}
.search-button{ background: var(--bg-white);border:1px solid var(--border-main);border-radius:4px;height:40px;padding:0 16px;display:flex;align-items:center;text-decoration:none}
.search-input{ background: var(--bg-white);border:1px solid var(--border-main);border-radius:6px;height:40px;padding:0 12px;width:240px;font-size: var(--font-caption);outline:none}
.language-dropdown{position:relative}
.language-btn{background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:6px}
.language-btn p{font-size:13px; color: var(--text-primary);margin:0}
.language-dropdown-menu{display:none;position:absolute;right:0;top:100%;background:#fff;border:1px solid var(--border-light);border-radius:6px;padding:8px}
.language-dropdown-menu.active{display:block}
.language-arrow{transition:transform .18s ease}
.language-arrow.active{transform:rotate(180deg)}

/* container helper */
.container-full{max-width:1512px;margin:0 auto;padding:2rem 1rem}

/* utility */
.no-underline{text-decoration:none}

/* Global helper: target elements that still have inline `text-decoration: none`
   and ensure they render consistently while we migrate HTML to use
   the `.no-underline` utility class. This avoids editing many files at once
   and is a safe incremental step. */
[style*="text-decoration: none"] {
  text-decoration: none !important;
}

/* hero adjustments extracted from inline styles */
.hero-section{position:relative;margin-bottom:200px;padding-bottom:420px}
.hero-bg-container{position:absolute;left:0;right:0;bottom:0;top:300px;z-index:0}

/* buttons/links */
.btn-no-decor{text-decoration:none}
.footer-cta{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:400px;border:2px solid var(--brand-cyan);border-radius:14px;padding:.75rem 1.5rem; background: var(--bg-white);text-decoration:none}
/* === Gate / Feature area styles === */
.gate-grid{display:grid;grid-template-columns:1fr;gap:16px;margin:2rem 0;}
.gate-card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 2px 8px rgba(2,6,23,0.04);display:flex;align-items:center;position:relative;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.gate-card .icon{width:48px;height:48px;flex:0 0 48px;margin-right:12px;display:inline-flex;align-items:center;justify-content:center;background:#f3f4f6;border-radius:8px}
.gate-card .title{font-weight:700;color:#0f172a}
.gate-card .desc{color:var(--text-gray);font-size:.95rem}
.gate-card .badge{position:absolute;top:12px;right:12px;background:#ef4444;color:#fff;border-radius:999px;padding:6px 10px;font-size:12px}
.gate-card:hover{transform:translateY(-6px);box-shadow:0 10px 30px rgba(2,6,23,0.08)}

/* === Related links / cards === */
.related-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:2rem 0}
.related-card{background:#fff;border-radius:10px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 6px rgba(2,6,23,0.04);position:relative;overflow:hidden;transition:transform .12s ease,box-shadow .12s ease}
.related-card .left{display:flex;align-items:center;gap:12px}
.related-card .title{font-weight:600;color:#0f172a}
.related-card .meta{color:var(--text-gray);font-size:.9rem}
.related-card .right-bar{position:absolute;right:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#06b6d4,#3b82f6);border-top-right-radius:10px;border-bottom-right-radius:10px}
.related-card .arrow{margin-left:12px;color:var(--text-gray)}
.related-card:hover{transform:translateX(6px);box-shadow:0 10px 30px rgba(2,6,23,0.06)}

/* Duplicate footer block removed: consolidated into footer-overrides.css */

/* Accessibility focus states */
.gate-card:focus-within,.gate-card:focus,.related-card:focus{outline:3px solid rgba(6,182,212,0.18);outline-offset:3px}

/* === Responsive breakpoints === */
@media (min-width:768px){
  .gate-grid{grid-template-columns:repeat(2,1fr)}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .footer-columns{grid-template-columns:1fr 1fr;align-items:start;padding:40px 0px}
  .hero-cards-grid{grid-template-columns:repeat(2,1fr)}
}

@media (min-width:1024px){
  .gate-grid{grid-template-columns:repeat(4,1fr)}
  .hero-cards-grid{grid-template-columns:repeat(3,1fr)}
  .footer-columns{grid-template-columns:1fr 2fr}
  .related-grid{grid-template-columns:repeat(3,1fr)}
  /* ensure mega menu sits below header on wide screens */
  .mega-menu{top:120px}
}

/* small adjustments for very small devices */
@media (max-width:420px){
  .gate-card .icon{width:40px;height:40px;flex-basis:40px}
  .gate-card{padding:12px}
  .related-card{padding:12px}
}
/* Component: main-content
   Replaces per-page Tailwind-like utility classes for the <main> element.
   Usage: <main class="main-content"> ... </main>
   Padding-top standardized to ~180px across all pages and background color unified.
*/
.main-content {
  padding-top: 126px;
  @media (max-height: 800px) {
    padding-top: 115px;
  }
}
/* Gate menu component - Figma: ゲートメニュー見出し */
.gate-menu .gate-menu-item { 

}
.gate-menu-link {
  display: block;
  background: #ffffff;
  border: 2px solid var(--brand-cyan);
  border-radius: 12px;
  padding: 40px;
  position: relative; /* allow right bar absolute positioning */
  padding-right: 64px; /* room for the decorative right bar */
  text-align: center;
  transition: box-shadow 300ms ease, border-color 300ms ease, transform 300ms ease;
  color: inherit;
}
.gate-menu-link:hover,
.gate-menu-link:focus {
  border-color: #0090cc;
  box-shadow: 0 8px 24px rgba(0,144,204,0.15);
  transform: translateY(-4px);
}
.gate-menu-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,144,204,0.12);
}
.gate-menu-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
  border-radius: 50%;
  font-size: 32px;
}

/* Decorative right cyan bar (Figma: small rounded bar on right edge) */
.gate-menu-rightbar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28px; /* slightly wider for visual balance */
  background: #0090cc;
  box-shadow: none;
}

/* arrow image inside the right bar: center and force white color for existing SVG */
.gate-menu-rightbar img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  display: block;
}

/* Large card layout: icon floats to the right, content left-aligned */
.gate-menu-item--large .gate-menu-link {
  display: block;
  position: relative;
  text-align: left;
  padding: 24px 50px 24px 24px; /* extra left padding for balance */
overflow: hidden;
}

.gate-menu-item--large .gate-menu-icon {
  position: absolute;
  right: 64px; /* sits left of the cyan right bar */
  top: 16px; /* pinned to top area like Figma */
  width: 80px;
  height: 80px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f6ff; /* subtle circle background matching design */
  border-radius: 50%;
}

/* Title size differences per Figma */
.gate-menu-item--large .gate-menu-title {
  font-size: 22px; /* Figma: large card title */
  font-weight: 700;
  margin-top: 8px;
}
.gate-menu-item--small .gate-menu-title {
  font-size: 16px; /* small card title */
}

/* Ensure small cards remain centered */
.gate-menu-item--small .gate-menu-link { text-align: center; padding-right: 36px;  overflow: hidden; }

.gate-heading h2 {
  margin: 0 0 16px 0;
  font-weight: 500;
  color: #1e2380;
}
.gate-menu-title {
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
}
.gate-menu-desc {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
@media (min-width: 1024px) {
  .gate-menu-link { padding: 28px 10px; }
}

    /* 外部リンク（Figma 準拠） */
    /* Related links button group (新規: Figma 準拠) */
    .related-links-block { margin-top: 12px; }
    .related-links-heading { display:flex; align-items:center; gap:12px; }
    .related-links-heading img { display:block; }

    .related-links-list { display:grid; 
      /* grid-template-columns:1fr;  */
      gap:18px; }
    @media (min-width: 1024px) {
      /* .related-links-list { grid-template-columns: repeat(3, 1fr); } */
    }

    .related-link-btn {
      display:flex;
      align-items:center;
      justify-content:center;
      gap:12px;
      background: transparent;
      border: 2px solid #0090cc;
      border-radius: 14px;
      padding: 12px 40px 12px 20px;
      min-height: 60px;
      text-decoration: none;
      color: var(--text-primary);
      transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
      position: relative;
      background: var(--bg-white);
      @media (max-width: 1200px) {
        padding: 8px 30px 8px 12px;
      }
      @media (max-width: 767px) {
               border-radius: 8px;
        padding: 8px 27px 8px 10px;
        min-height: auto;
      }
      .external-link__cta {
        margin-left: auto;
        margin-right: -20px;
      }
      &.direction-column{
        flex-direction: column;
      }
    }

    a.related-link-btn:hover,
    a.related-link-btn:focus {
      background: #f0f9ff;
      box-shadow: 0 8px 24px rgba(0,144,204,0.12);
      transform: translateY(-2px);
      outline: none;
      color: var(--brand-cyan);
    }
    span.related-link-btn[disabled]:hover,
    span.related-link-btn[disabled]:focus {
    }

    .related-link-btn:focus-visible { box-shadow: 0 0 0 4px rgba(0,144,204,0.12); }

    .related-link-btn__label {
       font-size: 18px;
       @media (max-width: 1200px) {
          font-size: 16px;
          font-weight: 500;
       }
    }
    .related-link-btn__arrow-wrap { display:flex; align-items:center; justify-content:center; width:28px; height:28px; position: absolute;right: 0;}
    .related-link-btn__icon-wrap { display:flex; align-items:center; justify-content:center; width:28px; height:28px; position: absolute;right: 10px;}

  .related-link-btn__heading {
      font-size: 1.2rem;
      font-weight: bold;
      line-height: 1.2;
      margin-bottom: .5rem;
    }
  .related-link-btn__text {
      font-size: 1rem;
      line-height: 1.4;
      margin-bottom: .5rem;
    }

    .related-link-btn_sub {
      border-bottom: 1px dashed var(--brand-cyan);
      display: flex;
      align-items: center;
      min-height: 4rem;
      &:hover,
      &:focus {
        color: var(--brand-cyan);
      }
    }

    /* 外部リンク（Figma 準拠） */
    .external-link{ display:inline-flex; align-items:center; gap:12px; position:relative; padding-bottom:8px; text-decoration:none; min-width:300px; justify-content: space-between; }
    .external-link__cta{ background:var(--accent-10); border:1px solid var(--accent-50); color:var(--accent-50); padding:6px 12px; border-radius:16px; font-size:14px; display:inline-flex; align-items:center; gap:8px; }
    .external-link__icon{ width:18px; height:auto; display:inline-block; }
    .external-link__underline{ position:absolute; left:0; right:0; bottom:0; border-bottom:2px dotted rgba(136,109,72,0.5); pointer-events:none; }
    .external-link:hover { color:var(--brand-cyan); transition:all .18s ease; }
/* Link utility: 黒字のテキストリンクは hover / focus で brand-cyan になる
   Usage:
     - Prefer: <a class="text-link" href="/path">リンクテキスト</a>
     - Applies to normal, visited and keyboard focus states.
*/
.text-link,
.text-link:link,
.text-link:visited {
  color: #000;
  transition: color .16s ease-in-out, text-decoration-color .16s ease-in-out;
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.text-link:hover,
.text-link:focus,
.text-link:focus-visible {
  color: var(--brand-cyan, var(--brand-cyan, #00bcd4));
  text-decoration-color: currentColor;
  outline: none; /* keep focus-visible for accessibility handled below */
}
.text-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(0,144,204,0.12);
  border-radius: 4px;
}


/* Highlight notice box */
.notice-box {
  background: var(--future-bg);
  border-radius: 12px;
  padding: 40px;
  position: relative;
  @media (max-width: 768px) {
    padding: 20px;
    &.access{
      padding: 20px;
    }
  }
  h3 {
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: bold;
  }
  .white-info {
        background: var(--bg-white);
        border-radius: 9999px;
        padding: 0.5rem 1rem;
        align-items: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: fit-content;
  }
  p {
    font-size: 16px;
    line-height: 1.5;
  }
  .notice-box__illust {
    position: absolute;
    right: 20px;
    top: -80px;
    img {
      display: block;
      max-width: 200px;
      margin-left: auto;
      margin-right: auto;
    }
    @media (max-width: 768px) {
      top: -40px;
      img{
        max-width: 90px;
      }      
    }
  }
}

@media (max-width: 768px) {
  /* .box-wrapper { padding: 16px; } */
  .box-wrapper table td,
  .box-wrapper table th { padding: 12px 8px; }
  #equipment .box-wrapper table th {
    padding: 12px 0 0;
    border-bottom: 0;
  }
  #equipment .box-wrapper table td{
    padding: 6px 0 12px;
  }
}

/* TABLE */
.table-basic {
  border-collapse: collapse;
  width: 100%;
}

.table-basic th,
.table-basic td {
  border-bottom: 1px solid var(--accent-50);
  padding: 4px 0;
}

.table-basic th {
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  display: flex;
  align-items: center;
  span.tooltip-icon {
    font-size: 14px;
    color: var(--text-gray);
    margin-left: 4px;
  }
}

/* Tooltip bubble (black speech bubble) */
.tooltip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  bottom: calc(100% + 8px);
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  /* allow wrapping so height becomes variable when text/font-size increases */
  white-space: normal;
  max-width: 320px; /* restrict width so it wraps into multiple lines when needed */
  word-break: break-word;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2200;
  max-width: 240px;
  height: auto;
}

/* small arrow */
.tooltip[data-tooltip]::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + -4px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.9) transparent transparent transparent;
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 2200;
}

/* show on hover/focus */
.tooltip:hover[data-tooltip],
.tooltip:focus[data-tooltip],
.tooltip:focus-within[data-tooltip] {
  outline: none;
}
.tooltip:hover[data-tooltip]::after,
.tooltip:focus[data-tooltip]::after,
.tooltip:focus-within[data-tooltip]::after,
.tooltip:hover[data-tooltip]::before,
.tooltip:focus[data-tooltip]::before,
.tooltip:focus-within[data-tooltip]::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 高さ調整 */
@media (max-width: 800px) {
  header {
    height: 115px !important;
  }
  .nav_inner {
      top: 72px !important;
    }
  .header_logo {
      img {
        width: 22vw !important;
      }
    }
  .mega-menu{top:115px !important;}
  .nav_inner p {
      margin-bottom: 0;
    }
}

.footer-inner{max-width:1440px;margin:0 auto;padding:3rem 1rem;background:#fff !important}

.footer-copy{text-align:center;color:var(--nav-blue);margin-top:1rem;font-weight:400;font-size:12px;line-height:1.5;}
