/* スイッチが作成したcss */

#sw_event_container {
    max-width: 1500px;
    margin: 0 auto;
    padding-inline: 30px;
    color: #313131;
    font-weight: 500;
}

.sw_event_title {
    margin-bottom: 35px;
    text-align: left;
    font-size: 34px;
}

.sw_event_search_form {
    margin-block: 20px;
}

.sw_event_form {
    display: flex;
    flex-direction: column;
}

.sw_event_form_inner {
    background: #fff;
    transition: border 0.4s ease-in-out;
}

.sw_event_form_inner:first-of-type {
    border-top: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
    border-right: 1px solid #d6d6d6;
}

.sw_event_form_section {
    display: flex;
    align-items: stretch;
    transition: opacity 0.8s ease-in-out;
}

.sw_event_detail_section .sw_event_form_section {
    opacity: 0;
}

.sw_event_detail_section.open .sw_event_form_section {
    opacity: 1;
}

.sw_event_form_label {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #d6d6d6;
    border-left: 1px solid #d6d6d6;
    width: 19%; /* 285/1500 */
    padding: 15px 20px;
    background-color: #ebebeb;
    font-size: 16px;
}

.sw_event_form_field {
    display: flex;
    background-color: #fff;
    width: 81%;
    padding: 30px 38px;
}

.sw_event_form_inner.--location .sw_event_form_field,
.sw_event_form_inner.--date .sw_event_form_field,
.sw_event_form_inner.--freeword .sw_event_form_field {
    padding-block: 18px;
}

/* 製品ラジオボタン */
.sw_event_product_radio {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 20px;
    justify-content: center;
}

.sw_event_product_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-inline: 30px;
    position: relative;
}

.sw_event_product_item input[type="radio"] {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #313131;
    border-radius: 50%;
}

.sw_event_product_item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #313131;
}

.sw_event_product_item img {
    width: 131px;
    height: auto;
}

.sw_event_product_item .sw_event_product_desc {
    font-size: 14px;
}

/* チェックボックスグループ */
.sw_event_checkbox_group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 50px;
}

.sw_event_form_inner.--location,
.sw_event_form_inner.--date {
    .sw_event_checkbox_group {
        border-right: 1px solid #d6d6d6;
        margin-right: 24px;
        padding-right: 5%;
    }
}

.sw_event_checkbox_item {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.sw_event_checkbox_item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
}

.sw_event_checkbox_item span {
    font-size: 14px;
}

.sw_event_location_select > span {
    margin-right: 15px;
}

.sw_event_select {
    width: 345px;
    padding: 8px 30px 8px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23313131' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
}

.sw_event_select:focus {
    outline: none;
    border-color: #313131;
}

/* 開催日の日付入力 */
.sw_event_date_range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.sw_event_date_range > span:first-child {
    font-size: 14px;
}

.sw_event_date_input_wrapper {
    position: relative;
    display: inline-block;
    width: 40%;
    max-width: 230px;
}

.sw_event_date_input {
    padding: 8px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 2px;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ネイティブのカレンダーアイコンを calendar.svg に差し替え（クリックでピッカーが開く） */
.sw_event_date_input::-webkit-calendar-picker-indicator {
    background: url(../img/sw_event/calendar.svg) no-repeat center;
    background-size: 17px 17px;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.sw_event_date_input::-webkit-inner-spin-button,
.sw_event_date_input::-webkit-outer-spin-button {
    display: none;
}

/* 年の部分 */
.sw_event_date_input::-webkit-datetime-edit-year-field {
    white-space: normal;
}

.sw_event_date_input::-moz-datetime-edit-year-field {
    letter-spacing: 0;
    white-space: normal;
}

.sw_event_date_input:focus {
    outline: none;
    border-color: #313131;
}

.sw_event_date_separator {
    font-size: 16px;
    color: #666;
}

.sw_event_date_input_wrapper input::-webkit-datetime-edit-fields-wrapper {
    display: flex;
}

/* テキスト入力 */
.sw_event_text_input {
    width: 100%;
    max-width: 750px;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    font-size: 14px;
}

.sw_event_text_input:focus {
    outline: none;
    border-color: #313131;
}

/* ボタン */
.sw_event_form_actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 64px;
}

.sw_event_form_actions .sw_event_btn_wrapper {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 22px;
    justify-content: center;
    align-items: center;
}

.sw_event_btn_search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
    background-color: #313131;
    border: none;
    border-radius: 20px;
    width: 310px;
    height: 40px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.sw_event_btn_search:hover {
    opacity: 0.8;
}

.sw_event_btn_search::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 9px;
    background-image: url('../img/sw_event/arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.sw_event_btn_detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #1c1b1b;
    border-radius: 20px;
    width: 310px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.sw_event_btn_detail:hover {
    background-color: #f5f5f5;
    border-color: #1c1b1b;
}

.sw_event_btn_detail::after {
    content: "−";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.sw_event_btn_detail.collapsed::after {
    content: "+";
}

.sw_event_detail_section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    border-color: transparent;
    transition: max-height 0.8s ease-in-out, opacity 0.8s ease-in-out, margin-bottom 0.8s ease-in-out, border-color 0.8s ease-in-out;
}

.sw_event_detail_section.open {
    max-height: 1000px;
    opacity: 1;
    border-bottom: 1px solid #d6d6d6;
    border-right: 1px solid #d6d6d6;
}

.sw_event_clear_link {
    order: 3;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    text-align: center;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.sw_event_clear_link.is-hidden {
    display: none;
}

.sw_event_clear_link:hover {
    border-color: #d6d6d6;
}

.sw_event_clear_link_text {
    border-bottom: 1px solid #1c1b1b;
    width: fit-content;
    margin: auto;
}

/* 検索結果セクション */
.sw_event_result_box {
    margin-top: 40px;
    padding: 30px;
    border-radius: 8px;
}

.sw_event_result_box .sw_event_title {
    margin-bottom: 30px;
}

/* 過去一覧ページ：開催レポートヘッダー（アーカイブと同じ位置・デザイン） */
.sw_event_past_report_header {
    margin-bottom: 24px;
}

/* 過去一覧ページ：検索へ戻る */
.sw_event_past_back_btn {
    display: flex;
    justify-content: center;
}

.sw_event_past_back_btn a {
    display: inline-block;
    margin-bottom: 70px;
    padding: 8px 20px;
    border: 1px solid #1c1b1b;
    border-radius: 20px;
    background-color: #fff;
    color: #1c1b1b;
    transition: all 0.3s;
}

.sw_event_past_back_btn a:hover {
    opacity: 0.8;
    color: inherit;
}

.sw_event_past_back_btn a:active {
    text-decoration: none;
}

/* 過去一覧ページ：sw_event_cards */
.sw_event_past_container .sw_event_section_wrapper:last-of-type .sw_event_cards:last-of-type {
    margin-bottom: 90px;
}

/* 検索結果セクション内：過去のイベント一覧リンク（右下） */
/* 検索結果セクション内：過去一覧リンク（開催レポートと同じデザイン = sw_event_report_link） */
.sw_event_section_past_link {
    position: absolute;
    bottom: -70px;
    right: 0;
    text-align: right;
}

/* セクションヘッダー */
.sw_event_section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sw_event_section_header_left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sw_event_pickup_icon {
    width: auto;
    height: 43px;
}

.sw_event_pickup_label {
    font-size: 24px;
    font-weight: 600;
    color: #307fe2;
}

.sw_event_section_header_right {
    display: flex;
    align-items: center;
}

.sw_event_report_link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #307fe2 !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    text-decoration: underline !important;
    transition: all 0.3s;
}

.sw_event_report_link:hover {
    opacity: 0.8;
}

/* セクションラッパー */
.sw_event_section_wrapper {
    position: relative;
}

/* セクションタイトル */
.sw_event_section_title {
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* イベントカード */
.sw_event_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 140px;
}

.sw_event_card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 16px 15px 26px;
    transition: opacity 0.3s;
    text-decoration: none;
    color: inherit;
}

.sw_event_card:hover {
    opacity: 0.8;
    color: inherit;
}

.sw_event_card_logo {
    display: grid;
    place-items: center;
    margin-bottom: 15px;
}

.sw_event_card_logo img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
}

.sw_event_card_tags {
    flex: 1;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 40px;
}

.sw_event_tag {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid;
}

.sw_event_tag_online,
.sw_event_tag_place {
    min-width: 5em;
    color: #fff;
    background-color: #307fe2;
    border-color: #307fe2;
}

.sw_event_tag_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.sw_event_tag_exhibition {
    color: #e27730;
    border-color: #e27730;
}

.sw_event_tag_lecture {
    color: #0f7c2b;
    border-color: #0f7c2b;
}

.sw_event_tag_ondemand {
    color: #b21b54;
    border-color: #b21b54;
}

.sw_event_card_title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-inline: 50px;
    line-height: 1.8;
    flex: 1;
    font-weight: bold;
}

.sw_event_card_title.locked i{
    display:inline-block;
    background:url('../img/icon_locked.png') no-repeat right center;
    padding-right:1.3em !important;
    vertical-align:inherit;
    width: 10px;
    height: 10px;
}

.sw_event_card_dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sw_event_card_date {
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.sw_event_card_date_archive {
    border: 1px solid;
    width: fit-content;
    margin-inline: auto;
    padding: 4px 15px;
}

/* プラグイン一覧と同趣旨の受付状態ラベル（archive-event カード） */
#sw_event_container .sw_event_card_date span.status-label {
    display: inline-block;
    font-size: 13px;
    line-height: 1.4;
    padding: 0 5px;
    font-weight: bold;
    white-space: nowrap;
}

#sw_event_container .sw_event_card_date span.status-label.almost_full {
    color: #61B69F;
    border: 1px solid #61B69F;
    background: #FFF;
}

#sw_event_container .sw_event_card_date span.status-label.full {
    color: #BBB;
    border: 1px solid #BBB;
    background: #FFF;
}

#sw_event_container .sw_event_card_date span.status-label.end {
    color: #FFF;
    border: 1px solid #BBB;
    background: #BBB;
}

.sw_event_card_link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 54px;
    margin-left: auto;
    margin-right: 1em;
    border-bottom: 1px solid #313131;
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    pointer-events: none;
}

.sw_event_card_link::after {
    content: "";
    display: inline-block;
    aspect-ratio: 13 / 9;
    width: 13px;
    height: auto;
    background-image: url('../img/sw_event/arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0);
    transition: all 0.3s;
}


/* レスポンシブ対応 */
@media (max-width: 480px) {
    #sw_event_container {
        padding-inline: 10px;
    }
    /* 「条件を指定してイベント・セミナーを検索」と「～の検索結果」 */
    .sw_event_title {
        font-size: 131%;
        margin: 15px 0 10px;
    }
    /* 検索フォーム */
    .sw_event_search_form {
        margin-top: 10px;
    }

    .sw_event_form_section {
        flex-direction: column;
        gap: 0;
    }

    /* 検索フォーム 「製品」などのラベル */
    .sw_event_form_label {
        width: auto;
        padding: 3px;
        font-size: 100%;
    }

    /* 検索フォーム 「製品」のフィールド */
    .sw_event_form_field {
        flex-direction: column;
        width: auto;
        padding: 4vw;
    }

    /* 検索フォーム 「製品」の説明 */
    .sw_event_product_item .sw_event_product_desc {
        font-size: 93%;
    }

    /* 検索フォーム 「製品」の各項目 */
    .sw_event_product_item {
        padding: 0 0 20px;
    }

    /* 検索フォーム 「製品」のラジオボタン */
    .sw_event_product_item input[type="radio"] {
        top: unset;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 10px;
        height: 10px;
    }

    .sw_event_product_item input[type="radio"]:checked::after {
        width: 6px;
        height: 6px;
    }

    /* 検索フォーム 「開催日」のフィールド */
    .sw_event_date_range {
        flex-wrap: wrap;
    }

    /* 検索フォーム 「ボタン」のフィールド全体 */
    .sw_event_form_actions {
        margin-top: 10px;
        font-size: 93%;
    }

    /* 検索フォーム 「ボタン」のフィールド */
    .sw_event_form_actions .sw_event_btn_wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
        place-items: center;
    }

    /* 検索フォーム 「ボタン」のボタン */
    .sw_event_btn_search,
    .sw_event_btn_detail {
        width: 100%;
        max-width: 250px;
        font-size: 93%;
    }

    .sw_event_clear_link {
        font-size: 93%;
    }

    /* 検索結果 */
    .sw_event_cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 検索フォーム チェックボックスのグループ */
    .sw_event_checkbox_group {
        gap: 10px 20px;
    }

    /* 検索フォーム チェックボックスのテキスト */
    .sw_event_checkbox_item span {
        font-size: 93%;
    }

    /* 検索フォーム 「開催場所」「開催日」のチェックボックスのグループ */
    .sw_event_form_inner.--location .sw_event_checkbox_group,
    .sw_event_form_inner.--date .sw_event_checkbox_group {
        margin-right: 0;
        margin-bottom: 10px;
        padding-right: 0;
        padding-bottom: 10px;
        border-right: none;
        border-bottom: 1px solid #d6d6d6;
    }

    /* 検索フォーム 「開催場所」のドロップダウン範囲 */
    .sw_event_location_select {
        text-align: left;
    }

    /* 検索フォーム 「開催場所」のドロップダウン */
    .sw_event_select {
        width: 100%;
        font-size: 93%;
    }

    /* 検索フォーム 「開催日」の日付入力 */
    .sw_event_date_input {
        font-size: 93%;
    }

    /* 検索フォーム 「フリーワード」のテキスト入力 */
    .sw_event_text_input {
        width: auto;
        padding-block: 7px;
        font-size: 93%;
    }

    /* 検索結果 */
    .sw_event_result_box {
        padding: 0;
    }

    /* 検索結果 セクションヘッダー */
    .sw_event_section_header {
        margin-bottom: 10px;
    }

    .sw_event_section_header_left {
        gap: 8px;
    }

    /* 検索結果 セクション内 */
    .sw_event_section_past_link {
        bottom: -40px;
    }

    /* 検索結果 イベントカード */
    .sw_event_cards {
        margin-bottom: 80px;
    }

    /* ピックアップ */
    .sw_event_pickup_icon {
        height: 25px;
    }

    .sw_event_pickup_label {
        font-size: 131%;
    }

    .sw_event_report_link {
        font-size: 93%;
    }

    /* 検索結果のタグ範囲 */
    .sw_event_card_tags {
        margin-bottom: 20px;
    }

    /* 検索結果の表示タグ（右側） */
    .sw_event_tag_group {
        gap: 5px;
    }

    .sw_event_tag {
        padding: 0 7px;
        font-size: 93%;
    }

    .sw_event_card_title {
        padding-inline: 25px;
        font-size: 105%;
    }

    .sw_event_card_date {
        font-size: 93%;
    }

    .sw_event_card_link {
        margin-top: 20px;
        font-size: 93%;
    }

    .sw_event_card_link::after {
        width: 10px;
    }

    /* 検索結果タイトル */
    .sw_event_section_title {
        margin-bottom: 10px;
        font-size: 131%;
    }

    /* 過去一覧ページ：sw_event_cards */
    .sw_event_past_container .sw_event_section_wrapper:last-of-type .sw_event_cards:last-of-type {
        margin-bottom: 40px;
    }
}