@charset "UTF-8";

.page-title {
    /* 修正：Cherry Bomb Oneを外して、Hachi Maru Popを一番にする */
    font-family: "Hachi Maru Pop", cursive;
    
    font-size: 2.5rem; /* 字体を変えると少し大きく感じるので微調整 */
    color: #ff69b4;
    text-shadow: 3px 3px 0 #fff;
    margin: 40px 0;
    font-weight: bold;
}
.contact-container {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.1);
}

.contact-intro {
    margin-bottom: 30px;
    font-weight: bold;
    color: #ff007f;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff69b4;
    padding-left: 10px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    font-family: "Hachi Maru Pop", cursive;
    font-size: 1rem;
    box-sizing: border-box; /* 幅をはみ出さないようにする */
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff69b4;
    background-color: #fff9fb;
}

.submit-btn {
    background: linear-gradient(to right, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-family: "Hachi Maru Pop", cursive;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

@media screen and (max-width: 768px) {
    /* どんな要素も、画面の幅（100%）を超えないように強制する */
    section, div, table, form, input, textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 表（テーブル）を使っているなら、スマホでは縦に並べる */
    table, thead, tbody, th, td, tr {
        display: block !important;
        width: 100% !important;
    }
}

/* --- お問い合わせ：スマホでも打ちやすいオーダーメイド --- */
@media screen and (max-width: 768px) {
    /* 1. タイトルをスッキリさせる */
    .page-title {
        font-size: 1.8rem !important;
        margin: 25px 0;
    }

    /* 2. 白いコンテナ（箱）の調整 */
    .contact-container {
        width: 92% !important; /* 左右に少しだけ余白 */
        margin: 0 auto 30px !important;
        padding: 20px 15px !important; /* 中の余白を少し詰める */
        border-width: 3px !important; /* 枠を少し細くして中身を広く */
        border-radius: 20px !important;
    }

    .contact-intro {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* 3. 【最重要】入力欄の最適化 */
    input, textarea {
        font-size: 16px !important; /* iPhoneの自動ズーム防止！ */
        padding: 12px !important;
        border-radius: 12px !important;
        /* box-sizing: border-box は元々入っているのでOK */
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    /* 4. 送信ボタンを指で押しやすく */
    .submit-btn {
        width: 100% !important; /* ボタンを横いっぱいに広げる */
        padding: 15px 0 !important;
        font-size: 1.1rem !important;
        margin-top: 5px;
    }

    /* 5. 戻るボタンなどがある場合 */
    .link {
        width: 85% !important;
        max-width: 280px;
        padding: 12px 0 !important;
    }
}

/* 共通リンクボタン：幅を強制固定する */
.link {
    position: relative;
    display: block;      /* inline-blockからblockに変更（幅をきかせやすくするため） */
    margin: 0 auto;      /* 真ん中に寄せる */
    width: 280px !important; /* 絶対に280pxにする命令 */
    box-sizing: border-box;  /* 枠線や余白を幅に含める */
    
    text-decoration: none;
    color: #fff;
    background: linear-gradient(to right, #ff9a9e 0%, #fecfef 100%);
    padding: 15px 0 !important; /* 左右のpaddingは0にして幅を固定 */
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    font-family: "Hachi Maru Pop", cursive;
}