/* トップページの最下部「主催者の方へ」（app/views/performances/_landing_organizers.html.erb）。
   レイアウトの application.html.erb が、performances#index のときだけ読み込む。 */

.top-page { color: #1f2933; }

.top-page a { color: #0b5ed7; }
.top-page a:hover { color: #084298; }

/* ---------- 主催者の方へ ---------- */

.top-organizers {
    background: #fff;
    border-top: 1px solid #e3e6ea;
    border-bottom: 1px solid #e3e6ea;
}

.top-organizers__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.top-organizers__lead {
    font-size: 13px;
    font-weight: 800;
    color: #0b5ed7;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.top-organizers__title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
}

/* 見出しの下の補足（下の 5 つは個人プランの機能で、電話受注などはビジネスプラン、という断り） */
.top-organizers__note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #55606c;
}

/* 狭い画面では縦に積み、主役の語から説明へ自然に読み進められるようにする */
.top-organizers__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.top-organizers__point {
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: var(--top-ground);
    border: 1px solid #e3e6ea;
    border-top: 4px solid #f5b800;
    border-radius: 10px;
    color: #1f2933;
    overflow-wrap: anywhere;
}

.top-organizers__point-number {
    align-self: flex-start;
    padding-bottom: 4px;
    border-bottom: 2px solid #f5b800;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

/* 主役の語は、カードの左右の真ん中に置く（その領域の中では上下も真ん中） */
.top-organizers__point-key {
    display: block;
    align-content: center;
    text-align: center;
    margin: 16px 0;
    color: #0b5ed7;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.top-organizers__point-key--numeric {
    font-size: 52px;
    line-height: 1.1;
}

/* 「数分」は漢字 2 文字で、数字（0・8）と同じ 52px だと 1 つだけ大きく見えるので、単位（円・％）に近い大きさにする */
.top-organizers__point-key--word {
    font-size: 34px;
    line-height: 1.7;
}

.top-organizers__point-unit {
    margin-left: 4px;
    font-size: 28px;
}

.top-organizers__point-key--features {
    font-size: 21px;
}

.top-organizers__point-description {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #e3e6ea;
    font-size: 14px;
    line-height: 1.8;
}

@media (min-width: 992px) {
    /* 等幅の5列にし、主役の語の領域もそろえて説明文の開始位置を合わせる */
    .top-organizers__points {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .top-organizers__point-key {
        min-height: 88px;
    }
}

.top-organizers__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.top-page a.top-organizers__button {
    background: #0b5ed7;
    color: #fff;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
}

.top-page a.top-organizers__button:hover { background: #084298; color: #fff; }

.top-organizers__link {
    font-size: 15px;
    padding: 14px 8px;
    font-weight: 700;
}

/* ---------- スマホ ---------- */

@media (max-width: 767.98px) {
    /* 主催者向けの 5 つの特長は、スマホではカードにせず 1 行ずつの一覧にする（左に主役の語、右に説明）。
       大きなカードを 5 枚縦に積むと、枠・色・52px の数字が続いてうるさく、画面 3 枚ぶんの長さになる */
    .top-organizers__points { gap: 0; border-top: 1px solid #e3e6ea; }
    .top-organizers__point {
        display: grid;
        grid-template-columns: 7em minmax(0, 1fr);
        align-items: center;
        column-gap: 14px;
        padding: 14px 0;
        background: none;
        border: 0;
        border-bottom: 1px solid #e3e6ea;
        border-radius: 0;
    }
    .top-organizers__point-number { display: none; }
    .top-organizers__point-key { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: 0; }
    .top-organizers__point-key--numeric { font-size: 30px; line-height: 1.1; }
    .top-organizers__point-unit { margin-left: 2px; font-size: 16px; }
    /* 「数分」は漢字 2 文字で、数字（0・8）と同じ大きさだと 1 つだけ大きく見えるので、少し小さくする */
    .top-organizers__point-key--word { font-size: 22px; }
    .top-organizers__point-key--features { font-size: 13px; white-space: nowrap; }
    .top-organizers__point-description { padding-top: 0; border-top: 0; font-size: 13.5px; line-height: 1.65; }
    .top-organizers__inner { padding: 40px 16px; }
    .top-organizers__title { font-size: 22px; }
    /* 主ボタンを先に示し、補足のリンクは次の段で同じ幅にそろえる */
    .top-organizers__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .top-page a.top-organizers__button {
        grid-column: 1 / -1;
        text-align: center;
    }
    .top-organizers__link {
        min-height: 44px;
        text-align: center;
        text-decoration: underline;
    }
}
