@charset "UTF-8";
/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Outfit:wght@400;700&family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #334155; /* slate-700 */
    background-color: #f8fafc;
    line-height: 1.8;
}

/* ロゴカラーの定義（CSS変数） */
:root {
    --jwt-blue: #007bc7;
    --jwt-cyan: #00a0e9;
    --jwt-orange: #f39800;
    --jwt-red: #e60012;
}

/* =========================================
   背景・装飾
   ========================================= */

/* ヒーローイメージ */
.drone-hero {
    /* top_hero.png を使用 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/top_hero.png');
    background-size: cover;
    background-position: center;
}

/* ドットパターン背景 */
.bg-grid-pattern {
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* アクセント装飾（柔らかい背景のぼかし円） */
.bg-blob {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
}

/* =========================================
   イラスト・画像関連
   ========================================= */

/* イラスト用フレーム（枠線あり） */
.illust-frame {
    border: 4px solid #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #fff;
}
.illust-frame:hover {
    transform: translateY(-5px);
}

/* イラスト用コンテナ（背景に色を敷くタイプ） */
.illust-container {
    position: relative;
    z-index: 10;
}
.illust-container img {
    border-radius: 1.5rem;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* イラスト用シャドウ（枠なしで影のみ） */
.illust-shadow {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    border-radius: 2rem;
}

/* 画像のなじませ */
.img-blend {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* =========================================
   コンポーネント
   ========================================= */

/* 立体的なボタン（ポップ） */
.btn-pop {
    transition: all 0.1s;
    box-shadow: 0px 6px 0px 0px rgba(0,0,0,0.1);
}
.btn-pop:active {
    transform: translateY(4px);
    box-shadow: 0px 2px 0px 0px rgba(0,0,0,0.1);
}

/* プライマリボタン（グラデーション） */
.btn-primary {
    background: linear-gradient(to right, #f97316, #ea580c);
    color: white;
    font-weight: bold;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    border-bottom: 4px solid #c2410c;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}
.btn-primary:active {
    transform: translateY(2px);
    border-bottom-width: 0;
    margin-bottom: 4px;
}

/* テキスト強調マーカー */
.marker {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
}
.marker-orange {
    background: linear-gradient(transparent 60%, #ffedd5 60%);
}

/* ステップ番号フォント */
.step-number {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1;
}

/* 英字フォント */
.font-eng {
    font-family: 'Outfit', sans-serif;
}

/* =========================================
   バッジ・ラベル
   ========================================= */

/* 必須バッジ */
.badge-required {
    background-color: #ef4444; /* red-500 */
    color: white;
    border: 1px solid #ef4444;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
}

/* 任意バッジ */
.badge-optional {
    background-color: #94a3b8; /* slate-400 */
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: normal;
    display: inline-block;
    line-height: 1.2;
}

/* =========================================
   フォーム要素
   ========================================= */

.form-label {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #1e3a8a; /* blue-900 */
    margin-bottom: 0.5rem;
    border-left: 4px solid #f97316; /* orange-500 */
    padding-left: 0.75rem;
}

.conf-label {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #007bc7; /* jwt-blue */
    border-left: 6px solid #f39800; /* jwt-orange */
    padding-left: 1rem;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 0.5rem;
    background-color: #f8fafc; /* slate-50 */
    transition: all 0.2s;
}

.form-input:focus {
    background-color: #ffffff;
    border-color: #3b82f6; /* blue-500 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* =========================================
   カード・フロー図
   ========================================= */

/* Bento Grid カード */
.bento-card {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #93c5fd;
}

/* フローチャートの矢印（PCのみ） */
.flow-step, .flow-step-simple, .flow-card {
    position: relative;
}

@media (min-width: 768px) {
    .flow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        width: 40px;
        height: 2px;
        left: 100%;
        top: 50%;
        background-color: #cbd5e1;
        transform: translateY(-50%);
        z-index: 10;
    }

    /* 簡易版フローやカード型の矢印（FontAwesome使用） */
    .flow-step-simple:not(:last-child)::after,
    .flow-card:not(:last-child)::after {
        content: '\f054'; /* FontAwesome chevron-right */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: -24px; /* 位置調整 */
        top: 50%;
        transform: translateY(-50%);
        color: #cbd5e1;
        font-size: 1.5rem;
        z-index: 10;
        background: none;
        width: auto;
        height: auto;
    }
}

/* スマホ用フロー縦線 */
.flow-step:not(:last-child)::after {
    /* スマホ時は下向きの線 */
    content: '';
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 2px;
    height: 30px;
    background-color: #cbd5e1;
    transform: translateX(-50%);
}
@media (min-width: 768px) {
    /* PC時はスタイルをリセットして横向きに */
    .flow-step:not(:last-child)::after {
        left: 100%;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 2px;
    }
}

/* =========================================
   その他ユーティリティ
   ========================================= */

/* 表示切り替え用 */
.hidden-field {
    display: none;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* アコーディオンアイコン回転 */
details[open] summary .accordion-icon {
    transform: rotate(180deg);
}

/* タイムラインの線（コース詳細ページ用） */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 24px;
    width: 4px;
    background-color: #e2e8f0;
    z-index: 0;
}
@media (min-width: 768px) {
    .timeline-line::before {
        left: 50%;
        transform: translateX(-50%);
    }
}