@charset "UTF-8";

/**
 * ==========================================================================
 * Find oneself - コンタクトページスタイル
 * ==========================================================================
 * ファイル目的：お問い合わせページ（contact.html）のデザイン制御
 * 
 * 含む要素：
 *  - ページヘッダー
 *  - コンタクトフォーム
 *  - 背景演出（浮き上がるサークル）
 *  - フッター＆ポートフォリオバッジ
 * 
 * 依存ファイル：なし（独立したスタイル）
 * 修正時：このファイルの変更はcontact.htmlのみに影響します
 * ==========================================================================
 */

/* ==========================================================================
   1. ページ全体の初期化設定（他ファイルに依存しない完全独立設計）
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.contact-page-body {
    font-family: "PT Sans", 'Noto Serif JP', Arial, sans-serif;
    background-color: #F8F8F8;
    /* 画像通りの美しい淡い白ベース */
    color: #484141;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   2. 背景演出の完全再現（散らばるサークルと湧き上がる封筒レター）
   ========================================================================== */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.background-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 🌟【変更】10個の共通スタイルを封筒（横長長方形）に変更 */
.background-circles li {
    position: absolute;
    display: block;
    list-style: none;
    background: rgba(168, 205, 101, 0.25);
    /* 土台：不透明度25%の淡いグリーン */
    animation: floatingCircles 22s linear infinite;
    bottom: -150px;
    border-radius: 2px;
    /* 封筒の角をほんの少し丸く */
}

/* 🌟【追加】封筒のフタ（三角の折り目）を上に重ねて立体的に見せる */

.background-circles li::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 💡 SVGのコード */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' viewBox='0 0 100 100' preserveAspectRatio='none'><polygon points='0,0 50,50 100,0' fill='rgba(148, 185, 81, 0.4)'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* 画像に写っている様々な大きさのドットやサークルの配置 */
/* 🌟 横長の封筒らしく見せるため、すべての width と height を「横長」に微調整しました */
.background-circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 55px;
    animation-delay: 0s;
}

.background-circles li:nth-child(2) {
    left: 10%;
    width: 24px;
    height: 16px;
    animation-delay: 2s;
    animation-duration: 11s;
}

.background-circles li:nth-child(3) {
    left: 70%;
    width: 30px;
    height: 20px;
    animation-delay: 4s;
}

.background-circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 42px;
    animation-delay: 0s;
    animation-duration: 16s;
}

.background-circles li:nth-child(5) {
    left: 65%;
    width: 24px;
    height: 16px;
    animation-delay: 1s;
}

.background-circles li:nth-child(6) {
    left: 75%;
    width: 100px;
    height: 70px;
    animation-delay: 3s;
}

.background-circles li:nth-child(7) {
    left: 35%;
    width: 120px;
    height: 84px;
    animation-delay: 6s;
}

.background-circles li:nth-child(8) {
    left: 50%;
    width: 36px;
    height: 24px;
    animation-delay: 10s;
    animation-duration: 35s;
}

.background-circles li:nth-child(9) {
    left: 15%;
    width: 20px;
    height: 14px;
    animation-delay: 3s;
    animation-duration: 25s;
}

.background-circles li:nth-child(10) {
    left: 85%;
    width: 130px;
    height: 90px;
    animation-delay: 0s;
    animation-duration: 12s;
}

/* 【変更】封筒マーク用にスケール感や回転を滑らかにしたアニメーション */
@keyframes floatingCircles {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.6);
        opacity: 0;
    }

    /* 画面下から現れてすぐ、きれいに見えるようにフェードイン */
    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-1400px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* ==========================================================================
   3. ヘッダー・メインタイトル（誌面風レイアウト設定）
   ========================================================================== */
.site-header-page {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 10;
}

.site-logo {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #484141;
    text-shadow: 3px -3px 0px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.bg.-visible .site-logo {
    opacity: 1;
}

/* コンテナの中央配置と高級感のある余白 */
.contact-container {
    position: relative;
    z-index: 5;
    max-width: 100vw;
    padding: 140px 22% 120px 22%;
}

.contact-heading-area {
    margin-bottom: 40px;
    text-align: left;
}

.contact-main-title {
    font-family: "PT Sans", sans-serif;
    font-size: 5.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px -4px 0px rgba(0, 0, 0, 0.06);
}

.contact-divider {
    border: none;
    border-top: 1px solid #C4C4C4;
    width: 100%;
}

/* 導入文のフォントと、絶対にバグが起きないインラインブロック自動折り返し */
.contact-intro-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
    text-align: left;
}

.contact-intro-p span {
    display: inline-block !important;
}

/* ==========================================================================
   4. 誌面風フォームデザイン ＆ ニューモフィズムUI
   ========================================================================== */
.contact-form-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-box .form-group {
    margin-bottom: 35px;
    text-align: left;
}

.contact-form-box label {
    display: block;
    font-family: "PT Sans", sans-serif;
    font-size: 1.1rem;
    color: #484141;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.contact-form-box label .required-badge {
    font-size: 0.75rem;
    color: #A8CD65;
    /* あなたの淡いグリーン */
    font-weight: bold;
    margin-left: 8px;
}

/* 入力欄（アコーディオンパーツと同等の美しい窪みデザインを新規適用） */
.contact-form-box input[type="text"],
.contact-form-box input[type="email"],
.contact-form-box textarea {
    width: 100%;
    padding: 18px 20px;
    background: #F8F8F8;
    border: none;
    border-radius: 14px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    color: #484141;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.5), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.5), 0 0 12px rgba(168, 205, 101, 0.3);
}

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

/* 高級感のある浮き出し送信ボタン */
.submit-button {
    padding: 18px 60px;
    background: #F8F8F8;
    border: none;
    border-radius: 12px;
    font-family: "PT Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #484141;
    cursor: pointer;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.6), -6px -6px 14px rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
    display: inline-block;
}

.submit-button:active {
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 1);
}

/* 下部のホームへ戻るリンク */
.back-link-area {
    margin-top: 60px;
    text-align: center;
}

.back-to-home-link {
    display: inline-block;
    color: #484141;
    text-decoration: none;
    font-family: "PT Sans", sans-serif;
    font-size: 0.95rem;
    border-bottom: 1px solid #484141;
    padding-bottom: 4px;
    transition: opacity 0.3s;
}

.back-to-home-link:hover {
    opacity: 0.5;
}

/* ==========================================================================
   5. フッター ＆ 画像右下のオリジナルロゴバッジ再現
   ========================================================================== */
.page-footer {
    position: relative;
    z-index: 5;
    padding: 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.copyright {
    font-size: 0.75rem;
    color: #484141;
    font-weight: 300;
}

/* 画像右下の枠線付きの2行ロゴを完全再現 */
.portfolio-logo-badge {
    border: 1px solid #484141;
    padding: 6px 12px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.portfolio-logo-badge .badge-top {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.portfolio-logo-badge .badge-bottom {
    font-family: "PT Sans", sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   5.5 円形メニュー（Circular Menu）スタイル
   ========================================================================== */
.menu {
    /* 親要素がスクロールしても、画面の左上にずっと固定させます */
    position: fixed !important;
    top: 50px !important;
    left: 50px !important;
    width: 100px !important;
    height: 100px !important;
    user-select: none !important;

    /* コンテンツ（文字や画像）よりも確実に手前に引っ張り上げる */
    z-index: 9999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* メインボタン（Menu）の見た目 */
.main.button {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #484141 !important;
    text-align: center !important;


    line-height: 100px !important;
    font-size: 25px !important;
    font-family: sans-serif !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;

    display: block !important;
    animation: pulseHeart 10.0s infinite ease-in-out !important;
}

/* 子ボタンの共通デザイン */
.button:not(.main) {
    position: absolute;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    mix-blend-mode: multiply;
    text-align: center;
    color: #fff;


    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    /* 文字が丸のフチにぶつからないための内側余白 */

    font-family: Alegreya Sans, sans-serif !important;
    font-size: 16px !important;

    font-weight: bold !important;
    text-decoration: none !important;

    transition: transform 0.75s cubic-bezier(0.39, 1.52, 0.46, 0.92), opacity 0.3s;
    will-change: transform, opacity;
}

/* 閉じている時は判定を消して完全に隠す */
.menu.closed .button:not(.main) {
    pointer-events: none !important;
    opacity: 0 !important;
}

/* 開いている時だけ子ボタンをクリック可能にする */
.menu:not(.closed) .button {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* ――― 各ボタンの配置座標 ――― */
.home {
    background-color: #1ba5cd !important;
    top: 0px;
    left: 225px;
    transition-duration: 0.525s;
}

.goodat {
    background-color: #1ab254 !important;
    top: 86.10368px;
    left: 207.873px;
    transition-duration: 0.675s;
}

.like {
    background-color: #fec72e !important;
    top: 159.09908px;
    left: 159.09908px;
    transition-duration: 0.825s;
}

.weakpoint {
    background-color: #fa7d39 !important;
    top: 207.873px;
    left: 86.10368px;
    transition-duration: 0.975s;
}

.questions {
    background-color: #ee5656 !important;
    top: 225px;
    left: 0px;
    transition-duration: 1.125s;
}

/* 閉じている時に中央へ引き戻す命令 */
.menu.closed .home {
    transform: translate3d(-225px, 0px, 0) rotate(-180deg);
}

.menu.closed .goodat {
    transform: translate3d(-207.873px, -86.10368px, 0) rotate(-180deg);
}

.menu.closed .like {
    transform: translate3d(-159.09908px, -159.09908px, 0) rotate(-180deg);
}

.menu.closed .weakpoint {
    transform: translate3d(-86.10368px, -207.873px, 0) rotate(-180deg);
}

.menu.closed .questions {
    transform: translate3d(0px, -225px, 0) rotate(-180deg);
}

/* ==========================================================================
   6. スマートフォン環境（768px以下）へのレスポンシブ完全最適化
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* スマホ専用：メニューサイズ80%縮小 ＆ 左上寄せ設定 */
    .menu {
        top: 15px !important;
        left: 15px !important;
        width: 80px !important;
        height: 80px !important;
    }

    /* スマホの「80pxの丸」の中に2行の日本語・英語が完璧に収まるように調整 */
    .menu .button:not(.main) {
        width: 80px !important;
        height: 80px !important;
        font-size: 16px !important;

        line-height: 1.1 !important;
        padding: 5px !important;
    }


    .menu .main.button {
        width: 80px !important;
        height: 80px !important;
        font-size: 16px !important;
        line-height: 80px !important;
        animation: pulseHeartMobile 10.0s infinite ease-in-out !important;
    }

    /* スマホ用：閉じている時の引き戻し */
    .menu.closed .home {
        transform: translate3d(-225px, 0px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .goodat {
        transform: translate3d(-207.873px, -86.10368px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .like {
        transform: translate3d(-159.09908px, -159.09908px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .weakpoint {
        transform: translate3d(-86.10368px, -207.873px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .questions {
        transform: translate3d(0px, -225px, 0) scale(0.8) rotate(-180deg);
    }

    /* スマホ用：開いたときも80%のままで固定する設定 */
    .menu:not(.closed) .button:not(.main) {
        transform: scale(0.8);
    }

    .site-header-page {
        top: 30px;
        right: 20px;
    }

    .contact-container {
        padding: 100px 6% 60px 6% !important;
    }

    .contact-main-title {
        font-size: 3.5rem;
    }

    .contact-intro-text {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .contact-form-box {
        padding: 0 5px;
    }

    .submit-button {
        width: 100%;
        /* タップしやすいよう横幅いっぱいに広げる */
    }

    .page-footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        padding: 40px 20px;
    }

    .site-logo {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   7. メニューボタンのパルスアニメーション
   ========================================================================== */
@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    1.5% {
        transform: scale(1.08);
    }

    /* どくんっ（一瞬膨らむ） */
    3.0% {
        transform: scale(0.96);
    }

    /* キュッと縮む */
    4.5% {
        transform: scale(1.04);
    }

    /* どく（小さく追従） */
    6.0% {
        transform: scale(1);
    }

    /* 元に戻る */
    100% {
        transform: scale(1);
    }

    /* 静止時間 */
}

@keyframes pulseHeartMobile {
    0% {
        transform: scale(1);
    }

    1.5% {
        transform: scale(1.08);
    }

    3.0% {
        transform: scale(0.96);
    }

    4.5% {
        transform: scale(1.04);
    }

    6.0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   滞在ページ（現在地）のボタンを日本語にする設定【修正版】
   ========================================================================== */

/* 1. 通常時はすべての日本語（spanタグ）を画面から完全に隠しておく */
.menu .button span {
    display: none !important;
}

/* 2. 【修正】current（現在地）がついているボタン「だけ」、元の英語テキストを消す */
.menu .button.current {
    font-size: 0 !important;
}

/* 3. 【修正】current（現在地）がついているボタンの中の日本語（spanタグ）「だけ」を復活させる */
.menu .button.current span {
    display: flex !important;
    /* 中央揃えを維持するためにflexに変更 */
    font-size: 16px !important;
    /* PC用の日本語サイズ */
    font-family: sans-serif !important;
    /* 日本語用ゴシック体 */
    font-weight: bold !important;
}

/* 4. スマホ画面（横幅767px以下）のときの日本語サイズ微調整 */
@media screen and (max-width: 767px) {
    .menu .button.current span {
        font-size: 14px !important;
        /* スマホの丸に収まるよう少し小さく */
    }
}

.stalker {
    width: 30px;
    height: 30px;
    background-color: #A8CD65;
    /* 水玉の色（お好みで変更可能です） */
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    /* 画面の一番手前に表示 */

    /*  重要：マウスストーカー自体がリンクや文字の操作を邪魔しない設定 */
    pointer-events: none;

    /* 初期状態は透明（マウスが動いたら表示） */
    opacity: 0;

    /* 円の中心をマウスカーソルの先端にぴったり合わせる */
    transform: translate(-50%, -50%);

    /* マウスの動きに遅れてついてくる滑らかなアニメーション設定 */
    transition: transform 0.15s ease-out, opacity 0.3s ease;
}

/* 📱 スマホ環境（タッチデバイス）ではカーソルがないため非表示にする */
@media screen and (max-width: 768px) {
    .stalker {
        display: none !important;
    }
}

/* ==========================================================================
  マグネティック（吸い付き）発動時のストーカースタイル
   ========================================================================== */

/* ボタンに吸い付いた瞬間に、JSによってこのクラス「-magnetic」が自動付与されます */
.stalker.-magnetic {
    width: 60px;
    /* 丸のサイズを2倍に大きく */
    height: 60px;
    /* 丸のサイズを2倍に大きく */
    background-color: transparent;
    /* 背景を透明にする */
    border: 1px solid #A8CD65;
    /* 代わりに綺麗なグリーンの輪っかに変更 */

    /* 吸い付いた感を強調するため、少しだけ「じわっと」広がるアニメーションを適用 */
    transition:
        width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease,
        border 0.3s ease,
        transform 0.1s ease-out;
    /* 吸い付き中のズレを減らすため移動速度を少しアップ */
}

/* ==========================================================================
   スクロール連動・ふわっと浮き出るアニメーション設定（Contact用）
   ========================================================================== */

/* 最初は透明、少し下（50px）に下げておく */
.js-fadein {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

/* 画面に入ったら、自動で元の位置へ1回だけシュッと出る */
.js-fadein.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}