@charset "utf-8";

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

/* 南国SC：トップページ。タブレット・スマホは末尾の @media にまとめた */

/* 共通：main p（1.8rem／行間3.6rem／下余白）をトップのブロック内で打ち消す */
.p-top__hero p,
.p-top__info p,
.p-top__about p,
.p-top__entry p,
.p-top__pillar p,
.p-top__activity p,
.p-top__staff p,
.p-top__emblem p,
.p-top__uniform p,
.p-top__join p,
.p-top__faq p,
.p-top__contact p {
    margin-bottom: 0;
    font-size: 1.8rem;
    line-height: 1.6;
}

/* 共通：セクションの見出し（英字ラベル＋日本語）。ラベルは span */
.p-top__about h2,
.p-top__entry h2,
.p-top__pillar h2,
.p-top__activity h2,
.p-top__staff h2,
.p-top__emblem h2,
.p-top__uniform h2,
.p-top__join h2,
.p-top__faq h2 {
    font-size: 4.8rem;
    line-height: 1.25;
    color: var(--color-main);
}
.p-top__about h2 > span,
.p-top__entry h2 > span,
.p-top__pillar h2 > span,
.p-top__activity h2 > span,
.p-top__staff h2 > span,
.p-top__emblem h2 > span,
.p-top__uniform h2 > span,
.p-top__join h2 > span,
.p-top__faq h2 > span {
    display: block;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}

/* 共通：セクション。MAINの8remリズムは使わず、デザインどおり上下12rem */
.p-top__info,
.p-top__about,
.p-top__entry,
.p-top__pillar,
.p-top__activity,
.p-top__staff,
.p-top__emblem,
.p-top__uniform,
.p-top__join,
.p-top__faq,
.p-top__contact,
.p-top__hero {
    margin-top: 0;
}
.p-top__about,
.p-top__entry,
.p-top__activity,
.p-top__uniform,
.p-top__join,
.p-top__faq {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

/* 共通：「詳しく見る」系ボタン（.c-more）。トップでは白地・2pxの枠・右に矢印 */
#top .c-more {
    margin-top: 0;
}
#top .c-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: auto;
    max-width: none;
    min-height: 5.6rem;
    padding: 1.4rem 2.4rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-main);
}
#top .c-more a::after {
    content: "";
    width: 1.4rem;
    height: 1.4rem;
    background: url(../images/top/arrow-right.svg) no-repeat center / contain;
}
#top .c-more a:hover {
    background-color: var(--color-sub);
    opacity: 1;
}

/* 共通：ボタン（ヒーロー・入会案内・下部CTA） */
.p-top__hero .l-fixbox > div > a,
.p-top__join .l-fixbox > div:last-child > a,
.p-top__contact .l-fixbox > div > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-height: 5.6rem;
    padding: 1.4rem 2.4rem;
    border-radius: var(--radius-sm);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-main);
    text-decoration: none;
}
.p-top__hero .l-fixbox > div > a::before,
.p-top__join .l-fixbox > div:last-child > a::before,
.p-top__contact .l-fixbox > div > a::before {
    content: "";
    flex: none;
}
.p-top__hero .l-fixbox > div > a:hover,
.p-top__join .l-fixbox > div:last-child > a:hover,
.p-top__contact .l-fixbox > div > a:hover {
    opacity: .75;
}

/* ヒーロー */
.p-top__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72rem;
    overflow: hidden;
    color: var(--color-white);
}
.p-top__hero > .p-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.p-top__hero > .p-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-top__hero > .p-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-hero-overlay);
}
.p-top__hero .l-fixbox {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 8rem;
}
.p-top__hero .l-fixbox > p:first-child {
    margin-bottom: 4rem;
    font-weight: bold;
    color: var(--color-accent);
}
.p-top__hero h1 {
    margin-bottom: 4rem;
    /* 2行目をFigmaと同じ全角空白2つ分だけ字下げする（ぶら下げインデント） */
    padding-left: 2em;
    text-indent: -2em;
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 1.32;
    color: var(--color-white);
}
.p-top__hero .l-fixbox > p:nth-child(3) {
    margin-bottom: 4rem;
    font-size: 2rem;
    line-height: 1.8;
}
.p-top__hero .l-fixbox > div {
    display: flex;
    gap: 1.6rem;
}
.p-top__hero .l-fixbox > div > a:first-child {
    border: 1px solid rgba(255, 255, 255, 0.75);
    background-color: var(--color-white);
}
.p-top__hero .l-fixbox > div > a:first-child::before {
    width: 2rem;
    height: 2rem;
    background: url(../images/top/icon-apply.svg) no-repeat center / contain;
}
.p-top__hero .l-fixbox > div > a:last-child {
    background-color: var(--color-conversionbg);
}
.p-top__hero .l-fixbox > div > a:last-child::before {
    width: 2rem;
    height: 1.5rem;
    background: url(../images/top/icon-mail.svg) no-repeat center / contain;
}

/* 練習日・時間・場所 */
.p-top__info {
    padding: 3.4rem 0;
    background-color: var(--color-main);
    border-top: 6px solid var(--color-accent);
    border-bottom: 6px solid var(--color-accent);
    color: var(--color-white);
}
.p-top__info .l-fixbox > div {
    display: flex;
}
.p-top__info .l-fixbox > div > div {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 6.4rem 1fr;
    column-gap: 2.4rem;
    row-gap: 1rem;
    align-content: center;
    min-height: 18rem;
    padding: 1.6rem 2.8rem;
}
.p-top__info .l-fixbox > div > div + div {
    border-left: 1px solid var(--color-accent);
}
.p-top__info .l-fixbox > div > div::before {
    content: "";
    grid-row: 1 / 4;
    align-self: center;
    width: 6.4rem;
    height: 6.4rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.p-top__info .l-fixbox > div > div:nth-child(1)::before {
    background-image: url(../images/top/icon-day.svg);
}
.p-top__info .l-fixbox > div > div:nth-child(2)::before {
    background-image: url(../images/top/icon-time.svg);
}
.p-top__info .l-fixbox > div > div:nth-child(3)::before {
    background-image: url(../images/top/icon-place.svg);
}
.p-top__info .l-fixbox > div > div > p {
    grid-column: 2;
}
.p-top__info .l-fixbox > div > div > p:nth-child(1) {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-accent);
}
.p-top__info .l-fixbox > div > div > p:nth-child(2) {
    font-size: 3.6rem;
    font-weight: bold;
    line-height: 1.5;
}
.p-top__info .l-fixbox > div > div:nth-child(1) > p:nth-child(2) {
    font-size: 3.2rem;
    letter-spacing: -0.14em;
}
.p-top__info .l-fixbox > div > div:nth-child(3) > p:nth-child(2) {
    font-size: 2.2rem;
    line-height: 1.4;
}
.p-top__info .l-fixbox > div > div > p:nth-child(3) {
    font-size: 1.7rem;
    line-height: 1.5;
}
.p-top__info .l-fixbox > p {
    margin-top: 2.8rem;
    font-size: 1.6rem;
    text-align: center;
    opacity: .78;
}

/* 南国SCについて */
.p-top__about {
    background-color: var(--color-white);
}
.p-top__about .l-fixbox {
    text-align: center;
}
.p-top__about .l-fixbox > div:first-child {
    max-width: 82rem;
    margin: 0 auto 5.6rem;
}
.p-top__about h2 {
    margin-bottom: 2.8rem;
}
.p-top__about .l-fixbox > div:first-child > p {
    margin-bottom: 1.6em;
    color: var(--color-txt);
}
.p-top__about .l-fixbox > div:first-child > p:nth-of-type(2) {
    margin-bottom: 2.8rem;
}
.p-top__about .p-image {
    max-width: 96rem;
    margin: 0 auto;
}
.p-top__about .p-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 306;
    object-fit: cover;
}

/* お知らせ（トップ）／お知らせ一覧（/entry）で共通のカード */
.p-top__entry {
    background-color: var(--color-sub);
}
.p-top__entry h2 {
    margin-bottom: 5rem;
}
.p-top__entry .l-fixbox > div:first-of-type,
.p-entry__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}
.p-top__entry .l-fixbox > div:first-of-type > section,
.p-entry__list > section {
    margin-top: 0;
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    overflow: hidden;
    transition: box-shadow .3s;
}
.p-top__entry .l-fixbox > div:first-of-type > section:hover,
.p-entry__list > section:hover {
    box-shadow: 0 0 0 1px var(--color-main), var(--shadow-card-hover);
}
.p-top__entry section > a,
.p-entry__list section > a {
    display: block;
    height: 100%;
    color: var(--color-txt);
    text-decoration: none;
}
.p-top__entry section > a:hover,
.p-entry__list section > a:hover {
    opacity: 1;
}
.p-top__entry section .p-image,
.p-entry__list section .p-image {
    height: 20rem;
}
.p-top__entry section .p-image img,
.p-entry__list section .p-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-top__entry section > a > div:last-child,
.p-entry__list section > a > div:last-child {
    padding: 1.2rem 2rem 2.4rem;
}
.p-top__entry section > a > div:last-child > p,
.p-entry__list section > a > div:last-child > p {
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}
.p-top__entry section h3,
.p-entry__list section h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.6;
    color: var(--color-txt);
}
#top .p-top__entry .c-more {
    margin-top: 7rem;
    text-align: center;
}

/* 活動の3つの柱 */
.p-top__pillar {
    position: relative;
    overflow: hidden;
    padding-top: 12.5rem;
    padding-bottom: 22.5rem;
    background-color: var(--color-pillar-bg);
    color: var(--color-white);
}
.p-top__pillar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 58.9rem;
    background: url(../images/top/pillar-slope.svg) no-repeat left top / 100% 100%;
}
.p-top__pillar .l-fixbox {
    position: relative;
    display: grid;
    grid-template-columns: 33rem repeat(3, 1fr);
    column-gap: 3.6rem;
}
.p-top__pillar h2 {
    margin-bottom: 0;
    font-size: 4.8rem;
    line-height: 1.5;
    color: var(--color-white);
}
.p-top__pillar h2 > span {
    color: var(--color-pillar-gold);
}
.p-top__pillar h2::after {
    content: "";
    display: block;
    width: 5.2rem;
    height: 3px;
    margin: 4.3rem 0 3.4rem;
    background-color: var(--color-pillar-gold);
}
.p-top__pillar .l-fixbox > div:first-child p {
    font-size: 1.8rem;
    line-height: 3rem;
}
.p-top__pillar .l-fixbox > div:last-child {
    display: contents;
}
.p-top__pillar .l-fixbox > div:last-child > section {
    margin-top: 5rem;
    min-height: 38.4rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--color-txt);
}
.p-top__pillar .l-fixbox > div:last-child > section > p:first-child {
    font-size: 5.8rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-pillar-card-no);
    opacity: .58;
}
.p-top__pillar .l-fixbox > div:last-child > section > p:first-child::after {
    content: "";
    display: block;
    width: 4.8rem;
    height: 2px;
    margin: 3.1rem 0 0;
    background-color: var(--color-pillar-line);
}
.p-top__pillar .l-fixbox > div:last-child > section > h3 {
    margin: 3.1rem 0;
    font-size: 2rem;
    line-height: 1.4;
    color: var(--color-pillar-title);
}
.p-top__pillar .l-fixbox > div:last-child > section > p:last-child {
    font-size: 1.6rem;
    color: #333;
}

/* 活動案内 */
.p-top__activity {
    background-color: var(--color-white);
}
.p-top__activity h2 {
    margin-bottom: 2.8rem;
}
.p-top__activity h2 + p {
    margin-bottom: 2.8rem;
}
.p-top__activity .l-fixbox > div {
    margin-bottom: 2.8rem;
}
.p-top__activity .l-fixbox > div > p {
    display: flex;
    gap: 2.4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}
.p-top__activity .l-fixbox > div > p:first-child {
    border-top: 1px solid var(--color-border);
}
.p-top__activity .l-fixbox > div > p > span {
    flex: none;
    width: 24rem;
    font-weight: bold;
    color: var(--color-main);
}
.p-top__activity .l-fixbox > p:last-child {
    font-size: 1.6rem;
}

/* 指導体制 */
.p-top__staff {
    position: relative;
    min-height: 74rem;
    overflow: hidden;
    background-color: var(--color-staff-bg);
    color: var(--color-white);
    text-align: center;
}
.p-top__staff > .p-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.p-top__staff > .p-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-top__staff > .p-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(20, 8, 10, 0.62), rgba(61, 8, 15, 0.58) 48%, rgba(10, 8, 10, 0.68));
}
.p-top__staff .l-fixbox {
    position: relative;
    max-width: 72rem;
    padding-top: 12.6rem;
}
.p-top__staff h2 {
    margin-bottom: 5rem;
    color: var(--color-white);
}
.p-top__staff h2 > span {
    margin-bottom: 2.4rem;
    font-size: 1.8rem;
    color: var(--color-pillar-gold);
}
.p-top__staff .l-fixbox > p {
    margin-bottom: 5rem;
    font-weight: 500;
    line-height: 3.2rem;
    color: rgba(255, 255, 255, 0.94);
}
.p-top__staff .c-more a {
    min-width: 32rem;
}

/* エンブレム */
.p-top__emblem {
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--color-main);
    color: var(--color-white);
    text-align: center;
}
.p-top__emblem::before {
    content: "NANKOKU SC";
    position: absolute;
    top: 28.7rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18rem;
    font-weight: bold;
    letter-spacing: 6px;
    line-height: 1.17;
    white-space: nowrap;
    color: var(--color-emblem-ghost);
}
.p-top__emblem .l-fixbox {
    position: relative;
}
.p-top__emblem .p-image {
    height: 31.7rem;
    margin-bottom: 4rem;
}
.p-top__emblem .p-image img {
    display: block;
    width: auto;
    height: 100%;
    margin: 0 auto;
}
.p-top__emblem .l-fixbox > div:last-child {
    max-width: 64.8rem;
    margin: 0 auto;
}
.p-top__emblem h2 {
    margin-bottom: 2.8rem;
    color: var(--color-white);
}
.p-top__emblem h2 > span {
    color: var(--color-white);
}

/* ユニフォーム */
.p-top__uniform {
    background-color: var(--color-white);
}
.p-top__uniform h2 {
    margin-bottom: 2.8rem;
}
.p-top__uniform .l-fixbox > div:first-child > p {
    margin-bottom: 6.6rem;
}
.p-top__uniform .p-image {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.p-top__uniform .p-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* 入会案内 */
.p-top__join {
    background-color: var(--color-sub);
}
.p-top__join h2,
.p-top__join .l-fixbox > p,
.p-top__join .l-fixbox > div:nth-of-type(1) {
    margin-bottom: 5.4rem;
}
.p-top__join .l-fixbox > div:nth-of-type(1) {
    display: flex;
}
.p-top__join .l-fixbox > div:nth-of-type(1) > div {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 0.8rem 1.2rem 2rem;
    border-left: 1px solid var(--color-accent);
}
.p-top__join .l-fixbox > div:nth-of-type(1) > div > p:nth-child(1) {
    font-weight: bold;
    color: var(--color-accent);
}
.p-top__join .l-fixbox > div:nth-of-type(1) > div > p:nth-child(2) {
    font-family: var(--font-serif);
    font-size: 4.4rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-main);
}
.p-top__join .l-fixbox > div:nth-of-type(1) > div > p:nth-child(3) {
    font-size: 1.6rem;
}
.p-top__flow {
    margin-top: 0;
    margin-bottom: 8rem;
}
.p-top__flow h3 {
    margin-bottom: 5.4rem;
    font-size: 3.2rem;
    line-height: 1.4;
    text-align: center;
    color: var(--color-main);
}
.p-top__flow > div {
    display: flex;
    gap: 7rem;
}
.p-top__flow > div > section {
    position: relative;
    flex: 1 1 0;
    min-height: 28.8rem;
    margin-top: 0;
    padding: 2.8rem 3.2rem;
    border: 1px solid var(--color-step-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-step-bg);
    box-shadow: var(--shadow-card);
    text-align: center;
}
.p-top__flow > div > section + section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -5.4rem;
    width: 3.8rem;
    height: 3.8rem;
    transform: translateY(-50%) rotate(-90deg);
    background: url(../images/top/flow-arrow.svg) no-repeat center / contain;
}
.p-top__flow > div > section > p:first-child {
    margin-bottom: 1.4rem;
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-accent);
}
.p-top__flow h4 {
    margin-bottom: 1.4rem;
    font-size: 2rem;
    line-height: 1.4;
    color: var(--color-main);
}
.p-top__flow h4::before {
    content: "";
    display: block;
    width: 7.2rem;
    height: 7.2rem;
    margin: 0 auto 1.4rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.p-top__flow > div > section:nth-child(1) h4::before {
    background-image: url(../images/top/flow-form.svg);
}
.p-top__flow > div > section:nth-child(2) h4::before {
    background-image: url(../images/top/flow-trial.svg);
}
.p-top__flow > div > section:nth-child(3) h4::before {
    background-image: url(../images/top/flow-join.svg);
}
.p-top__flow > div > section > p:last-child {
    font-size: 1.6rem;
    line-height: 1.4;
}
.p-top__join .l-fixbox > div:last-child,
.p-top__contact .l-fixbox > div {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
}
.p-top__join .l-fixbox > div:last-child > a,
.p-top__contact .l-fixbox > div > a {
    width: 36rem;
    min-height: 6.4rem;
    padding: 1.4rem 3.2rem;
    border-radius: var(--radius-md);
}
.p-top__join .l-fixbox > div:last-child > a::before,
.p-top__contact .l-fixbox > div > a::before {
    width: 2.2rem;
    height: 2.2rem;
}
.p-top__join .l-fixbox > div:last-child > a:first-child {
    border: 1px solid var(--color-main);
    background-color: rgba(255, 255, 255, 0.55);
}
.p-top__contact .l-fixbox > div > a:first-child {
    border: 1px solid var(--color-main);
    background-color: var(--color-white);
}
.p-top__join .l-fixbox > div:last-child > a:first-child::before,
.p-top__contact .l-fixbox > div > a:first-child::before {
    background: url(../images/top/icon-trial.svg) no-repeat center / contain;
}
.p-top__join .l-fixbox > div:last-child > a:last-child,
.p-top__contact .l-fixbox > div > a:last-child {
    background-color: var(--color-conversionbg-lg);
}
.p-top__join .l-fixbox > div:last-child > a:last-child::before,
.p-top__contact .l-fixbox > div > a:last-child::before {
    background: url(../images/top/icon-mail.svg) no-repeat center / contain;
}

/* よくある質問 */
.p-top__faq {
    background-color: var(--color-white);
}
.p-top__faq h2 {
    margin-bottom: 2.4rem;
}
.p-top__faq details {
    border-bottom: 1px solid var(--color-border);
}
.p-top__faq details:first-child {
    border-top: 1px solid var(--color-border);
}
.p-top__faq summary {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 2.4rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-main);
    list-style: none;
    cursor: pointer;
}
.p-top__faq summary::-webkit-details-marker {
    display: none;
}
.p-top__faq summary::before {
    content: "Q";
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.4;
}
.p-top__faq summary::after {
    content: "";
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: auto;
    background: url(../images/top/faq-arrow.svg) no-repeat center / contain;
    transition: transform .3s;
}
.p-top__faq details[open] > summary::after {
    transform: rotate(180deg);
}
.p-top__faq details > p {
    padding: 0 4rem 2.4rem;
}
.p-top__faq details[open] > p {
    animation: p-top-faq-open .3s ease;
}
@keyframes p-top-faq-open {
    from {
        opacity: 0;
        transform: translateY(-0.8rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .p-top__faq details[open] > p {
        animation: none;
    }
}
#top .p-top__faq .c-more {
    margin-top: 2.4rem;
    text-align: center;
}
.p-top__faq .c-more a::after {
    display: none;
}

/* 体験参加・入会のご相談 */
.p-top__contact {
    position: relative;
    padding-top: 9.6rem;
    padding-bottom: 9.6rem;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}
.p-top__contact > .p-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.p-top__contact > .p-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-top__contact > .p-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-main);
    opacity: .78;
}
.p-top__contact .l-fixbox {
    position: relative;
}
.p-top__contact h2 {
    margin-bottom: 4rem;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-white);
}
.p-top__contact .l-fixbox > p {
    margin-bottom: 4rem;
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.4;
}

/* お知らせ一覧（/entry） */
.p-entry {
    width: 100%;
    margin-top: 0;
    padding-top: 8rem;
    padding-bottom: 12rem;
    background-color: var(--color-sub);
}
.p-entry h1 {
    margin-bottom: 5rem;
    font-size: 4.8rem;
    line-height: 1.25;
    color: var(--color-main);
}
.p-entry h1 > span {
    display: block;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--color-accent);
}
.p-entry__list {
    margin-bottom: 6rem;
}

/* パンくず（component.css の既定は文字が小さく、ヘッダーに接していた）。サイト内の全ページで読みやすい大きさにする */
.c-breadcrumb {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    background-color: var(--color-white);
}
.c-breadcrumb ol {
    font-size: 1.4rem;/*森田さん指定。最小文字サイズ1.6remの例外*/
    line-height: 1.6;
}
.c-breadcrumb li:first-child a::before {
    padding-right: 0.6rem;
}

/* ========== レスポンシブ ========== */
/* 1279px以下は rem が 9px になる（foundation.css）。ここでは横並びの組み替えと、大きい余白・見出しの縮小をする */

/* 1279px以下：PCレイアウトのまま縮める。5列・3列で文字が折れる所だけ小さくする */
@media screen and (max-width: 1279px) {
    .p-top__info .l-fixbox > div > div {
        grid-template-columns: 4.8rem 1fr;
        column-gap: 1.6rem;
        padding: 1.6rem 1.6rem;
    }
    .p-top__info .l-fixbox > div > div::before {
        width: 4.8rem;
        height: 4.8rem;
    }
    .p-top__info .l-fixbox > div > div > p:nth-child(2) {
        font-size: 3rem;
    }
    .p-top__info .l-fixbox > div > div:nth-child(1) > p:nth-child(2) {
        font-size: 2.8rem;
    }
    .p-top__info .l-fixbox > div > div:nth-child(3) > p:nth-child(2) {
        font-size: 2rem;
    }
    .p-top__join .l-fixbox > div:nth-of-type(1) > div > p:nth-child(2) {
        font-size: 3.4rem;
    }
}

/* 1025px以下：タブレット */
@media screen and (max-width: 1025px) {
    :root {
        --space-section: 8rem;
    }

    .p-top__about h2,
    .p-top__entry h2,
    .p-top__pillar h2,
    .p-top__activity h2,
    .p-top__staff h2,
    .p-top__emblem h2,
    .p-top__uniform h2,
    .p-top__join h2,
    .p-top__faq h2,
    .p-entry h1 {
        font-size: 4rem;
    }

    .p-top__hero {
        min-height: 60rem;
    }
    .p-top__hero .l-fixbox {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }
    .p-top__hero h1 {
        font-size: 4.8rem;
    }

    /* 練習日・時間・場所：縦に積む */
    .p-top__info .l-fixbox > div {
        flex-direction: column;
    }
    .p-top__info .l-fixbox > div > div {
        min-height: 0;
        padding: 2.4rem 1.6rem;
    }
    .p-top__info .l-fixbox > div > div + div {
        border-left: none;
        border-top: 1px solid var(--color-accent);
    }

    .p-top__entry .l-fixbox > div:first-of-type,
    .p-entry__list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 活動の3つの柱：見出しを上に、カードは3列 */
    .p-top__pillar {
        padding-top: 8rem;
        padding-bottom: 10rem;
    }
    .p-top__pillar::before {
        width: 36rem;
    }
    .p-top__pillar .l-fixbox {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2.4rem;
    }
    .p-top__pillar .l-fixbox > div:first-child {
        grid-column: 1 / -1;
        max-width: 64rem;
    }
    .p-top__pillar .l-fixbox > div:last-child > section {
        min-height: 0;
        margin-top: 4rem;
    }

    .p-top__activity .l-fixbox > div > p > span {
        width: 18rem;
    }

    .p-top__staff {
        min-height: 0;
        padding-bottom: 8rem;
    }
    .p-top__staff .l-fixbox {
        padding-top: 8rem;
    }

    .p-top__emblem {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .p-top__emblem::before {
        top: 20rem;
        font-size: 12rem;
    }
    .p-top__emblem .p-image {
        height: 24rem;
    }

    /* 入会案内 */
    .p-top__join .l-fixbox > div:nth-of-type(1) {
        flex-wrap: wrap;
        row-gap: 2.4rem;
    }
    .p-top__join .l-fixbox > div:nth-of-type(1) > div {
        flex: 1 1 50%;
    }
    .p-top__join .l-fixbox > div:nth-of-type(1) > div > p:nth-child(2) {
        font-size: 3.6rem;
    }
    .p-top__flow {
        margin-bottom: 6rem;
    }
    .p-top__flow > div {
        gap: 5.4rem;
    }
    .p-top__flow > div > section {
        padding: 2.4rem 1.6rem;
    }
    .p-top__flow > div > section + section::before {
        left: -4.6rem;
        width: 3.2rem;
        height: 3.2rem;
    }
    .p-top__join .l-fixbox > div:last-child > a,
    .p-top__contact .l-fixbox > div > a {
        width: 32rem;
    }

    .p-top__contact {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .p-top__contact h2 {
        font-size: 3.4rem;
    }
    .p-top__contact .l-fixbox > p {
        font-size: 2rem;
    }

    .p-entry {
        padding-top: 6rem;
        padding-bottom: 8rem;
    }
}

/* 800px以下：柱のカードは1列（3列だと文字が窮屈） */
@media screen and (max-width: 800px) {
    .p-top__pillar .l-fixbox {
        grid-template-columns: 1fr;
    }
}

/* 600px以下：スマホ */
@media screen and (max-width: 600px) {
    :root {
        --space-section: 6rem;
    }

    /* 1〜3文字だけの最終行（落ち穂）を作らない */
    #top p {
        text-wrap: pretty;
        word-break: auto-phrase;
    }

    .p-top__hero p,
    .p-top__info p,
    .p-top__about p,
    .p-top__entry p,
    .p-top__pillar p,
    .p-top__activity p,
    .p-top__staff p,
    .p-top__emblem p,
    .p-top__uniform p,
    .p-top__join p,
    .p-top__faq p,
    .p-top__contact p {
        font-size: 1.6rem;
        line-height: 1.8;
    }

    .p-top__about h2,
    .p-top__entry h2,
    .p-top__pillar h2,
    .p-top__activity h2,
    .p-top__staff h2,
    .p-top__emblem h2,
    .p-top__uniform h2,
    .p-top__join h2,
    .p-top__faq h2,
    .p-entry h1 {
        font-size: 3.2rem;
    }
    .p-top__about h2 > span,
    .p-top__entry h2 > span,
    .p-top__pillar h2 > span,
    .p-top__activity h2 > span,
    .p-top__staff h2 > span,
    .p-top__emblem h2 > span,
    .p-top__uniform h2 > span,
    .p-top__join h2 > span,
    .p-top__faq h2 > span,
    .p-entry h1 > span {
        margin-bottom: 1.2rem;
        font-size: 1.6rem;
    }

    /* ボタン共通：幅いっぱいにして縦に並べる */
    .p-top__hero .l-fixbox > div,
    .p-top__join .l-fixbox > div:last-child,
    .p-top__contact .l-fixbox > div {
        flex-direction: column;
        gap: 1.2rem;
    }
    .p-top__join .l-fixbox > div:last-child > a,
    .p-top__contact .l-fixbox > div > a {
        width: 100%;
        padding: 1.4rem 2rem;
    }

    .p-top__hero {
        min-height: 0;
    }
    .p-top__hero .l-fixbox {
        padding-top: 5rem;
        padding-bottom: 4.8rem;
    }
    .p-top__hero .l-fixbox > p:first-child {
        margin-bottom: 2.4rem;
    }
    .p-top__hero h1 {
        margin-bottom: 2.4rem;
        font-size: 3.4rem;
    }
    .p-top__hero .l-fixbox > p:nth-child(3) {
        margin-bottom: 3.2rem;
        font-size: 1.6rem;
    }

    .p-top__info {
        padding: 2.4rem 0;
    }
    .p-top__info .l-fixbox > div > div {
        grid-template-columns: 4.8rem 1fr;
        column-gap: 1.6rem;
        padding: 2rem 0;
    }
    .p-top__info .l-fixbox > div > div::before {
        width: 4.8rem;
        height: 4.8rem;
    }
    .p-top__info .l-fixbox > div > div > p:nth-child(1) {
        font-size: 2rem;
    }
    .p-top__info .l-fixbox > div > div > p:nth-child(2) {
        font-size: 2.8rem;
    }
    .p-top__info .l-fixbox > div > div:nth-child(1) > p:nth-child(2) {
        font-size: 2.6rem;
    }
    .p-top__info .l-fixbox > div > div:nth-child(3) > p:nth-child(2) {
        font-size: 2rem;
    }
    .p-top__info .l-fixbox > div > div > p:nth-child(3) {
        font-size: 1.5rem;
    }
    .p-top__info .l-fixbox > p {
        margin-top: 2rem;
        font-size: 1.4rem;
        text-align: left;
    }

    .p-top__about .l-fixbox {
        text-align: left;
    }
    .p-top__about .l-fixbox > div:first-child {
        margin-bottom: 3.2rem;
    }
    .p-top__about h2 {
        margin-bottom: 2rem;
    }
    .p-top__about .p-image img {
        aspect-ratio: 4 / 3;
    }

    .p-top__entry h2 {
        margin-bottom: 3.2rem;
    }
    .p-top__entry .l-fixbox > div:first-of-type,
    .p-entry__list {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
    .p-top__entry section .p-image,
    .p-entry__list section .p-image {
        height: 18rem;
    }
    #top .p-top__entry .c-more {
        margin-top: 4rem;
    }

    .p-top__pillar {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .p-top__pillar::before {
        display: none;
    }
    .p-top__pillar .l-fixbox {
        grid-template-columns: 1fr;
    }
    .p-top__pillar h2::after {
        margin: 2.4rem 0;
    }
    .p-top__pillar .l-fixbox > div:first-child p {
        font-size: 1.6rem;
        line-height: 2.8rem;
    }
    .p-top__pillar .l-fixbox > div:last-child > section {
        margin-top: 2rem;
    }
    .p-top__pillar .l-fixbox > div:last-child > section > p:first-child {
        font-size: 4.8rem;
    }
    .p-top__pillar .l-fixbox > div:last-child > section > p:first-child::after {
        margin-top: 2rem;
    }
    .p-top__pillar .l-fixbox > div:last-child > section > h3 {
        margin: 2rem 0;
    }

    .p-top__activity h2,
    .p-top__activity h2 + p {
        margin-bottom: 2rem;
    }
    .p-top__activity .l-fixbox > div > p {
        flex-direction: column;
        gap: 0.4rem;
        padding: 1.6rem 0;
    }
    .p-top__activity .l-fixbox > div > p > span {
        width: auto;
    }

    .p-top__staff {
        padding-bottom: 6rem;
        text-align: left;
    }
    .p-top__staff .l-fixbox {
        padding-top: 6rem;
    }
    .p-top__staff h2 {
        margin-bottom: 3.2rem;
    }
    .p-top__staff .l-fixbox > p {
        margin-bottom: 3.2rem;
        line-height: 2.8rem;
    }
    .p-top__staff .c-more a {
        min-width: 0;
        width: 100%;
    }

    .p-top__emblem {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .p-top__emblem::before {
        top: 12rem;
        font-size: 6rem;
    }
    .p-top__emblem .p-image {
        height: 20rem;
        margin-bottom: 3.2rem;
    }
    .p-top__emblem h2 {
        margin-bottom: 2rem;
    }

    .p-top__uniform h2 {
        margin-bottom: 2rem;
    }
    .p-top__uniform .l-fixbox > div:first-child > p {
        margin-bottom: 3.2rem;
    }
    /* 4着は2列2行で並べる（1着ずつの画像なので、縮めても文字が読める） */
    .p-top__uniform .p-image {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.4rem;
    }

    .p-top__join h2,
    .p-top__join .l-fixbox > p,
    .p-top__join .l-fixbox > div:nth-of-type(1) {
        margin-bottom: 3.2rem;
    }
    .p-top__join .l-fixbox > div:nth-of-type(1) {
        row-gap: 1.2rem;
    }
    .p-top__join .l-fixbox > div:nth-of-type(1) > div {
        flex: 1 1 100%;
        padding: 0.8rem 0.8rem 0.8rem 1.6rem;
    }
    .p-top__join .l-fixbox > div:nth-of-type(1) > div > p:nth-child(2) {
        font-size: 3.2rem;
    }
    .p-top__flow {
        margin-bottom: 4rem;
    }
    .p-top__flow h3 {
        margin-bottom: 3.2rem;
        font-size: 2.6rem;
    }
    .p-top__flow > div {
        flex-direction: column;
        gap: 5.2rem;
    }
    .p-top__flow > div > section {
        flex: 0 0 auto;
        min-height: 0;
    }
    .p-top__flow > div > section + section::before {
        top: -4.4rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .p-top__faq h2 {
        margin-bottom: 1.6rem;
    }
    .p-top__faq summary {
        gap: 1.2rem;
        padding: 1.8rem 0;
        font-size: 1.6rem;
    }
    .p-top__faq details > p {
        padding: 0 0 1.8rem;
    }

    .p-top__contact {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .p-top__contact h2 {
        margin-bottom: 2.4rem;
        font-size: 2.8rem;
    }
    .p-top__contact .l-fixbox > p {
        margin-bottom: 2.4rem;
        font-size: 1.8rem;
    }

    .c-breadcrumb {
        height: auto;
        margin-top: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .c-breadcrumb ol {
        font-size: 1.4rem;
    }

    .p-entry {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }
    .p-entry h1 {
        margin-bottom: 3.2rem;
    }
    .p-entry__list {
        margin-bottom: 4rem;
    }
}

/* =========================================================
   メガメニュー（参考: FC今治 https://www.fcimabari.com/ 。2026-10-25 森田さん指摘で改修）
   PC：ホバーで開く。左に見出しの帯（親ページへのリンク）、右に子ページを横に並べる。画面は暗くしない
   SP：白地の縦リスト。開く項目は「＋」（開くと「−」）、そのまま移動する項目は「→」。
       開いた中は、見出しの帯と、2列のセル（右端に「→」）
   ========================================================= */
.l-megamenu > ul > li.l-has-child > a::before {
    position: static;
    order: 2;
    width: auto;
    height: auto;
    margin: 0 0 0 0.6rem;
    border: 0;
    transform: none;
    content: "+";
    font-size: 2.2rem;
    font-weight: normal;
    line-height: 1;
    color: var(--color-accent);
}
.l-megamenu > ul > li.l-has-child.l-nav_open > a::before {
    content: "\2212";
    transform: none;
}
.l-megamenu div p a::after {
    display: none;
}
@media screen and (min-width: 1026px) {
    .l-megamenu div {
        padding: 3.2rem var(--gutter-x) 3.6rem;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.08);
    }
    .l-megamenu div::after {
        content: "";
        display: block;
        clear: both;
    }
    .l-megamenu div p {
        float: left;
        width: 22rem;
        margin: 0;
    }
    .l-megamenu div p a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 5rem;
        padding: 1.2rem 2rem;
        border: 0;
        background: var(--color-main);
        font-size: 1.6rem;
        line-height: 1.6;
        color: var(--color-white);
    }
    .l-megamenu div > ul {
        align-items: center;
        gap: 1.6rem 4rem;
        min-height: 5rem;
        margin-left: 26rem;
        padding: 0;
    }
    .l-megamenu div > ul > li {
        width: auto;
        margin: 0;
        background: none;
    }
    .l-megamenu div > ul > li > a {
        display: inline-block;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--color-main);
        font-size: 1.6rem;
        line-height: 1.6;
        color: var(--color-main);
    }
    .l-megamenu div > ul > li > a::after {
        content: "\2192";
        margin-left: 0.8rem;
    }
}
@media screen and (max-width: 1025px) {
    .l-megamenu > ul > li > a {
        font-size: 1.8rem;
        color: var(--color-main);
    }
    .l-megamenu > ul > li:not(.l-has-child):not(.l-nav-cv) > a::after {
        display: block;
        content: "\2192";
        position: absolute;
        top: 50%;
        right: 3.2rem;
        left: auto;
        bottom: auto;
        width: auto;
        height: auto;
        margin-top: -1.2rem;
        background: none;
        font-size: 1.8rem;
        line-height: 2.4rem;
        color: var(--color-accent);
    }
    .l-megamenu > ul > li.l-has-child > a {
        justify-content: space-between;
        padding-right: 3.2rem;
    }
    .l-megamenu > ul > li.l-has-child > a::before {
        order: 2;
        margin: 0;
        font-size: 2.8rem;
    }
    .l-megamenu > ul > li.l-nav_open > a {
        background: none;
    }
    .l-megamenu div {
        padding: 0;
        background: var(--color-white);
    }
    .l-megamenu div p {
        margin: 0;
    }
    .l-megamenu div p a {
        display: block;
        padding: 0.8rem 3.2rem;
        border: 0;
        background: var(--color-main);
        font-size: 1.6rem;
        line-height: 2.4rem;
        color: var(--color-white);
    }
    .l-megamenu div > ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 0;
        background: var(--color-white);
    }
    .l-megamenu div > ul > li {
        width: auto;
        margin: 0;
        background: var(--color-sub);
    }
    .l-megamenu div > ul > li > a {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 5.6rem;
        padding: 1.2rem 4rem 1.2rem 1.6rem;
        font-size: 1.6rem;
        line-height: 2.4rem;
        color: var(--color-main);
    }
    .l-megamenu div > ul > li > a::after {
        content: "\2192";
        position: absolute;
        top: 50%;
        right: 1.6rem;
        margin-top: -1.2rem;
        font-size: 1.6rem;
        line-height: 2.4rem;
        color: var(--color-accent);
    }
}
