@charset "utf-8";

/* 
page-agent.css - サイト固有の差分（AIが触る領域）
プレフィックス：p-
編集者 人間：編集する（微調整程度）
	   AI ：編集する（cursorエージェントが自由に編集をがりがり進める）
役割：ページ固有スタイル。レスポンシブもこのファイル内で完結。
禁止：c- の上書き（原則禁止）
	 共通化すべきスタイル
	 layout構造の再定義
*/
/* =========================================================
ここまではテンプレート
内部ページ用CSSを以下に記述
========================================================= */

/* 404・エラーページ（templates/error.html）
   サイトごとに色・書体を調整する場合は、ここではなく上の variables.css 側の
   --color-main 等の値を変える（クラス名・構造は変えない） */
.p-errorPage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-sub);
}
.p-errorPage__header {
    padding: 2.4rem 0 0;
    text-align: center;
}
.p-errorPage__header a {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--color-main);
}
.p-errorPage__header img {
    width: 5.6rem;
    height: auto;
}
.p-errorPage__main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.0rem 2.0rem 6.0rem;
}
.p-errorPage__box {
    max-width: 56rem;
    width: 100%;
    text-align: center;
}
.p-errorPage__code {
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 6.4rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: var(--color-main);
    margin-bottom: 1.6rem;
}
.p-errorPage__box h1 {
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.6;
    color: var(--color-txt);
    margin-bottom: 1.6rem;
}
.p-errorPage__box p {
    line-height: 1.9;
    color: var(--color-txt);
    margin-bottom: 3.2rem;
}
.p-errorPage__btn a {
    display: inline-block;
    background-color: var(--color-conversionbg);
    color: var(--color-conversiontxt);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 999px;
    padding: 1.8rem 5.6rem;
    transition: opacity 0.2s;
}
.p-errorPage__btn a:hover {
    opacity: 0.85;
}
.p-errorPage__footer {
    padding: 2.0rem 0 3.2rem;
    text-align: center;
    font-size: 1.6rem;
    color: var(--color-txt);
}
.p-errorPage__trail {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-errorPage__trail li + li::before {
    content: ">";
    margin-right: 0.8rem;
    color: var(--color-accent);
}
.p-errorPage__trail a {
    color: var(--color-txtlink);
}
@media screen and (max-width: 600px) {
    .p-errorPage__code {
        font-size: 4.4rem;
    }
}

/* =========================================================
南国SC 内部ページ（型別4ページ：ハブ=about／読み物=about/concept／手順=join/flow／仕様説明=join/fee）
見た目はトップ（page-main.css）に揃えた仮決め。赤入れ後に 11_内部ページデザインルール.md へルール化する
色は variables.css の変数のみ使う（直書きしない）。文字は最低 1.6rem
========================================================= */
main#page article h1,
main#form article h1 {
    margin-bottom: 4rem;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.4;
    text-align: center;
    color: var(--color-main);
}
main#page article h1::after,
main#form article h1::after {
    content: "";
    display: block;
    width: 6rem;
    height: 3px;
    margin: 2rem auto 0;
    background: var(--color-accent);
}

.p-lead {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 6rem;
    text-align: left;
}
main article .p-lead p,
main article p.p-lead {
    font-size: 1.8rem;
    line-height: 3.2rem;
}

.p-sec h2 {
    margin-bottom: 3rem;
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.4;
    color: var(--color-main);
}
.p-sec h2 > span {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}
.p-sec h3 {
    font-family: var(--font-serif);
    color: var(--color-main);
}
.p-sec p {
    font-size: 1.8rem;
    line-height: 3.2rem;
}
.p-sec .p-note {
    margin-top: 2rem;
    padding: 2rem 2.4rem;
    border-left: 4px solid var(--color-accent);
    background: var(--color-sub);
    font-size: 1.6rem;
    line-height: 2.8rem;
}

/* 写真と文章の横並び（ハブ型） */
.p-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.p-split .p-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* 子ページカード（plugins/page_all/cards.html） */
.p-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 2.4rem;
}
.p-cards section {
    margin-top: 0;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-main);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}
.p-cards section a,
.p-cards section > div {
    display: block;
    height: 100%;
    padding: 2.4rem;
    color: var(--color-txt);
    text-decoration: none;
}
.p-cards h3 {
    margin-bottom: 1.2rem;
    font-size: 2.2rem;
    line-height: 1.5;
}
.p-cards p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 2.8rem;
}
.p-cards section a h3::after {
    content: "";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-left: 1rem;
    border-top: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    transform: rotate(45deg);
}
.p-cards section a:hover {
    background: var(--color-sub);
}
.p-cards section.is-here {
    background: var(--color-sub);
    box-shadow: none;
}
.p-cards section.is-here h3::before {
    content: "現在のページ";
    display: block;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.2rem 1rem;
    background: var(--color-main);
    font-family: var(--font-sans, inherit);
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--color-white);
}

/* 3つの柱（読み物型） */
.p-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 2.4rem;
}
.p-points > section {
    margin-top: 0;
    padding: 3rem 2.4rem;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    background: var(--color-sub);
}
.p-points .p-points__no {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    color: var(--color-accent);
}
.p-points h3 {
    margin-bottom: 1.6rem;
    font-size: 2.4rem;
    line-height: 1.5;
}
.p-points p {
    margin-bottom: 0;
}
.p-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem;
    margin-top: 2.4rem;
    list-style: none;
    padding: 0;
}
.p-chips li {
    position: relative;
    padding: 1rem 2.4rem;
    border: 2px solid var(--color-main);
    border-radius: 99px;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-main);
}
.p-chips li + li::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: -0.4rem;
    border-top: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    transform: rotate(45deg);
}

/* 縦ステップ（手順型） */
.p-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.p-steps li {
    display: flex;
    gap: 2.4rem;
    position: relative;
    padding-bottom: 4rem;
}
.p-steps li:last-child {
    padding-bottom: 0;
}
.p-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 2.8rem;
    top: 5.6rem;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}
.p-steps .p-steps__no {
    flex: none;
    width: 5.6rem;
    height: 5.6rem;
    margin: 0;
    border-radius: 50%;
    background: var(--color-main);
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 5.6rem;
    text-align: center;
    color: var(--color-white);
}
.p-steps h3 {
    margin: 0.8rem 0 1rem;
    font-size: 2.4rem;
    line-height: 1.5;
}
.p-steps p {
    margin-bottom: 0;
}

/* ページ下部のCTA */
.p-cta {
    padding: 5rem 3rem;
    background: var(--color-main);
    text-align: center;
}
.p-cta h2 {
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.4;
    color: var(--color-white);
}
.p-cta h2 > span {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--color-pillar-gold);
}
.p-cta p {
    margin-bottom: 3rem;
    color: var(--color-white);
}
.p-cta div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.p-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24rem;
    min-height: 5.6rem;
    padding: 1.2rem 2.4rem;
    border-radius: var(--radius-sm);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}
.p-cta a:first-child {
    background: var(--color-white);
    color: var(--color-main);
}
.p-cta a:last-child {
    background: var(--color-conversionbg-lg);
    color: var(--color-conversiontxt);
}
.p-cta a:hover {
    opacity: 0.85;
}

@media screen and (max-width:1279px){
}/* max-width 1279px */

@media screen and (max-width: 1025px) {
}/* max-width 1025px */

@media screen and (max-width: 600px) {
}/* max-width 600px */

@media screen and (max-width: 800px) {
    .p-split {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
}
@media screen and (max-width: 600px) {
    main#page article h1,
    main#form article h1 {
        font-size: 3rem;
    }
    .p-lead {
        margin-bottom: 4rem;
    }
    .p-sec h2,
    .p-cta h2 {
        font-size: 2.6rem;
    }
    .p-cta {
        padding: 4rem 2rem;
    }
    .p-cta a {
        width: 100%;
    }
    .p-chips {
        gap: 2.4rem 2rem;
    }
}

/* ---- 図表・チャート・画像（2026-10-24 赤入れ：文章だけで終わらせない） ---- */
.p-banner {
    margin: 0 0 6rem;
}
.p-banner img {
    display: block;
    width: 100%;
    height: 24rem;
    object-fit: cover;
    object-position: 50% 55%;
    border-radius: var(--radius-sm);
}
/* クラブビジョン（3つの柱の上に置く） */
.p-vision {
    padding: 2.4rem 3rem;
    background: var(--color-main);
    text-align: center;
}
.p-vision p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.6;
    color: var(--color-white);
}
.p-vision p:first-child {
    font-size: 1.6rem;
    color: var(--color-pillar-gold);
}
.p-vision + .p-points {
    position: relative;
    padding-top: 3rem;
}
.p-vision + .p-points::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 3rem;
    background: var(--color-accent);
}
/* 成長の順：階段（マインド→体力→戦術→技術） */
.p-ladder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 1.6rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}
.p-ladder li {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.6rem;
    background: var(--color-sub);
    border-top: 4px solid var(--color-accent);
}
.p-ladder li:nth-child(1) { min-height: 15rem; }
.p-ladder li:nth-child(2) { min-height: 19rem; }
.p-ladder li:nth-child(3) { min-height: 23rem; }
.p-ladder li:nth-child(4) { min-height: 27rem; background: var(--color-main); border-top-color: var(--color-pillar-gold); }
.p-ladder span {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-accent);
}
.p-ladder b {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.4;
    color: var(--color-main);
}
.p-ladder i {
    font-style: normal;
    font-size: 1.6rem;
    line-height: 2.4rem;
}
.p-ladder li:nth-child(4) b,
.p-ladder li:nth-child(4) i {
    color: var(--color-white);
}
/* 入会の流れ：横3ステップ＋矢印 */
.p-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-flow li {
    position: relative;
    padding: 3rem 2.4rem;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-main);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}
.p-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -3.4rem;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: -0.8rem;
    border-top: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    transform: rotate(45deg);
}
.p-flow img {
    display: block;
    width: 7.2rem;
    height: 7.2rem;
    margin-bottom: 1.6rem;
}
.p-flow .p-flow__no {
    margin: 0 0 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}
.p-flow h3 {
    margin-bottom: 1.2rem;
    font-size: 2.4rem;
    line-height: 1.5;
}
.p-flow p:last-child {
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 2.8rem;
}
/* 費用の表 */
.p-tablewrap {
    overflow-x: auto;
}
.p-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.6rem;
    line-height: 2.8rem;
}
.p-table th,
.p-table td {
    padding: 1.6rem 2rem;
    border: 1px solid var(--color-table-border);
    text-align: left;
    vertical-align: top;
}
.p-table thead th {
    background: var(--color-main);
    color: var(--color-white);
}
.p-table tbody th {
    width: 22%;
    background: var(--color-table-th-bg);
    white-space: nowrap;
}
.p-table tbody td:nth-child(2) {
    width: 20%;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
    color: var(--color-main);
}
/* 費用の年間合計（文字で示す。項目が少ない金額はグラフにしない） */
.p-total {
    margin: 4rem 0 0;
    padding: 3rem;
    background: var(--color-sub);
    border-top: 4px solid var(--color-accent);
    text-align: center;
}
.p-total p {
    margin: 0;
}
.p-total .p-total__label {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-main);
}
.p-total .p-total__sum {
    margin: 1rem 0;
    line-height: 1.4;
}
.p-total__sum b {
    font-family: var(--font-serif);
    font-size: 4.8rem;
    color: var(--color-main);
}
.p-total .p-total__calc {
    font-size: 1.8rem;
    line-height: 2.8rem;
}
.p-total .p-total__note {
    margin-top: 1.6rem;
    font-size: 1.6rem;
    line-height: 2.8rem;
}
@media screen and (max-width: 1025px) {
    .p-flow {
        grid-template-columns: 1fr;
        gap: 4.8rem;
    }
    .p-flow li:not(:last-child)::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -3.4rem;
        margin-left: -0.8rem;
        transform: rotate(135deg);
    }
}
@media screen and (max-width: 800px) {
    .p-ladder {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }
    .p-ladder li:nth-child(n) { min-height: 0; }
    .p-table tbody th,
    .p-table tbody td:nth-child(2) {
        white-space: normal;
    }
}
@media screen and (max-width: 600px) {
    .p-banner img {
        height: 16rem;
    }
    .p-banner {
        margin-bottom: 4rem;
    }
    .p-table th,
    .p-table td {
        padding: 1.2rem 1rem;
    }
    .p-total {
        padding: 2rem 1.6rem;
    }
    .p-total__sum b {
        font-size: 3.6rem;
    }
}
@media screen and (max-width: 600px) {
    .p-table tbody th {
        width: 9rem;
    }
    .p-table tbody td:nth-child(2) {
        width: 9rem;
        font-size: 1.6rem;
        white-space: nowrap;
    }
    /* 1〜3文字だけの最終行（落ち穂）を作らない */
    .p-lead,
    .p-sec p,
    .p-table td,
    .p-flow li p,
    .p-points p,
    .p-cards p,
    #page article > p,
    #page article .c-listing li {
        text-wrap: pretty;
        word-break: auto-phrase;
    }
    /* 幅の狭い備考欄は、文節の途中の1文字改行になるので通常の改行に戻す */
    .p-table td:last-child {
        word-break: normal;
    }
}
.p-flow li > img,
.p-flow li > .p-flow__no,
.p-flow li > h3 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* ハブ型：写真を本文の幅いっぱいに大きく見せる（スマホでも小さくしない） */
.p-image--wide {
    margin: 0 0 4rem;
}
.p-image--wide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
@media screen and (max-width: 600px) {
    .p-image--wide {
        margin-bottom: 3rem;
    }
    .p-image--wide img {
        min-height: 22rem;
        object-fit: cover;
        object-position: 70% 50%;
    }
}

/* ---- 残ページ（2026-10-25 固定ページの内容コーディング） ---- */
/* エンブレムと2つのモチーフ */
.p-emblem {
    margin: 0;
    padding: 4rem 2rem;
    background: var(--color-sub);
    text-align: center;
}
.p-emblem img {
    width: 24rem;
    max-width: 60%;
    height: auto;
}
.p-motifs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 2.4rem;
}
.p-motifs > section {
    margin-top: 0;
    padding: 3rem 2.4rem;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    background: var(--color-sub);
}
.p-motifs .p-motifs__no {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}
.p-motifs h3 {
    margin-bottom: 1.2rem;
    font-size: 2.4rem;
    line-height: 1.5;
}
.p-motifs p:last-child {
    margin-bottom: 0;
}
/* ユニフォームの色見本 */
.p-kits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
}
.p-kits > section {
    margin-top: 0;
    padding: 2.4rem;
    border: 1px solid var(--color-border);
    background: var(--color-white);
}
.p-kits .p-kits__type {
    margin-bottom: 1.6rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}
.p-kits__sw {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}
.p-kits__sw i {
    flex: 1;
    height: 8rem;
    border-radius: var(--radius-sm);
}
.p-kits h3 {
    margin-bottom: 0.4rem;
    font-size: 2.4rem;
    line-height: 1.5;
}
.p-kits .p-kits__mean {
    font-family: var(--font-serif);
    font-weight: bold;
    color: var(--color-main);
}
/* 1週間の練習日 */
.p-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-week li {
    margin: 0;
    padding: 2rem 0.4rem;
    border: 1px solid var(--color-main);
    background: var(--color-main);
    text-align: center;
    color: var(--color-white);
}
.p-week li.is-off {
    border-color: var(--color-border);
    background: var(--color-sub);
    color: var(--color-txt);
}
.p-week b {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.4;
}
.p-week span {
    display: block;
    font-size: 1.6rem;
    line-height: 2.4rem;
}
/* 練習場所 */
.p-places {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-places li {
    padding: 3rem 2.4rem;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    background: var(--color-sub);
    text-align: center;
}
.p-places span {
    display: block;
    margin-bottom: 0.8rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}
.p-places b {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.6;
    color: var(--color-main);
}
/* 指導者 */
.p-people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 2.4rem;
    margin-top: 3rem;
}
.p-people > section {
    margin-top: 0;
    padding: 2.4rem;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    background: var(--color-sub);
    text-align: center;
}
.p-people > .p-people__head {
    background: var(--color-main);
    border-color: var(--color-main);
    border-top-color: var(--color-accent);
    color: var(--color-white);
}
.p-people .p-people__role {
    margin-bottom: 0.4rem;
    font-size: 1.6rem;
    line-height: 2.4rem;
}
.p-people h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.5;
}
.p-people > .p-people__head h3 {
    color: var(--color-white);
}
/* ボタンのパネル（お問合せ・お知らせ） */
.p-btnpanel {
    padding: 4rem 2rem;
    background: var(--color-sub);
    border-top: 4px solid var(--color-accent);
    text-align: center;
}
.p-btnpanel img {
    display: block;
    margin: 0 auto 1.6rem;
}
.p-btnpanel p {
    margin-bottom: 2.4rem;
}
.p-btnpanel a {
    display: inline-block;
    padding: 1.6rem 4.8rem;
    border-radius: 99px;
    background: var(--color-conversionbg-lg);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    text-decoration: none;
    color: var(--color-conversiontxt);
}
.p-btnpanel a:hover {
    opacity: 0.85;
}
.p-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 0 0 2.4rem;
    padding: 0;
    list-style: none;
}
.p-topics li {
    padding: 1rem 2.4rem;
    border: 2px solid var(--color-main);
    border-radius: 99px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-main);
}
@media screen and (max-width: 600px) {
    .p-week {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.4rem;
    }
    .p-week li {
        padding: 1.4rem 0;
    }
    .p-week b {
        font-size: 2.2rem;
    }
    .p-btnpanel {
        padding: 3rem 1.6rem;
    }
    .p-btnpanel a {
        padding: 1.4rem 3rem;
    }
}
/* 金額でない表（プライバシーポリシーなど）は、2列目を本文の大きさにもどす */
.p-table--plain tbody td:nth-child(2) {
    width: auto;
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    white-space: normal;
    color: inherit;
}

/* ---- 2026-10-25 直し3点 ---- */
/* 内部ページの最下部とフッターの間に余白（CTA帯がフッターにくっつかないように。全内部ページ共通） */
main article:not(#top) {
    padding-bottom: 8rem;
}
@media screen and (max-width: 600px) {
    main article:not(#top) {
        padding-bottom: 6rem;
    }
}
/* FAQの回答の吹き出し：文字を上下中央にする（1行でも2行以上でも） */
.p-sec dl.c-faq dd span {
    display: flex;
    align-items: center;
    min-height: 60px;
    box-sizing: border-box;
}
.p-sec dl.c-faq dd span::before {
    top: 50%;
}
.p-sec dl.c-faq dt span {
    display: flex;
    align-items: center;
    min-height: 60px;
    box-sizing: border-box;
}
.p-sec dl.c-faq dt span::before {
    top: 50%;
}
/* ユニフォームのイラスト */
.p-kits__img {
    display: block;
    width: 100%;
    max-width: 24rem;
    height: auto;
    margin: 0 auto 1.6rem;
}
@media screen and (max-width: 600px) {
    .p-kits {
        grid-template-columns: 1fr;
    }
}

/* お知らせの記事ページ（2026-10-25 見直し） */
.p-view h1 {
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.5;
    color: var(--color-main);
}
.p-view .c-page-img {
    margin: 2rem 0 3rem;
}
.p-view__back {
    margin-top: 6rem;
    text-align: center;
}
.p-view__back a {
    display: inline-block;
    padding: 1.4rem 4rem;
    border: 2px solid var(--color-main);
    border-radius: 99px;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    text-decoration: none;
    color: var(--color-main);
}
.p-view__back a:hover {
    opacity: 0.7;
}
/* 指導者のカード：PCは3列×2段 */
.p-people {
    grid-template-columns: repeat(3, 1fr);
}
@media screen and (max-width: 600px) {
    .p-view h1 {
        font-size: 2.4rem;
    }
    .p-people {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 子ページが無いページ（指導者紹介・お知らせ・お問合せ・プライバシーポリシー）は、
   見出しだけのサイドナビを出さず、本文を全幅にする（2026-10-25 全ページ見直し） */
main > aside:not(:has(nav)) {
    display: none;
}
main:has(> aside:not(:has(nav))) > article {
    width: 100%;
}
/* 最後の行に1〜2文字だけ残らないようにする（2026-10-25 全ページ見直し） */
main article :is(p, dd, td, th, li, h2, h3, figcaption),
main article dl.c-faq span {
    text-wrap: pretty;
    word-break: auto-phrase;
}
.p-table td {
    text-wrap: balance;
}
main aside nav a {
    text-wrap: pretty;
    word-break: auto-phrase;
}
/* モチーフの写真（エンブレムのページ） */
.p-motifs__img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 2rem;
    border-radius: var(--radius-sm);
}
