/* 基本設定とフォント */
body {
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    background-color: #fff;
    color: #333;
    line-height: 1.9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 1.png: ヒーローセクション */
.hero {
    background-image: url('images/1.jpeg'); /* ★画像名を変更 */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero-logo {
    width: 80px;
    margin-bottom: 20px;
}
.hero-course {
    margin: 0;
}
.hero-title {
    font-size: 3.5rem;
    margin: 10px 0;
    font-weight: 700;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin: 0;
}
.hero-quote {
    margin-top: 30px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 15px 0;
    display: inline-block;
}
.hero-quote p {
    margin: 5px 0;
}


/* 共通: 2カラムレイアウト */
.two-col-layout {
    display: flex;
    gap: 40px;
   /*align-items: center;*/
    margin-bottom: 60px;
}
.text-block, .image-block, .vertical-text-block {
    flex: 1;
    min-width: 0; /* flexアイテムの縮小を許可 */
}

/* 共通: 縦書きテキスト */
.vertical-text-block {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding-right: 20px;
    height: 450px; /* 高さを指定してレイアウトを安定させる */
}
.vertical-text-block.align-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vertical-text {
    letter-spacing: .2em; /* 文字間を広げて読みやすく */
}

/* 2.png: フル幅画像 */
.full-width-image {
    margin-bottom: 60px;
}
.full-width-image img {
    width: 100%;
}


/* 5.png: CTA(行動喚起)セクション */
.cta-blue, .cta-brown {
    color: white;
    text-align: center;
}
.cta-blue {
    background-color: #2a5a8a; /* 画像の青色を抽出 */
     background-image: url('images/bg_1.png');/* テクスチャ画像があれば使用 */
}
.cta-brown {
    background-color: #5a4a3a; /* 画像の茶色を抽出 */
    background-image: url('images/bg_2.png');/*テクスcha画像があれば使用 */
}
.cta-brown-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.cta-brown-text {
    flex: 1;
    text-align: left;
}

/* スマートフォン向けのスタイル (レスポンシブ対応) */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .two-col-layout {
        flex-direction: column; /* 縦積みに変更 */
        gap: 30px;
    }

    /* 縦書きを横書きに戻す */
    .vertical-text-block {
        writing-mode: horizontal-tb;
        height: auto;
        padding: 0;
        text-align: center;
    }
    .vertical-text-block h2, .vertical-text-block p {
        letter-spacing: .05em; /* 横書き用に文字間を調整 */
    }

    .cta-brown-content {
        flex-direction: column;
    }
    .cta-brown-text {
        text-align: center;
    }
}

/* 申し込みボタン */
.apply-section {
    text-align: center;
    padding: 40px 20px 80px;
    background-color: #fff;
}

.apply-button {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #e67e22, #d35400);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
}

/* 詳細セクション */
.details-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* 講義内容 */
.lectures {
    margin-bottom: 60px;
}
.lecture-item {
    background: #f9f9f9;
    border-left: 5px solid #d35400;
    padding: 20px 25px;
    margin-bottom: 25px;
}
.lecture-item h3 {
    margin-top: 0;
}
.lecture-meta {
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
}

/* 講師紹介 */
.instructors {
    margin-bottom: 60px;
}
.instructor-profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}
.instructor-profile:last-child {
    border-bottom: none;
}
.instructor-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.instructor-bio {
    flex: 1;
}
.instructor-bio h3 {
    margin-top: 0;
}

/* 開催概要 */
.outline {
    margin-bottom: 60px;
}
.table-container {
    overflow-x: auto; /* スマホで表がはみ出た場合に横スクロールさせる */
}
.outline-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}
.outline-table th, .outline-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}
.outline-table th {
    width: 25%;
    background-color: #f9f9f9;
    font-weight: bold;
}
.outline-table a {
    color: #d35400;
    font-weight: bold;
}


/* スマホ表示の調整 */
@media (max-width: 768px) {
    .instructor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .outline-table th {
        width: 35%;
    }
}

/* 事前説明会セクション（縦並び） */
.info-section {
  padding: 3em 1em;
  background-color: #f9f9f9;
}

.info-title {
  font-size: 1.8rem;
  margin-bottom: 1em;
  color: #004d40;
  text-align: center;
}

.info-image {
  text-align: center;
  margin-bottom: 2em;
}

.info-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-text {
  max-width: 800px;
  margin: 0 auto;
}

.info-text p {
  margin-bottom: 1.5em;
  font-size: 1rem;
  line-height: 1.8;
}

.highlight-box {
  background-color: #fff8e1;
  border-left: 5px solid #ffc107;
  padding: 1em;
  margin: 2em 0;
}

.info-list {
  list-style: none;
  padding: 0;
  font-size: 1rem;
}

.info-list li {
  margin-bottom: 1em;
}

.info-link {
  display: inline-block;
  background-color: #004d40;
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.info-link:hover {
  background-color: #00695c;
}

.image-block {
    min-width: 50%;
}