/*
 * design.css
 * Teal 系の新デザイン (design-d) に基づくスタイル定義。
 * 後勝ちさせるため layouts/app.blade.php では bootstrap.min.css / style.css の後に読み込む。
 */

:root {
    --teal: #1d4f4f;
    --teal-dark: #102f2f;
    --teal-mid: #2c6b6b;
    --teal-soft: #e6efef;
    --ink: #0e1c1c;
    --muted: #5b6b6b;
    --line: #d8e0e0;
    --bg: #f3f6f5;
    --paper: #ffffff;
    --warn: #956831;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans JP", "Inter", "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.85;
    font-size: 14.5px;
}

a { color: inherit; }

/* Bootstrap の .container と衝突するため後勝ちで上書き */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    width: auto;
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--teal-dark);
    color: #9bb6b6;
    font-size: 12px;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Header ---------- */
header.site {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
header.site .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    gap: 18px;
    flex-wrap: wrap;
}
header.site .brand {
    display: block;
    text-decoration: none;
}
header.site .brandmark {
    width: 48px;
    height: 48px;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05em;
}
header.site .brand h1 {
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
}
header.site .brand .sub {
    font-size: 10px;
    color: var(--teal);
    letter-spacing: .18em;
    font-weight: 600;
    margin-top: 2px;
}
nav.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}
nav.menu a {
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
nav.menu a:hover,
nav.menu a.active {
    border-bottom-color: var(--teal);
    color: var(--teal);
}

/* ---------- Buttons (Bootstrap .btn を上書き) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 0;
    transition: .15s;
    line-height: 1.2;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.btn-primary:hover {
    background: var(--teal-dark);
    color: #fff;
    border-color: var(--teal-dark);
}
.btn-outline {
    background: #fff;
    color: var(--teal);
    border-color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal-soft);
    color: var(--teal);
}
.arr { transition: .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
    padding: 64px 0 70px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}
.hero-left .crumb {
    display: inline-block;
    font-size: 11px;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    border-left: 3px solid var(--teal);
    padding-left: 10px;
    margin-bottom: 20px;
}
.hero-left h2 {
    font-size: 30px;
    line-height: 1.55;
    font-weight: 700;
    margin: 0 0 22px;
    letter-spacing: .01em;
}
.hero-left p.lead {
    font-size: 15px;
    color: var(--ink);
    margin: 0 0 28px;
    max-width: 580px;
    line-height: 2;
}
.hero-left .cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Info Panel ---------- */
.info-panel {
    background: var(--paper);
    border: 1px solid var(--line);
}
.info-panel .pn-h {
    padding: 14px 20px;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
}
.info-panel .pn-body { padding: 6px 0; }
.info-panel .row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    align-items: baseline;
    margin: 0;
}
.info-panel .row:last-child { border-bottom: none; }
.info-panel .row .k {
    color: var(--muted);
    font-weight: 500;
}
.info-panel .row .v {
    font-weight: 700;
    color: var(--ink);
}
.info-panel .row .v .num {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
}
.info-panel .row .v .sup {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    margin-left: 6px;
}

/* ---------- News strip ---------- */
.news-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.news-strip .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.news-strip .label {
    background: var(--teal);
    color: #fff;
    font-size: 11px;
    padding: 5px 14px;
    font-weight: 600;
    letter-spacing: .1em;
    flex-shrink: 0;
    line-height: 1.4;
}
.news-strip .empty {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
    line-height: 1.4;
}

/* ---------- Section common ---------- */
.site-section {
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
}
.sec-head { margin-bottom: 42px; }
.sec-head .label {
    display: inline-block;
    color: var(--teal);
    font-size: 11px;
    letter-spacing: .3em;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 3px solid var(--teal);
    padding-left: 10px;
    margin-bottom: 10px;
}
.sec-head h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: .01em;
}
.sec-head p {
    color: var(--muted);
    max-width: 760px;
    margin: 0;
    font-size: 14px;
}

/* ---------- Overview ---------- */
.overview { background: var(--paper); }
.ov-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
}
.ov-card {
    padding: 24px 22px;
    background: var(--paper);
    border-right: 1px solid var(--line);
}
.ov-card:last-child { border-right: none; }
.ov-card .label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.ov-card .v {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: .005em;
}
.ov-card .v small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-left: 4px;
}
.ov-card .desc {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

/* ---------- Scheme image ---------- */
.scheme-img {
    background: var(--paper);
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
}
.scheme-img img {
    display: block;
    max-width: 900px;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 20px;
    margin: 14px auto 0;
}

/* ---------- Types ---------- */
.types { background: var(--bg); }
.types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.type-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 26px;
    display: flex;
    flex-direction: column;
}
.type-card .row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.type-card .num {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--teal);
    border: 1px solid var(--teal);
    padding: 3px 10px;
    font-weight: 600;
}
.type-card .who {
    font-size: 11px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: .05em;
    background: var(--teal-soft);
    padding: 4px 10px;
}
.type-card h4 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}
.type-card .desc {
    font-size: 13.5px;
    color: #374443;
    flex: 1;
    margin: 0 0 18px;
}
.type-card .grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: auto;
    border-top: 1px solid var(--line);
}
.type-card .grid2 .cell { padding: 12px 0; }
.type-card .grid2 .cell:first-child {
    border-right: 1px solid var(--line);
    padding-right: 12px;
}
.type-card .grid2 .cell:last-child { padding-left: 12px; }
.type-card .grid2 .k {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
    font-weight: 600;
    text-transform: uppercase;
}
.type-card .grid2 .v {
    font-weight: 700;
    color: var(--ink);
    font-size: 17px;
    margin-top: 2px;
}
.type-card .rates {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}
.type-card .rates div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted var(--line);
}
.type-card .rates div:last-child { border-bottom: none; }
.type-card .rates strong {
    color: var(--ink);
    font-weight: 700;
}

/* ---------- Schedule table ---------- */
.schedule { background: var(--paper); }
.sch-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
}
.sch-tbl th,
.sch-tbl td {
    border: 1px solid var(--line);
    padding: 14px 16px;
    vertical-align: top;
}
.sch-tbl thead th {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
}
.sch-tbl tbody th {
    background: var(--teal-soft);
    text-align: left;
    width: 170px;
    color: var(--teal);
    font-weight: 600;
}
.sch-tbl .planned {
    display: inline-block;
    color: var(--teal);
    font-size: 11px;
    margin-left: 6px;
    border: 1px solid var(--teal);
    padding: 1px 6px;
    font-weight: 600;
}
.sch-tbl--center th,
.sch-tbl--center td {
    text-align: center;
}
.sch-tbl--center tbody th {
    text-align: center;
}

/* ---------- CTA block ---------- */
.cta-block {
    background: var(--teal);
    color: #fff;
    padding: 54px 0;
    border-top: 1px solid var(--line);
}
.cta-block .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}
.cta-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.cta-block p {
    margin: 0;
    color: #cdded8;
    font-size: 14px;
}
.cta-block .right {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cta-block .btn-primary {
    background: #fff;
    color: var(--teal);
    border-color: #fff;
}
.cta-block .btn-primary:hover {
    background: var(--teal-soft);
    color: var(--teal);
}
.cta-block .btn-outline {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.cta-block .btn-outline:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* ---------- Footer ---------- */
footer.site {
    background: var(--teal-dark);
    color: #9bb6b6;
    padding: 50px 0 22px;
    font-size: 13px;
}
footer.site .grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 30px;
}
footer.site h6 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    padding-bottom: 8px;
}
footer.site ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer.site ul li { margin-bottom: 8px; }
footer.site a {
    color: #cdded8;
    text-decoration: none;
}
footer.site a:hover { color: #fff; }
footer.site .copy {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 18px;
    text-align: center;
    font-size: 11px;
    color: #7d9c98;
}

/* ---------- Page Head (各下層ページのタイトル領域) ---------- */
.page-head {
    background: var(--paper);
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--line);
}
.page-head .crumb {
    display: inline-block;
    font-size: 11px;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    border-left: 3px solid var(--teal);
    padding-left: 10px;
    margin-bottom: 16px;
}
.page-head h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.5;
    color: var(--ink);
}
.page-head p.lead {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    max-width: 800px;
    line-height: 1.9;
}

/* ---------- Content Section (汎用セクションラッパ) ---------- */
.content-section {
    padding: 56px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.content-section.alt { background: var(--paper); }
.content-section .sub-head {
    margin: 28px 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--teal);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.content-section .sub-head:first-child { margin-top: 0; }
.content-section p { font-size: 13.5px; line-height: 1.95; }

/* ---------- Document List (PDF/Word リンク用) ---------- */
.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
}
.doc-list li {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list li a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.doc-list li a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}
.doc-list li .meta {
    color: var(--muted);
    font-size: 12px;
}
.doc-list li .note {
    color: var(--muted);
    font-size: 12px;
    flex-basis: 100%;
}

/* ---------- Panel Table (key-value 表示) ---------- */
.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: var(--paper);
    border: 1px solid var(--line);
}
.panel-table th,
.panel-table td {
    border: 1px solid var(--line);
    padding: 12px 16px;
    vertical-align: top;
}
.panel-table thead th {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}
.panel-table tbody th {
    background: var(--teal-soft);
    text-align: left;
    color: var(--teal);
    font-weight: 600;
    width: 180px;
    white-space: nowrap;
}
.panel-table .note-warn {
    color: var(--warn);
    font-size: 12px;
}

/* ---------- FAQ Table ---------- */
.faq-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--paper);
    border: 1px solid var(--line);
    table-layout: fixed;
}
.faq-tbl th,
.faq-tbl td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    vertical-align: top;
    word-wrap: break-word;
}
.faq-tbl thead th {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}
.faq-tbl tbody tr:nth-child(odd) td { background: var(--paper); }
.faq-tbl tbody tr:nth-child(even) td { background: #fafbfa; }
.faq-wrap {
    max-height: 540px;
    overflow-y: auto;
    border: 1px solid var(--line);
}
.faq-wrap .faq-tbl { border: none; }
.faq-wrap .faq-tbl thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ---------- Form Table ---------- */
.form-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
}
.form-table th,
.form-table td {
    border: 1px solid var(--line);
    padding: 14px 16px;
    vertical-align: top;
}
.form-table th {
    background: var(--teal-soft);
    text-align: left;
    width: 220px;
    color: var(--teal);
    font-weight: 600;
    white-space: nowrap;
}
.form-table .req,
.form-table .opt {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: .05em;
    vertical-align: middle;
}
.form-table .req {
    background: var(--warn);
    color: #fff;
}
.form-table .opt {
    background: var(--muted);
    color: #fff;
}
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--ink);
    box-sizing: border-box;
}
.form-table input:focus,
.form-table textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px var(--teal-soft);
}
.form-submit {
    margin-top: 24px;
    text-align: center;
}
.form-submit .btn {
    cursor: pointer;
    font-family: inherit;
}
.form-errors {
    background: #fdecec;
    border: 1px solid #e2b5b5;
    color: #8a3636;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13px;
}
.form-status {
    background: var(--teal-soft);
    border: 1px solid var(--teal);
    color: var(--teal);
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13px;
}

/* ---------- Info List (説明会・セミナー等の dl/dt/dd 用) ---------- */
.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
}
.info-list .row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.info-list .row:last-child { border-bottom: none; }
.info-list .row dt,
.info-list .row .k {
    padding: 14px 18px;
    background: var(--teal-soft);
    color: var(--teal);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}
.info-list .row dd,
.info-list .row .v {
    padding: 14px 18px;
    margin: 0;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; }
    .ov-grid { grid-template-columns: 1fr 1fr; }
    .ov-card {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .types-grid { grid-template-columns: 1fr; }
    nav.menu { display: none; }
    .hero-left h2 { font-size: 22px; }
    .cta-block .container { grid-template-columns: 1fr; }
    .cta-block .right { justify-content: flex-start; }
    footer.site .grid { grid-template-columns: 1fr 1fr; }
    .info-list .row { grid-template-columns: 1fr; }
    .info-list .row dt,
    .info-list .row .k { border-bottom: 1px solid var(--line); }
    .form-table th,
    .form-table td { display: block; width: 100%; }
    .panel-table tbody th { width: auto; white-space: normal; }
}
