/* 基本設定 */
body {
    font-family: "M PLUS Rounded 1c", -apple-system, "BlinkMacSystemFont", Roboto, "Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro", Meiryo, "メイリオ", Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fef7ec; /* より明るいオレンジ系の背景 */
    margin: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px; /* 左右にマージンを確保 */
}

h1, h2, h3 {
    font-weight: bold;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    color: #b55e0a; /* 濃いオレンジ */
    background-color: #ffecc6; /* 薄いオレンジ系の背景 */
    padding: 15px 20px;
    border-radius: 10px; /* 角丸 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block; /* 中央寄せと背景色の幅を内容に合わせる */
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100% - 40px); /* 左右のpaddingを考慮 */
    box-sizing: border-box; /* paddingをwidthに含める */
}

a {
    color: #e67e22; /* より鮮やかなオレンジ */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ヘッダー */
.hero {
    background-color: #ffe6b0; /* オレンジ系の背景 */
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    /* flex-wrap: wrap; */
    gap: 20px;
    margin-bottom: 40px;
}

.hero-text {
    text-align: center; /* ここをcenterに変更 */
}

.hero .subtitle {
    font-size: 1.1em;
    margin: 0 auto 10px auto;
    background-color: #ffc46a; /* サブタイトルの背景色 */
    color: #a0522d;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3em;
    color: #b55e0a; /* 濃いオレンジ */
    margin: 10px 0 20px 0;
    line-height: 1.4;
    text-align: center; /* ここをcenterに変更 */
    word-break: keep-all; /* 単語の途中で改行しない */
}

.header-image {
    max-width: 250px;
    height: auto;
    margin-top: 20px;
    flex-shrink: 0;
}

/* featuresをヘッダー内に移動後のスタイル調整 */
.features {
    display: flex;
    justify-content: center;
    gap: 15px; /* アイテム間の隙間を少し狭める */
    margin: 30px auto 0 auto;
    font-size: 1.1em;
    font-weight: bold;
    flex-wrap: wrap;
    padding: 0; /* paddingをリセットしてcontainerのpaddingを活かす */
}
.features span {
    background-color: #fff;
    padding: 10px 15px; /* 左右のパディングを少し減らす */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center; /* アイコンとテキストを天地中央揃え */
    gap: 8px;
    color: #555;
    white-space: normal; /* テキストをなりゆき改行 */
    flex-grow: 1; /* 可能な限り幅を広げる */
    max-width: 100%; /* 親要素の幅を超えないように */
    box-sizing: border-box; /* paddingをwidthに含める */
    text-align: left; /* テキストの左寄せを保持 */
}
.icon {
    width: 24px;
    height: 24px;
    color: #4CAF50;
    flex-shrink: 0; /* アイコンが縮まないように */
}
.description {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 30px;
}


/* プログラム */
.program-grid {
    display: grid;
    gap: 30px;
}
.lecture-card {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    align-items: flex-start;
}
.speaker-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffe6b0;
    flex-shrink: 0;
}
.lecture-content h3 {
    margin: 0 0 5px 0;
    color: #b55e0a;
}
.lecture-subtitle {
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #e67e22;
}
.speaker-info {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}
.discussion-note {
    background-color: #ffecc6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    color: #b55e0a;
    font-weight: bold;
}

/* 会場 */
.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.venue-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffecc6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.venue-card h3 {
    text-align: center;
    font-size: 1.5em;
    background-color: #e67e22;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin: -20px -20px 20px -20px;
}
.venue-card .date {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #e67e22;
}
.venue-card dl {
    margin: 0;
}
.venue-card dt {
    font-weight: bold;
    background-color: #fef7ec;
    padding: 5px 10px;
    border-left: 5px solid #e67e22;
    margin-top: 10px;
    color: #b55e0a;
}
.venue-card dd {
    margin: 5px 0 10px 15px;
    font-size: 0.9em;
    color: #666;
}
.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ffecc6;
}
.map-container iframe {
    display: block;
}


/* 申し込み */
#application {
    background-color: #fff;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}
#application p {
    color: #555;
    margin-bottom: 30px;
}
.application-buttons {
    text-align: center;
    margin: 30px 0;
}
.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    margin: 10px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-web {
    background-color: #f39c12;
}
.btn-web:hover {
    background-color: #e08e0b;
    color: #fff;
    text-decoration: none;
}
.btn-fax {
    background-color: #ffaa33;
}
.btn-fax:hover {
    background-color: #ff9922;
    color: #fff;
    text-decoration: none;
}

/* FAQ */
#faq details {
    background: #fff;
    border: 1px solid #ffecc6;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#faq summary {
    font-weight: bold;
    cursor: pointer;
    color: #e67e22;
    font-size: 1.1em;
}
#faq summary:hover {
    color: #f39c12;
}
#faq details p {
    padding-top: 10px;
    padding-left: 15px;
    border-top: 1px dotted #ffecc6;
    margin-top: 10px;
    color: #666;
}


/* 問い合わせ・フッター */
#contact {
    background-color: #ffe6b0;
    border-radius: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.contact-info {
    text-align: center;
    color: #b55e0a;
}
.contact-info p {
    margin: 5px 0;
}
.contact-info a {
    color: #e67e22;
}

footer {
    background-color: #8b4513;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 15px; /* スマホで左右のパディングを減らす */
    }
    .hero h1 {
        font-size: 2.2em;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-main-content {
        flex-direction: column;
    }
    .header-image {
        max-width: 200px; /* スマホで画像を少し小さく */
        margin-top: 30px;
    }
    .features {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .features span {
        padding: 12px 15px; /* スマホでパディング調整 */
        justify-content: flex-start; /* テキストを左寄せ */
        width: auto; /* widthを自動調整 */
        flex-basis: auto; /* flex-growの影響を調整 */
    }
    .lecture-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .venue-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%; /* スマホでボタンの幅を100%に */
        box-sizing: border-box;
        padding: 15px 30px; /* ボタンのパディングを調整 */
        font-size: 1.2em;
    }
    h2 {
        font-size: 1.71em;
        padding: 12px 15px;
    }
}
