/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.container h2, 
.container p {
    text-align: left;
}

.container p {
    margin: 0.4em 0;
}

header {
    background: #e0f2fe; /* 淡い水色 */
    color: #0c4a6e;      /* 少し濃い文字色で読みやすく */
    padding: 20px 0;
    font-size: 24px;
    font-weight: bold;
}


.hero {
    background: linear-gradient(to right, #e0f2fe, #a5f3fc);
    color: #0c4a6e;
    padding: 60px 20px;
    font-size: 28px;
    border-radius: 0; /* コンテナ感を抑える */
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.cta-button:hover {
    background: #c0392b;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

.feature {
    background: white;
    padding: 20px;
    margin: 10px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background: #f0f9ff; /* ヘッダーよりさらに淡い水色 */
    color: #0c4a6e;      /* ヘッダーと同じ文字色 */
    padding: 20px;
    margin-top: 50px;
}

/* グラデーション文字 h1 */
h1 {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    margin: 60px 0 40px;
    color: #2c3e50; /* Firefox用フォールバック */
    background: linear-gradient(to right, #3498db, #2ecc71);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    margin-top: 20px;
}

/* 画像を中央寄せ＆クリック拡大対応 */
.image-center {
    display: block;
    margin: 30px auto;
    max-width: 60%;
    height: auto;
    cursor: zoom-in;
    transition: transform 0.2s ease-in-out;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255,255,255,0.2);
    cursor: zoom-out;
}

.image-modal.show {
    display: flex;
}

/* ===================== */
/* ▼ カード＋矢印エリア */
/* ===================== */
:root {
    --card-width: min(720px, 90%);
    --card-bg: #ffffff;
    --card-radius: 14px;
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
    --accent: #2563eb;
    --gap: 28px;
}

.stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap);
    width: 100%;
    max-width: var(--card-width);
    margin: 0 auto;
}

.stack > p {
    text-align: left;
    align-self: flex-start; /* ← これで左寄せ配置に */
    margin: 1em 0;
}

.card {
    width: 100%;
    max-width: 720px;         /* 画面幅の上限を設定 */
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    box-sizing: border-box;
    text-align: center; /* タイトルなどは中央寄せ */
    margin: 20px auto;        /* カード自体を中央寄せ */
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.card ul {
    text-align: left; /* 箇条書きだけ左寄せ */
    display: inline-block; /* カード全体の中央に寄せたまま左寄せに見える */
    margin: 10px 0 0 0;
    padding-left: 1.15rem;
    line-height: 1.6;
}

.arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.arrow {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
    box-shadow: 0 6px 16px rgba(37,99,235,0.12);
    animation: bob 1.6s ease-in-out infinite;
}

.arrow svg {
    display: block;
    width: 28px;
    height: 28px;
}

@keyframes bob {
    0% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0); }
}

@media (max-width: 480px) {
    .card { padding: 16px; }
    .arrow { width: 48px; height: 48px; }
    .arrow svg { width: 22px; height: 22px; }
}

/* 注釈カード */
.card.note {
    background: #fff9e5; /* 黄色系で目立たせる */
    border-radius: 20px;  /* 角丸を大きくして形を変える */
    border: 2px dashed #fcd34d; /* 点線でアクセント */
}

/* 注釈カード用の接続ライン（波線） */
.connector-note {
    width: 60px;
    height: 24px;
    border-bottom: 3px dashed #fcd34d; /* ラインも淡く */
    margin: 0 auto 20px auto;
    border-radius: 4px;
}

.card table {
    display: inline-table;   /* テーブル幅に合わせる */
    border-collapse: collapse;
    margin: 10px auto 0 auto; /* カード内で中央寄せ */
}

.card table th,
.card table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.card table th {
    background-color: #f3f4f6; /* 少しグレーにして見やすく */
}