/* ========================================
   お問い合わせページCSS
   ======================================== */

/* privacy.cssと同じ構造を継承 */

/* ページ全体のoverflow制御 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* モバイルでmainの白背景を透明に（パララクス背景表示のため） */
@media (max-width: 767px) {
    main {
        background: transparent;
    }
}

/* ================================================
   固定背景画像
   ================================================ */

.fixed-bg-layer.business-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('../img/mix_img.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #002147;
  overflow: hidden;
  max-width: 100vw;
}

/* デスクトップのみfixed attachment + contain */
@media (min-width: 1024px) {
  .fixed-bg-layer.business-bg {
    background-attachment: fixed;
    background-size: contain;
  }
}

/* モバイル用背景画像 */
@media (max-width: 767px) {
  .fixed-bg-layer.business-bg {
    background-image: url('../img/mix_img_sp.jpg');
  }
}

.overlay-white {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(243, 255, 246, 0.45);
  background-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* モバイル用オーバーレイ強化 */
@media (max-width: 767px) {
  .overlay-white {
    background: rgba(243, 255, 246, 0.65);
  }
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 2;
}

/* ================================================
   ページタイトルセクション
   ================================================ */

.page-title-section {
  position: relative;
  background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .page-title-section {
    height: 320px;
  }
}

.page-title-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.page-title-container {
  position: relative;
  z-index: 2;
  font-family: 'Hannari', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .page-title-container {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 1024px) {
  .page-title-container {
    font-size: 3rem;
  }
}


/* ================================================
   コンテンツセクション
   ================================================ */

.content-section {
    padding: 0 0 2rem 0;
    position: relative;
}

.content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .content-container {
        padding: 0 1.5rem;
    }
}

/*
 * .intro-description のスタイルは common.css で定義済み
 */

/* ================================================
   お問い合わせ方法選択セクション
   ================================================ */

.contact-methods-section {
    padding: 3rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .contact-methods-section {
        padding: 4rem 0;
    }
}

.contact-methods-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .contact-methods-container {
        padding: 0 1.5rem;
    }
}

.section-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #002147;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 4rem;
    }
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.contact-method-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 33, 71, 0.15);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0068b7 0%, #00a8ff 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.contact-method-card:hover .contact-card-icon {
    transform: rotate(10deg) scale(1.1);
}

.contact-card-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.35rem;
    color: #002147;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #002147 0%, #0068b7 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
}

.contact-card-button:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);
}

.contact-card-button i {
    transition: transform 0.3s ease;
}

.contact-card-button:hover i {
    transform: translateX(5px);
}

/* ================================================
   電話お問い合わせセクション
   ================================================ */

.phone-contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #002147 0%, #0068b7 100%);
    position: relative;
    overflow: hidden;
}

.phone-contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.phone-contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.phone-contact-content {
    text-align: center;
    color: #ffffff;
}

.phone-contact-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.phone-contact-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

@media (min-width: 768px) {
    .phone-contact-title {
        font-size: 2rem;
    }
}

.phone-number-box {
    margin: 2rem 0;
}

.phone-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 1rem 2rem;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .phone-number {
        font-size: 3.5rem;
    }
}

.phone-number:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: scale(1.05);
}

.phone-info {
    margin: 2.5rem 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.phone-info p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
}

.phone-info i {
    font-size: 1.2rem;
    color: #ffffff;
}

.phone-hours {
    font-weight: 600;
    color: #ffffff;
}

.phone-note {
    font-size: 0.95rem;
    opacity: 0.9;
    color: #ffffff;
}

.fax-number {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.phone-message {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-top: 2rem;
    color: #ffffff;
}

/* ================================================
   お問い合わせフォームセクション
   ================================================ */

.contact-form-section {
    padding: 5rem 0;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .contact-form-section {
        padding: 6rem 0;
    }
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .contact-form-container {
        padding: 0 1.5rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-subtitle {
    font-family: serif;
    color: #0068b7;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.form-title {
    font-family: 'Hannari', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #002147;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .form-title {
        font-size: 2.25rem;
    }
}

.form-description {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .form-description {
        font-size: 1rem;
    }
}

.form-description .nowrap-line {
    display: inline-block;
    white-space: nowrap;
}

.required-mark {
    color: #dc3545;
    font-weight: 700;
    margin-left: 3px;
    font-size: 14px;
}

/* フォームスタイル */
.contact-form {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 4rem 3rem;
    }
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #002147;
    margin-bottom: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 0 0 0 3px rgba(0, 104, 183, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc3545;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-checkbox {
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

.checkbox-text a {
    color: #0068b7;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-text a:hover {
    color: #004c8c;
}

.form-submit {
    margin-top: 3rem;
    text-align: center;
}

.form-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #002147 0%, #0068b7 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.2);
}

.form-submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.3);
}

.form-submit-button i {
    transition: transform 0.3s ease;
}

.form-submit-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .form-submit-button {
        font-size: 0.95rem;
        padding: 1rem 2rem;
    }
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* アニメーション */
.form-group.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ================================================
   CTAセクション
   ================================================ */

.cta-section {
    padding: 6rem 0;
    background-color: #002147;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grid-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 1.875rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    color: #e6f0ff;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.cta-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-button-container {
        flex-direction: row;
    }
}

.cta-button {
    flex: 1 1 0%;
    padding: 1.5rem 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.cta-button-primary {
    background-color: #0056b3;
    color: white;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover {
    background-color: white;
    color: #0056b3;
}

.cta-button-primary .cta-button-icon-chevron {
    opacity: 0;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover .cta-button-icon-chevron {
    opacity: 1;
    transform: translateX(0.25rem);
}

.cta-button-secondary {
    background-color: #003366;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-secondary:hover {
    background-color: #00a8ff;
}

.cta-button-icon {
    font-size: 1.25rem;
}

.cta-button-icon-sm {
    font-size: 0.875rem;
}

.cta-button-icon-chevron {
    font-size: 0.75rem;
}

/* ================================================
   共通ユーティリティ
   ================================================ */

.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .pc-only {
        display: inline;
    }
}

.sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* ================================================
   確認・完了モーダル
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.modal-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #002147;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.modal-title i {
    color: #0068b7;
    font-size: 1.75rem;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #666666;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .modal-footer {
        flex-direction: row;
        justify-content: center;
    }
}

/* 確認テーブル */
.confirmation-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.confirmation-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 640px) {
    .confirmation-row {
        grid-template-columns: 160px 1fr;
        gap: 1rem;
        align-items: start;
    }
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    font-weight: 600;
    color: #0068b7;
    font-size: 0.9rem;
}

.confirmation-value {
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}

/* モーダルボタン */
.btn-back,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background: #e5e7eb;
    color: #333333;
}

.btn-back:hover {
    background: #d1d5db;
}

.btn-submit {
    background: linear-gradient(135deg, #002147 0%, #0068b7 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 完了画面 */
.completion-content {
    text-align: center;
    padding: 3rem 2rem;
}

.completion-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    border-radius: 50%;
    font-size: 3rem;
    color: #ffffff;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.completion-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 1rem;
}

.completion-message {
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.reference-number-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.reference-label {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 600;
}

.reference-number {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0068b7;
    letter-spacing: 0.05em;
}

.completion-note {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 2rem;
}

.btn-close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: #002147;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: #0068b7;
    transform: translateY(-2px);
}

/* ================================================
   イントロセクション
   ================================================ */
/*
 * イントロセクションは common.css のスタイルを使用
 * 他画面と同じデザインを維持するため、ここでは上書きしない
 */

/*
 * .services-section / .services-container のスタイルは common.css で定義済み
 */

/* 改行禁止テキスト */
.intro-description-nowrap {
    text-align: center;
}

.intro-description-nowrap .nowrap-line {
    display: inline-block;
    white-space: nowrap;
}

/* ================================================
   ファイル添付フィールド
   ================================================ */

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #0068b7;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: #004a82;
}

.file-upload-label i {
    font-size: 16px;
}

.file-name {
    font-size: 14px;
    color: #666;
}

.form-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

@media (max-width: 480px) {
    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-upload-label {
        width: 100%;
        justify-content: center;
    }
}
