/* ============================================================
   株式会社セミーヤ コーポレートサイト 共通スタイル
   ============================================================ */

:root {
  --c-primary: #1b3a5f;
  --c-primary-dark: #142c49;
  --c-link: #175aa3;
  --c-text: #1f2933;
  --c-muted: #5c6b7a;
  --c-border: #dbe1e8;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f6f9;
  --c-bg-navy: #142c49;
  --c-danger: #b3261e;
  --c-ok-bg: #eef7ee;
  --c-ok-border: #3d7a44;
  --c-ng-bg: #fbeeed;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: anywhere;
}

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

a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.85; }

:focus-visible {
  outline: 3px solid #2f74c0;
  outline-offset: 2px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  margin: 0;
  line-height: 1.3;
}
.site-logo a {
  text-decoration: none;
  color: var(--c-primary);
  display: inline-block;
}
.logo-ja {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-muted);
}

.menu-toggle { display: none; }

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
}
.nav-list > li > a:hover { color: var(--c-primary); opacity: 1; }
.nav-list > li.is-active > a { color: var(--c-primary); border-bottom: 2px solid var(--c-primary); }

.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 8px 20px rgba(20, 44, 73, 0.12);
  border-radius: 4px;
  padding: 6px 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 50;
}
.has-sub:hover .nav-sub,
.has-sub:focus-within .nav-sub {
  visibility: visible;
  opacity: 1;
}
.nav-sub a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--c-text);
  text-decoration: none;
}
.nav-sub a:hover { background: var(--c-bg-alt); color: var(--c-primary); opacity: 1; }

.nav-cta > a {
  background: var(--c-primary);
  color: #fff !important;
  border-radius: 4px;
  padding: 10px 20px;
  margin-left: 8px;
}
.nav-cta > a:hover { background: var(--c-primary-dark); }
.nav-list > li.nav-cta.is-active > a { border-bottom: none; }

/* ------------------------------------------------------------
   ページヘッダー（下層）・パンくず
   ------------------------------------------------------------ */
.page-head {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  padding: 34px 0 30px;
}
.page-head h1 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.4;
  color: var(--c-primary-dark);
  letter-spacing: 0.03em;
}
.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-muted);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--c-muted);
}
.breadcrumb a { color: var(--c-muted); }

/* ------------------------------------------------------------
   セクション共通
   ------------------------------------------------------------ */
.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-alt); }

.sec-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-link);
  text-transform: uppercase;
}
.section h2, .content-block h2 {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.45;
  color: var(--c-primary-dark);
  letter-spacing: 0.02em;
}
.section h3, .content-block h3 {
  margin: 32px 0 12px;
  font-size: 19px;
  color: var(--c-primary-dark);
}
.section h3:first-child { margin-top: 0; }

.lead { font-size: 17px; }

.sec-more { margin-top: 28px; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  border-radius: 3px;
  padding: 2px 10px;
  vertical-align: middle;
  margin-left: 10px;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
   ヒーロー（TOP）
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, #f2f5fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 84px 0 76px;
}
.hero-en {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--c-link);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: 38px;
  line-height: 1.5;
  color: var(--c-primary-dark);
  letter-spacing: 0.03em;
}
.hero-lead {
  max-width: 780px;
  font-size: 17px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   ボタン
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--c-primary);
  border-radius: 4px;
  padding: 13px 34px;
  cursor: pointer;
  line-height: 1.5;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); opacity: 1; }
.btn-outline {
  background: #fff;
  color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-bg-alt); color: var(--c-primary-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.text-link { font-weight: 600; }

/* ------------------------------------------------------------
   カード・グリッド
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 0 0 6px; font-size: 21px; color: var(--c-primary-dark); }
.card .card-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-link);
  margin: 0 0 14px;
}
.card .card-price {
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-border);
  font-size: 14px;
  color: var(--c-muted);
}
.card .card-price strong { display: block; font-size: 19px; color: var(--c-text); }
.card .card-more { margin-top: auto; }

.chip-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list li {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-dark);
  padding: 7px 18px;
}
.section-alt .chip-list li { background: #fff; }
.section .chip-list li { background: var(--c-bg-alt); }

/* ------------------------------------------------------------
   リスト
   ------------------------------------------------------------ */
.check-list,
.feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li,
.feat-list li {
  position: relative;
  padding: 6px 0 6px 30px;
}
.check-list li::before,
.feat-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 6px;
  color: var(--c-primary);
  font-weight: 700;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px 24px;
}

.plain-list {
  margin: 0;
  padding-left: 1.4em;
}
.plain-list li { padding: 3px 0; }

/* ------------------------------------------------------------
   テーブル
   ------------------------------------------------------------ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.info-table th,
.info-table td {
  border: 1px solid var(--c-border);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.info-table th {
  background: var(--c-bg-alt);
  font-weight: 700;
  width: 220px;
  color: var(--c-primary-dark);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.price-table th,
.price-table td {
  border: 1px solid var(--c-border);
  padding: 14px 18px;
  text-align: left;
}
.price-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}
.price-table .row-total th,
.price-table .row-total td {
  background: var(--c-bg-alt);
  font-weight: 700;
}
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }

/* ------------------------------------------------------------
   導入の流れ
   ------------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 30px 66px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 52px;
  bottom: 6px;
  width: 2px;
  background: var(--c-border);
}
.steps h3 { margin: 8px 0 6px; font-size: 18px; }
.steps p { color: var(--c-muted); font-size: 15px; }

.steps-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  counter-reset: mstep;
}
.steps-mini li {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 20px;
  counter-increment: mstep;
  font-weight: 600;
}
.steps-mini li::before {
  content: "STEP " counter(mstep);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-link);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--c-primary-dark);
  padding-left: 34px;
  position: relative;
}
.faq-item h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--c-primary);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item .faq-a {
  margin: 0;
  padding-left: 34px;
  position: relative;
}
.faq-item .faq-a::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--c-bg-alt);
  color: var(--c-primary-dark);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   お問い合わせ・フォーム
   ------------------------------------------------------------ */
.contact-direct {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.contact-direct p { margin: 0; }
.contact-direct .tel {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary-dark);
}
.contact-direct a { text-decoration: none; color: inherit; }
.contact-direct .mail a { color: var(--c-link); text-decoration: underline; }

.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.req, .opt {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: middle;
}
.req { background: var(--c-danger); color: #fff; }
.opt { background: #e3e8ee; color: var(--c-muted); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  border: 1px solid #aab4bf;
  border-radius: 4px;
  padding: 12px 14px;
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid #2f74c0;
  outline-offset: 1px;
}
.form-note { font-size: 14px; color: var(--c-muted); }

.form-consent { margin: 30px 0; }
.form-consent label { font-weight: 600; }
.form-consent input { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }

.form-msg {
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0;
}
.form-msg-success { background: var(--c-ok-bg); border: 1px solid var(--c-ok-border); }
.form-msg-error { background: var(--c-ng-bg); border: 1px solid var(--c-danger); }

.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   CTA帯
   ------------------------------------------------------------ */
.cta-band {
  background: var(--c-bg-navy);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #d4deea; margin-bottom: 26px; }
.cta-band .cta-tel {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}
.cta-band .btn {
  background: #fff;
  color: var(--c-primary-dark);
  border-color: #fff;
}
.cta-band .btn:hover { background: #e8eef5; }
.cta-band .cta-lines {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-band .cta-mail a { color: #d4deea; }

/* ------------------------------------------------------------
   画面キャプチャ用プレースホルダ
   ------------------------------------------------------------ */
.screens-note {
  background: var(--c-bg-alt);
  border: 1px dashed #9fb0c1;
  border-radius: 6px;
  padding: 26px 28px;
  color: var(--c-muted);
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.screens-grid figure {
  margin: 0;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.screens-grid figcaption {
  font-size: 14px;
  color: var(--c-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--c-border);
}

/* ------------------------------------------------------------
   コンテンツブロック（規約・ポリシー等）
   ------------------------------------------------------------ */
.content-block { max-width: 860px; }
.content-block h2 { margin-top: 44px; font-size: 22px; }
.content-block h2:first-child { margin-top: 0; }
.content-block .doc-date { color: var(--c-muted); font-size: 14px; }

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.site-footer {
  background: var(--c-bg-navy);
  color: #d4deea;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 52px;
  padding-bottom: 44px;
}
.footer-name { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.footer-address { font-size: 14px; margin: 0 0 8px; }
.footer-contact { font-size: 14px; margin: 0; }
.site-footer a { color: #d4deea; }
.footer-nav { display: flex; gap: 48px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { padding: 4px 0; font-size: 14px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 0;
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-primary-dark);
    cursor: pointer;
  }
  .menu-toggle-bar,
  .menu-toggle-bar::before,
  .menu-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-primary-dark);
    position: relative;
    transition: transform 0.2s;
  }
  .menu-toggle-bar::before,
  .menu-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .menu-toggle-bar::before { top: -6px; }
  .menu-toggle-bar::after { top: 6px; }
  .menu-toggle.is-open .menu-toggle-bar { background: transparent; }
  .menu-toggle.is-open .menu-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .menu-toggle.is-open .menu-toggle-bar::after { top: 0; transform: rotate(-45deg); }

  .global-nav {
    display: none;
    width: 100%;
  }
  .global-nav.is-open { display: block; }
  .nav-list {
    display: block;
    border-top: 1px solid var(--c-border);
    margin-top: 4px;
    padding: 8px 0 14px;
  }
  .nav-list > li > a {
    display: block;
    padding: 12px 6px;
    font-size: 16px;
  }
  .nav-list > li.is-active > a { border-bottom: none; border-left: 3px solid var(--c-primary); padding-left: 12px; }
  .has-sub > a::after { display: none; }
  .nav-sub {
    position: static;
    visibility: visible;
    opacity: 1;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 18px;
  }
  .nav-sub a { padding: 9px 6px; font-size: 15px; color: var(--c-muted); }
  .nav-cta > a { display: block; text-align: center; margin: 8px 6px 0; }

  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 22px; }
  .page-head h1 { font-size: 24px; }
  .footer-nav { gap: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 10px 14px;
  }
  .info-table tr { display: block; border: 1px solid var(--c-border); border-bottom: none; }
  .info-table tr:last-child { border-bottom: 1px solid var(--c-border); }
  .info-table th { border-bottom: none; }
  .info-table td { border-top: none; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .steps > li { padding-left: 56px; }
  .steps > li::before { width: 40px; height: 40px; font-size: 14px; }
  .steps > li:not(:last-child)::after { left: 19px; }
  .faq-item { padding: 20px; }
}

/* ------------------------------------------------------------
   印刷
   ------------------------------------------------------------ */
@media print {
  .menu-toggle, .global-nav, .cta-band, .skip-link, .footer-nav { display: none !important; }
  body { color: #000; }
  .hero, .page-head, .section-alt { background: #fff; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
