/* 基本設定 */
:root {
    --primary-blue: #0945a0;
    --accent-yellow: #f0e68c;
    --light-blue: #788bbe;
    --text-color: #333;
    --bg-white: #ffffff;
    /* darkテーマ */
    --bg-dark: #050a14;
    /* 作品の深い紺色 */
    --accent-gold: #f39c12;
    /* 星々の輝き */
    --text-light: #e0e0e0;
    --fukita-dark: #050a14;
    /* 作品背景の深い紺 */
    --fukita-gold: #f39c12;
    /* 星の輝きのオレンジがかった黄色 */
    --fukita-accent: #2ecc71;
    /* 作品にあるエメラルドグリーンの光 */
    --fukita-white: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--fukita-white);
}

p {
    text-align: justify;
}

body {
    font-family: "游ゴシック", "ヒラギノ角ゴ Pro W3", Osaka;
    line-height: 1.8;
    background: linear-gradient(to right, #0a192f 5%, #144079 45% 55%, #0a192f 95%);
    color: var(--text-light);
    /* darkテーマ */
}

html,
body {
    overflow-x: hidden;
    /* 横方向のはみ出しを隠す */
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 30px;
}

h1,
h2 {
    font-family: 'Noto Sans JP';
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-padding {
    padding: 50px;
}


/* Header nav ヘッダーのナビ部分 */
header {
    background: rgba(10, 25, 47, 0.95);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links-mb {
    display: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

/* ナビゲーションのアクティブ表示 */
.nav-links a.active {
    color: var(--fukita-gold);
}

.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fukita-gold);
    margin-top: 5px;
    box-shadow: 0 0 8px var(--fukita-gold);
}

/* スマホメニュー内での表示 */
@media screen and (max-width: 768px) {
    .nav-links a.active::after {
        width: 30%;
        /* スマホでは中央に短く表示 */
        margin: 5px auto 0;
    }
}
/* Burger Menu (Mobile) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .section-padding {
        padding: 20px;
    }

    nav {
        justify-content: space-between;
        margin: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-links-mb {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 50px;
        background-color: rgb(10, 25, 47);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        text-align: center;
        z-index: 1001;
        padding-top: 10vh;
    }

    .nav-links-mb .subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 40px;
    }
    .nav-links-mb .mbtext1 {
        font-size: 1.3rem;
        font-weight: bold;
    }
    .nav-links-mb .title {
        font-size: 2rem;
        font-weight: bold;
    }
    .nav-links-mb span {
        font-size: .7rem;
    }

    .nav-links-mb ul {
        margin-top: 30px;
    }

    .nav-links-mb li {
        margin: 10px 0;
        list-style: none;
    }

    .nav-links-mb li a {
        text-decoration: none;
        color: var(--accent-yellow);
    }

    .burger {
        display: block;
        margin-left: auto;
        margin-right: 10px;
    }
}

.nav-active {
    transform: translateX(0%);
}

/* Hero Section ヘッダーの写真とタイトル部分 */
.hero-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0 40px;
    align-items:center;
    z-index: 2;
    gap: 20px;
}

.hero-dramatic {
    position: relative;
    padding: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.hero-portrait {
    flex: 1.5 1 0%;
    width: 100%;
}

.hero-portrait p {
    text-align: center;
    margin-top: 0;
}

.hero-portrait img {
    width: 100%;
    margin-top: 10px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.hero-text-dramatic {
    flex: 1.5 1 0%;
    width: 100%;
    min-width: 280px;
    /* padding: 100px 0; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

.hero-tag {
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: .1rem;
    line-height: .1;
    color: var(--accent-gold);
    text-align: center;
    position: relative;
    top: -20px;
}

.hero-tag2 {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-align: center;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
    font-family: 'Noto Serif JP', serif;
    line-height: .1;
    position: relative;
    top: -20px;
}
.hero-tag3 {
    font-size: 3rem;
}
.hero-tag4 {
    font-size: 4rem;
    font-weight: bold;
}
.hero-tag5 {
    margin-top: -30px;
}
.hero-info {
    margin-top: 20px;
}
.hero-info table {
    text-align: left;
    margin: 50px auto;
    font-size: .8rem;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.hero-info table th {
    width: 3rem;
}

.hero-img {
    width: 90%;
    margin: 0 auto;
}

.date {
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.place {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 150px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}


/* スマホ対応：上下に並べる */
@media screen and (max-width: 768px) {
    .hero-dramatic {
        margin: 0 auto;
        padding: 0 10px;
    }

    /* .hero-image {
        width: 90%;
        margin: 0 auto;
    } */

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-dramatic {
       margin-top: 2rem;
    }
}



/* about 展覧会について みどころの部分 */
.about-flex {
    margin-bottom: 30px;
}

/* セクション見出しの装飾 */
.section-title h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--fukita-white);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    /* 金色の光のグラデーション文字 */
    background: linear-gradient(to right, #fff, var(--fukita-gold), #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 見出しの下線（中央から広がる光のイメージ） */
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--fukita-gold);
    box-shadow: 0 0 10px var(--fukita-gold);
}


/* ボタンのデザイン */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--fukita-gold);
    border: 1px solid var(--fukita-gold);
    border-radius: 2px;
    /* 少し角を残して版画の鋭さを出す */
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ボタンのホバー効果：星が輝くような光の反射 */
.btn-primary:hover {
    color: var(--fukita-dark);
    background-color: var(--fukita-gold);
    box-shadow: 0 0 20px var(--fukita-gold);
    transform: translateY(-2px);
}

/* 展示コーナーの箇条書き（版画の「版」をイメージした四角） */
.display-corners ul {
    list-style: none;
    margin-left: -2rem;
}
.display-points {
    position: relative;
    left: 4rem;
    margin-bottom: 20px;
    margin-right: 4rem;
}

.display-corners li {
    /* background: rgba(255, 255, 255, 0.05); */
    border-left: 3px solid var(--fukita-gold);
    padding: 15px;
    color: var(--fukita-white);
    transition: 0.3s;
}

/* .display-corners li:hover {
    background: rgba(243, 156, 18, 0.1);
} */

.display-corners li span {
    color: var(--fukita-gold);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}


/* 展覧会構成の部分 */
.story-container {
    max-width: 1100px;
    margin: 0 auto;
}

.story-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

/* 左右交互のレイアウト */
.story-row.reverse {
    flex-direction: row-reverse;
}

.story-image {
    flex: 1.2;
}

.story-image img {
    width: 100%;
    height: auto;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.story-image:hover img {
    transform: scale(1.03);
}

.caption {
    font-size: 0.75rem;
    color: #a7a7a7;
    margin-top: 12px;
    text-align: right;
}

.story-text {
    flex: 1;
}

.chapter-num {
    color: var(--fukita-gold);
    font-weight: bold;
    letter-spacing: 0.2rem;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
}

.story-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.topic-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(243, 156, 18, 0.3);
    padding: 20px;
    margin-top: 25px;
}

.topic-card h4 {
    color: var(--fukita-gold);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.topic-card p {
    font-size: 0.85rem;
    color: #aaa;
}


/* レスポンシブ（スマホ）対応 */
@media (max-width: 768px) {
    .story-row,
    .story-row.reverse {
        flex-direction: column-reverse;
        gap: 30px;
        margin-bottom: 80px;
    }

    .story-text h3 {
        font-size: 1.5rem;
    }
}

/* 2枚横並び用のスタイル */
.story-image-double {
    flex: 1.5;
    /* 画像2枚分なので少し広めにとる */
}

.image-pair {
    display: flex;
    gap: 15px;
    /* 画像同士の隙間 */
    margin-bottom: 20px;
}

.image-item {
    flex: 1;
}

.image-item img {
    width: 100%;
    height: auto;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* スマホ対応：2枚並ぶときつくなる場合は縦に並べる、もしくは横幅を調整 */
@media (max-width: 768px) {
    .image-pair {
        gap: 10px;
    }

    /* 非常に小さい画面で画像が細かくなりすぎる場合はここを column に変更 */
    /* .image-pair { flex-direction: column; } */
}



/* Info Text */
.info-table {
    margin-left: 0;
}
.info-table th {
    padding-right: 1rem;
    width: 20%;
    text-align: left;
    font-weight: normal;
}
.info-table tr {
    line-height: 2.5;
}
.info-table td p {
    line-height: 1.2;
}

.info-points  >p,table,li {
 margin-left: 2rem;
}

.note {
    /* font-size: .9rem; */
    line-height: 1.2;
    margin: 15px 0 0 150px;
}

.note li {
    padding-left: 5px;
    padding-bottom: 5px;
}

.note li::marker {
    content: "＊";
}

/* Responsive Table */
.fee-table {
    width: 80%;
    margin-top: -10px;
    margin-left: 150px;
    border-collapse: collapse;
}

.fee-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

@media screen and (max-width: 768px) {
    .info-table th {
        width: 30%;
    }
    .fee-table {
        margin-left: 50px;
    }
    .note {
        margin-left: 50px;
    }
}

/* footer */
.footer-content {
    height: 100px;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
}

.footer-content img {
    display: flex;
    width: 200px;
    margin: 0 auto;
    padding-top: 15px;
    align-items: center;
}



/* --- アニメーションの定義を追加 --- */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* --- バーガーメニューの三本線を「X」に変形させる（JSのtoggleクラス用） --- */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}



/* セクションごとに薄いグラデーションをかける */
#about {
    width: 100%;
    margin-top: 30px;
}


/* --------ページトップ-------- */
/* トップへ戻るボタンのスタイル */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* 吹田文明展のメインカラー（深い青）を使用 */
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
    /* 輝く光の黄色 */
    border: 2px solid var(--accent-yellow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    /* 最初は隠しておく */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ボタンが表示された時の状態 */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--light-blue);
    transform: translateY(-5px);
}

#back-to-top .arrow {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

#back-to-top .text {
    font-size: 0.6rem;
    font-weight: bold;
    margin-top: 2px;
}

/* スマホでの調整：少し小さく、端に寄せる */
@media screen and (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ===アクセス===================== */
.annai {
    position: relative;
    margin-bottom: 50px;
}

.access_conte_1,
.access_conte_2 {
    margin-left: 2rem;
}

.access_conte_2 {
    margin-top: 100px;
}

.info_mapWrap {
    width: 100%;
    margin: 0 10px;
}

.info_mapWrap iframe {
    width: 90%;
    margin: 10px 20px;
    border: solid #000 1px;
}

.bus_wrap {
    position: relative;
    top: -80px;
}

.info_head {
    font-size: larger;
    font-weight: bold;
}

.bus_info {
    width: 90%;
    border: solid var(--fukita-white) 1px;
    margin: -70px auto 20px;
    padding: 10px 30px;
    background-color: var(--light-blue);
    color: var(--fukita-white);
}

.kousoku_wrap {
    margin-left: 1rem;
}

.kousoku_wrap li,
.ferry_wrap li {
    list-style: square;
    margin-left: 2rem;
}

.kbus_wrap a {
    text-decoration: underline;
}

@media screen and (max-width: 767px) {
    .info_mapWrap {
        margin: 0 auto;
        margin-left: -10px;
    }

    .info_mapWrap iframe {
        width: 100%;
        margin: 5px;
    }
}



/* -----Event Listi\ 関連するイベントの部分----- */
#events {
    margin-bottom: -80px;
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* イベントカード */
.event-card {
    background: linear-gradient(to bottom right, #d5dfec, #bcc2c7);
    border: 2px solid var(--accent-gold);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card p {
    font-weight: bold;
    margin: 0 10px;
    line-height: 1.1;
    text-align: justify;
}

.event-card table {
    margin-top: 20px;
}
.event-card th {
    width: 25%;
    text-align: right;
}
.event-card td {
    line-height: 1.2;
}
.event-card table {
    margin-left: 0;
}

.event-card h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.highlight-card {
    border: 1px solid var(--accent-gold);
    background: linear-gradient(to bottom right, #252850, #396fa1);
    color: var(--fukita-white);
}

.highlight-card .event-date {
    color: var(--fukita-white);
}

.highlight-card h4 {
    color: var(--fukita-gold);
}

.event-category-title {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-yellow);
    color: var(--accent-gold);
}

/* 日付とバッジ */
.event-date {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--bg-dark);
    margin-bottom: 10px;
}

.event-date span {
    font-size: 0.9rem;
    margin-left: 5px;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.badge2 {
    position: absolute;
    top: 15px;
    right: 80px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* 要申込 */
.badge-apply {
    background: #fee2e2;
    color: #dc2626;
}

/* 申込不要 */
.badge-free {
    background: #dcfce7;
    color: #16a34a;
    margin-right: 10px;
}

/* 要観覧券 */
.badge-ticket {
    background: #fef9c3;
    color: #854d0e;
}

.event-tel {
    padding: 10px 30px;
    background: var(--bg-white);
}

.event-tel ul {
    margin-top: 10px;
    margin-left: 30px;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    #events {
        padding: 50px 20px;
    }
}

/* カレンダー設定 */

:root {
    --period-bg: #0f468f; /* 会期中の背景色（薄い黄色） */
    --event-dot: #ff5722; /* イベント印の色 */
}

#calendar-container {
    max-width: 600px;
    margin: 0 auto;
}
.calendar-header {
    display: flex;
    justify-content: space-around;
    font-size: 1.2rem;
}
#prevMonth, #nextMonth {
    font-weight: 600;
    font-size: 1.5rem;
    background: var(--light-blue);
    color: #fff;
    border-radius: 50%;
    padding: 0 10px;
    height: 50px;
}
#todayBtn {
    padding: 0 10px;
    height: 40px;
    border-radius: 10px;
    margin-top: 5px;
}

.calendar-day {
    min-height: 80px;
    border: .1px solid var(--light-blue);
    padding: 5px;
    position: relative;
    background-color: rgb(51, 50, 50);
}

/* 会期中の背景色 */
.in-period {
    background-color: var(--period-bg);
}

.event-mark {
    display: block;
    font-size: 10px;
    background: var(--event-dot);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    margin-top: 4px;
    cursor: pointer;
    text-decoration: none;
}

.event-mark:hover {
    opacity: 0.8;
}
/* 曜日ラベルのスタイル */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--fukita-white);
    font-weight: bold;
    text-align: center;
    border-top: 1px solid var(--light-blue);
    border-left: 1px solid var(--light-blue);
    border-right: 1px solid var(--light-blue);
}

.calendar-weekdays div {
    padding: 10px 0;
    border-right: 1px solid var(--light-blue);
    color: #777777;
}

.calendar-weekdays div:last-child {
    border-right: none;
}

/* 日曜と土曜の色分け（任意） */
.calendar-weekdays div:nth-child(1) { color: #f05c5c; } /* 日曜: 赤 */
.calendar-weekdays div:nth-child(7) { color: #1c77d1; } /* 土曜: 青 */

/* 既存のグリッドの枠線を調整 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: .5px solid var(--light-blue);
}

.calendar-day.sun { color: #ee6868; }
.calendar-day.sat { color: #82bbf3; }
.calendar-day {
    color: #fff;
}

/* 今日の日付のスタイル */
.calendar-day.today {
    border: 2px solid #5e5e5e; /* 枠線を強調 */
    background-color: #a2cceb; /* 薄い青色（会期中の色と喧嘩しない色） */
  }
  
  /* 数字に丸い背景をつけたい場合 */
  .calendar-day.today span {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #1976d2; /* 濃い青 */
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
  }

  /* リンクボタン */
  .linkbtn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
  }

  .kaiki {
    position: relative;
    line-height: 1.2;
    top: 5px;
  }
  .kaiki img {
    position: absolute;
  }