@charset "UTF-8";

/* ==========================================================================
   お問い合わせページ (Contact)
   ========================================================================== */
.page-main {
    padding-top: 290px;
    /* 固定ヘッダーの高さ分下げる */
    padding-bottom: 150px;
    background-color: #E4F0FE;
    /* お問い合わせページの背景色を指定 */
    min-height: 100vh;
    position: relative;
    /* 左上のタイトル装飾を絶対配置するため */
}

.contact-page__inner {
    width: 950px;
    margin: 0 auto;
}

.contact-page__title {
    font-size: 32px;
    color: #1F61F7;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/* ==========================================================================
   左上の絶対配置タイトルと点線
   ========================================================================== */
.contact-main__title {
    position: absolute;
    left: calc(200 / 1920 * 100vw);
    top: 250px;
    /* 固定ヘッダー下、コンテンツの上のスペースに配置 */
    font-size: 14px;
    color: #1F61F7;
    font-weight: 500;
    letter-spacing: 0.2em;
    z-index: 2;
}

.contact-main__title-line {
    position: absolute;
    left: 0;
    top: 286px;
    /* titleの36px下（Section2と同じ間隔） */
    width: calc(450 / 1920 * 100vw);
    height: 1px;
    border-bottom: 1px dashed #1F61F7;
    z-index: 2;
}

.contact-page__intro {
    background-color: #FFFFFF;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
    text-align: center;
}

.contact-page__intro-text {
    font-size: 16px;
    line-height: 2;
    color: #333333;
}

.contact-page__cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.contact-page__card {
    flex: 1;
    background-color: #F8F9FA;
    border: 1px solid #EEEEEE;
    border-top: 4px solid #1F61F7;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-page__card:hover {
    box-shadow: 0 10px 20px rgba(31, 97, 247, 0.1);
    transform: translateY(-5px);
}

.contact-page__card-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

.contact-page__card-value {
    font-size: 24px;
    font-weight: bold;
    color: #1F61F7;
    margin-bottom: 0;
}

.contact-page__card-value a {
    color: #1F61F7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-page__card-value a:hover {
    opacity: 0.7;
}

.contact-page__card-value.email {
    font-size: 18px;
    /* メールアドレスは少し小さくする */
}

/* ==========================================================================
   アニメーション (Fade-in - スクロール連動)
   ========================================================================== */
.contact-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 各要素の遅延設定 */
.contact-animate--1 {
    transition-delay: 0s;
}

.contact-animate--2 {
    transition-delay: 0.2s;
}

.contact-animate--3 {
    transition-delay: 0.1s;
}

.contact-animate--4 {
    transition-delay: 0.2s;
}

.contact-animate--5 {
    transition-delay: 0.3s;
}

.contact-animate--6 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   SVG線画アニメーション (js-svg-draw)
   ========================================================================== */
.js-svg-draw path {
    stroke-dasharray: var(--length, 1000px);
    stroke-dashoffset: var(--length, 1000px);
}

.js-svg-draw.is-visible path {
    animation: svg-draw var(--duration, 1.5s) linear var(--delay, 0s) forwards;
}

@keyframes svg-draw {
    100% {
        stroke-dashoffset: 0;
    }
}

/* ドット（青と黒同時表示） */
.js-svg-draw .js-svg-dot {
    opacity: 0;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
}

.js-svg-draw.is-visible .js-svg-dot {
    animation: svg-dot-show 0.1s linear var(--delay, 0s) forwards;
}

@keyframes svg-dot-show {
    100% {
        opacity: 1;
    }
}

/* ==========================================================================
   メールフォームボタン
   ========================================================================== */
.contact-page__form-section {
    margin-top: 60px;
    text-align: center;
}

.contact-page__form-text {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.contact-page__form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1F61F7;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.15em;
    padding: 20px 80px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(31, 97, 247, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.contact-page__form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(31, 97, 247, 0.4);
    opacity: 0.9;
}

.contact-page__form-arrow {
    position: relative;
    width: 8px;
    height: 8px;
    border-top: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    transform: rotate(45deg);
    margin-left: 15px;
}