/* 全体のスタイル */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #15064c;
    color: #333;
    line-height: 1.6;
}

/* 全体リセット */
body,html {
    margin: 0;
    box-sizing: border-box;
}

/* メインセクション */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 各セクションのスタイル */
section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

section img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom:8px;
}

section p {
    flex-grow: 1;
}

section a {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    color: #fff;
    background-color: #0066cc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

section a:hover {
    background-color: #004799;
}

/* レスポンシブ */
/* 画面幅が768px以下のとき */
@media (max-width: 768px) {
    section {
        flex-direction: column;
        /* 縦並びに変更 */
        text-align: center;
        /* 中央揃え */
    }

    section img {
        width: 100%;
        /* 画像を横幅いっぱいに */
        max-width: 300px;
    }
}

/* 画面幅が480px以下のとき */
@media (max-width: 480px) {
    .catch h1 {
        font-size: 28px;
        /* タイトルを少し小さく */
    }

    .catch p {
        font-size: 16px;
        /* 説明文を縮小 */
    }

    section h2 {
        font-size: 24px;
        /* 見出しを縮小 */
    }
}

/* 全体リセット */
body,html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.catch {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 全画面表示 */
    background-image: url(images2/catch.jpg);
    /* 背景画像 */
    background-size: cover;
    background-position: center;

    animation: fadeIn 2s ease-in-out; /* 2秒でフェードイン */
}

.catch h1 {
    position: absolute; /* 親要素内で自由に配置 */
    top: 20%; /* 縦方向の中央 */
    right: 10px; /* 右端から10px内側 */
    transform: translateY(-50%); /* 中央揃えの補正 */
    writing-mode: vertical-rl; /* 縦書き (右から左) */
    text-orientation: upright; /* 縦向きになるよう指定 */
    font-family: 'Noto Serif JP', sans-serif; /* 日本語対応フォント */
    font-size: 32px;
    line-height: 1.5; /* 縦書き用に行間を調整 */
    margin: 0;
    padding: 10px;
    color: #00bcd4;
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */
}

.catch h3 {
    position: absolute; /* 親要素内で自由に配置 */
    top: 45%; /* 縦方向の中央 */
    right: 40px; /* 右端から10px内側 */
    transform: translateY(-50%); /* 中央揃えの補正 */
    writing-mode: vertical-rl; /* 縦書き (右から左) */
    text-orientation: upright; /* 縦向きになるよう指定 */
    font-family: 'Noto Serif JP', sans-serif; /* 日本語対応フォント */
    font-size: 40px;
    line-height: 1.5; /* 縦書き用に行間を調整 */
    margin: 0;
    padding: 10px;
    color: white;
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */
}

.catch h4 {
    position: absolute; /* 親要素内で自由に配置 */
    top: 68%; /* 縦方向の中央 */
    right: 100px; /* 右端から10px内側 */
    transform: translateY(-50%); /* 中央揃えの補正 */
    writing-mode: vertical-rl; /* 縦書き (右から左) */
    text-orientation: upright; /* 縦向きになるよう指定 */
    font-family: 'Noto Serif JP', sans-serif; /* 日本語対応フォント */
    font-size: 40px;
    line-height: 1.5; /* 縦書き用に行間を調整 */
    margin: 0;
    padding: 10px;
    color: white;
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */
}

/* ===== 左下に配置されるpタグ ===== */
.catch p1 {
    position: absolute; /* 親要素内で自由に配置 */
    bottom: 10px; /* 下端から10px内側 */
    left: 10px; /* 左端から10px内側 */
    font-family: 'Noto Serif JP', sans-serif; /* 日本語対応フォント */
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* 背景に半透明の黒を追加 */
    padding: 10px;
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */
    margin: 0;
}

@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }