﻿* {
    font-family: Shippori Mincho, serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-feature-settings: "palt";
    line-height: 1
}

html {
    font-size: 62.5%;
    line-height: 1
}

body {
    font-size: 1.6rem
}

img {
    -webkit-backface-visibility: hidden;
    vertical-align: bottom;
    line-height: 0
}

p,
th,
td,
dt,
dd,
li,
h1,
h2,
h3,
h4,
h5,
h6,
label {
    color: #032547;
}

a {
    color: #032547;
    text-decoration: none;
    outline: none;
    border: none;
    transition: 0.3s
}

a:hover {
    text-decoration: none
}

a img {
    outline: none;
    border: none;
    -webkit-backface-visibility: hidden
}

area {
    border: none;
    outline: none
}

.clear {
    clear: both
}

* img {
    max-width: 100%;
    height: auto
}

#main {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative
}

.wrap {
    width: 100%
}

.wrap .contents {
    width: calc(100% - 60px);
    max-width: 1000px;
    margin: 0 auto
}

.wrap .contents p {
    line-height: 3;
    font-weight: 500
}

#wpfront-scroll-top-container {
    width: 70px
}

@media screen and (max-width:768px) {
    .wrap .contents {
        width: calc(100% - 40px)
    }

    .wrap .contents p {
        line-height: 1.6
    }

    #wpfront-scroll-top-container {
        width: 40px;
        right: 10px !important
    }
}

@media screen and (max-width:768px) {
    .pcOnly {
        display: none !important
    }
}

@media screen and (min-width:769px) {
    .spOnly {
        display: none !important
    }
}

/* ヘッダー */


.page-header-block {
    width: 100%;
    height: 280px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    background: #101726;
}

.page-header-block .image {
    width: 60%;
}

.page-header-block .title {
    width: 40%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 32px 0 4.28571vw;
    padding: 0 2rem 0 4.28571vw;
    color: #fff;
    line-height: 1;
}

.page-header-block .title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #fff;
    font-family: Shippori Mincho, serif;
    font-weight: 400;
}

.page-header-block .title p {
    margin: 0 0 12px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .3em;
    color: #fff;
}

.js-ofi {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: 'object-fit: cover';
    object-position: center center;
}

/*  パンくずリスト */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.breadcrumb-item {
    font-size: 12px;
    color: #032547;
    text-decoration: none;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '>';
    padding: 0 0.5em;
    color: #032547;
    list-style: none;
}

.breadcrumb-item.active {
    color: #032547;

}

/*  h2見出し */
.title_h2 {
    text-align: center;
    /* 文字を中央揃え */
    margin: 80px auto;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
    /* フォントをRobotoに設定 */
    font-size: 14px;
    /* フォントサイズを調整 */
    color: #032547;
    /* 文字色を調整 */
    letter-spacing: .3em;
}

h2 {
    font-size: 32px;
    /* 見出しのフォントサイズを調整 */
    font-weight: 400;
    /* 見出しを太字にする */
    color: #c37a07;
    /* 見出しの色を調整 */
}

.mt40 {
    margin-top: 40px;
}

/* ‐‐‐‐‐‐‐‐‐‐トップぺージ‐‐‐‐‐‐‐‐‐‐ */

.topread_txt {
    text-align: center;
    margin: 120px 0;
}

.topread_txt h1 {
    font-size: 24px;
}

p.jibun {
    font-size: 36px;
    font-weight: bold !important;
}


/* コース入り口 */

p.course_p {
    text-align: center;
}

.course_area {
    display: flex;
    flex-wrap: wrap;
}



.banner {
    width: 50%
}

.inner {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    padding-top: 56.25%
        /*16:9*/
}

.course_box_shingaku .inner:after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: .8;
    /*背景画像 不透明度80%*/
    background: url(../img/common/top_header_shingaku.jpg) no-repeat center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -ms-background-size: cover;
    background-size: cover;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.course_box_regular .inner:after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: .8;
    /*背景画像 不透明度80%*/
    background: url(../img/common/top_header_regular.jpg) no-repeat center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -ms-background-size: cover;
    background-size: cover;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.inner:hover:after {
    opacity: 1;
    -moz-transform: scale(1.03);
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    transform: scale(1.03);
}

.inner a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 1;
    text-align: center;
}


#course h2 {
    color: #032547;
}

.course_name p {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .3em;
}

.hakuai_area h3 {
    font-size: 16px;
    font-weight: 500;
}

.philosophy h3,
.history h3 {
    font-size: 16px;
}

.hakuai_area {
    background-color: #c3d4e3;
    width: 100%;
    margin: 80px auto;
    padding: 80px 0;
    border-radius: 30px;
}

.syushi_area {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.syushi_area h3 {
    font-size: 16px;
    font-weight: 500;
}

.hakuai {
    text-align: center;
    font-size: 64px;
    font-weight: bold;
    line-height: 0.5 !important;
    margin-bottom: 80px;
}

p.hakuai_txt {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    line-height: 2 !important;
}

p.syushi_txt {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    line-height: 0 !important;
    margin-bottom: 40px;
}








/* ‐‐‐‐‐‐‐‐‐‐進学コース‐‐‐‐‐‐‐‐‐‐ */
/*  お知らせ */
p.txt_align_right {
    text-align: right;
}

h3 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 40px auto;
}


/* =========================
   式次第（PC：縦書き / SP：横書き）
   ========================= */

.program {
    margin-top: 24px;
}

/* 枠 */
.program__frame {
    border: 2px solid #2f5fb3;
    border-radius: 10px;
    padding: 28px 20px;

    /* 中央寄せ（枠内で塊を中央に置く） */
    display: flex;
    justify-content: center;
    /* 横中央 */
    align-items: center;
    /* 縦中央 */
    box-sizing: border-box;
}

/* タイトル＋式次第を“ひと塊”として中央に */
.program__inner {
    display: inline-flex;
    /* これが中央寄せの肝 */
    flex-direction: row-reverse;
    /* 右にタイトル、左に項目群 */
    align-items: center;
    justify-content: center;
    gap: 28px;
    /* タイトルと項目群の間隔 */
    max-width: 100%;
    box-sizing: border-box;
}

/* 右側の縦書きタイトル */
.program__eventTitle {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-weight: 700;
    letter-spacing: 0.10em;
    white-space: nowrap;

    /* サイズ＆行間（縦書きの行送り） */
    font-size: 26px;
    line-height: 1.9;
}

/* 式次第：縦書きの列を横に並べる */
.program__items {
    list-style: none;
    /* PCは番号なし */
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row-reverse;
    /* 右→左へ列が並ぶ（画像寄せ） */
    flex-wrap: wrap;
    /* 画面が狭い時に折り返し */
    gap: 22px;
    /* 列間 */
    justify-content: center;
    /* 列の塊も中央へ */
    box-sizing: border-box;
}

.program__item {
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.10em;

    /* サイズ＆行間（縦書きの行送り） */
    font-size: 22px;
    line-height: 1.95;
}

/* =========================
     レスポンシブ（横書き）
     ========================= */
@media (max-width: 768px) {
    .program__frame {
        /* モバイルは上寄せの方が読みやすいケースが多い */
        align-items: flex-start;
        padding: 20px 16px;
    }

    .program__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .program__eventTitle,
    .program__item {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        white-space: normal;
    }

    .program__eventTitle {
        font-size: 18px;
        line-height: 1.7;
    }

    .program__items {
        flex-direction: column;
        gap: 12px;

        /* モバイルは番号付きで見やすく */
        list-style: decimal;
        padding-left: 1.2em;
    }

    .program__item {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.06em;
    }
}

/* 式典ギャラリー*/

.ceremony_slider .slide img {
    width: 60%;
    /* height: 600px; */
    /* object-fit: cover; */
    /* object-position: center; */
    margin: 0 auto;
}

/* =========================
   式典写真：4列 +（下段3枚を中央寄せ）/ レスポンシブ対応
   + Lightbox（:target）
   ========================= */
#ceremony-gallery {
    scroll-margin-top: 80px;
    /* ヘッダー高さに合わせて調整 */
}

.ceremony-photo-grid {
    margin-top: 12px;
}

/* -------------------------
     サムネ（PC: 4列）
     下段（5〜7枚目）を中央寄せに見せる
     ------------------------- */
.ceremony-photo-grid__thumbs {
    /* ここでセル幅とgapを変数化（中央寄せ計算に使う） */
    --gap: 12px;
    --cell: clamp(150px, 16vw, 220px);

    display: grid;
    grid-template-columns: repeat(4, var(--cell));
    gap: var(--gap);

    /* グリッドの“塊”を中央に */
    justify-content: center;
    align-content: start;

    max-width: 100%;
    box-sizing: border-box;
}

.ceremony-photo-grid__thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

.ceremony-photo-grid__thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.ceremony-photo-grid__thumb:hover img {
    transform: scale(1.03);
}

.ceremony-photo-grid__thumb:focus-visible {
    outline: 2px solid #2f5fb3;
    outline-offset: 3px;
}

/* ★ 下段（5〜7枚目）を中央に見せる
     4列のうち1列（= cell + gap）が余るので、その半分だけ右へ移動 */
@media (min-width: 1025px) {
    .ceremony-photo-grid__thumb:nth-child(n + 5) {
        transform: translateX(calc((var(--cell) + var(--gap)) / 2));
    }
}

/* -------------------------
     レスポンシブ（タブレット：3列）
     7枚目が最後の段で1枚になるので中央に置く
     ------------------------- */
@media (max-width: 1024px) {
    .ceremony-photo-grid__thumbs {
        --gap: 12px;
        --cell: clamp(150px, 24vw, 240px);

        grid-template-columns: repeat(3, var(--cell));
        gap: var(--gap);
    }

    /* 4列用のズラしを解除 */
    .ceremony-photo-grid__thumb:nth-child(n + 5) {
        transform: none;
    }

    /* 7枚目（最後の1枚）を中央列へ */
    .ceremony-photo-grid__thumb:nth-child(7) {
        grid-column: 2;
    }
}

/* -------------------------
     レスポンシブ（スマホ：2列）
     最後が1枚になるので、1行ぶち抜き + 幅を1枚分にして中央
     ------------------------- */
@media (max-width: 768px) {
    .ceremony-photo-grid__thumbs {
        --gap: 10px;
        --cell: clamp(140px, 44vw, 220px);

        grid-template-columns: repeat(2, var(--cell));
        gap: var(--gap);
    }

    .ceremony-photo-grid__thumb:nth-child(7) {
        grid-column: 1 / -1;
        /* 2列ぶち抜き */
        width: var(--cell);
        /* 見た目は1枚分の幅 */
        justify-self: center;
        /* 中央寄せ */
    }
}

/* -------------------------
     さらに小さい端末：1列
     ------------------------- */
@media (max-width: 420px) {
    .ceremony-photo-grid__thumbs {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .ceremony-photo-grid__thumb:nth-child(7) {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }
}




/* =========================
   上：中央に1枚 / 下：3枚（ライトボックス対応）
   ========================= */

.photo-set {
    margin-top: 40px;
}

.photo-set__grid {
    display: grid;
    gap: 40px;
    justify-items: center;
    /* 全体中央寄せ */
}

/* 上：メイン（aタグ） */
.photo-set__main {
    width: min(760px, 100%);
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.photo-set__main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;

}

/* 下：3枚（aタグ） */
.photo-set__thumbs {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.photo-set__thumb {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.photo-set__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* hover */
.photo-set__main img,
.photo-set__thumb img {
    transition: transform 0.2s ease;
}

.photo-set__main:hover img,
.photo-set__thumb:hover img {
    transform: scale(1.02);
}

.photo-set__main:focus-visible,
.photo-set__thumb:focus-visible {
    outline: 2px solid #2f5fb3;
    outline-offset: 3px;
}

/* -------------------------
     レスポンシブ
     ------------------------- */

/* タブレット：下3枚を2列（3枚目中央） */
@media (max-width: 900px) {
    .photo-set__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-set__thumbs a:nth-child(3) {
        grid-column: 1 / -1;
        width: 50%;
        justify-self: center;
    }
}

/* スマホ：下3枚を1列、上の比率も見やすく */
@media (max-width: 600px) {
    .photo-set__main {
        border-radius: 10px;
    }

    .photo-set__main img {
        aspect-ratio: 4 / 3;
    }

    .photo-set__thumbs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .photo-set__thumbs a:nth-child(3) {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }
}


/* 会計報告 CTA */
.accounting_cta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    /* 中央寄せ */
}

.accounting_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 420px;
    padding: 32px 18px;
    border-radius: 999px;

    background: #2f5fb3;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;

    transition: transform 0.15s ease, opacity 0.15s ease;
}

.accounting_btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.accounting_btn:active {
    transform: translateY(0);
}

.accounting_btn:focus-visible {
    outline: 2px solid #2f5fb3;
    outline-offset: 3px;
}

/* スマホ：横幅いっぱいに */
@media (max-width: 600px) {
    .accounting_cta {
        justify-content: stretch;
    }

    .accounting_btn {
        width: 100%;
        min-width: 0;
    }
}



/* メッセージ */
.message_area {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.message_area::after {
    content: "";
    flex: 1;
}

.message_contents {
    flex: 1;
    /* 余白を均等に割り当てる */
    box-sizing: border-box;
    margin: 6%;
    min-width: 38%;
}

.message_contents::before {
    content: "";
    position: absolute;
    top: -10px;
    /* 線をテキストの上部に配置 */
    left: 0;
    width: 30%;
    /* 線を横方向に伸ばす */
    height: 2px;
    border-top: #032547 1px solid;
}

/* ギャラリー*/

ul.slick-dots {
    display: none !important;
}

.slide img {
    width: 1000px;
    /* height: 600px; */
    /* object-fit: cover; */
    /* object-position: center; */
    margin: 0 auto;
}

p.slide_txt {
    text-align: center;
}


/* 歴史 */

table {
    border-collapse: collapse;
    /* セル間の線を重ね合わせる */
    width: 100%;
    /* 親要素の幅いっぱいに広げる */
}

th,
td {
    border-bottom: 1px solid #032547;
    /* セルに薄いグレーの枠線 */
    padding: 30px;
    /* セル内の余白 */
}

th {
    background-color: #f2f2f2;
    /* ヘッダーセルの背景色 */
    text-align: left;
    /* 文字を左揃え */
}

td {
    text-align: left;
    /* 文字を左揃え */
    line-height: 2em;
}

td:first-child {
    border-bottom: 2px solid #032547;
    /* 左側のセルに太い黒線を設定 */
}

@media (max-width: 768px) {

    /* タブレット以下 */
    table {
        font-size: 14px;
        /* 文字サイズを小さくする */
    }

    th,
    td {
        padding: 5px;
        /* パディングを小さくする */
    }
}

@media (max-width: 480px) {

    /* スマートフォン以下 */
    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 3px;
    }
}

/* 規約 */
.terms_list ol {
    counter-reset: item;
    padding-left: 20px;
}

.terms_list ol li {
    position: relative;
    padding-left: 1em;
    line-height: 2;
}

.terms_list ol li:before {
    content: counter(item) ". ";
    position: absolute;
    left: 0;
    counter-increment: item;
}

/* ‐‐‐‐‐‐‐‐‐‐レギュラーコースぺージ‐‐‐‐‐‐‐‐‐‐ */

/* Instagramリンク＋QR */
.ig-linkbox {
    margin-top: 14px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;

    padding: 40px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-sizing: border-box;

    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.ig-linkbox__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: min(420px, 100%);
    padding: 32px 18px;
    border-radius: 999px;

    /* Instagramっぽい雰囲気（不要なら単色に変更OK） */
    background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;

    transition: transform 0.15s ease, opacity 0.15s ease;
}

.ig-linkbox__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.ig-linkbox__btn:active {
    transform: translateY(0);
}

.ig-linkbox__btn:focus-visible,
.ig-linkbox__url:focus-visible {
    outline: 2px solid #2f5fb3;
    outline-offset: 3px;
}

.ig-linkbox__note {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.ig-linkbox__url {
    color: #2f5fb3;
    text-decoration: underline;
    word-break: break-word;
}

/* QR */
.ig-linkbox__qr {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.ig-linkbox__qr img {
    width: 180px;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.ig-linkbox__qrtext {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .ig-linkbox {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .ig-linkbox__btn {
        width: 100%;
    }

    .ig-linkbox__qr img {
        width: 150px;
    }
}

/* =========================
   Lightbox（:target）最終版
   ・fixedヘッダー90px対応
   ・上下が切れない
   ・重複なし
   ========================= */

/* ヘッダー高さを変数で管理 */
:root{
  --header-h: 90px;
}

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

/* 表示時 */
.lightbox:target{
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

/* ===== 画像枠 ===== */
.lightbox__content{
  position: absolute;

  /* ★中央配置をやめる */
  top: calc(var(--header-h) + 2vh);
  left: 50%;
  transform: translateX(-50%);

  width: min(1000px, 92vw);

  /* ★ヘッダー分を確実に引く */
  max-height: calc(100vh - var(--header-h) - 4vh);

  background: #fff;
  border-radius: 12px;
  overflow: auto;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  -webkit-overflow-scrolling: touch;
}

/* 画像 */
.lightbox__content img{
  display: block;
  width: 100%;
  height: auto;

  /* キャプション分を引いた最大高さ */
  max-height: calc(100vh - var(--header-h) - 4vh - 56px);

  object-fit: contain;
  background: #000;
}

/* キャプション */
.lightbox__caption{
  flex: 0 0 auto;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* 閉じる */
.lightbox__close{
  position: absolute;
  top: 8px;
  right: 10px;

  width: 36px;
  height: 36px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,.6);
  color: #fff;
  text-decoration: none;

  font-size: 22px;
  line-height: 1;
  z-index: 5;
}

/* 前へ／次へ */
.lightbox__prev,
.lightbox__next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,.55);
  color: #fff;
  text-decoration: none;

  font-size: 28px;
  line-height: 1;
  z-index: 5;
}

.lightbox__prev{ left: 10px; }
.lightbox__next{ right: 10px; }

.lightbox__prev span,
.lightbox__next span{
  display: block;
  line-height: 1;
  transform: translateY(-5px);
}

/* ===== モバイル ===== */
@media (max-width: 768px){
  :root{
    --header-h: 70px; /* SPはヘッダー低めならここ調整 */
  }

  .lightbox__content{
    width: 96vw;
    max-height: calc(100vh - var(--header-h) - 3vh);
    border-radius: 10px;
  }

  .lightbox__content img{
    max-height: calc(100vh - var(--header-h) - 3vh - 52px);
  }

  .lightbox__prev,
  .lightbox__next{
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

@media (max-width: 480px){
  .lightbox__content{
    width: 98vw;
  }
}

/* =========================
   SP Typography Fix（追記推奨）
   行間/文字サイズのスマホ最適化
   ========================= */

/* まず“全要素 line-height:1”の影響を本文側で打ち消す */
body{
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 本文に出やすい要素を読みやすく統一 */
p, li, dt, dd, th, td, label{
  line-height: 1.8;
}

/* 見出しは詰まりやすいので少しだけ */
h1, h2, h3, h4, h5, h6{
  line-height: 1.3;
}

/* スマホ時だけ、全体の基準を少し落ち着かせる */
@media (max-width: 768px){

  /* ベース文字サイズ：16px相当を維持しつつ暴れないように */
  html{ font-size: 62.5%; } /* 既存維持 */
  body{ font-size: 1.5rem; } /* 16→15相当。大きすぎるならここを1.4remへ */

  /* 既にある .wrap .contents p の line-height 1.6 はOKだが、
     もう少し読みやすくするなら 1.75 推奨 */
  .wrap .contents p{
    line-height: 1.75;
  }

  /* パンくず */
  .breadcrumb-item{
    font-size: 1.2rem; /* 12px相当 */
    line-height: 1.6;
  }

  /* 見出し（全体） */
  h2{
    font-size: 2.4rem; /* 32px→24px */
    line-height: 1.25;
  }
  h3{
    font-size: 1.8rem; /* 20px→18px */
    line-height: 1.35;
    margin: 28px auto;
  }

  /* ページヘッダーのタイトル */
  .page-header-block{
    height: auto;
    flex-direction: column;
  }
  .page-header-block .image{
    width: 100%;
    height: 180px; /* 画像エリアを固定し見やすく */
  }
  .page-header-block .title{
    width: 100%;
    padding: 16px 20px;
  }
  .page-header-block .title h1{
    font-size: 2.0rem; /* 24px→20px */
    line-height: 1.3;
  }
  .page-header-block .title p{
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 8px;
  }

  /* トップの大きい文字（ここが“デカすぎ”の主犯になりがち） */
  p.jibun{
    font-size: 2.6rem;  /* 36px→26px */
    line-height: 1.25;
  }
  .hakuai{
    font-size: 4.0rem;  /* 64px→40px */
    line-height: 1.0 !important; /* 0.5は詰まりすぎるので1.0へ */
    margin-bottom: 40px;
  }
  p.hakuai_txt{
    font-size: 2.2rem;  /* 36px→22px */
    line-height: 1.5 !important;
  }
  p.syushi_txt{
    font-size: 2.2rem;  /* 36px→22px */
    line-height: 1.4 !important; /* 0は完全に潰れるのでNG */
    margin-bottom: 24px;
  }

  /* テーブル：本文の行間も確保 */
  td{
    line-height: 1.7;
  }
}

/* さらに小さい端末（iPhone SE等） */
@media (max-width: 480px){
  body{ font-size: 1.4rem; } /* 14px相当 */

  h2{ font-size: 2.2rem; }
  p.jibun{ font-size: 2.3rem; }
  .hakuai{ font-size: 3.4rem; }
  p.hakuai_txt,
  p.syushi_txt{ font-size: 2.0rem; }
}

.swiper-button-next svg, .swiper-button-prev svg {
    display: none;
}