:root {
  color-scheme: light;
  --navy: #071828;
  --ink: #172b41;
  --muted: #405469;
  --accent: #00645d;
  --line: #d6e4e8;
  --pale: #edf5f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 1rem/1.85 "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #d07527; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.42; letter-spacing: .025em; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.65rem); }
h3 { font-size: 1.22rem; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; line-height: 1.3; font-weight: 800; text-decoration: none; }
.brand small { display: block; color: var(--accent); margin-top: .25rem; letter-spacing: .15em; font-size: .75rem; }
.mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; background: var(--navy); color: white; border-radius: 12px 2px 12px 2px; font: 700 1.55rem/1 Georgia, serif; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 2.2rem); }
.site-header nav a { font-size: .875rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .text-link:hover { text-decoration: underline; }
.button { display: inline-block; background: var(--accent); color: white; padding: .75rem 1.45rem; border-radius: .35rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #004f49; color: white; }
.button-small { padding: .5rem 1rem; }
.hero { background: #071828; color: #f4f9ff; padding-block: clamp(3rem, 7vw, 7rem); overflow: hidden; }
.hero .eyebrow { color: #8de5db; }
.hero .button { background: #a2eee1; color: #071828; }
.hero .button:hover { background: #cff9f0; }
.hero-grid, .split { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.hero-grid { grid-template-columns: 1.04fr 1fr; }
.eyebrow { margin-bottom: .85rem; color: var(--accent); font-size: .875rem; font-weight: 750; letter-spacing: .10em; }
h1 { font-size: clamp(1.9rem, 4.15vw, 3.8rem); font-weight: 800; }
.lead { margin-block: 1.4rem 1.6rem; max-width: 29em; color: #c1d1df; }
.hero-image { overflow: hidden; border-radius: .35rem; background: #091c2b; border: 1px solid #244052; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.section, .migration, .contact { padding-block: clamp(3.25rem, 7vw, 6.7rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.service-grid article { padding: clamp(1.2rem, 2.7vw, 2.1rem); border: 1px solid var(--line); border-radius: .55rem; }
.service-tag { display: inline-block; margin-bottom: 1.1rem; padding: .2rem .65rem; border-radius: .25rem; background: var(--pale); color: var(--accent); font-weight: 750; font-size: .875rem; }
.service-grid p, .split p:not(.eyebrow) { margin-top: .8rem; color: var(--muted); }
.text-link { display: inline-block; margin-top: .8rem; color: var(--accent); font-weight: 700; text-underline-offset: .25em; }
.migration { background: var(--pale); }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { padding: .9rem 0 .9rem 1.7rem; border-bottom: 1px solid #b9d4d6; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.contact { background: var(--navy); color: white; }
.contact .split p { color: #d7e7ed; }
.button-light { background: white; color: var(--navy); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; padding-block: .85rem; }
  .site-header nav { flex-wrap: wrap; gap: .55rem 1rem; }
  .hero-grid, .split, .service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* コラム */
.column-banner { background: var(--pale); padding-block: clamp(2.6rem, 6vw, 5rem); }
.column-banner p { max-width: 45rem; margin-top: .7rem; }
.column-categories { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.3rem 1.65rem; }
.column-categories a { display: inline-block; background: white; color: var(--accent); border: 1px solid var(--line); border-radius: .35rem; padding: .35rem .75rem; }
.column-index { padding-block: 1.5rem 4rem; }
.column-group { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.column-group h2 { font-size: clamp(1.35rem, 2.8vw, 2rem); }
.column-group ul { padding: 0; margin: .65rem 0 0; list-style: none; }
.column-group li { padding-block: .85rem; border-bottom: 1px solid var(--line); }
.column-group li a { color: var(--accent); font-size: 1.1rem; font-weight: 750; text-underline-offset: .22em; }
.column-group li p { max-width: 52rem; margin-top: .3rem; color: var(--muted); }
.column-article { max-width: 760px; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.column-article h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.column-date { color: var(--muted); margin-top: 1rem; font-size: .875rem; }
.column-prose { margin-block: 2rem 1rem; }
.column-prose p { margin-bottom: 1.2rem; }
.column-source { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }

.contact-note { display: block; margin-top: .65rem; color: #d7e7ed; font-size: .875rem; }

/* ===== 2026-11 改修で追加 ===== */
:focus-visible { outline: 3px solid #d07527; outline-offset: 3px; }
@media (max-width: 760px) { .hide-sp { display: none; } }
.crumb ol { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.crumb li + li::before { content: "›"; margin: 0 .55em; color: #9ab; }
.crumb a { color: var(--accent); }
.column-banner .crumb { margin-bottom: .6rem; }
.group-desc { color: var(--muted); margin-top: .4rem; font-size: .93rem; }
.col-meta-line { font-size: .8rem; margin-top: .2rem !important; }

/* 記事 */
.column-date { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.column-lead { margin-top: 1.6rem; font-size: 1.05rem; line-height: 2; padding-left: 1rem; border-left: 4px solid var(--accent); }
.summary-box { margin-top: 1.8rem; background: var(--pale); border-radius: .55rem; padding: 1.2rem 1.5rem; }
.summary-box h2 { font-size: 1rem; color: var(--accent); letter-spacing: .06em; }
.summary-box ul { margin: .5rem 0 0; padding-left: 1.3em; }
.summary-box li { margin: .3rem 0; }
.toc { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: .55rem; padding: 1rem 1.5rem; }
.toc-title { font-weight: 800; }
.toc ol { margin: .3rem 0 0; padding-left: 1.4em; }
.toc a { color: var(--accent); text-underline-offset: .2em; }
.column-prose { font-size: 1.02rem; }
.column-prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 3rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); scroll-margin-top: 1rem; }
.column-prose h3 { font-size: 1.12rem; margin: 2rem 0 .7rem; padding-left: .7rem; border-left: 4px solid var(--accent); }
.column-prose ul, .column-prose ol { padding-left: 1.5em; margin: 0 0 1.3rem; }
.column-prose li { margin: .3rem 0; }
.column-prose a { color: var(--accent); text-underline-offset: .2em; }
.column-prose strong { background: linear-gradient(transparent 62%, #c9f1ea 62%); }
.column-prose code { background: #eef3f4; padding: .05rem .35rem; border-radius: .25rem; font-size: .92em; }
.note-box { background: #fff7e8; border: 1px solid #f0d9a8; border-radius: .5rem; padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
.note-box p { margin: 0 0 .5rem; } .note-box p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.column-prose table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .93rem; }
.column-prose th, .column-prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; line-height: 1.7; }
.column-prose th { background: var(--pale); }
.column-source ul { margin: .3rem 0 0; padding-left: 1.2em; }
.source-title { font-weight: 700; }
.column-source a { color: var(--accent); }
.post-author { margin-top: 2.5rem; background: #f6f9f9; border-radius: .55rem; padding: 1.3rem 1.5rem; font-size: .93rem; }
.post-author p + p { margin-top: .5rem; }
.post-author a { color: var(--accent); }
.post-author-title { font-size: .8rem; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.related { padding-bottom: 1rem; }
.related h2 { font-size: 1.35rem; }
.back-link { padding-bottom: 3rem; }

/* FAQ */
.faq-section { background: #fff; }
.faq { margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: .55rem; padding: 1.1rem 1.4rem; }
.faq dt { font-weight: 800; padding-left: 1.9em; position: relative; }
.faq dt::before { content: "Q"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.faq dd { margin: .5rem 0 0; padding-left: 1.9em; position: relative; color: var(--muted); }
.faq dd::before { content: "A"; position: absolute; left: 0; color: #c0761f; font-weight: 900; }
.faq dd p { margin: 0 0 .5rem; } .faq dd p:last-child { margin: 0; }

/* コラムカード */
.col-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 1.8rem; }
.col-card { background: #fff; border: 1px solid var(--line); border-radius: .55rem; padding: 1.2rem 1.3rem; }
.col-card h3 { font-size: 1.02rem; margin: .5rem 0; }
.col-card h3 a { color: var(--accent); text-underline-offset: .2em; }
.col-card p { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.col-meta { display: flex; gap: .8rem; font-size: .78rem !important; }
.col-meta span { background: var(--pale); color: var(--accent); font-weight: 700; padding: 0 .55rem; border-radius: .25rem; }

/* 会社概要 */
.about-split { align-items: start; }
.company-table { width: 100%; margin-top: 2.2rem; border-collapse: collapse; }
.company-table caption { text-align: left; font-weight: 800; font-size: 1.15rem; margin-bottom: .6rem; }
.company-table th, .company-table td { border-top: 1px solid var(--line); padding: .9rem .6rem; text-align: left; vertical-align: top; }
.company-table th { width: 9em; color: var(--accent); font-weight: 700; white-space: nowrap; }
.company-table ul { margin: 0; padding-left: 1.2em; }
.company-table small { color: var(--muted); }

/* お問い合わせ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro p { color: #d7e7ed; margin-top: .9rem; }
.contact .eyebrow { color: #8de5db; }
.contact-alt { margin: 1.6rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; color: #d7e7ed; font-size: .93rem; }
.contact-alt dt { font-weight: 700; color: #8de5db; }
.contact-alt dd { margin: 0; }
.contact-alt a { color: #fff; }
.inquiry-form { background: #fff; color: var(--ink); border-radius: .6rem; padding: clamp(1.3rem, 3vw, 2rem); }
.inquiry-form .field { margin: 0 0 1rem; }
.inquiry-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.inquiry-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.req, .opt { font-size: .7rem; padding: .05rem .45rem; border-radius: .2rem; margin-left: .35rem; vertical-align: .1em; }
.req { background: #b03a2e; color: #fff; } .opt { background: #e2ecee; color: var(--muted); }
.inquiry-form input[type=text], .inquiry-form input[type=email], .inquiry-form input[type=tel], .inquiry-form select, .inquiry-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: .7rem .85rem; border: 1px solid #9fb5bb; border-radius: .35rem; background: #fff; color: var(--ink); }
.inquiry-form textarea { resize: vertical; line-height: 1.75; }
.inquiry-form [aria-invalid="true"] { border-color: #b03a2e; background: #fff6f5; }
.field-help { font-size: .8rem; color: var(--muted); margin-top: .35rem !important; line-height: 1.7; }
.privacy { font-size: .84rem; margin: .2rem 0 .7rem; }
.privacy summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.privacy p { margin-top: .4rem; color: var(--muted); line-height: 1.8; }
.agree { display: flex !important; gap: .5rem; align-items: center; cursor: pointer; margin-bottom: 1rem !important; }
.agree input { width: 1.2rem; height: 1.2rem; }
.inquiry-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .85rem 2.2rem; }
.inquiry-form button[disabled] { opacity: .6; cursor: wait; }
.form-mode-note { font-size: .8rem; color: var(--muted); margin-bottom: .8rem !important; }
.form-status { margin-top: .8rem !important; font-weight: 700; }
.form-status.is-error { color: #b03a2e; } .form-status.is-ok { color: #11744a; }
.form-thanks { background: #fff; color: var(--ink); border-radius: .6rem; padding: 1.6rem; }
.form-thanks-title { font-weight: 800; color: #11744a; font-size: 1.1rem; }
.mail-options { border: 2px solid #9fd1c9; border-radius: .5rem; padding: 1rem 1.1rem; margin-top: 1rem; }
.mail-options p { font-size: .9rem; margin-bottom: .4rem; }
.mail-options-title { font-weight: 800; }
.mail-options-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .7rem 0; }
.mail-options-buttons .button { text-align: center; padding: .7rem .8rem; font-size: .9rem; width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.button.secondary { background: #fff; color: var(--accent); border: 2px solid var(--accent) !important; }
.mail-options-note { color: var(--muted); font-size: .82rem !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* フッター */
.site-footer { background: #f4f8f8; color: var(--muted); font-size: .88rem; padding-top: 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-name { color: var(--ink); margin-bottom: .4rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-content: start; }
.footer-nav a, .site-footer a { color: var(--ink); text-underline-offset: .2em; }
.footer-bottom { padding-block: 1.6rem; margin-top: 1.6rem; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .col-grid, .contact-grid, .footer-grid, .inquiry-form .field-row, .mail-options-buttons { grid-template-columns: 1fr; }
  .company-table th { width: 6em; }
  .inquiry-form button { width: 100%; }
  .summary-box, .toc, .post-author { padding: 1rem 1.1rem; }
}
@media (min-width: 761px) and (max-width: 1000px) { .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.column-categories a { text-decoration: none; } .column-categories a:hover { text-decoration: underline; }

/* ===== 2026-11-21 デザイン調整 ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.93); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
section[id], .column-group, .column-prose h2, #contact { scroll-margin-top: 88px; }
.site-header nav a:not(.button) { position: relative; padding-block: .3rem; }
.site-header nav a:not(.button):hover { text-decoration: none; color: var(--accent); }

/* ヒーロー */
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .button-ghost { background: transparent; color: #e6f4fb; border: 1px solid #4f6f84; }
.hero .button-ghost:hover { background: #10293c; color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .45rem; color: #b6c9d8; font-size: .9rem; }
.hero-points li { padding-left: 1.6rem; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .95rem; height: .5rem; border-left: 2px solid #8de5db; border-bottom: 2px solid #8de5db; transform: rotate(-45deg); }

/* サービス */
.service-grid article { display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.service-grid article:hover { border-color: #a9cfcc; box-shadow: 0 10px 28px rgba(7,24,40,.07); }
.service-link { margin-top: auto !important; padding-top: 1.1rem; text-decoration: none; }
.service-link::after, .back-link .text-link::after { content: " →"; }
.service-link:hover { text-decoration: underline; }

/* コラムカード */
.col-card { display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.col-card:hover { border-color: #a9cfcc; box-shadow: 0 10px 28px rgba(7,24,40,.07); }
.col-card h3 a { text-decoration: none; }
.col-card h3 a:hover { text-decoration: underline; }
.col-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group-count { font-size: .9rem; font-weight: 700; color: var(--muted); margin-left: .7rem; letter-spacing: 0; }
.column-group { margin-top: 3rem; }
.column-group .col-grid { margin-bottom: 0; }
.column-categories { position: sticky; top: 78px; z-index: 5; background: rgba(255,255,255,.95); padding-block: .6rem; margin-block: .6rem 0; }
.column-categories a { text-decoration: none; font-size: .9rem; }
.column-categories a:hover { border-color: var(--accent); }

/* お問い合わせ */
@media (min-width: 761px) { .contact-intro { position: sticky; top: 110px; } }

/* フッター */
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .5rem 2.5rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* スマホ */
@media (max-width: 760px) {
  .header-inner { flex-wrap: nowrap; min-height: 62px; padding-block: .45rem; gap: .6rem; }
  .brand { gap: .5rem; font-size: .92rem; }
  .brand small { display: none; }
  .mark { width: 34px; font-size: 1.25rem; }
  .site-header nav { flex-wrap: nowrap; gap: .85rem; }
  .site-header nav a { font-size: .8rem; white-space: nowrap; }
  .site-header nav .button-small { padding: .45rem .8rem; }
  .column-categories { top: 62px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .column-categories a { white-space: nowrap; }
  .col-grid-2 { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; text-align: center; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section[id], .column-group, .column-prose h2, #contact { scroll-margin-top: 120px; }
}
.service-tag { align-self: flex-start; }
