@charset "UTF-8";

/* ==========================================
CONTACT ページ
========================================== */

/* ページ全体の背景
※色とドット模様は現在のまま */
body {
    background-color: #fab400;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.35) 20%,
        transparent 20%
    );
    background-size: 18px 16px;
    min-height: 100vh;
}

/* ==========================================
ABOUTと同じページ幅の器
========================================== */

.portfolio-container {
    width: 100%;
    max-width: 1024px;
    min-height: 100vh;
    margin: 0 auto;
    /* 青などの背景色を上書きしない */
    background-color: #fab400 !important;
}

/* ==========================================
CONTACT 本体
========================================== */

.contact-section {
    width: 100%;
}

.contact-body {
    width: 100%;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

/* ==========================================
ページ番号
========================================== */

.page-number {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 4rem;
    color: #1472fc;
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
    margin-bottom: 5px;
}

/* ==========================================
CONTACTタイトル
========================================== */

.main-title {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 4rem;
    color: #1472fc;
    -webkit-text-stroke: 3px #000000;
    text-shadow: 4px 4px 0px #000000;
    margin-top: -10px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ==========================================
フォーム
========================================== */

.contact-form {
    width: 100%;
    background-color: #ffffff;
    border: 4px solid #000000;
    border-radius: 45px;
    padding: 50px 40px;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

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

.form-group label {
    display: block;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 12px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    outline: none;
}

/* ==========================================
送信ボタン（SKILLSの立体ボタンと統一）
========================================== */

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.submit-btn {
    width: 100%;
    max-width: 200px;
    height: 55px;
    border: 4px solid #000000;
    border-radius: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #f6ff00; /* ポップな黄色 */
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 1.2rem;
    color: #000000;
    font-weight: 900;

    /* 🌟 影を斜め下にカチッと出す（初期状態は浮いている設定に） */
    box-shadow: 0 6px 0px #000000;
    cursor: pointer;

    /* 🌟 沈み込みアニメーション用の位置基準設定 */
    position: relative;
    top: 0;
    transition: all 0.15s ease-out;
}

/* 🌟 ホバー：ボタンが少し浮き上がり、影が厚くなる */
.submit-btn:hover {
    background-color: #ffff54; /* わずかに明るい黄色に */
    transform: translateY(-2px);
    box-shadow: 0 8px 0px #000000;
}

/* 🌟 クリック：影の厚み（6px）の分だけ完全に下に沈む */
.submit-btn:active {
    top: 6px;
    transform: translateY(0);
    box-shadow: 0 0px 0px #000000;
}

/* ==========================================
スマホ
========================================== */

@media (max-width: 480px) {
    .contact-form {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .page-number {
        font-size: 2.8rem;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .contact-body {
        padding-top: 120px;
        padding-bottom: 40px;
    }
}
/* ==========================================
ABOUT・SKILLSと同じページ幅の器（サイズを完全統一）
========================================== */
.portfolio-container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box; /* 全ページで余白の計算を統一するお守り */
    
    /* 💡 背景色は body 側でドット柄と一緒に敷いているため、
       コンテナ側の不要な高さ(100vh)や背景色固定(!important)を削除して他ページと統一します */
}

/* ==========================================
CONTACT 本体
========================================== */
.contact-section {
    width: 100%;
}

.contact-body {
    width: 100%;
    /* 💡 min-height: 100vh を削除し、ヘッダーに隠れないための適切な余白に調整 */
    padding-top: 140px; 
    padding-bottom: 80px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
/* ==========================================
   WEB作品：3Dホバーエフェクト
========================================== */

.web-work-image {
    position: relative;
    display: block;
    overflow: hidden;

    /* 3Dの基準 */
    transform-style: preserve-3d;
    perspective: 1000px;

    /* 通常時 */
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    border-radius: 20px;
    box-shadow:
        6px 6px 0 #000;
}

/* マウスを乗せたとき */
.web-work-image:hover {
    transform:
        perspective(1000px)
        rotateX(6deg)
        rotateY(-8deg)
        translateY(-8px)
        scale(1.03);

    box-shadow:
        12px 18px 0 #000,
        0 25px 35px rgba(0, 0, 0, 0.25);
}

/* 画像 */
.web-work-image img {
    width: 100%;
    height: auto;
    display: block;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

/* ホバー時に画像も少し浮かせる */
.web-work-image:hover img {
    transform: scale(1.04);
}

/* 光がスッと横切るエフェクト */
.web-work-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,255,255,0.05) 35%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0.05) 65%,
        transparent 100%
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;

    pointer-events: none;
}

/* ホバーすると光が走る */
.web-work-image:hover::after {
    left: 130%;
}


/* ==========================================
   キャプションも少し浮かせる
========================================== */

.web-work {
    transition: transform 0.35s ease;
}

.web-work:hover .work-caption {
    transform: translateY(-4px);
}

.work-caption {
    transition: transform 0.35s ease;
}


/* ==========================================
   スマホでは3Dを弱める
========================================== */

@media (max-width: 480px) {

    .web-work-image:hover {
        transform:
            translateY(-4px)
            scale(1.02);

        box-shadow:
            8px 10px 0 #000;
    }

}

/* ==========================================
   お問い合わせの種類（セレクト）と注意書き
========================================== */
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px 12px 14px;
    font-size: 16px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    border: 3px solid #000000;
    border-radius: 8px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
    appearance: none;
    -webkit-appearance: none;
    color: #000000;
}
.form-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #000000;
}

/* ==========================================
   タイトルエリアを他ページ（ABOUT・WORKS・SKILLS）と統一
========================================== */
.contact-top-container {
    background-color: #fab400;
    background-image: linear-gradient(45deg, #ffcb3d 25%, transparent 25%, transparent 75%, #ffcb3d 75%, #ffcb3d),
                      linear-gradient(45deg, #ffcb3d 25%, transparent 25%, transparent 75%, #ffcb3d 75%, #ffcb3d);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 100px 20px 50px 20px;
    text-align: center;
}

.contact-num {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 4rem;
    color: #1472fc;
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
    text-align: left;
    margin-bottom: 5px;
    padding-left: 10px;
}

.contact-title {
    font-family: 'Holtwood One SC', 'M PLUS Rounded 1c', sans-serif;
    font-size: 4rem;
    color: #1472fc;
    -webkit-text-stroke: 3px #000000;
    text-shadow: 4px 4px 0px #000000;
    text-align: center;
    margin: -10px 0 20px;
    letter-spacing: 1px;
    display: inline-block;
    animation: contact-jelly 2.4s infinite ease-in-out;
}

/* 手紙が届いたように、ぷるんと弾む */
@keyframes contact-jelly {
    0%, 60%, 100% { transform: scale(1, 1); }
    10% { transform: scale(1.12, 0.88); }
    20% { transform: scale(0.92, 1.08); }
    30% { transform: scale(1.05, 0.95); }
    40% { transform: scale(0.98, 1.02); }
}

.contact-lead {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #000000;
    margin: 0;
}

/* ギザギザ区切り線（ABOUTと同じもの） */
.zigzag-divider {
    width: 100%;
    height: 24px;
    background: linear-gradient(135deg, #fc3c3c 25%, transparent 25%) -12px 0,
                linear-gradient(225deg, #fc3c3c 25%, transparent 25%) -12px 0,
                linear-gradient(135deg, #4da6ff 50%, transparent 50%) -12px 0,
                linear-gradient(225deg, #4da6ff 50%, transparent 50%) -12px 0,
                linear-gradient(135deg, #fab400 75%, transparent 75%) -12px 0,
                linear-gradient(225deg, #fab400 75%, transparent 75%) -12px 0;
    background-size: 24px 24px;
    background-color: #fab400;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    box-sizing: border-box;
}

/* タイトルエリアができたので、フォーム上の余白を詰める */
.contact-body {
    padding-top: 60px;
    background-color: #fab400;
}

@media (max-width: 480px) {
    .contact-num { font-size: 2.8rem; }
    .contact-title { font-size: 2.8rem; -webkit-text-stroke: 2px #000000; }
    .contact-body { padding-top: 40px; }
}
