/* --- style.css --- */

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #fcfbf8;
    color: #5e4b35;
    overflow-x: hidden;
}

/* --- ヘッダーのスタイル --- */
.pill-header {
    background-color: #5e4b35;
    border-radius: 50px;
    padding: 20px 100px;
    width: fit-content;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 50px auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2.0s ease-out, transform 2.0s ease-out;
}

.pill-header.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 80px;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-item a:hover {
    opacity: 0.7;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 1000; /* 最前面に配置 */
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #5e4b35;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

/* 3本線の位置 */
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 30px; }

/* --- ハンバーガーメニューが開いた時のボタンの変化（×印にする） --- */
.hamburger.active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
    background-color: #ffffff; /* 開いたときは白にする */
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
    background-color: #ffffff;
}

/* --- FV (ファーストビュー) --- */
.first-view {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fv-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin-top: 50px;
}

/* キャッチコピー画像 */
.fv-title-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2.0s ease-out, transform 2.0s ease-out;
}

.fv-title-img.show {
    opacity: 1;
    transform: translateY(0);
}

/* 真ん中の区切り線 */
.fv-line {
    width: 100%;
    max-width: 800px;
    height: 2px;
    margin: 30px auto 40px;
    position: relative;
}

.fv-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #5e4b35;
    transition: width 1.5s ease-out;
}

.fv-line.show::after {
    width: 100%;
}

/* イラスト画像 */
.fv-logo-img {
    width: 50%;
    margin-top: 30px;
    margin-bottom: 250px;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2.0s ease-out, transform 2.0s ease-out;
}

.fv-logo-img.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 背景の透かし文字 (UZURA DESIGN) --- */
.fv-watermark {
    position: absolute;
    bottom: -3vw;
    font-size: 10vw; 
    font-weight: bold;
    color: #f3f0ea;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    font-family: sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2.0s ease-out, transform 2.0s ease-out;
}

.fv-watermark.show {
    opacity: 1;
    transform: translateY(0);
}

.sp-only {
    display: none;
}

/* =========================================
   FV右上 プロフィールボタン (丸型スタンプ風)
   ========================================= */

.profile-badge {
    position: fixed;
    top: 50px;
    right: 40px;
    width: 90px;
    height: 90px;
    background-color: #ffffff; /* 背景は白 */
    border: 2px solid #5e4b35; /* 茶色の枠線 */
    border-radius: 50%; /* 真ん丸にする */
    z-index: 50; /* 他の要素より手前に */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #5e4b35;
    
    /* ふわふわ浮いているアニメーション */
    animation: floating 3s ease-in-out infinite;
    transition: transform 0.3s, background-color 0.3s;
    
    /* 影をつけて立体感を出す */
    box-shadow: 0 4px 10px rgba(94, 75, 53, 0.15);
}

.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    
    /* --- 新しいデザイン設定 --- */
    display: flex;           /* 横並びにする */
    align-items: center;     /* 上下中央揃え */
    gap: 8px;                /* 矢印と文字の間隔 */
    color: #5e4b35;          
    text-decoration: none;     /* 下線を消す */

    font-weight: bold;
    letter-spacing: 0.05em;
    
    /* 初期状態（隠す設定） */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 
        opacity 0.4s ease, 
        visibility 0.4s ease, 
        transform 0.4s ease, 
        background-color 0.3s, 
        box-shadow 0.3s;
}

/* JSでクラスが付いたら表示 */
.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 矢印のデザイン */
.btn-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* 文字のデザイン */
.btn-text {
    font-size: 14px;
    font-family: "Garamond", "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
}

/* --- ホバー時のアクション --- */
.page-top-btn:hover {
    transform: translateY(-3px); /* 0.is-showの状態からさらに3px浮く */
}

.page-top-btn:hover .btn-arrow {
    /* 矢印だけ上に少し動くアニメーション */
    animation: jump-arrow-small 0.6s ease infinite;
}

@keyframes jump-arrow-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}


/* 中の文字デザイン */
.badge-text {
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-family: serif; /* おしゃれ感 */
    margin-bottom: 2px;
}

.badge-title {
    font-size: 13px;
    font-weight: bold;
    font-family: serif; /* おしゃれ感 */
    letter-spacing: 0.05em;
    line-height: 1;
}

.badge-arrow {
    font-size: 12px;
    margin-top: 5px;
    transition: transform 0.3s;
}

/* --- ホバー（マウスを乗せた）時の動き --- */
.profile-badge:hover {
    background-color: #5e4b35; /* 茶色に反転 */
    color: #ffffff; /* 文字は白 */
    transform: scale(1.1) rotate(10deg); /* 少し大きくなって傾く */
}

.profile-badge:hover .badge-arrow {
    transform: translateX(3px); /* 矢印が右に動く */
}

/* --- ふわふわアニメーションの定義 --- */
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); } /* 8px上に浮く */
    100% { transform: translateY(0); }
}
   

/* --- SCROLLバー --- */
.scroll-indicator {
    position: absolute;
    right: 40px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    font-family: "Garamond", "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
    color: #5e4b35;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background-color: #5e4b35;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

/* --- コンセプトセクション --- */
.concept-section {
    position: relative;
    z-index: 2;
}

.concept-inner {
    background-image: 
        linear-gradient(rgba(94, 75, 53, 0.85), rgba(94, 75, 53, 0.85)),
        url('../img/concept-background.JPG');
    background-size: cover;
    background-position: center;
    border-radius: 80px 80px 0 0;
    width: 100%;
    margin: 0 auto;
    padding: 130px 160px;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2.0s ease-out, transform 2.0s ease-out;
}

.concept-inner.show {
    opacity: 1;
    transform: translateY(0);
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
}

.concept-heading {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}

.concept-text {
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 40px;
}

.concept-highlight {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.8;
    margin-top: 70px;
    letter-spacing: 0.05em;
}

/* --- 事業内容セクション --- */
.service-section {
    padding: 80px 0;
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: bold;
    color: #5e4b35;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
}

.service-category {
    margin-bottom: 70px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    box-shadow: 0 5px 15px rgba(94, 75, 53, 0.15);
    padding: 20px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 3px;
}

.card-heading {
    font-size: 18px;
    font-weight: bold;
    color: #5e4b35;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    width: fit-content;
    margin: 0 auto 40px;
    padding: 0 10px 10px;
    background-color: transparent;
    color: #5e4b35;
    font-weight: bold;
    font-size: 24px;
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5e4b35;
    transition: width 1s ease-out;
}

.category-header.show::after {
    width: 100%;
}

/* --- 制作実績セクション --- */
.works-section {
    background-color: #5e4b35;
    padding: 100px 0;
    width: 100%;
}

.works-inner {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

.section-title.text-white {
    color: #ffffff;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
}

/* 制作実績カード（外枠）の設定 */
.work-item {
    display: block;
    text-decoration: none;
    opacity: 0;
    transform: translateY(50px);
    /* 重要な修正点：登場は1.5秒でゆっくり */
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.work-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* 表示タイミングのズレ */
.work-item:nth-child(3n+1) { transition-delay: 0s; }
.work-item:nth-child(3n+2) { transition-delay: 0.2s; }
.work-item:nth-child(3n)   { transition-delay: 0.4s; }


/* --- View More ボタン --- */
.works-btn-wrapper {
    text-align: center;
}

    /* -------------------------------------
   制作実績の画像サイズ修正版
   ------------------------------------- */

/* 画像の枠組み */
.work-thumb {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 画像本体（これがないと画像が巨大化します！） */
.work-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ホバー時の動き */
.work-item:hover .work-thumb {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.view-more-btn {
    display: inline-block;
    background-color: #fcfbf8;
    color: #5e4b35;
    padding: 15px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease, background-color 0.3s, box-shadow 0.3s;
}

.view-more-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.view-more-btn:hover {
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.1s ease;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.view-more-btn .arrow {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: 5px;
}

.view-more-btn:hover .arrow {
    transform: translateX(5px);
}

/* --- お問い合わせセクション --- */
.contact-section {
  background-image: url('../img/contact-background.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 500px;
  position: relative;
}

.contact-overlay {
  background-color: rgba(255, 255, 255, 0.8);
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 80px;
}

.contact-container {
  text-align: center;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -60px
}

.contact-image {
  margin-top: 10px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.contact-image img {
  width: 250px;
  height: auto;
}

.contact-message {
  border: 2px solid #6A4E38;
  border-radius: 50px;
  padding: 15px 40px;
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #6A4E38;
  font-size: 0.9rem;
  background-color: #fff;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.section-title-contact {
    text-align: center;
    font-size: 10vw;
    font-weight: bold;
    color: #5e4b35;
    margin-bottom: 0;
    letter-spacing: 0.1em;
    opacity: 0.3;
}

/* コンタクトボタン */
.contact-btn {
  display: inline-block;
  background-color: #5D4630;
  color: #fff;
  padding: 15px 80px;
  text-decoration: none;
  font-family: serif;
  letter-spacing: 0.1em;
  margin-top: 20px; 
  
  opacity: 0;
  transform: translateY(30px);
  /* 登場は1.5s, 影などは0.3s */
  transition: opacity 1.5s ease, transform 1.5s ease, box-shadow 0.3s;
}

.contact-btn.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s; 
}

.contact-btn:hover {
  /* ホバー時はキビキビ動かす */
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(93, 70, 48, 0.4);
  opacity: 0.9;
}

.contact-btn .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.contact-btn:hover .arrow {
  transform: translateX(5px);
}

/* カードの遅延設定 */
.card-grid .service-card:nth-of-type(2) {
    transition-delay: 0.3s;
}

.card-grid .service-card:nth-of-type(3) {
    transition-delay: 0.6s;
}

.section-title {
  text-align: center;
  font-size: 26px;
  color: #4b3b30; /* 茶色っぽい色 */
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.section-title span {
  font-size: 20px;
  color: #8c7b70;
  display: block;
  margin-top: 5px;
  font-weight: 400;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  margin-bottom: 50px;
  margin-left: 20px;
}

.icon-link {
  font-size: 50px; /* アイコンの大きさ */
  color: #4b3b30; /* 茶色っぽい色 */
  transition: color 0.3s;
}

/* ホバー時の色指定 */
.icon-link:hover {
  color: #ccc; /* ホバー時の色 */
}


/* ===== スマホ対応（最低限） ===== */
@media (max-width: 768px) {

  /* ヘッダー */
  .pill-header {
    padding: 14px 24px;
    margin: 24px auto;
  }

  .nav-list {
    gap: 20px;
  }

  .nav-item a {
    font-size: 14px;
  }

  .hamburger {
        display: block;
    }

    /* メニュー本体（pill-header）を全画面オーバーレイに変更 */
    .pill-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 全画面 */
        background-color: rgba(94, 75, 53, 0.95); /* 背景色（少し透過） */
        border-radius: 0; /* 角丸解除 */
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
        
        /* 初期状態は隠す */
        opacity: 0;
        visibility: hidden; /* クリック判定も消す */
        transform: translateY(0); /* スクロールアニメーションの影響をリセット */
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* クラスactiveがついたら表示 */
    .pill-header.active {
        opacity: 1 !important; /* スクロールアニメーションより優先 */
        visibility: visible;
    }

    /* メニューリストを縦並びにする */
    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-item a {
        font-size: 20px; /* 文字を少し大きく */
        color: #ffffff;
    }

  /* FV */
  .fv-content {
    margin-top: 100px;
  }

  .fv-logo-img {
    width: 70%;
    margin-top: 0;
    margin-bottom: 150px;
  }

  .fv-watermark {
    font-size: 15vw;
    bottom: -2vw;
    line-height: 1.1;
  }

  .scroll-indicator {
    right: 16px;
  }

   .profile-badge {
        /* ハンバーガーメニューとかぶらないよう位置調整 */
        top: 30px;
        left: 20px; /* ハンバーガー(left:20px)の左隣に配置 */
        
        /* 少し小さくする */
        width: 70px;
        height: 70px;
    }

    .badge-text { font-size: 9px; }
    .badge-title { font-size: 11px; }
    .badge-arrow { font-size: 10px; margin-top: 2px; }

  /* コンセプト */
  .concept-inner {
    padding: 64px 24px;
    border-radius: 40px 40px 0 0;
  }

  .concept-heading {
    font-size: 20px;
  }

  .concept-text {
    font-size: 14px;
  }

  .concept-highlight {
    font-size: 18px;
  }

  /* サービス・実績：縦並びにするだけ */
  .card-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .service-section, .works-section {
    padding: 40px 0;
  }

  /* グリッドを1列にする */
    .works-grid {
        grid-template-columns: 1fr; /* 1列表示 */
        gap: 40px; /* 上下の間隔 */
    }

    /* 各カードの中身を中央揃え */
    .work-item {
        text-align: center; /* 文字と画像を中央に */
        margin: 0 auto; /* カード自体を画面中央に */
        max-width: 400px; /* 横に広がりすぎないように制限 */
        width: 100%;
    }

    /* リンク全体をブロックにして中央配置 */
    .work-item a {
        display: block;
        width: 100%;
    }


    /* タイトルと説明文 */
    .work-title, 
    .work-desc {
        text-align: center !important; /* 強制的に中央揃え */
    }

    /* カテゴリータグ（Flexboxの場合） */
    .work-meta {
        display: flex;
        justify-content: center; /* タグを中央に寄せる */
        flex-wrap: wrap;
        gap: 5px;
    }

  /* CONTACT */
  .section-title-contact {
    font-size: 18vw;
  }

  .contact-container {
    padding-bottom: 0;
    padding-top: 50px;
  }

  .contact-image {
    margin-bottom: 0;
  }

  .social-icons {
    margin-left: 20px;
    margin-bottom: 10px;
    gap: 20px;
  }

  .contact-image img {
    width: 180px;
    margin-right: 20px;
    margin-top: 10px;
  }

  .contact-btn {
    padding: 14px 48px;
    margin-top: 20px;
  }

  .contact-message {
    margin: auto 20px;
  }

  .sp-only {
    display: block;
  }

  .page-top-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px; /* 少し小さく */
    }

    .btn-text {
        font-size: 12px; /* 文字も小さく */
    }

    .btn-arrow {
        font-size: 16px;
    }
}


/* -----------------------------------
   お問い合わせページ専用 (page-contact.php)
   ベージュ(#fcfbf8) × ブラウン(#5e4b35)
----------------------------------- */

/* 背景とレイアウト */
.unique-contact {
    background-color: #fcfbf8; /* 全体の背景（ベージュ） */
    padding: 80px 0;
    min-height: 80vh;
}

/* フォームを囲む白い箱 */
.contact-content-narrow {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff; /* 白背景で清潔感を出す */
    padding: 60px;
    border-radius: 10px; /* 角を少し丸く */
    box-shadow: 0 5px 20px rgba(94, 75, 53, 0.1); /* 茶色の薄い影 */
}

/* ラベル（お名前など） */
.unique-contact label {
    font-weight: bold;
    color: #5e4b35; /* 文字色ブラウン */
    letter-spacing: 0.05em;
    font-size: 15px;
}

/* 必須マーク */
.required {
    font-size: 11px;
    color: #fff;
    background: #5e4b35; /* ブラウン */
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力欄（名前、メール、本文） */
.unique-contact input[type="text"],
.unique-contact input[type="email"],
.unique-contact textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0; /* 薄いグレーの枠線 */
    border-radius: 4px;
    background: #fafafa; /* 極薄いグレー */
    font-size: 16px;
    color: #5e4b35; /* 文字入力色 */
    margin-top: 10px;
    margin-bottom: 30px;
    box-sizing: border-box; /* 枠からはみ出さない設定 */
    font-family: inherit;
    transition: 0.3s;
}

/* 入力欄をクリックした時 */
.unique-contact input:focus,
.unique-contact textarea:focus {
    border-color: #5e4b35; /* 枠線をブラウンに */
    background: #fff;
    outline: none;
}

/* 送信ボタン */
.unique-contact input[type="submit"] {
    display: block;
    width: 240px;
    margin: 20px auto 0;
    background: #5e4b35; /* ブラウン */
    color: #ffffff;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 送信ボタンホバー時 */
.unique-contact input[type="submit"]:hover {
    background: #7a634a; /* 少し明るいブラウン */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(94, 75, 53, 0.2);
}

/* -----------------------------------
   ふわっと表示させるアニメーション設定
----------------------------------- */

/* アニメーションの動きを定義（下から上にフェードイン） */
@keyframes fadeInUpForm {
    0% {
        opacity: 0;
        transform: translateY(40px); /* 40px下にいる状態から */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 定位置へ */
    }
}

/* フォームの箱（.contact-content-narrow）にアニメーションを適用 */
.unique-contact {
    /* 1.5秒かけて、ゆっくりふわっと表示 */
    animation: fadeInUpForm 1.5s ease-out forwards;
    
    /* 読み込み直後にチラつかないよう初期状態を透明に */
    opacity: 0; 
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
    .contact-content-narrow {
        padding: 40px 20px;
        box-sizing: border-box;
    }
    
    .unique-contact input[type="submit"] {
        width: 100%; /* スマホではボタンを押しやすく大きく */
    }
}