/* reset.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* style.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5fffd;
    background-color: #f5fffd;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
    color: #333;
}

a,
p {
    color: #333;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    /* 他のフォントスタイルにも以下のように適用できます */
}



/* ヘッダーのスタイル */
header {
    background-color: #00B3B3;
    color: #f5fffd;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
}

/* h1にアニメーションを適用 */
header h1 {
    font-size: 2.5rem;
    animation: fadeInUp 2s ease-out;
    /* 浮き上がるアニメーション */
}

/* header内に表示するCTAボタンのスタイル */
.cta-button-header {
    
    background-color: #f5fffd;
    /* メインカラーを青みがかったホワイトに */
    color: #008080;
    display: inline-block;
    padding: 0.75rem 2rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button-header:hover {
    
    background-color: #e0f7f5;
    /* ホバー時に少し青みを強調 */
    color: #005b5b;
    /* テキストも少し濃く */
    
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    /* ホバー時に影を強調 */
    transform: translateY(-3px);
    /* ボタンを少し持ち上げる */
}


/* アニメーションの定義 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        /* 完全に透明から */
        transform: translateY(20px);
        /* 下から20px移動 */
    }

    100% {
        opacity: 1;
        /* 不透明に */
        transform: translateY(0);
        /* 元の位置に */
    }
}

header p {
    font-size: 1.2rem;
    color: #f5fffd;
    word-break: keep-all;
}

.catchphrase {
    font-family: 'Kokoro', serif;
    font-size: 3rem;
    font-weight: 600;
    /* 少し軽めのウェイト */
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: .25rem;
}

h2 {
    display: inline-block;
    text-align: center;
    /* font-family: 'Arial', sans-serif; */
    font-size: 2.5rem;
    color: #00796b;
    padding-bottom: 0.5rem;
    margin-bottom: 10rem;
    letter-spacing: 1px;
    position: relative;
}

h2::after {
    content: "";
    border-bottom: 4px dotted #004d40;
    width: 80%;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
}

header img {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
}

section {
    padding: 4rem 1rem;
    text-align: center;
}

.event-poster {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

#overview image {
    display: block;
}

#overview a {
    display: inline-block;
}

#overview p {
    display: block;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* event-detailsに最大幅を設定し、左揃えに */
.event-details {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    /* 左揃え */
    padding: 1rem;
}

/* h3タグのスタイル */
.event-details h3 {
    display: inline-block;
    border-radius: 4px;
    font-size: 1.125rem;
    color: #00796b;
    background-color: #fff;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    padding: .125rem .5rem;
    border: .5px solid #00796b;
}

/* pタグのスタイル */
.event-details p {
    margin-bottom: .5rem;
    padding: .25rem .5rem;
}

/* スピーカーセクション */

.speaker-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

.card h3 {
    color: #00B3B3;
}

/* プログラムセクションのテーブルスタイル */
.program-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    color: #333;
}

.program-table thead {
    background-color: #00B3B3;
    color: #f5fffd;
}

.program-table th,
.program-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.program-table tbody tr {
    background-color: #fff;
}

.program-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.program-table th {
    font-size: 1.2rem;
    font-weight: bold;
}

.program-table td {
    font-size: 1rem;
}

/* FAQセクション全体のスタイル */
#faq ul {
    text-align: center;
    margin: 0 auto;
    width: min(100%, 700px);
}

#faq ul li {
    margin-bottom: 2rem;
    text-align: left;
}

#faq ul li:last-child {
    margin-bottom: 0;
}



/* 質問部分のスタイル */
.faq-question {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #004d40;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #e0f7f5;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: .25rem;
}

.faq-question::before {
    content: "Q:";
    font-weight: bold;
    color: #00796b;
    margin-right: .25rem;
}

.faq-question:hover {
    background-color: #b2dfdb;
}

/* 回答部分のスタイル */
.faq-answer {
    font-size: 1rem;
    color: #333;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
}

.faq-answer::before {
    content: "A:";
    font-weight: bold;
    color: #00796b;
    margin-right: .25rem;
    margin-left: .25rem;
}

/* 質問がクリックされたときに回答を表示 */
.faq-question.active+.faq-answer {
    display: block;
}

/* アクセスセクション */
.access-item {
    font-size: 1.2rem;
    color: #333;
    margin: 0.5rem auto;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1rem;
    width: min(100%, 600px);
}

.access-item span.access-time {
    font-weight: bold;
    color: #00796b;
}

.venue {
    display: inline-block;
    text-align: left;
    font-size: 1.1rem;
    color: #333;
    margin-top: 1rem auto 0 auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.access-item:last-child {
    border-bottom: 1px solid transparent;
}


/* 地図のスタイル */

.map {
    position: relative;
    margin: 0 auto;
    display: block;
    width: min(100%, 600px);
    height: 400px;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* フッターのQRコードとリンク */
footer {
    background-color: #00B3B3;
    color: #f5fffd;
    text-align: center;
    margin: 0;
    padding: 0;
}

footer p a {
    color: #f5fffd;
}

footer p {
    color: #f5fffd;
}

.mail-link {
    margin-left: .75rem;
}

.footer-contact {
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.footer-contact .qr-code {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
}

.footer-contact .qr-code-img {
    width: 150px;
    /* QRコードのサイズを調整 */
    height: auto;
    padding: 5px;
    background-color: #ffffff;
    /* QRコードの背景を白に設定 */
    border-radius: 4px;
}

.footer-contact .footer-btn {
    display: block;
    width: 150px;
    height: 36px;
    line-height: 2rem;
    color: #f5fffd;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: .5rem auto 0 auto;
    border: 2px solid #f5fffd;
}


/* ホバーアクション */
.footer-contact .footer-btn:hover {
    background-color: #f5fffd;
    /* ホバー時の背景色を変更 */
    color: #008080;
    /* ホバー時にテキストの色を変更 */
    border: 2px solid #008080;
    /* ボーダーの色も変更 */
}

.footer-contact a img {
    cursor: pointer;
}

footer p:last-child {
    line-height: 1.5;
    background-color: #333;
    width: 100%;
    padding: 1rem 0;
    margin: 1rem 0 0 0;
    color: #f5fffd;
}

/* トップに戻る矢印のスタイル */
.back-to-top {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0, 179, 179, 0.6);
    border: .5px solid rgba(245, 255, 253, 0.6);
    color: rgba(245, 255, 253, 0.6);
    border-radius: 20px;
    line-height: 40px;
    cursor: pointer;
    text-decoration: none;
    /* display: none; */
    opacity: 0;
    /* 初期状態では非表示 */
    transition: background-color 0.3s, opacity 0.3s;
}

.back-to-top::before {
    font-size: .75rem;
    text-align: center;
    vertical-align: middle;
    content:"▲";
    /* transform: rotate(-90deg); */
    position: absolute;
    /* font-weight: bold; */
    top: -1;
    bottom: 0;
    left: 0;
    right: 0;
}

.back-to-top:hover {
    background-color: rgba(0, 121, 107, 0.6);
}

.back-to-top.show {
    /* display: block; */
    opacity: 1;
    /* スクロール後に表示 */
}



/* CTAボタンのスタイル */
.cta-button {
    z-index: 1000;
    display: block;
    text-align: center;
    position: fixed;
    top: -5rem;
    right: 0;
    width: 100%;
    background-color: #00B3B3;
    color: #f5fffd;
    /* テキストの色をヘッダーと調和させた深い青緑に */
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0 0 0 0;
    /* ボーダーをつけてボタンを際立たせる */
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding-top: .75rem;
    padding-bottom: .75rem;
    /* トランジションを追加して変化を滑らかに */

}

.cta-button:hover {
    
    background-color: #008080;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    /* ホバー時に影を強調 */
}

.cta-button:active {
    transform: translateY(1px);
    /* クリック時にわずかに沈む */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* クリック時の影 */
}


.cta-button.show {
    top: 0;
}


@media screen and (max-width:760px) {
    .catchphrase {
        font-size: 2.25rem;
    }

    section h2 {
        font-size: 1.75rem;
    }
}