/*
 * Copyright (c) 一般社団法人 所在不明株主支援機構
 */

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    background-color: #ffffff;
    color: #333333;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

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

button {
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    border: none;
    outline: none;
}

input,
textarea {
    font-family: "Noto Sans JP", sans-serif;
}

/* ===== LAYOUT & COMPONENTS ===== */

/* HEADER */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1140px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 0 24px;
}

.header-logo {
    position: relative;
    top: 6px;
    flex-shrink: 0;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo::after {
    content: '';
    position: absolute;
    top: -1px; left: 0; width: 100%; height: 100%;
    background-image: url('../images/logo-hover.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.header-logo img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.2s;
}

.header-logo:hover img {
    opacity: 0;
}

.header-logo:hover::after {
    opacity: 1;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.15px;
    color: #0066cc;
    text-decoration: none;
    white-space: nowrap;

    &.is-active {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 6px;
    }
}

.nav-link:hover {
    color: #00AEEB;
}

.header-action {
    flex-shrink: 0;
    margin-left: auto;
}

.header-action-mobile {
    display: none;
}

.button-secondary {
    border: 1px solid #0066cc;
    background-color: #ffffff;
    color: #0066cc;
    padding: 10px 24px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.button-secondary:hover {
    color: #00AEEB;
    border-color: #00AEEB;
}

/* SP Menu Button (Hidden on PC) */
.menu-button {
    display: none;
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    cursor: pointer;
}

.menu-button span {
    width: 24px;
    height: 2px;
    background-color: #000000;
    border-radius: 1px;
    transition: all 0.5s ease;
}

.menu-button.open span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}
.menu-button.open span:nth-child(2) {
    opacity: 0;
}
.menu-button.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* PAGE GAP */
.page-gap {
    height: 144px;
}

.page-end-gap {
    height: 24px;
}

/* MAIN CONTENT */
.content-main {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #ffffff;
}

.form-container {
    max-width: 840px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 96px;
    padding: 0 16px;
}

/* SECTION BLOCK */
.section-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-title {
    font-weight: 600;
    color: #333333;
    margin: 0;
    padding: 0;
    font-size: 36px;
    line-height: 47px;
}

.form-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
    margin: 0;
    padding: 0;

    div + div {
        margin-top: 0.4em;
    }    
}

/* FORM FIELD */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.label-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.label {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #333333;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border: 1px solid #cc0000;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #cc0000;
    flex-shrink: 0;
}

.form-control {
    display: flex;
    flex-direction: column;
}
.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333333;
    background-color: #ffffff;
    height: 48px;
}

.form-select {
    width: 200px;
}

.form-input::placeholder {
    color: #999999;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border: 2px solid #0066cc;
    padding: 11px 15px;
}

.form-input.error,
.form-select.error {
    border-color: #cc0000;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333333;
    background-color: #ffffff;
    resize: vertical;
    min-height: 96px;
}

.form-textarea::placeholder {
    color: #999999;
}

.form-textarea:focus {
    outline: none;
    border: 2px solid #0066cc;
    padding: 11px 15px;
}

.form-textarea.error {
    border-color: #cc0000;
}

.error-message {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #cc0000;
    display: none;
    margin-top: -8px;
}

.form-field.error .error-message {
    display: block;
}

.form-container .button-primary {
    width: 183px;
}

/* FORM AGREEMENT */
.form-agreement {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.agreement-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.agreement-label {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
}

.privacy-link {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #0066cc;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.form-agreement.error .error-message {
    display: block;
}

/* COMPLETION SCREEN */
.completion-message {
    display: flex;
    flex-direction: column;
}

.completion-message p {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
    margin: 0;
    padding: 0;
}

.completion-support-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completion-support-info p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #666666;
    margin: 0;
    padding: 0;
}

.completion-contact-info {
    display: flex;
    flex-direction: column;
}

.completion-contact-info p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #666666;
    margin: 0;
    padding: 0;
}

.completion-contact-info a {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #0066cc;
    text-decoration: none;
}

.completion-contact-info a:hover {
    text-decoration: underline;
}

/* BUTTONS */
.button-primary {
    background-color: #0066cc;
    color: #ffffff;
    padding: 13px 24px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
}

.button-primary:hover {
    opacity: 0.9;
}

.button-primary:active {
    opacity: 0.8;
}

/* INFO SECTION */
.section-block-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    color: #666666;
    margin: 0;
    padding: 0;
}

.info-tel-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

/* FOOTER */
.footer {
    background-color: #E5E7EB;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-inner {
    max-width: 1040px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.footer-legal {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.footer-link {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #555555;
    text-decoration: underline;
    text-decoration-color: #999999;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-org {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-org-group {
    display: flex;
    gap: 1em;
}

.footer-org-name,
.footer-org-address {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #555555;
    margin: 0;
    padding: 0;
}

.footer-contact {
    display: flex;
    gap: 24px;
}

.footer-contact p {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #555555;
    margin: 0;
    padding: 0;
}

.footer-email-link {
    color: #555555;
    text-decoration: underline;
}

.footer-email-link:hover {
    opacity: 0.8;
}

.footer-tel-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

.footer-copyright {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #999999;
    margin: 0;
    padding: 0;
}


/* ===== TABLET VERSION (max-width: 880px) ===== */
@media screen and (max-width: 880px) {
    .header-inner {
        gap: 30px;
        padding: 0 16px;
    }

    .nav-list {
        gap: 26px;
    }
}

/* ===== SMARTPHONE VERSION (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    body {
        padding-top: 72px; /* For fixed header */
    }
    /* HEADER */
    .header {
        position: fixed;
        height: 72px;
        transition: transform 0.3s ease;
    }

    .header.hidden {
        transform: translateY(-100%);
    }

    .header-inner {
        justify-content: space-between;
        padding: 0 16px;
        height: 72px;
    }

    .header-action {
        display: none;
    }

    .header-action-mobile {
        display: flex
    }
    
    .menu-button {
        display: flex;
    }

    #menu-close {
        position: absolute;
        top: 12px;
        right: 10px;
        z-index: 101;
    }

    .header-nav {
        position: fixed;
        left: 0;
        top: 0;
        background-color: #ffffff;
        z-index: 99;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0s linear 0.5s;

        /* Reset from PC */
        padding: 0;
        flex: none;
        border: none;
        border-radius: 0;
        max-width: none;
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease, visibility 0s linear 0s;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 32px;
    }

    .nav-link {
        font-size: 18px;
        font-weight: 400;
        line-height: 28px;
        padding: 0;
        white-space: nowrap;

        &.is-active {
            text-decoration: none;
        }
    }

    .header-action-mobile .button-secondary {
        height: 50px;
        padding-top: 15px;
    }

    /* PAGE GAP */
    .page-gap {
        height: 24px;
    }

    /* MAIN CONTENT */
    .form-container {
        gap: 56px;
    }

    /* SECTION BLOCK */
    .form-title {
        font-size: 32px;
        line-height: 44px;
        letter-spacing: 1px;
    }

    /* FORM FIELD */
    .form-input {
        height: 44px;
        padding: 10px 16px;
    }

    .form-textarea {
        min-height: 120px;
    }

    /* FORM AGREEMENT */
    .privacy-link {
        letter-spacing: 0.16px;
    }

    /* BUTTONS */
    .button-primary {
        letter-spacing: 0.3px;
    }

    /* FOOTER */
    .footer {
        padding: 24px 16px;
    }

    .footer-inner {
        gap: 0px;
        padding: 0px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0;
    }

    .footer-link {
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0.16px;
        padding: 12px 0;
    }

    .footer-org {
        gap: 20px;
        padding: 20px 0;
    }

    .footer-org-group {
        flex-direction: column;
        gap: 0;
    }

    .footer-org-name,
    .footer-org-address {
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0.16px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 20px;
    }

    .footer-contact p {
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0.16px;
    }

    .footer-tel-link {
        pointer-events: auto;
        cursor: pointer;
        text-decoration: underline;
    }

    .info-tel-link {
        color: #0066cc;
        pointer-events: auto;
        cursor: pointer;
        text-decoration: none;
    }

    .footer-copyright {
        letter-spacing: 0.14px;
    }
}

/* ===== COMPLETION PAGE STYLES ===== */
.completion-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 16px;
}

.section-block-completion {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 840px;
    width: 100%;
    margin-bottom: 40px;
}

.completion-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 47px;
    color: #333333;
    margin: 0;
    padding: 0;
}

.completion-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
    margin: 0;
    padding: 0;

    div + div {
        margin-top: 0.4em;
    }
}

.completion-description p {
    margin: 0;
    font-weight: 500;
}

.completion-notes {
    list-style: disc;
    list-style-position: outside;
    margin: 0;
    padding-left: 21px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #666666;
}

.completion-notes li + li {
    margin-top: 12px;
}

/* ===== FORM COMPONENTS ===== */
/* Subsection Title */
.subsection-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
}

 .subsection-subtitle {
    padding-top: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 0.2px;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.radio-item {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 44px;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background-color: #ffffff;
}

.radio-item input[type="radio"]:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

.radio-item label {
    cursor: pointer;
    font-size: 16px;
    line-height: 28px;
    color: #333333;
    margin: 0;
}

/* Helper Message */
.helper-message {
    font-size: 14px;
    line-height: 28px;
    color: #666666;
    margin-top: 8px;
}

.helper-message--adjacent {
    margin-top: -8px;
}

/* Agreement Box */
.agreement-box {
    background-color: #f3f4f6;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 16px;
    height: 160px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.agreement-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    color: #333333;
    margin: 0 0 8px 0;
    padding: 0;
}

.agreement-content {
    font-size: 16px;
    line-height: 28px;
    color: #333333;
}

.agreement-content p {
    margin: 0 0 8px 0;
}

.agreement-content p:last-child {
    margin-bottom: 0;
}

/* Reward Content Page Styles */
.reward-content-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;

    p {
        margin: 0;
    }
    .reward-content-note {
        .reward-content-list {
            list-style: none;
            padding-left: 1em;
            text-indent: -1em;
            /* padding: 0; */
            margin: 0;
            font-size: 16px;
            font-weight: 400;
            line-height: 28px;
            color: #333333;
        }
    }

}

/* Check Row */
.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

.form-checkbox:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.agreement-text {
    flex: 1;
}

.agreement-label {
    display: block;
    font-size: 16px;
    line-height: 28px;
    color: #333333;
    margin: 0;
    cursor: pointer;
}

.privacy-link {
    display: block;
    font-size: 16px;
    line-height: 28px;
    color: #0066cc;
    text-decoration: none;
    margin-top: 4px;
}

.privacy-link:hover {
    opacity: 0.8;
}

/* Confirmation Page Styles */

/* Confirm Field Container */
.confirm-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}

.confirm-field-sub {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 24px;
    padding-left: 16px;
}

/* Confirm Label */
.confirm-label {
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #666666;
    padding-bottom: 8px;
    letter-spacing: 0.16px;
}

/* Confirm Value */
.confirm-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
    padding-bottom: 24px;
    padding-left: 16px;
    word-break: break-word;
}

/* Agreement Confirmation Text */
.agreement-confirmation-text {
    margin-bottom: 32px;
}

.agreement-confirmation-text p {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
    margin-bottom: 8px;
}

.agreement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #333333;
}

/* Confirmation Edit Section */
.confirmation-edit-section {
    margin-bottom: 32px;
}

.confirmation-edit-link {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 8px;
}

.confirmation-edit-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.confirmation-edit-note {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #666666;
    margin: 0;
}

/* Form Support Text */
.form-support-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    color: #666666;
    margin-top: 32px;
}

/* SP Adjustments */
@media screen and (max-width: 768px) {
    .completion-container {
        flex-direction: column;
        gap: 56px;
    }

    .completion-title {
        font-size: 32px;
        line-height: 44px;
        letter-spacing: 1px;
    }

    .completion-description {
        letter-spacing: 0.16px;
    }

    .completion-notes {
        letter-spacing: 0.1px;
    }

    /* Subsection Title SP */
    .subsection-title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0.24px;
    }

    .subsection-subtitle {
        letter-spacing: 0.2px;
    }

    /* Radio Group SP */
    .radio-group {
        gap: 12px;
    }

    /* Agreement SP */
    .agreement-box {
        height: 160px;
    }

    /* Helper Message SP */
    .helper-message {
        letter-spacing: 0.14px;
    }

    /* Completion Screen SP */
    .completion-message {
        letter-spacing: 0.16px;
    }

    .completion-support-info p {
        letter-spacing: 0.16px;
    }

    .completion-contact-info p {
        letter-spacing: 0.16px;
    }
}

/* Back to Home Link */
.back-home-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 28px;
    color: #0066cc;
    font-size: 16px;
    text-decoration: none;
}

.back-home-link:hover {
    text-decoration: underline;
}
