/* 免責事項エリア */
.disclaimer {
    background: #fff4c2; /* 明るいクリームイエロー */
    color: #856404;     /* こげ茶系で注意喚起 */
    font-weight: 700;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    border-bottom: 3px solid #ffcc00;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
    user-select: none;
}

/* 免責事項内の強調テキスト */
.disclaimer strong {
    font-weight: 900;
}

/* ベース */
body {
    font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #d0e7ff, #4287f5);
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ヘッダー */
header {
    background: #3b82f6;
    color: #f9fafb;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 50px 20px;
    animation: fadeDown 1s ease forwards;
}

.logo {
    font-size: 3rem;
    margin: 0;
    animation: pulse 3s infinite ease-in-out;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}

.subtitle {
    font-size: 1.1rem;
    margin-top: 8px;
}

/* ボタン */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 40px; /* ← 横幅を広げる */
    background: #60a5fa;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.6);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.btn:hover,
.btn:focus {
    background: #2563eb;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.75);
    transform: translateY(-3px) scale(1.05);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 250%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 150%;
}

/* メイン */
main {
    padding: 80px 5% 40px;  /* 上の余白を増やしてカード全体を下に */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 0;  /* 上のマージンはリセット */
}


/* 2列レイアウト対応（画面広い時） */
@media screen and (min-width: 768px) {
    main {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: rgba(255, 255, 255, 0.12);
    color: #1e293b;
    padding: 30px 20px;  /* 上下のpaddingを増やしました（20px→30px） */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform-origin: center bottom;
    min-height: 220px; /* 高さの最低値を設定（必要に応じて調整してください） */
}

/* カードタイトル */
.card h2 {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 18px;
    color: #3b82f6;
    font-weight: 700;
}

.card h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* カード内テキスト */
.card p,
.card ul,
.card pre {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* リスト */
.card ul {
    padding-left: 1.3rem;
    margin-bottom: 20px;
}

.card li {
    margin-bottom: 10px;
}

/* コードブロック */
.card pre {
    background: rgba(59, 130, 246, 0.15);
    color: #1e293b;
    padding: 15px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: inset 0 0 8px rgba(59,130,246,0.2);
}

/* リンク */
.card a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.card a:hover,
.card a:focus {
    text-decoration: underline;
    color: #1d4ed8;
}

/* フッター */
footer {
    background: #2563eb;
    color: #f1f5f9;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

/* アニメーション */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
