@charset "utf-8";
/* ==========================================================
   TMJ / ITI Study Club OSAKA 3 ページ
   ・下層共通トーン（ダーク背景 + ゴールド）に準拠
   ========================================================== */

body {
    background: var(--lower-black-back);
}

.tmj-intro,
.tmj-schedule,
.tmj-guide,
.tmj-entry {
    padding: 20px 6.5% 100px 6.5%;
    box-sizing: border-box;
}

.tmj-intro *,
.tmj-schedule *,
.tmj-guide *,
.tmj-entry * {
    box-sizing: border-box;
}

.tmj-pc-br { display: inline; }

/* -------------------------
   イントロ
------------------------- */
.tmj-intro__inner {
    max-width: 1000px;
    margin: 56px auto 0;
    text-align: center;
}

.tmj-intro__catch {
    margin: 0;
    color: var(--lower-yellow);
    font-family: var(--lower-font-family);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.tmj-intro__lead {
    margin: 24px 0 0;
    color: var(--lower-white);
    font-size: 19px;
    line-height: 1.9;
}

.tmj-intro__meta {
    list-style: none;
    max-width: 640px;
    margin: 40px auto 0;
    padding: 24px 28px;
    border: 1px solid rgba(194, 146, 67, 0.6);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

.tmj-intro__meta li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--lower-white);
    font-size: 17px;
    line-height: 1.8;
}

.tmj-intro__meta li + li {
    margin-top: 8px;
}

.tmj-intro__meta-label {
    flex: 0 0 108px;
    color: var(--lower-yellow);
    font-weight: 600;
}

.tmj-intro__sponsor {
    margin: 22px 0 0;
    color: var(--lower-gray);
    font-size: 14px;
    letter-spacing: 0.08em;
}

/* PDFボタン */
.tmj-intro__pdfbtnWrap {
    margin: 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tmj-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 340px;
    min-height: 62px;
    padding: 16px 32px;
    border: 2px solid var(--lower-yellow);
    background: var(--lower-h2title-yellow);
    color: var(--lower-white);
    font-family: var(--lower-font-family);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.tmj-pdf-btn:hover {
    background: #fff;
    color: var(--lower-gold);
}

/* PC・タブレットではモーダル用ボタンを表示、スマホ用リンクは隠す */
.tmj-pdf-btn--sp {
    display: none;
}

.tmj-pdf-btn__icon {
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm8 1.5V8h4.5L14 3.5zM8 13h8v1.5H8V13zm0 3h8v1.5H8V16zm0-6h4v1.5H8V10z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm8 1.5V8h4.5L14 3.5zM8 13h8v1.5H8V13zm0 3h8v1.5H8V16zm0-6h4v1.5H8V10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tmj-pdf-link {
    color: var(--lower-gray);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tmj-pdf-link:hover {
    color: var(--lower-yellow);
}

/* -------------------------
   スケジュール
------------------------- */
.tmj-schedule__inner {
    max-width: 1042px;
    margin: 64px auto 0;
}

.tmj-schedule__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tmj-schedule__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    background: var(--lower-white);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.tmj-schedule__item--highlight {
    outline: 3px solid var(--lower-yellow);
    outline-offset: -3px;
}

.tmj-schedule__month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--lower-h2title-yellow);
    color: var(--lower-white);
    font-family: var(--lower-font-family);
    font-size: 22px;
    font-weight: 600;
}

.tmj-schedule__month span {
    font-size: 46px;
    line-height: 1;
}

.tmj-schedule__body {
    padding: 26px 30px;
    color: var(--lower-black);
}

.tmj-schedule__date {
    margin: 0 0 10px;
    color: var(--lower-gold);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.tmj-schedule__place {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 10px;
    background: var(--lower-gold);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.tmj-schedule__title {
    margin: 0 0 12px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
}

.tmj-schedule__subtitle {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    color: #555;
}

.tmj-schedule__speaker {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.7;
}

.tmj-schedule__caution {
    color: #b00020;
    font-size: 14px;
}

.tmj-schedule__note {
    margin: 4px 0 0;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.7;
}

.tmj-schedule__coming {
    margin: 30px 0 0;
    color: var(--lower-white);
    text-align: center;
    font-size: 17px;
    letter-spacing: 0.04em;
}

/* -------------------------
   ご参加について
------------------------- */
.tmj-guide__inner {
    max-width: 900px;
    margin: 56px auto 0;
    padding: 36px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(194, 146, 67, 0.5);
}

.tmj-guide__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmj-guide__list li {
    position: relative;
    padding-left: 26px;
    color: var(--lower-white);
    font-size: 17px;
    line-height: 1.9;
}

.tmj-guide__list li + li {
    margin-top: 14px;
}

.tmj-guide__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 12px;
    height: 12px;
    background: var(--lower-yellow);
    border-radius: 50%;
}

.tmj-guide__list strong {
    color: var(--lower-yellow);
    font-weight: 700;
}

/* -------------------------
   過去の開催の様子
------------------------- */
.tmj-report,
.tmj-upcoming {
    padding: 20px 6.5% 100px 6.5%;
    box-sizing: border-box;
}

.tmj-report *,
.tmj-upcoming * {
    box-sizing: border-box;
}

.tmj-report__inner {
    max-width: 1042px;
    margin: 56px auto 0;
}

/* 左＝開催内容／右＝写真コラージュ の2カラム */
.tmj-report__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.tmj-report__subhead {
    margin: 0 0 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(194, 146, 67, 0.6);
    color: var(--lower-yellow);
    font-family: var(--lower-font-family);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tmj-report__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmj-report__item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 16px 2px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.tmj-report__name {
    color: var(--lower-white);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.tmj-report__note {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.tmj-report__photo {
    margin: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(194, 146, 67, 0.5);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.tmj-report__photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* 参加可否バッジ（共通） */
.tmj-status {
    flex: 0 0 auto;
    display: inline-block;
    padding: 3px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
}

.tmj-status--full {
    background: #9a2430;
}

.tmj-status--open {
    background: var(--lower-gold);
}

/* -------------------------
   今後のスケジュールと参加可否
------------------------- */
.tmj-upcoming__inner {
    max-width: 720px;
    margin: 56px auto 0;
}

.tmj-upcoming__card {
    background: var(--lower-white);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    padding: 36px 44px 40px;
}

.tmj-upcoming__course {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--lower-gold);
    color: var(--lower-black);
    font-family: var(--lower-font-family);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.tmj-upcoming__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmj-upcoming__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    border-bottom: 1px solid #ddd8cf;
}

.tmj-upcoming__date {
    color: var(--lower-black);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tmj-upcoming__note {
    margin: 24px 0 0;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

/* -------------------------
   入会・お問い合わせフォーム
------------------------- */
.tmj-entry__inner {
    max-width: 1000px;
    margin: 56px auto 0;
}

.tmj-entry__lead {
    margin: 0 0 40px;
    color: var(--lower-white);
    text-align: center;
    font-size: 18px;
    line-height: 1.9;
}

.tmj-entry__mail {
    color: var(--lower-yellow);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* フォーム本体（白カード） */
.tmj-entry__form {
    padding: 48px 56px 56px;
    background: #fff;
    color: #333;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    line-height: 1.9;
}

.tmj-entry__form .tmj-form-table {
    width: 100%;
    border-top: 1px solid #ddd8cf;
}

.tmj-entry__form .tmj-form-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-bottom: 1px solid #ddd8cf;
}

.tmj-entry__form .tmj-form-head {
    padding: 26px 22px 26px 0;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tmj-entry__form .tmj-form-head .req {
    margin-left: 8px;
    color: #c00000;
    font-size: 13px;
    font-weight: 600;
}

.tmj-entry__form .tmj-form-body {
    padding: 22px 0;
}

.tmj-entry__form input[type="text"],
.tmj-entry__form input[type="email"],
.tmj-entry__form input[type="tel"],
.tmj-entry__form select,
.tmj-entry__form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cfc7bc;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.tmj-entry__form textarea {
    min-height: 150px;
    resize: vertical;
}

.tmj-entry__form input:focus,
.tmj-entry__form select:focus,
.tmj-entry__form textarea:focus {
    outline: none;
    border-color: var(--lower-gold);
    background: #fffdf8;
}

.tmj-entry__form .wpcf7-checkbox,
.tmj-entry__form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.tmj-entry__form .wpcf7-list-item {
    margin: 0;
}

.tmj-entry__form .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.tmj-entry__form input[type="checkbox"],
.tmj-entry__form input[type="radio"] {
    margin: 0;
    accent-color: var(--lower-gold);
}

.tmj-entry__form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b00020;
    font-size: 14px;
}

.tmj-entry__form .wpcf7-response-output {
    margin: 30px 0 0 !important;
    padding: 15px 20px !important;
    border: 1px solid #cfc7bc !important;
    background: #fffdf8;
}

/* 送信ボタン */
.tmj-entry__form .tmj-form-submit {
    margin-top: 42px;
    text-align: center;
}

.tmj-entry__form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    min-height: 58px;
    padding: 14px 28px;
    border: 1px solid var(--lower-gold);
    border-radius: 0;
    background: var(--lower-gold);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: 0.3s ease;
}

.tmj-entry__form input[type="submit"]:hover {
    background: #fff;
    color: var(--lower-gold);
}

/* -------------------------
   PDFモーダル
------------------------- */
.tmj-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 4vh 4vw;
    box-sizing: border-box;
}

.tmj-modal,
.tmj-modal * {
    box-sizing: border-box;
}

.tmj-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmj-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.tmj-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-width: 100%;
    height: min(92vh, 100%);
    min-width: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.tmj-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--lower-black);
    color: #fff;
}

.tmj-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.tmj-modal__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.tmj-modal__close:hover {
    color: var(--lower-yellow);
}

.tmj-modal__bodyArea {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    background: #525659;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tmj-modal__frame {
    display: block;
    /* iOS Safari はiframeを内容(PDF)の実寸に自動拡大しはみ出すため、
       width:1px + min-width:100% で親幅に強制的に収める */
    width: 1px;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
}

.tmj-modal__foot {
    padding: 12px 20px;
    text-align: center;
    background: #f4f1ea;
}

.tmj-modal__open {
    display: inline-block;
    color: var(--lower-gold);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================
   Tablet
========================= */
@media screen and (min-width: 768px) and (max-width: 1100px) {
    .tmj-intro,
    .tmj-schedule,
    .tmj-guide,
    .tmj-report,
    .tmj-upcoming,
    .tmj-entry {
        padding: 20px 5% 70px 5%;
    }

    .tmj-report__cols {
        gap: 32px;
    }

    .tmj-report__subhead {
        font-size: 20px;
    }

    .tmj-report__name {
        font-size: 16px;
    }

    .tmj-entry__form {
        padding: 40px 40px 46px;
    }
}

/* =========================
   SP
========================= */
@media screen and (max-width: 767px) {
    .tmj-intro,
    .tmj-schedule,
    .tmj-guide,
    .tmj-report,
    .tmj-upcoming,
    .tmj-entry {
        padding: 20px 5.5% 50px 5.5%;
    }

    /* 過去の開催の様子 */
    .tmj-report__inner {
        margin-top: 36px;
    }

    .tmj-report__cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tmj-report__subhead {
        font-size: 19px;
        padding-bottom: 12px;
    }

    .tmj-report__item {
        gap: 12px;
        padding: 14px 2px;
    }

    .tmj-report__name {
        font-size: 15px;
    }

    .tmj-report__note {
        margin-top: 18px;
        font-size: 13px;
    }

    /* 今後のスケジュール */
    .tmj-upcoming__inner {
        margin-top: 36px;
    }

    .tmj-upcoming__card {
        padding: 26px 18px 30px;
    }

    .tmj-upcoming__course {
        margin-bottom: 16px;
        padding-bottom: 12px;
        font-size: 19px;
    }

    .tmj-upcoming__date {
        font-size: 17px;
    }

    .tmj-upcoming__note {
        text-align: left;
    }

    .tmj-pc-br { display: none; }

    .tmj-intro__inner {
        margin-top: 36px;
    }

    .tmj-intro__catch {
        font-size: 19px;
    }

    .tmj-intro__lead {
        margin-top: 18px;
        font-size: 16px;
        text-align: left;
    }

    .tmj-intro__meta {
        margin-top: 28px;
        padding: 20px 18px;
    }

    .tmj-intro__meta li {
        display: block;
        font-size: 15px;
    }

    .tmj-intro__meta-label {
        display: block;
        margin-bottom: 2px;
    }

    .tmj-pdf-btn {
        min-width: 0;
        width: 100%;
        font-size: 17px;
        min-height: 56px;
    }

    /* スマホはモーダルを使わず別タブ表示に寄せる */
    .tmj-pdf-btn--modal {
        display: none;
    }

    .tmj-pdf-btn--sp {
        display: inline-flex;
    }

    .tmj-pdf-link {
        display: none;
    }

    /* スケジュール */
    .tmj-schedule__inner {
        margin-top: 40px;
    }

    .tmj-schedule__item {
        grid-template-columns: 1fr;
    }

    .tmj-schedule__month {
        flex-direction: row;
        padding: 10px;
        font-size: 18px;
    }

    .tmj-schedule__month span {
        font-size: 30px;
    }

    .tmj-schedule__body {
        padding: 20px 18px;
    }

    .tmj-schedule__date {
        font-size: 15px;
    }

    .tmj-schedule__place {
        display: inline-block;
        margin: 6px 0 0;
    }

    .tmj-schedule__title {
        font-size: 19px;
    }

    .tmj-schedule__subtitle {
        display: block;
        margin-top: 4px;
        font-size: 15px;
    }

    .tmj-schedule__speaker {
        font-size: 15px;
    }

    /* ご参加について */
    .tmj-guide__inner {
        margin-top: 36px;
        padding: 24px 20px;
    }

    .tmj-guide__list li {
        font-size: 15px;
    }

    /* フォーム */
    .tmj-entry__inner {
        margin-top: 36px;
    }

    .tmj-entry__lead {
        margin-bottom: 28px;
        font-size: 16px;
        text-align: left;
    }

    .tmj-entry__form {
        padding: 28px 18px 32px;
        font-size: 15px;
    }

    .tmj-entry__form .tmj-form-row {
        display: block;
    }

    .tmj-entry__form .tmj-form-head {
        padding: 18px 0 8px;
        font-weight: 700;
    }

    .tmj-entry__form .tmj-form-body {
        padding: 0 0 20px;
    }

    .tmj-entry__form .wpcf7-checkbox,
    .tmj-entry__form .wpcf7-radio {
        display: block;
    }

    .tmj-entry__form .wpcf7-list-item {
        display: block;
        margin-top: 8px;
    }

    .tmj-entry__form input[type="submit"] {
        width: 100%;
    }

    /* モーダル */
    .tmj-modal {
        padding: 0;
    }

    .tmj-modal__dialog {
        width: 100%;
        height: 100%;
    }
}
