@charset "UTF-8";
/* =========================================================
   イベント機能
   - トップページのイベントセクション
   - イベント一覧（カレンダー＋カード）
   - イベント詳細
   サイズ指定は既存テーマに合わせて min(px / 1728 * 100vw, px) 方式
   SPブレイクポイントも既存に合わせて 769px
   ========================================================= */

:root {
    --event-orange: #e9a12c;
    --event-blue: #1ca6ec;
    --event-text: #565656;   /* テーマ本文色に合わせる */
    --event-line: #e6e6e6;
}

/* ---------------------------------------------------------
   共通
   --------------------------------------------------------- */
.main_event {
    position: relative;
    padding-top: min(120 / 1728 * 100vw, 120px);
    padding-bottom: min(160 / 1728 * 100vw, 160px);
}

@media screen and (max-width: 769px) {
    .main_event {
        padding-top: min(56 / 390 * 100vw, 56px);
        padding-bottom: min(80 / 390 * 100vw, 80px);
    }
}

/* ---------------------------------------------------------
   カレンダー
   --------------------------------------------------------- */
.event_calendar {
    max-width: 760px;
    margin: 0 auto min(80 / 1728 * 100vw, 80px);
    padding: min(32 / 1728 * 100vw, 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 769px) {
    .event_calendar {
        margin-bottom: min(40 / 390 * 100vw, 40px);
        padding: min(16 / 390 * 100vw, 16px);
        border-radius: 8px;
    }
}

.event_calendar_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: min(24 / 1728 * 100vw, 24px);
}

.event_calendar_title {
    font-family: "M PLUS 1", sans-serif;
    font-size: min(26 / 1728 * 100vw, 26px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--event-text);
    /* 「2026年9月」が途中で折り返さないように */
    white-space: nowrap;
}

@media screen and (max-width: 769px) {
    .event_calendar_title {
        font-size: min(20 / 390 * 100vw, 20px);
    }
}

.event_calendar_nav {
    /* テーマのリセット :where(a[href],…){width:95%} を打ち消す */
    width: auto;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--event-line);
    border-radius: 999px;
    font-family: "M PLUS 1", sans-serif;
    font-size: min(13 / 1728 * 100vw, 13px);
    color: var(--event-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.event_calendar_nav:hover {
    background: var(--event-blue);
    border-color: var(--event-blue);
    color: #fff;
}

@media screen and (max-width: 769px) {
    .event_calendar_nav {
        padding: 6px 10px;
        font-size: min(12 / 390 * 100vw, 12px);
    }
}

.event_calendar_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: "M PLUS 1", sans-serif;
}

.event_calendar_table th {
    padding: 8px 0;
    font-size: min(14 / 1728 * 100vw, 14px);
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid var(--event-line);
}

.event_calendar_table th.wd0 { color: #e2604f; }
.event_calendar_table th.wd6 { color: var(--event-blue); }

.event_calendar_table td {
    height: min(64 / 1728 * 100vw, 64px);
    padding: 6px 3px;
    text-align: center;
    vertical-align: top;
    border-bottom: 1px solid #f2f2f2;
}

/* イベントのある日は縦に伸びるので、高さを揃える */
.event_calendar_table td.has-event {
    vertical-align: top;
}

.event_calendar_table td .day {
    display: inline-grid;
    place-items: center;
    width: min(38 / 1728 * 100vw, 38px);
    height: min(38 / 1728 * 100vw, 38px);
    border-radius: 50%;
    font-size: min(15 / 1728 * 100vw, 15px);
    color: var(--event-text);
    line-height: 1;
}

.event_calendar_table td.wd0 .day { color: #e2604f; }
.event_calendar_table td.wd6 .day { color: var(--event-blue); }

/* イベントがある日 */
.event_calendar_day {
    display: inline-block;
    width: auto;
    text-decoration: none;
}

.event_calendar_table td.has-event .day {
    background: var(--event-orange);
    color: #fff;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.event_calendar_day:hover .day {
    transform: scale(1.08);
    opacity: 0.9;
}

/* 今日 */
.event_calendar_table td.is-today .day {
    outline: 2px solid var(--event-blue);
    outline-offset: 1px;
}

/* 日付リンクの読み上げ用テキスト（見た目には出さない） */
.event_calendar_sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* マス内に出すイベント名（PC用。SPは幅が足りないので下の一覧に回す） */
.event_calendar_titles {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.event_calendar_titles li {
    margin-top: 2px;
}

.event_calendar_titles li a {
    display: block;
    width: auto;
    padding: 2px 4px;
    border-radius: 4px;
    background: #fff5e5;
    color: #b9770f;
    font-size: min(11 / 1728 * 100vw, 11px);
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    /* マスからはみ出さないよう2行までで打ち切る */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
    transition: background 0.2s ease;
}

.event_calendar_titles li a:hover {
    background: var(--event-orange);
    color: #fff;
}

.event_calendar_titles li.more {
    font-size: min(10 / 1728 * 100vw, 10px);
    color: #999;
}

/* カレンダー下の月間イベント一覧（SPではこちらが主役） */
.event_calendar_list {
    margin: min(20 / 1728 * 100vw, 20px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--event-line);
}

.event_calendar_list li {
    border-bottom: 1px solid var(--event-line);
}

.event_calendar_list li a {
    display: flex;
    width: auto;
    align-items: baseline;
    gap: 10px;
    padding: 10px 4px;
    font-family: "M PLUS 1", sans-serif;
    text-decoration: none;
    color: var(--event-text);
}

.event_calendar_list li a:hover {
    background: #fffaf2;
}

.event_calendar_list .d {
    flex: 0 0 auto;
    color: var(--event-orange);
    font-size: min(13 / 1728 * 100vw, 13px);
    font-weight: 700;
    white-space: nowrap;
}

.event_calendar_list .t {
    font-size: min(14 / 1728 * 100vw, 14px);
    line-height: 1.5;
}

.event_calendar_note {
    margin-top: min(20 / 1728 * 100vw, 20px);
    font-family: "M PLUS 1", sans-serif;
    font-size: min(13 / 1728 * 100vw, 13px);
    color: #777;
    text-align: center;
}

.event_calendar_note .mark {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--event-orange);
    vertical-align: -1px;
}

@media screen and (max-width: 769px) {
    .event_calendar_table th {
        font-size: min(12 / 390 * 100vw, 12px);
    }

    .event_calendar_table td {
        height: min(46 / 390 * 100vw, 46px);
    }

    .event_calendar_table td .day {
        width: min(30 / 390 * 100vw, 30px);
        height: min(30 / 390 * 100vw, 30px);
        font-size: min(13 / 390 * 100vw, 13px);
    }

    /* SPはマスが狭くてイベント名が入らないので隠し、下の一覧で見せる */
    .event_calendar_titles {
        display: none;
    }

    .event_calendar_table td {
        padding: 4px 1px;
    }

    .event_calendar_list {
        margin-top: min(16 / 390 * 100vw, 16px);
    }

    .event_calendar_list li a {
        gap: min(8 / 390 * 100vw, 8px);
        padding: min(11 / 390 * 100vw, 11px) 2px;
    }

    .event_calendar_list .d {
        font-size: min(12 / 390 * 100vw, 12px);
    }

    .event_calendar_list .t {
        font-size: min(13 / 390 * 100vw, 13px);
    }

    .event_calendar_note {
        margin-top: min(14 / 390 * 100vw, 14px);
        font-size: min(11 / 390 * 100vw, 11px);
        line-height: 1.6;
    }
}

/* ---------------------------------------------------------
   イベント一覧（カード）
   --------------------------------------------------------- */
.event_list_title {
    margin-bottom: min(32 / 1728 * 100vw, 32px);
    font-family: "M PLUS 1", sans-serif;
    font-size: min(28 / 1728 * 100vw, 28px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--event-text);
    text-align: center;
}

@media screen and (max-width: 769px) {
    .event_list_title {
        margin-bottom: min(20 / 390 * 100vw, 20px);
        font-size: min(20 / 390 * 100vw, 20px);
    }
}

.event_upcoming {
    margin-top: min(80 / 1728 * 100vw, 80px);
}

.event_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: min(28 / 1728 * 100vw, 28px);
    max-width: 1140px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

/* 幅が足りないタブレット域は2列に落とす */
@media screen and (max-width: 1100px) {
    .event_cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.event_card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    /* カレンダーから飛んできたときに見出しがヘッダーに隠れないように */
    scroll-margin-top: 120px;
}

.event_card > a {
    display: grid;
    width: 100%;
    grid-template-rows: auto 1fr;
    text-decoration: none;
    color: inherit;
}

.event_card_img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.event_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event_card > a:hover .event_card_img img {
    transform: scale(1.05);
}

.event_card_body {
    padding: min(22 / 1728 * 100vw, 22px);
    font-family: "M PLUS 1", sans-serif;
}

.event_card_date {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--event-orange);
    color: #fff;
    font-size: min(13 / 1728 * 100vw, 13px);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.event_card_title {
    margin-bottom: 12px;
    font-family: "M PLUS 1", sans-serif;
    font-size: min(19 / 1728 * 100vw, 19px);
    font-weight: 700;
    line-height: 1.6;
    color: var(--event-text);
}

.event_card_meta {
    margin-bottom: 12px;
    list-style: none;
    padding: 0;
    font-size: min(13 / 1728 * 100vw, 13px);
    color: #555;
    line-height: 1.8;
}

.event_card_meta span {
    display: inline-block;
    min-width: 3.5em;
    margin-right: 8px;
    color: #999;
    font-size: 0.9em;
}

.event_card_lead {
    margin-bottom: 14px;
    font-size: min(14 / 1728 * 100vw, 14px);
    line-height: 1.8;
    color: #555;
    /* 長文を入れても一覧では2行まで。続きは詳細ページで読ませる */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event_card_more {
    display: inline-block;
    color: var(--event-blue);
    font-size: min(14 / 1728 * 100vw, 14px);
    font-weight: 600;
}

.event_card_more::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-top: 2px solid var(--event-blue);
    border-right: 2px solid var(--event-blue);
    transform: rotate(45deg) translateY(-1px);
}

.event_empty {
    padding: min(60 / 1728 * 100vw, 60px) 0;
    font-family: "M PLUS 1", sans-serif;
    font-size: min(16 / 1728 * 100vw, 16px);
    color: #777;
    text-align: center;
}

@media screen and (max-width: 769px) {
    .event_upcoming {
        margin-top: min(48 / 390 * 100vw, 48px);
    }

    .event_cards {
        gap: min(20 / 390 * 100vw, 20px);
    }

    .event_card {
        border-radius: 8px;
        scroll-margin-top: 80px;
    }

    /* SPは1列に積む */
    .event_cards {
        grid-template-columns: 1fr;
    }

    .event_card_img {
        aspect-ratio: 16 / 9;
    }

    .event_card_body {
        padding: min(18 / 390 * 100vw, 18px);
    }

    .event_card_date {
        font-size: min(12 / 390 * 100vw, 12px);
    }

    .event_card_title {
        font-size: min(17 / 390 * 100vw, 17px);
        line-height: 1.6;
    }

    .event_card_meta {
        font-size: min(13 / 390 * 100vw, 13px);
    }

    .event_card_lead {
        font-size: min(13 / 390 * 100vw, 13px);
    }

    .event_card_more {
        font-size: min(13 / 390 * 100vw, 13px);
    }

    .event_empty {
        padding: min(32 / 390 * 100vw, 32px) 0;
        font-size: min(14 / 390 * 100vw, 14px);
    }
}

/* ---------------------------------------------------------
   イベント詳細
   --------------------------------------------------------- */
.event_single_img {
    margin: min(32 / 1728 * 100vw, 32px) 0;
}

.event_single_img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.event_detail {
    width: 100%;
    margin: min(32 / 1728 * 100vw, 32px) 0;
    border-collapse: collapse;
    font-family: "M PLUS 1", sans-serif;
    font-size: min(15 / 1728 * 100vw, 15px);
    line-height: 1.9;
}

.event_detail th,
.event_detail td {
    padding: min(16 / 1728 * 100vw, 16px);
    border-bottom: 1px solid var(--event-line);
    text-align: left;
    vertical-align: top;
}

.event_detail th {
    width: 8em;
    background: #fafafa;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.event_cta {
    margin-top: min(48 / 1728 * 100vw, 48px);
    text-align: center;
}

.event_cta a {
    display: inline-block;
    width: auto;
    min-width: min(360 / 1728 * 100vw, 360px);
    padding: min(20 / 1728 * 100vw, 20px) min(40 / 1728 * 100vw, 40px);
    border-radius: 999px;
    background: var(--event-orange);
    color: #fff;
    font-family: "M PLUS 1", sans-serif;
    font-size: min(17 / 1728 * 100vw, 17px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.event_cta a:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

@media screen and (max-width: 769px) {
    .event_single_img,
    .event_detail {
        margin: min(20 / 390 * 100vw, 20px) 0;
    }

    .event_detail {
        font-size: min(13 / 390 * 100vw, 13px);
    }

    .event_detail th,
    .event_detail td {
        padding: min(10 / 390 * 100vw, 10px);
    }

    .event_detail th {
        width: 5em;
    }

    .event_cta {
        margin-top: min(28 / 390 * 100vw, 28px);
    }

    .event_cta a {
        display: block;
        width: 100%;
        min-width: 0;
        padding: min(16 / 390 * 100vw, 16px) min(12 / 390 * 100vw, 12px);
        font-size: min(15 / 390 * 100vw, 15px);
    }
}

/* ---------------------------------------------------------
   トップページのイベントセクション
   --------------------------------------------------------- */
.top_event {
    position: relative;
    padding: min(100 / 1728 * 100vw, 100px) 0;
}

/* 見出しは「お知らせ&お役立ち情報」と揃えるため、
   テーマ共通の .h2_en（Damion）／ h2（M PLUS 1）をそのまま使う。
   ここでは余白だけ足す */
.top_event h2 {
    margin-bottom: min(40 / 1728 * 100vw, 40px);
    text-align: center;
}

.top_event_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: min(28 / 1728 * 100vw, 28px);
    list-style: none;
    padding: 0;
}

.top_event_list > li {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.top_event_list > li > a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.top_event_img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.top_event_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.top_event_list > li > a:hover .top_event_img img {
    transform: scale(1.05);
}

.top_event_body {
    padding: min(22 / 1728 * 100vw, 22px);
    font-family: "M PLUS 1", sans-serif;
}

.top_event_date {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--event-orange);
    color: #fff;
    font-size: min(13 / 1728 * 100vw, 13px);
    font-weight: 600;
    white-space: nowrap;
}

.top_event_title {
    font-family: "M PLUS 1", sans-serif;
    font-size: min(19 / 1728 * 100vw, 19px);
    font-weight: 700;
    line-height: 1.6;
    color: var(--event-text);
}

.top_event_place {
    margin-top: 8px;
    font-size: min(13 / 1728 * 100vw, 13px);
    color: #777;
}

.top_event_btn {
    margin-top: min(40 / 1728 * 100vw, 40px);
    text-align: center;
}

.top_event_btn a {
    display: inline-block;
    width: auto;
    min-width: min(320 / 1728 * 100vw, 320px);
    padding: min(18 / 1728 * 100vw, 18px) min(36 / 1728 * 100vw, 36px);
    border: 2px solid var(--event-orange);
    border-radius: 999px;
    background: #fff;
    color: var(--event-orange);
    font-family: "M PLUS 1", sans-serif;
    font-size: min(16 / 1728 * 100vw, 16px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.top_event_btn a:hover {
    background: var(--event-orange);
    color: #fff;
}

.top_event_empty {
    font-family: "M PLUS 1", sans-serif;
    font-size: min(16 / 1728 * 100vw, 16px);
    color: #777;
    text-align: center;
}

@media screen and (max-width: 769px) {
    .top_event {
        padding: min(56 / 390 * 100vw, 56px) 0;
    }

    /* SPも見出しサイズはテーマ共通（.h2_en 20px / h2 20px）に任せ、余白だけ調整 */
    .top_event h2 {
        margin-bottom: min(24 / 390 * 100vw, 24px);
    }

    /* SPは1列に積む */
    .top_event_list {
        grid-template-columns: 1fr;
        gap: min(16 / 390 * 100vw, 16px);
    }

    .top_event_body {
        padding: min(16 / 390 * 100vw, 16px);
    }

    .top_event_date {
        font-size: min(12 / 390 * 100vw, 12px);
    }

    .top_event_title {
        font-size: min(16 / 390 * 100vw, 16px);
    }

    .top_event_place {
        font-size: min(12 / 390 * 100vw, 12px);
    }

    .top_event_btn {
        margin-top: min(24 / 390 * 100vw, 24px);
    }

    .top_event_btn a {
        display: block;
        width: 100%;
        min-width: 0;
        padding: min(14 / 390 * 100vw, 14px) min(12 / 390 * 100vw, 12px);
        font-size: min(14 / 390 * 100vw, 14px);
    }
}
