:root {
    --primary: #1a365d;
    --accent: #e67e22;
    --bg-light: #fdfcf9;
    --text: #333;
    --line: #06C755;
}

* { box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; color: var(--text); margin: 0; background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }

/* Typography */
h1, h2, h3 { font-family: 'Noto Serif JP', serif; color: var(--primary); }
h2 { font-size: 2rem; position: relative; padding-left: 18px; margin: 50px 0 30px; border: 0; }
h2::before { content: ''; position: absolute; left: 0; top: 0.18em; width: 5px; height: 1.1em; background: var(--accent); border-radius: 3px; }

.no-accent { padding-left: 0; }
.no-accent::before { display: none; }

/* Header & Nav */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 8px 0; }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav meta";
  align-items: center;
  gap: 14px;
  position: relative;
}

.brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-width: 240px; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 40px; width: auto; }

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-title { font-weight: 900; color: var(--primary); font-size: 1.05rem; line-height: 1.15; letter-spacing: 0.01em; }
.brand-operator { font-size: 0.78rem; color: #546072; line-height: 1.2; }
.brand-operator a { color: inherit; text-decoration: none; }
.brand-operator a:hover { text-decoration: underline; }

.main-nav { grid-area: nav; min-width: 0; justify-self: center; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* wrap by item, not inside item */
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 8px;
  white-space: nowrap;
  word-break: keep-all;
}
.main-nav a.is-active { color: var(--accent); }
.nav-cta a { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }

.header-meta { grid-area: meta; display: grid; gap: 6px; justify-self: end; max-width: 360px; }
.meta-row { display: grid; grid-template-columns: 4.5em 1fr; column-gap: 10px; align-items: start; }
.meta-key { font-size: 0.82rem; color: #546072; font-weight: 800; padding-top: 2px; }
.meta-val { font-size: 0.86rem; color: #111; line-height: 1.25; }
.header-meta .header-tel { font-size: 1.05rem; font-weight: 900; color: var(--primary); text-decoration: none; }

.hamburger-menu {
  display: none;
  background: #fff;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 999px;
  position: absolute;
  right: 18px;
  top: 18px;
}
.hamburger-menu span { display: block; height: 2px; background: var(--primary); margin-bottom: 5px; transition: 0.3s; width: 18px; }
.hamburger-menu span:last-child { margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { background: #f7f7f7; border-bottom: 1px solid #eee; }
.breadcrumb ol { display: flex; gap: 10px; list-style: none; padding: 12px 0; margin: 0; font-size: 0.85rem; }
.breadcrumb li::after { content: '›'; margin-left: 10px; color: #999; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Hero (background image + overlay) */
.hero { position: relative; padding: 72px 0; color: #fff; background: #0f172a; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/auto_hero_bg.png') center / cover no-repeat;
  opacity: 0.28;
  transform: scale(1.02);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.45), rgba(26,54,93,0.32));
}
.hero .container { position: relative; z-index: 1; }

.hero h1 { color: #fff; font-size: 2.4rem; margin: 0 0 16px; line-height: 1.2; }
.hero span { color: var(--accent); }

.hero-grid { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 28px; align-items: center; }
.hero-copy { text-align: left; }
.hero-media { justify-self: end; }
.hero-media img { width: 100%; max-width: 380px; height: auto; max-height: 260px; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,0.25); object-fit: cover; display: block; }
.hero-cta { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }

.hero .badge-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.badge { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 6px 10px; border-radius: 999px; font-size: 0.85rem; }

.hero-note { margin: 14px 0 0; font-size: 0.92rem; opacity: 0.92; }

/* Common Layout */
.section-padding { padding: 80px 0; }
.snuggle-box { background: var(--bg-light); padding: 40px; border-radius: 10px; margin-bottom: 40px; border: 1px solid #eee; }
.lead { font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 800; line-height: 1.2; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid rgba(26,54,93,0.35); }
.btn-line { background: var(--line); color: #fff; border: 1px solid rgba(0,0,0,0.06); }

/* Content blocks */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.card h3 { margin-top: 0; }
.muted { color: #666; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 26px; position: relative; margin: 8px 0; line-height: 1.6; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0.15em; color: var(--accent); font-weight: 900; }

.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px 18px 18px 54px; margin: 14px 0; position: relative; }
.step-list li::before { content: attr(data-step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; }
.form-legal { font-size: 0.85rem; text-align: center; margin: 0 0 16px; }
.contact-big a { font-size: 1.6rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.small { font-size: 0.85rem; color: #666; }
.notice { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.notice-success { background: #e7f7ee; border: 1px solid #bde9cf; }
.notice-error { background: #fff0f0; border: 1px solid #f2b7b7; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Contact Form */
.contact-area { background: #f4f4f4; padding: 80px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 800; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 10px; }
.submit-btn { background: var(--accent); color: #fff; border: none; padding: 18px 26px; font-size: 1.15rem; cursor: pointer; display: block; margin: 0 auto; border-radius: 10px; font-weight: 900; }

/* Column (attachment-like box) */
.column-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.column-empty-title {
  font-family: 'Noto Serif JP', serif;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.4rem;
  margin: 0 0 10px;
}
.column-empty-text {
  color: #546072;
  margin: 0 0 18px;
  line-height: 1.6;
}
.column-actions { margin-top: 18px; }
.column-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.column-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 10px;
}
.column-item:last-child { border-bottom: none; padding-bottom: 0; }
.column-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
}
.column-link:hover { text-decoration: underline; }
.column-date { color: #546072; font-size: 0.9rem; font-weight: 800; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 50px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.footer-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 22px; }
.footer-title { color: #fff; border: none; padding: 0; margin: 0 0 10px; }
.footer-title a { color: inherit; text-decoration: none; }
.footer-title a:hover { text-decoration: underline; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.footer-copy { text-align: center; margin-top: 28px; font-size: 0.85rem; opacity: 0.8; }
.map-embed iframe { width: 100%; height: 260px; border-radius: 12px; }

/* Floating CV */
.floating-cv { position: fixed; bottom: 0; width: 100%; display: flex; z-index: 2000; opacity: 0; transform: translateY(100%); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.floating-cv.is-visible { opacity: 1; transform: translateY(0); }
.floating-cv a { flex: 1; text-align: center; padding: 18px 10px; color: #fff; text-decoration: none; font-weight: 900; }
.cv-form { background: var(--accent); }
.cv-tel { background: #00529b; }
.cv-line { background: var(--line); }

/* Animations */
.fade-in, .slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible, .slide-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slideshow */
.slideshow { position: relative; width: 100%; height: 300px; overflow: hidden; margin: 40px 0; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.slideshow .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.slideshow .slide.active { opacity: 1; }
.slideshow .slide-content { background: rgba(0,0,0,0.5); padding: 20px 40px; border-radius: 8px; text-align: center; }

/* Modal (Exit intent) */
.modal { position: fixed; inset: 0; display: none; z-index: 3000; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal__panel { position: relative; max-width: 720px; margin: 10vh auto 0; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.modal__close { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid #eee; background: #fff; font-size: 1.6rem; cursor: pointer; }
.modal__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.modal__note { font-size: 0.85rem; color: #666; margin-top: 14px; line-height: 1.35; }

/* FAQ */
.faq { margin-top: 22px; }
.faq details { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 900; color: var(--primary); }
.faq p { margin: 10px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.simple-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.simple-table th, .simple-table td { padding: 14px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
.simple-table th { background: #f7f7f7; color: #1a365d; font-weight: 900; text-align: left; }
.simple-table tr:last-child td { border-bottom: none; }
.simple-table td { color: #222; }

/* Responsive: prevent header overlap */
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand meta"
      "nav nav";
    align-items: start;
  }
  .main-nav { justify-self: start; width: 100%; }
  .main-nav ul { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; justify-self: start; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .simple-table { min-width: 640px; }

  .hamburger-menu { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    border-top: 1px solid #eee;
    z-index: 1100;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .main-nav a { display: block; width: 100%; padding: 12px 18px; font-size: 1rem; }
  .nav-cta a { margin: 10px 18px; width: calc(100% - 36px); text-align: center; }

  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "meta";
  }
  .header-meta { justify-self: start; width: 100%; }
  .meta-row { grid-template-columns: 4.2em 1fr; }

  .column-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .column-date { white-space: normal; }
}

.blog-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-table th,
.blog-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.blog-table th {
    background-color: #f2f2f2;
}

.blog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.blog-row:hover {
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clickable-row:hover {
    background-color: #f9f9f9;
}
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-list {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.blog-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    background-color: #fff;
    transition: background-color 0.2s;
    color: inherit;
}

.blog-list-item:hover {
    background-color: #f5f5f5;
}

.blog-category {
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
}

.blog-title {
    flex: 1;
    font-weight: bold;
    padding: 0 16px;
}

.blog-date {
    font-size: 0.85rem;
    color: #666;
    min-width: 110px;
    text-align: right;
}

.blog-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.blog-list-header h2 {
    margin: 0;
}

.blog-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.blog-search-form input[type="text"],
.blog-search-form select,
.blog-search-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.blog-search-form button {
    background: #4caf50;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.blog-search-form button:hover {
    background: #45a047;
}

.sp-only {
  display: none;
}

/* Step4 shared skeleton patch */
.site-network-strip{background:#eef3fb;border-bottom:1px solid rgba(20,47,102,.12);font-size:.92rem;}
.site-network-strip__inner{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;padding:.55rem 0;}
.site-network-strip__label{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;background:#d8e5fb;color:#163a7b;font-weight:700;}
.site-network-strip a{color:#163a7b;text-decoration:none;font-weight:600;}
.site-network-strip a:hover{text-decoration:underline;}
.brand-operator--label{font-weight:700;color:#1f4d9a;}
@media (max-width: 768px){.site-network-strip__inner{gap:.4rem .6rem;padding:.5rem 0;}.site-network-strip__label{font-size:.82rem;}}
