/* ========================================
   COMPANY FV
======================================== */

.company-fv {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 384px;
    background: rgba(0, 0, 0, 0.225);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 568px) {
    .company-fv {
        min-height: 392px;
    }
}

.company-fv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/company-bg.jpg'); /* 後で画像を配置 */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@media (min-width: 768px) {
    .company-fv {
        max-height: 640px;
    }
}
/* ========================================
   COMPANYセクション
======================================== */
.company-section {
    background: linear-gradient(to bottom, 
        #faf7f0 0%,      /* 上部：淡いゴールドアイボリー */
        #ffffff 60%      /* 下部：白にフェードアウト */
    );
    position: relative;
}

.company-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/company-section-bg-reverse.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.company-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {

    .company-section__inner {
        gap: 48px;
        max-width: 1200px;
    }
    
}

.company-info {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 24px 20px;
    box-shadow: 0 8px 32px rgba(184, 152, 109, 0.1); /* 透過度を 0.15 → 0.1 に変更 */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); */
}

@media (min-width: 768px) {
    .company-info {
        padding: 56px;
    }
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

/* テーブル行のアニメーション - ハンバーガーメニューと同じ効果 */
.company-table tr {
    border-bottom: 2px solid transparent; /* 初期状態は透明 */
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

/* アニメーションがトリガーされた後の状態 */
.company-table tr.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    border-bottom-color: var(--color-border); /* アニメーション後に色を表示 */
}

/* 会社概要セクション後の装飾線アニメーション */
.company-section + .section-divider {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.company-section + .section-divider.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.company-table th {
    font-weight: 600;
    width: 26%;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid transparent; /* 初期状態は透明 */
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    color: var(--color-text);
    transition: border-color 0.5s ease;
}

/* thが含まれる行がアニメーションされたときにthの下線も表示 */
.company-table tr.fade-in-up th {
    border-bottom-color: var(--color-primary); /* アニメーション後にゴールドの色を表示 */
}

.company-table td {
    width: 74%;
    padding: 20px;
    color: var(--color-gray);
    letter-spacing: var(--body-letter-spacing);
    line-height: var(--body-line-height-sp);
}

/* アクセスMAPのレスポンシブ対応 */
.company-map {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3のアスペクト比 (450/600 = 0.75) */
    height: 0;
    overflow: hidden;
}

.company-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {

    .company-table th {
        line-height: var(--body-line-height-pc);
    }
    
    .company-table td {
        line-height: var(--body-line-height-pc);
    }

    
}

/* ========================================
   CONTACT FV
======================================== */
.contact-fv {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 384px;
    background: rgba(0, 0, 0, 0.225);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 568px) {
    .contact-fv {
        min-height: 392px;
    }
}

.contact-fv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/contact-bg.jpg'); /* 後で画像を配置 */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@media (min-width: 768px) {
    .contact-fv {
        max-height: 640px;
    }
}

/* ========================================
   CONTACTセクション
======================================== */

.contact-section-wrapper {
    background-color: var(--color-white);
    position: relative;
}

.contact-section {
    padding-bottom: 24px;
    
    
}

.contact-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/business-section-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.contact-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {

    .contact-section__inner {
        gap: 48px;
        max-width: 1200px;
    }

    .contact-section {
        padding-bottom: 32px;
        
        
    }
    
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    background-color: rgba(252, 251, 249, 0.98);
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-info__text {
    font-family: var(--font-base);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: var(--body-line-height-sp);
    margin: 0 auto 30px;
    text-align: left;
}

.contact-methods {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {

    .contact-info-wrapper {
        padding: 32px;
    }

    .contact-info__text {
        line-height: var(--body-line-height-pc);
        margin-bottom: 30px;
        text-align: center;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.contact-method {
    padding: 24px;
    background-color: rgba(246, 245, 243, 0.875);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.contact-method__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-method__detail-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-method__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method__icon svg {
    width: 40px;
    height: 40px;
}

/* 電話アイコンだけ少し小さく */
.contact-method:first-child .contact-method__icon svg {
    width: 34px;
    height: 34px;
}

.contact-method__icon .fill-primary {
    fill: var(--color-primary);
}

.contact-method__detail {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

@media (min-width: 768px) {
    .contact-method__detail {
        font-size: 28px;
    }
}

.contact-method__note {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--color-gray);
}

.contact-method__note--info {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(184, 152, 109, 0.15);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .contact-method__note {
        font-size: 1.1rem;
    }
    
    .contact-method__note--info {
        font-size: 1rem;
    }
}

/* FAXカードの必須事項リスト */
.contact-method__requirements {
    width: 100%;
    margin: 16px 0;
    padding: 12px 16px;
    background-color: rgba(184, 152, 109, 0.05);
    border-left: 3px solid var(--color-primary);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
}

.contact-method__requirements li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
    white-space: nowrap;
}

.contact-method__requirements .check-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 1px;
    overflow: hidden;
}

/* 注意書き（重要） */
.contact-method__note--important {
    margin-top: auto;
    padding: 12px;
    background-color: rgba(184, 152, 109, 0.1);
    border-radius: 4px;
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
    text-align: left;
}

/* ========================================
   CONTACTフォームセクション
======================================== */
.contact-form-section {
    background-color: var(--color-white);
    padding-top: 24px;
}

.contact-form-section__inner {
    background-color: rgba(245, 245, 245, 0.98);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {

    .contact-form-section__inner {
        max-width: 1200px;
        padding: 32px;
    }

    .contact-form-section {
        padding-top: 32px;
    }
    
}

.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(252, 252, 252, 0.875);
    padding: 32px 16px;
}

@media (min-width: 768px) {
    .contact-form {
        padding: 40px 32px;
    }
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 500;
}

.form-label__required {
    display: inline-block;
    background-color: #e74c3c;
    color: var(--color-white);
    font-size: 12px;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    /* iOSのデフォルトスタイルを解除 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: var(--color-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 150px;
    resize: none;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit .btn {
    min-width: 200px;
}

/* ========================================
   コンタクトセクションタイトル
======================================== */

/* カテゴリータイトル（左寄せ） */
.contact-category-title {
    margin-bottom: 24px;
    text-align: left;
}

.contact-category-title__en {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

/* セクションタイトル（上下にゴールド線） */
.contact-section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.contact-section-title-wrapper::before,
.contact-section-title-wrapper::after {
    content: '';
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(184, 152, 109, 0.3) 10%,
        var(--color-primary) 50%,
        rgba(184, 152, 109, 0.3) 90%,
        transparent 100%
    );
}

.contact-section-title-wrapper::before {
    margin-bottom: 16px;
}

.contact-section-title-wrapper::after {
    margin-top: 16px;
}

.contact-section-title {
    color: var(--color-text);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: var(--font-base);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .contact-section-title-wrapper::before,
    .contact-section-title-wrapper::after {
        max-width: 600px;
    }
    
    .contact-section-title-wrapper::before {
        margin-bottom: 20px;
    }
    
    .contact-section-title-wrapper::after {
        margin-top: 20px;
    }
}

/* ========================================
   フォーム説明文
======================================== */
.contact-form-description {
    color: var(--color-text);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-family: var(--font-base);
    font-weight: 400;
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    margin-bottom: 32px;
    text-align: left;
}

@media (min-width: 768px) {
    .contact-form-description {
        line-height: var(--body-line-height-pc);
        text-align: center;
    }
}

/* ========================================
   フォームラベルとバッジ
======================================== */
.form-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-label__badge {
    padding: 4px 8px;
    font-size: 14px;
    font-family: var(--font-base);
    font-weight: 400;
    text-align: center;
    line-height: 1;
    border-radius: 2px;
}

.form-label__badge--required {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.form-label__badge--optional {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* ========================================
   ラジオボタン
======================================== */
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px;
}

@media (min-width: 768px) {
    .form-radio-group {
        gap: 32px;
    }
}

.form-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.form-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.form-label {
    color: var(--color-text);
}

.form-radio-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.form-radio:checked + .form-radio-custom {
    background-color: var(--color-primary);
}

.form-radio:checked + .form-radio-custom::after {
    content: '';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
}

.form-radio-text {
    color: var(--color-text);
    font-size: 16px;
    font-family: var(--font-base);
    font-weight: 400;
}

.form-radio-label:hover .form-radio-custom {
    border-color: var(--color-secondary);
}

/* ========================================
   送信ボタン
======================================== */
.btn-submit {
    width: 100%;
    max-width: 280px;
    padding: 20px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-family: var(--font-base);
    font-weight: 400;
    letter-spacing: var(--button-letter-spacing);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 152, 109, 0.3);
}

.btn-submit__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========================================
   個人情報保護方針アコーディオン
======================================== */
.privacy-policy-accordion {
    max-width: 800px;
    margin: 48px auto 0;
    border: 1px solid var(--color-border);
}

.privacy-policy-accordion__header {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.privacy-policy-accordion__header:hover {
    background-color: var(--color-secondary);
}

.privacy-policy-accordion__header[aria-expanded="true"] {
    background-color: var(--color-secondary);
}

.privacy-policy-accordion__title {
    font-size: 16px;
    font-family: var(--font-base);
    font-weight: 500;
    letter-spacing: var(--button-letter-spacing);
}

.privacy-policy-accordion__icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

/* 縦棒（常に表示） */
.privacy-policy-accordion__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 16px;
    background-color: var(--color-white);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* 横棒（常に表示） */
.privacy-policy-accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 開いている時：縦棒を消す（マイナスに） */
.privacy-policy-accordion__header[aria-expanded="true"] .privacy-policy-accordion__icon::before {
    transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
    opacity: 0;
}

.privacy-policy-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-policy-accordion__content[hidden] {
    display: block;
    max-height: 0;
}

.privacy-policy-accordion__content:not([hidden]) {
    overflow-y: auto;
}

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

.privacy-policy-accordion__content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.privacy-policy-accordion__content::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.privacy-policy-accordion__content::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

.privacy-policy-accordion__text {
    padding: 24px 20px;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font-base);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.privacy-policy-accordion__text strong {
    font-weight: 700;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.privacy-policy-accordion__text strong::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #c7ba97 0%, #a18c5b 100%);
    transform: rotate(45deg);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .privacy-policy-accordion {
        margin: 60px auto 0;
    }


    .privacy-policy-accordion__header {
        padding: 20px 32px;
    }

    .privacy-policy-accordion__title {
        font-size: 18px;
    }

    .privacy-policy-accordion__text {
        padding: 32px 40px;
        font-size: 15px;
    }
}

/* ========================================
   送信成功ポップアップ
======================================== */
.form-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-success-popup.is-active {
    display: flex;
    opacity: 1;
}

.form-success-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.form-success-popup__content {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    padding: 48px 32px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-success-popup.is-active .form-success-popup__content {
    transform: scale(1);
}

.form-success-popup__icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    animation: popupIconBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupIconBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.form-success-popup__title {
    color: var(--color-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-base);
    font-weight: 700;
    margin-bottom: 16px;
}

.form-success-popup__message {
    color: var(--color-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-family: var(--font-base);
    font-weight: 400;
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .form-success-popup__message {
        line-height: var(--body-line-height-pc);
    }
}

.form-success-popup__button {
    padding: 16px 48px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-base);
    font-weight: 400;
    letter-spacing: var(--button-letter-spacing);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-success-popup__button:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 152, 109, 0.3);
}
