* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
    min-height: 100vh;
    font-size: 16px;
    background: linear-gradient(135deg,
            #0149a1 0%,
            #045FAF 55%,
            #8ED8FF 100%);
}

.wrapper {
    width: 100%;
    margin: 0 auto;
}

#policy-section p,
#company-section p,
#survey-section p {
    margin: 1rem;
}

#policy-section,
#company-section,
#survey-section {
    background: #fff;
    padding: 2rem 1.4rem;
    min-height: 100vh;
}

#survey-section li {
    list-style: disc;
    margin-left: 2.4rem;
}

#policy-section h1,
#company-section h1,
#survey-section h1 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    background: #fff;
}

.company-info-table th,
.company-info-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #d9e3ef;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    vertical-align: top;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
    border-bottom: none;
}

.company-info-table th {
    width: 34%;
    background: #f4f8fc;
    color: #17324d;
    font-weight: 700;
    white-space: nowrap;
}

.company-info-table a {
    color: #045FAF;
    text-decoration: underline;
    word-break: break-all;
}

.company-notes {
    margin-top: 28px;
}

.company-notes h2 {
    margin: 24px 0 8px;
    padding-left: 12px;
    border-left: 4px solid #045FAF;
    color: #17324d;
    font-size: 17px;
    text-align: left;
}

.company-notes p {
    margin: 0 0 16px;
    color: #222;
    font-size: 15px;
    line-height: 1.8;
}

@media (min-width: 481px) {
    .wrapper {
        max-width: 480px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .wrapper {
        max-width: none;
        padding: 0;
    }
}

h2 {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
}

h1 img {
    width: 100%;
    height: auto;
}

/* ========== BUTTONS ========== */
.test-submit-button,
.offer-button {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 1.4rem;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.05em;
    position: relative;
    transition: transform 0.15s ease, filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.question-choice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 16px;
    margin-bottom: 1.4rem;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    cursor: pointer;
    letter-spacing: 0.05em;
    position: relative;
    transition: transform 0.15s ease, filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.question-choice-button:active,
.test-submit-button:active,
.offer-button:active {
    transform: scale(0.97);
    filter: brightness(0.9);
}

.test-submit-button .check {
    color: #ffd34d;
    font-size: 54px;
    line-height: 1;
    flex-shrink: 0;
}

.offer-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 20px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4rem;
}

.button--orange {
    background: linear-gradient(180deg,
            #ff9b4a 0%,
            #ED8530 45%,
            #e38006 100%);
}

.button--green {
    background: linear-gradient(180deg,
            #23C436 0%,
            #20BB32 100%);
}

.button--blue {
    background: linear-gradient(180deg,
            #23A9C4 0%,
            #579EBF 100%);
}

.button--gray {
    background: linear-gradient(180deg,
            #CDCDCD 0%,
            #BEBEBE 100%);
    color: #000;
}

.button--green:active,
.button--orange:active,
.button--blue:active,
.button--gray:active {
    transform: translateY(2px) scale(0.98);
}

.button--gray:active {
    background: linear-gradient(180deg,
            #fff47d 0%,
            #FFEF62 45%,
            #dcce55 100%);
}

/* ========== LOADING ========== */
#loading-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 53, 143, 0.8);
    border-radius: 10px;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loading-popup p {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
}

.loading-box {
    width: 70%;
    height: auto;
    background: #fff;
    border-radius: 10px;
    padding: 4rem 0;
    text-align: center;
}

#loading-popup.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #828282;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 1.4rem auto;
}

.loading-text {
    font-size: 16px;
    font-weight: 700;
    color: #828282;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== PROMOTION BANNER ========== */
.promotion-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.promotion-banner-inner {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0.4rem;
    padding-bottom: 0;
    background-color: #fff;
    color: inherit;
    text-decoration: none;
}

.promotion-banner-inner img {
    width: 100%;
    height: auto;
    z-index: 100;
}

.promotion-banner-inner .card-item-name {
    font-size: 14px;
    font-weight: normal;
    padding: 0.4rem;
    margin-left: auto;
    color: #000;
    width: 18%;
}

.promotion-banner.show {
    opacity: 1;
    visibility: visible;
}

/* 見出し */
.section-heading {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    border-left: 4px solid #f5a623;
    padding-left: 10px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* ========== SECTION ========== */

.section_blue {
    background: #5497D1;
    padding: 4rem 1.4rem;
}

.section_light-blue {
    background: #5EA6E6;
    padding: 4rem 1.4rem;
}

/* ========== FAQ SECTION ========== */
#faq-section {
    margin: 0 auto;
    background: #5EA6E6;
    padding: 4.8rem 1.4rem;
}

#faq-section .faq-heading {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

#faq-section .faq-heading .faq-label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 2px;
}

#faq-section .faq-heading .faq-title {
    display: block;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* アコーディオンリスト */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    gap: 12px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    background: #f7f9fc;
}

.faq-question-text {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    line-height: 1.5;
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6fc4;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.2s;
    line-height: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 16px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 16px 14px;
}

.faq-answer-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* 注意書き */
.faq-note {
    margin-top: 16px;
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background: #5ea6e6;
    padding: 4rem 1.4rem;
}

/* 左カラム */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.footer-left-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-left-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
    line-height: 1.5;
}

.footer-left-links a:hover {
    text-decoration: underline;
    color: #fff;
}

.static-page-footer {
    background: #5ea6e6;
    padding: 24px 0;
}

.static-page-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    padding: 0 1.4rem;
}

.static-page-footer-nav a {
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.static-page-footer-nav a:hover {
    text-decoration: underline;
}

/* 右カラム（リンクは左寄せ・幅は内容に合わせる） */
.footer-nav {
    flex: 0 1 auto;
    text-align: left;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.footer-nav ul li::before {
    content: '・';
    color: #fff;
}

.footer-nav ul li a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

/* コピーライト */
.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    background: #5ea6e6;
    padding: 1rem 0;
}
