/**
 * Contact Form Styles
 * お問い合わせフォームスタイル
 */

/* ===========================
   Hero Section - About Page Style
   =========================== */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--text-primary, #1f2937);
    color: var(--white, #ffffff);
    padding-top: 8rem; /* Fixed header offset */
}

/* シンプルな背景オーバーレイ */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(5, 150, 105, 0.1) 0%,
        transparent 50%,
        rgba(234, 88, 12, 0.08) 100%
    );
    z-index: 1;
}

.about-hero__content {
    position: relative;
    z-index: 10;
    max-width: min(120rem, 90vw);
    margin: 0 auto;
    padding: 0 clamp(2rem, 4vw, 4rem);
    text-align: left;
    width: 100%;
}

.about-hero__title {
    font-size: clamp(4.8rem, 4rem + 2.4vw, 7.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2.4rem;
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero__subtitle {
    font-size: clamp(1.8rem, 1.6rem + 0.6vw, 2.2rem);
    line-height: 1.6;
    opacity: 0.9;
    max-width: 60rem;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .about-hero {
        min-height: 50vh;
        padding-top: 6rem;
    }
    
    .about-hero__title {
        margin-bottom: 1.6rem;
    }
}

/* ===========================
   Form Elements
   =========================== */

/* セレクトボックス */
.form__select {
    overflow: hidden;
    width: 100%;
    position: relative;
    border: 1px solid #bbb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form__select::before {
    position: absolute;
    top: auto;
    right: .9em;
    width: auto;
    height: auto;
    padding: auto;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1073a8;
    pointer-events: none;
}

.form__select .select {
    width: 100%;
    cursor: pointer;
    text-indent: .01px;
    text-overflow: ellipsis;
    border: none;
    outline: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    appearance: none;
    padding: 15px 38px 15px 18px;
    color: #666;
}

.form__select .select::-ms-expand {
    display: none;
}

/* 入力フィールド */
.form__input {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    height: 41px;
    font-size: var(--font-size-sm);
    letter-spacing: .05em;
    padding: 0 1em;
}

.form__textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    resize: vertical;
    min-height: 160px;
    font-size: var(--font-size-sm);
    letter-spacing: .05em;
    padding: 20px 1em;
}

.form__input,
.form__textarea {
    transition: all .3s ease;
}

.form__input:focus,
.form__textarea:focus {
    border-color: #1073a8;
    background: #fff;
    outline: 0;
}

/* チェックボックス */
.form__checkbox:checked,
.form__checkbox:not(:checked) {
    position: absolute;
    left: -9999px;
}

.form__checkbox:checked + .form__checkLabel,
.form__checkbox:not(:checked) + .form__checkLabel {
    position: relative;
    padding-left: 1.95em;
    cursor: pointer;
}

.form__checkbox:checked + .form__checkLabel:before,
.form__checkbox:not(:checked) + .form__checkLabel:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid #ccc;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
}

.form__checkbox:checked + .form__checkLabel:after,
.form__checkbox:not(:checked) + .form__checkLabel:after {
    content: '\2713\0020';
    position: absolute;
    top: .15em;
    left: .22em;
    font-size: 1.3em;
    line-height: .8;
    color: #1073a8;
    transition: all .2s;
    font-family: 'Lucida Sans Unicode', 'Arial Unicode MS', Arial;
}

.form__checkbox:not(:checked) + .form__checkLabel:after {
    opacity: 0;
    transform: scale(0);
}

.form__checkbox:checked + .form__checkLabel:after {
    opacity: 1;
    transform: scale(1);
}

/* ラジオボタン */
.form__radioBox + .form__radioBox {
    margin-top: 16px;
}

.form__radio {
    display: none;
}

.form__radioLabel {
    position: relative;
    padding: 0 20px 0 26px;
    cursor: pointer;
    display: inline-block;
}

.form__radioLabel:after {
    position: absolute;
    content: "";
    display: block;
    top: 50%;
    border-radius: 50%;
    left: 0;
    margin-top: -10px;
    width: 7px;
    height: 7px;
    border: 6px solid #ccc;
    transition: border .3s ease;
}

.form__radio:checked + .form__radioLabel:after {
    border-color: #1073a8;
    box-shadow: 0 0 4px #d6d6d6;
}

/* ===========================
   Form Layout
   =========================== */
.form__inner {
    width: 1200px;
    max-width: 92%;
    margin: 100px auto 100px;
}

.form__list {
    list-style-type: none;
}

.form__listItem {
    position: relative;
}

.form__listItem + .form__listItem {
    margin-top: 30px;
}

.form__listLabel {
    position: relative;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    display: block;
}

.form__listInputBox {
    margin-top: 10px;
}

/* 必須マーク */
.hissu {
    color: #fff;
    font-size: 11px;
    width: 42px;
    height: 22px;
    line-height: 22px;
    display: inline-block;
    text-align: center;
    margin: 0 12px;
    background: #bf1e1e;
    border-radius: 4px;
}

/* エラー表示 */
.borderRed {
    border: solid 1px red;
}

.errorMessage {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 5;
    padding: 15px;
    text-align: center;
    background-color: #fff5f5;
    color: #e1536a;
}

/* ===========================
   Submit Button
   =========================== */
.form__submitBox {
    margin-top: 70px;
    text-align: center;
}

.form__link {
    margin: auto;
    height: 75px;
    width: 600px;
    max-width: 100%;
    transition: color .3s ease, background-color .3s ease;
    font-size: var(--font-size-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background-color: #1073a8;
    border: solid 1px #1073a8;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
}

.form__link:hover {
    color: #1073a8 !important;
    background-color: #fff;
}

.form__link--back {
    border: solid 1px #000;
    background-color: #000;
    margin-top: 30px;
}

.form__link--back:hover {
    color: #000 !important;
    background-color: #fff;
}

/* ===========================
   File Upload
   =========================== */
.form__fileBox {
    padding: 10px 20px;
    border: 1px solid #ccc;
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;
    background: #f9f9f9;
    border-radius: 6px;
}

.form__fileBox label {
    width: 60px;
    font-size: var(--font-size-xs);
    padding: 8px 0;
    text-align: center;
    font-weight: 700;
    line-height: 1em;
    color: #fff;
    background-color: #1073a8;
    cursor: pointer;
    border-radius: 4px;
}

input[type=file] {
    display: none;
}

.file__text01,
.file__text02,
.file__text03 {
    font-size: var(--font-size-sm);
    color: #000;
    margin-left: 20px;
}

.file__description {
    padding: 10px;
    border-radius: 10px;
    background-color: #fafafa;
    margin-top: 18px;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: #666;
}

/* ===========================
   Privacy Policy Section
   =========================== */
.privacy__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

/* プライバシーポリシーリンクスタイル */
.form__checkLabel a {
    color: var(--color-primary, #059669);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form__checkLabel a:hover {
    color: #047857;
    text-decoration: underline;
}

.form__checkLabel a:focus {
    outline: 2px solid var(--color-primary, #059669);
    outline-offset: 2px;
    border-radius: 2px;
}

/* プライバシーポリシー詳細スタイル */
.privacy-policy-detail {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.privacy-policy-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #4A8DD1;
    padding-bottom: 10px;
}

.privacy-policy-content {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.privacy-policy-text {
    padding: 25px;
    line-height: 1.7;
}

.privacy-policy-text h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #4A8DD1;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e5e9;
}

.privacy-policy-text h4:first-child {
    margin-top: 0;
}

.privacy-policy-text p {
    margin-bottom: 15px;
    color: #444;
    font-size: var(--font-size-sm);
}

.privacy-policy-text ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.privacy-policy-text ul li {
    margin-bottom: 8px;
    color: #555;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.privacy-policy-detail .contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #4A8DD1;
}

.privacy-policy-detail .contact-info p {
    margin-bottom: 5px;
    font-size: var(--font-size-sm);
    color: #333;
}

.privacy-policy-detail .contact-info p:first-child {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: #2c3e50;
    margin-bottom: 10px;
}

.policy-date {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
    font-size: var(--font-size-xs);
    color: #666;
    text-align: right;
}

/* スクロールバーのスタイル */
.privacy-policy-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-policy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.privacy-policy-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.privacy-policy-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===========================
   Check Page Styles
   =========================== */
.check__inner {
    width: 92%;
    max-width: 900px;
    margin: 60px auto 60px;
}

.check__table {
    width: 100%;
    margin-top: 35px;
    border-top: 1px solid #d3d4d3;
    border-left: 1px solid #d3d4d3;
    border-right: 1px solid #d3d4d3;
    text-align: left;
}

.check__table tr {
    border-bottom: 1px solid #d3d4d3;
}

.check__table th {
    background-color: #f0f1f0;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.check__table td,
.check__table th {
    padding: 20px;
    vertical-align: middle;
    font-size: var(--font-size-sm);
}

.check__ifArrayText {
    margin-top: 8px;
}

.check__ifArrayText + .check__ifArrayText {
    margin-top: 4px;
}

/* ===========================
   Thanks Page Styles
   =========================== */
.thanks__inner {
    width: 790px;
    max-width: 92%;
    margin: 0 auto 0;
    background-color: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.thanks__text {
    font-size: var(--font-size-sm);
    line-height: 2.1;
    text-align: center;
    color: var(--text-color);
}

.thanks__submitBox {
    margin: 25px 0 0 0;
    text-align: center;
}

.thanks__submitBox .form__link {
    height: 47px;
    font-size: var(--font-size-sm);
}

/* ===========================
   Flow Steps
   =========================== */
.flow__inner {
    width: 1200px;
    max-width: 92%;
    margin: 100px auto 0;
}

.flow__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.flow__list::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #777;
    position: absolute;
    left: 0;
    z-index: -1;
}

.flow__listItem {
    width: 100px;
    height: 100px;
    background-color: #000;
    color: #fff;
    font-size: var(--font-size-base);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
}

.flow__listItem--active {
    background-color: #c30b0b;
}

/* ===========================
   Loading Animation
   =========================== */
.loaderItem {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}

.loaderBox {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.loader {
    margin: auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 2px solid rgba(255, 255, 255, .2);
    border-right: 2px solid rgba(255, 255, 255, .2);
    border-bottom: 2px solid rgba(255, 255, 255, .2);
    border-left: 2px solid #b1b1b1;
    transform: translateZ(0);
    animation: load8 1.1s infinite linear;
}

@keyframes load8 {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .form__inner {
        width: 92%;
        max-width: 100%;
        margin: 25px auto 50px;
    }
    
    .form__listLabel {
        font-size: var(--font-size-sm);
    }
    
    .form__input,
    .form__textarea {
        font-size: var(--font-size-xs);
    }
    
    .form__link {
        font-size: var(--font-size-base);
        height: 60px;
    }
    
    .hissu {
        right: 15px;
    }
    
    .form__fileBox {
        padding: 5px 10px;
    }
    
    .form__fileBox label {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .file__text01,
    .file__text02,
    .file__text03 {
        font-size: 12px;
    }
    
    .file__description {
        font-size: 13px;
        line-height: 2;
    }
    
    .thanks__inner {
        width: 92%;
        max-width: 100%;
        padding: 30px 20px 30px;
    }
    
    .thanks__text {
        text-align: left;
    }
    
    .thanks__submitBox {
        margin-top: 40px;
    }
    
    .flow__inner {
        width: 92%;
        max-width: 100%;
        margin: 25px auto 0;
    }
    
    .check__inner {
        max-width: 100%;
    }
    
    .privacy-policy-detail {
        padding: 20px;
        margin-top: 30px;
    }
    
    .privacy-policy-title {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .form__radioBox + .form__radioBox {
        margin-top: 34px;
    }
    
    .form__radioLabel {
        padding-right: 10px;
    }
    
    .form__checkLabel + .form__checkbox + .form__checkLabel {
        margin-top: 10px;
        margin-left: 0;
    }
}