﻿:root {
    --color-primary: #1f4fa3;
    --color-primary-dark: #173d7e;
    --color-secondary: #1f8ec6;
    --color-accent: #0f7aea;
    --color-bg: #f5f8fc;
    --color-text: #1f2532;
    --color-muted: #586174;
    --color-border: #d8dde6;
    --color-card-bg: #ffffff;
    --shadow-card: 0 10px 25px rgba(23, 61, 126, 0.08);
    --shadow-light: 0 4px 12px rgba(31, 79, 163, 0.12);
    --radius-card: 16px;
    --radius-pill: 999px;
    --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-primary);
}

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

main .container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section:nth-of-type(even) {
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header-left {
    margin-bottom: 32px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: #4f6485;
    text-transform: uppercase;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 122, 234, 0.25);
}

.btn-outline {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(31, 79, 163, 0.1);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(31, 79, 163, 0.08);
}

.btn-tertiary {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(31, 79, 163, 0.4);
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background: rgba(31, 79, 163, 0.08);
}

/* hero-mv */
.hero {
    position: relative;
    min-height: auto;
    padding: 0 0 32px;
    background-image: linear-gradient(90deg, rgba(6, 34, 84, 0.7) 0%, rgba(12, 75, 150, 0.42) 42%, rgba(10, 77, 150, 0.2) 68%, rgba(255, 255, 255, 0.06) 100%), url("../images/corporate/business-buyback/hv.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    min-height: auto;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: block;
    width: 100%;
}

.hero-visual {
    overflow: hidden;
}

.hero-visual--pc {
    width: min(1200px, 100%);
    margin: 30px auto 0;
    border-radius: 32px;
    box-shadow: 0 22px 54px rgba(4, 22, 64, 0.2);
}

.hero-visual--pc img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.hero-summary {
    padding: 80px 0;
    background: #ffffff;
}

.hero-summary-inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.hero-summary .hero-copy {
    grid-row: auto;
    align-self: auto;
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 36px 40px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid rgba(31, 79, 163, 0.14);
    box-shadow: var(--shadow-card);
    backdrop-filter: none;
}

.hero-summary .hero-subtitle {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-summary .hero-title {
    max-width: 720px;
    color: var(--color-text);
    font-size: 36px;
    line-height: 1.3;
}

.hero-summary .hero-text {
    max-width: 720px;
    color: var(--color-muted);
    font-size: 16px;
}

.hero-summary .hero-footnote {
    color: var(--color-muted);
}

.hero-copy {
    grid-row: 2;
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    grid-template-areas:
        "subtitle actions"
        "title actions"
        "text footnote"
        "badges badges";
    column-gap: 44px;
    row-gap: 14px;
    align-items: center;
    width: min(1080px, calc(100% - 96px));
    margin: 0 auto 18px;
    padding: 30px 36px 34px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(6, 32, 80, 0.86) 0%, rgba(19, 87, 178, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 26px 64px rgba(4, 22, 64, 0.28);
    backdrop-filter: blur(2px);
}

.hero-subtitle {
    grid-area: subtitle;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.hero-title {
    grid-area: title;
    max-width: 600px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-text {
    grid-area: text;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0;
    margin: 0;
}

.hero-badges {
    grid-area: badges;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hero-badges li {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(31, 79, 163, 0.16);
    padding: 16px 22px;
    border-radius: 16px;
    min-width: 0;
    box-shadow: 0 16px 36px rgba(4, 22, 64, 0.16);
}

.badge-label {
    display: block;
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 6px;
    letter-spacing: 0;
}

.badge-text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
}

.hero-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
}

.hero-actions .btn {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 78px;
    padding: 22px 58px 22px 34px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(135deg, #12a8ff 0%, #0875e8 48%, #0752c4 100%);
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(2, 25, 70, 0.28);
    box-shadow:
        0 22px 46px rgba(5, 82, 196, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-actions .btn::after {
    content: ">";
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 18px;
    line-height: 1;
}

.hero-actions .btn:hover,
.hero-actions .btn:focus {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(135deg, #2bb4ff 0%, #0b82f3 48%, #075bd2 100%);
    box-shadow:
        0 28px 56px rgba(5, 82, 196, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.hero-footnote {
    grid-area: footnote;
    align-self: start;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0;
    margin: 0;
}


/* case examples */
.pain .case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    padding: 0 28px 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.case-image {
    width: calc(100% + 56px);
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0 -28px 24px;
    object-fit: cover;
}

.case-number {
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.case-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
    text-align: center;
}

.case-text {
    font-size: 14px;
    margin: 0;
    color: var(--color-muted);
}



/*Exhibit Procurement*/
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}

.section-media img {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.section-text {
    color: var(--color-muted);
    margin-bottom: 24px;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.section-list li {
    font-size: 20px;
    padding-left: 20px;
    position: relative;
    color: var(--color-text);
    font-weight: 500;
}

.section-list li::before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--color-primary);
    position: absolute;
    left: 0;
    top: 12px;
}



/*Challenges & Solutions*/
.solution-grid {
    width: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 6vw;  
}

.solution-column {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.column-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
}

.problem-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.problem-list li,
.solution-list li {
    padding-left: 24px;
    position: relative;
    color: var(--color-muted);
    line-height: 1.6;
}

.problem-list li::before {
    content: "\2716";
    position: absolute;
    left: 0;
    color: #c0392b;
    font-size: 14px;
}

.solution-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-size: 16px;
}

.compliance-note {
    margin-top: 20px;
    color: var(--color-muted);
    text-align: center;
}



/*Service Strengths*/
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.strength-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strength-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.strength-text {
    font-size: 14px;
    margin: 0;
    color: var(--color-muted);
}

.strength-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.strength-bullets li {
    padding-left: 18px;
    position: relative;
    font-size: 14px;
    color: var(--color-text);
}

.strength-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}



/*Handled Items*/
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.item-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.item-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.item-card figcaption {
    font-size: 14px;
    padding: 16px;
    font-weight: 500;
}

.items-note {
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 28px;
}

.items-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/*Key Points*/
.point-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.point-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 0 32px 32px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.point-card-image {
    width: min(100%, 220px);
    aspect-ratio: 1 / 1;
    margin: 32px auto 24px;
    object-fit: cover;
    border-radius: 16px;
}

.point-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.point-text {
    margin: 0;
    color: var(--color-muted);
}

/*Procurement Process*/
.flow-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flow-step {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(31, 79, 163, 0.2);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 40px 0 12px;
}

.step-text {
    margin: 0;
    color: var(--color-muted);
}

.flow-actions {
    margin-top: 48px;
    text-align: center;
}

/*License*/
.license {
    padding: 72px 0 40px;
    background: #f7fafe;
}

.permit-box {
    background: #ffffff;
    border: 1px solid rgba(31, 79, 163, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px;
    text-align: center;
}

.license-label {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.license-title {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
}

.license-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.04em;
}


/*Contact*/
.contact {
    background: linear-gradient(180deg, rgba(31, 79, 163, 0.04) 0%, rgba(31, 79, 163, 0.12) 80%);
}

.contact-inner {
    max-width: 760px;
}

.contact-content {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.contact-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-muted);
    margin: 0 auto 28px;
    max-width: 620px;
}

.contact-actions {
    display: grid;
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
}

.contact-actions .btn {
    width: 100%;
    min-height: 72px;
    padding: 22px 36px;
    font-size: 18px;
    border-radius: 999px;
}



/* Modal styles */

.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 19, 40, 0.5);
    z-index: 90;
}

.modal-dialog {
    position: fixed;
    left: 50%;
    top: 184px;
    transform: translateX(-50%);
    width: min(720px, 90vw);
    max-height: calc(100vh - 232px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(15, 28, 56, 0.35);
    padding: 36px 40px;
    z-index: 100;
}

.modal-intro {
    margin: 0 0 20px;
    line-height: 1.9;
}

.modal-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 28px;
}

.modal-category-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f4f8fd;
    font-weight: 700;
    color: var(--color-text);
}

.modal-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

.modal-detail-list {
    display: grid;
    gap: 14px;
}

.modal-detail-item {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.modal-detail-item h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.modal-detail-item p {
    margin: 0;
    line-height: 1.8;
}

.modal-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-left: 0 !important;
    list-style: none;
}

.modal-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f7fbff;
    color: var(--color-text);
    font-weight: 600;
}

.modal-check-item span[aria-hidden="true"] {
    color: var(--color-primary);
    font-weight: 700;
}

.modal-judge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 28px;
}

.modal-judge-card,
.modal-genre-card {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f7fbff;
}

.modal-content .modal-judge-card h3,
.modal-content .modal-genre-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.modal-content .modal-judge-card p {
    margin: 0;
    line-height: 1.8;
}

.modal-judge-card {
    font-weight: 700;
}

.modal-judge-card--ok {
    border-color: #b9ddc8;
    background: #f1faf4;
}

.modal-judge-card--ok h3,
.modal-judge-card--ok h3 span {
    color: #167a3a;
}

.modal-judge-card--consult {
    border-color: #ecd1a7;
    background: #fff8ed;
}

.modal-judge-card--consult h3,
.modal-judge-card--consult h3 span {
    color: #a86612;
}

.modal-judge-card--ng {
    border-color: #edc3c3;
    background: #fff4f4;
}

.modal-judge-card--ng h3,
.modal-judge-card--ng h3 span {
    color: #b23a3a;
}

.modal-genre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 14px 0 28px;
}

.modal-genre-card ul {
    margin: 0;
    padding-left: 18px;
}

.modal-confirm-action {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.modal-confirm-button {
    min-width: 220px;
}

.modal-note {
    margin: 24px 0 0;
    padding: 16px;
    border-radius: 8px;
    background: #f4f8fd;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
}

.modal-content h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 700;
}

.modal-content ul {
    margin: 0;
    padding-left: 20px;
    color: var(--color-muted);
}

.modal-content p {
    color: var(--color-muted);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
}

.modal .modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 1;
    width: 40px;
    height: 40px;
    margin: -14px -12px 0 0;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
}

body.modal-open {
    overflow: hidden;
}

/* Utility */

@media (max-width: 1024px) {
    .hero-inner,
    .two-column,
    .solution-grid,
    .strengths-grid,
    .point-grid,
    .flow-steps {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 96px 0 48px;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-summary .hero-copy {
        width: min(640px, 72vw);
        margin: 0 0 20px auto;
        grid-template-columns: 1fr;
        grid-template-areas:
            "subtitle"
            "title"
            "text"
            "actions"
            "footnote"
            "badges";
        grid-template-rows: auto;
        row-gap: 12px;
    }

    .hero-summary .hero-subtitle,
    .hero-summary .hero-title,
    .hero-summary .hero-text,
    .hero-summary .hero-actions,
    .hero-summary .hero-footnote {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-summary .hero-title {
        font-size: 32px;
    }

    .hero-summary .hero-badges {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 16px 0 0;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
