/* ===== カラー変数 ===== */
:root {
    --color-bg-gray: #f9fafb;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-green-primary: #0CA26C;
    --color-navy: #171F40;
    --color-doutoku-blue: #03257E;
    --color-green-labtama: #3A741F;
    --color-pink-mikke: #B14A66;
    --color-green-dark: #02653C;
    --color-green-light: #67a38a;
    --color-blue-light: #588BBB;
    --color-blue-white: #98b8d3;
    --color-bg-mint: #EEF5F4;
    --color-bg-beige: #EEE4D4;
    --color-green-manga: #008756;
    --color-red-video: #DB3838;
    --color-bg-green-pale: #f2f8e8;
    --color-bg-orange-pale: #fff4ef;
    --color-green-industry: #348266;
    --color-blue-youth: #1F3D75;
    --color-blue-eco: #28779D;
    --shadow-btn: rgba(0, 0, 0, 0.10);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --mv-frame-color: #18213f;
    --mv-frame-width: clamp(12px, 1.05vw, 30px);
    --mv-ease-soft: cubic-bezier(.22, .61, .36, 1);
}

/* ===== ベース ===== */
body {
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
    font-weight: 500;
    background-color: var(--color-bg-gray);
    color: var(--color-black);
    font-size: 1rem;
}
p { line-height: 2 !important; }
h1, h2, h3, h4, h5, h6 { line-height: 1.5 !important; }

/* ===== 画像プレースホルダー ===== */
.img-placeholder {
    background-color: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== ヘッダーロゴ ===== */
.header-brand-name { font-size: 1.175rem; font-weight: bold; line-height: 1.2;}
.header-brand-sub  { font-size: 1rem; font-weight: bold; line-height: 1.2;}
.header-brand-wrap { display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; margin-left: 12px; background-color: var(--color-doutoku-blue); color: var(--color-white); padding: 10px 14px 7px; border-radius: 4px;}
.header-divider    { width: 1px; height: 25px; background-color: var(--color-black); margin: 0 24px; flex-shrink: 0; }
.header-logo       { height: 36px; width: auto; flex-shrink: 0; }
.header-global-nav { align-items: center; }
.header-global-nav.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(20px * var(--tw-space-x-reverse));
    margin-left: calc(20px * calc(1 - var(--tw-space-x-reverse)));
}
.header-global-nav .nav-link { font-size: 1rem; }

/* ===== ナビ ===== */
html { scroll-behavior: smooth; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.active { opacity: 1; transform: translateY(0); }
.nav-link { position: relative; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: var(--color-green-primary); transform: scaleX(0); transition: transform 0.3s ease-out; transform-origin: right; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ===== テキストリンク（コンテンツ・フッター）アンダーラインアニメーション ===== */
.link-underline,
.link-underline-group {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 0.5s ease-out;
}
.link-underline:hover,
.group:hover .link-underline-group { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ===== ロゴプレースホルダー ===== */
.logo-placeholder {
    width: 140px;
    height: 36px;
    font-size: 10px;
}
.footer-logo-placeholder {
    width: 180px;
    height: auto;
    font-size: 10px;
    background-color: transparent;
}
.footer-logo-placeholder img { width: 180px; height: auto; display: block; }

/* ===== リンクボタン共通: 300px × 60px 角丸 ===== */
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 300px;
    height: 60px;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 0.9375rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px var(--shadow-btn);
}
.btn-link:hover { opacity: 0.82; }
.btn-link-icon { position: absolute; right: 23px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.btn-arrow-icon { position: absolute; right: 23px; top: 50%; transform: translateY(-50%); width: 6px; height: 8px; }
.btn-arrow-icon-back { position: absolute; left: 23px; top: 50%; transform: translateY(-50%); width: 6px; height: 8px; }
.btn-primary { background-color: var(--color-navy); color: var(--color-white); }
.btn-labtama  { background-color: var(--color-green-labtama); color: var(--color-white); }
.btn-mikke    { background-color: var(--color-pink-mikke); color: var(--color-white); }

/* ===== H2 タイトル ===== */
.h2-en {
    display: block;
    font-size: 1.25rem;
    color: var(--color-green-primary);
    margin-bottom: 10px !important;
}
.h2-ja {
    font-size: 1.875rem;
    color: var(--color-black);
}
.h2-ja-white {
    font-size: 1.875rem;
    color: var(--color-white);
}
.h2-en-white {
    display: block;
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 10px !important;
}

/* ===== メインビジュアル ===== */
.section-mainvisual {
    background: linear-gradient(to right, var(--color-green-light), var(--color-blue-white));
    padding: 20px;
    min-height: 510px;
    display: flex;
    align-items: stretch;
}
.mainvisual-inner {
    min-height: 290px;
}

/* ===== メインビジュアル ヒーローアニメーション ===== */
.dtb-hero {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 0;
    padding-bottom: 33.3333%;
    cursor: pointer;
}
.dtb-hero .p { position: absolute; display: block; height: auto; will-change: transform, opacity; }
.dtb-hero .sp { display: none; }

/* PC（横長） */
.dtb-hero .pc.plus_top      { left: 3.0476%;  top: 10.8571%; width: 8.6667%;  animation: dtbFloatUp 0.45s cubic-bezier(.18,.75,.28,1) 0.0s both; }
.dtb-hero .pc.watashitachi  { left: 12.9048%; top: 39.0%;    width: 22.0952%; animation: dtbFloatUp 0.48s cubic-bezier(.18,.75,.28,1) 0.1s both; }
.dtb-hero .pc.desu         { left: 73.8095%; top: 39.5714%; width: 17.1905%; animation: dtbFloatUp 0.48s cubic-bezier(.18,.75,.28,1) 0.1s both; }
.dtb-hero .pc.box          { left: 37.9048%; top: 28.7143%; width: 33.4762%; animation: dtbBoxIn 0.5s cubic-bezier(.18,.75,.28,1) 0.44s both; }
.dtb-hero .pc.logo         { left: 33.3333%; top: 71.2857%; width: 31.0476%; animation: dtbFloatUp 0.48s cubic-bezier(.18,.75,.28,1) 0.86s both; }
.dtb-hero .pc.plus_bottom  { left: 85.9048%; top: 59.7143%; width: 8.7143%;  animation: dtbPopIn 0.45s cubic-bezier(.18,.75,.28,1) 1.02s both; }

/* SP（縦積み）：640px以下 */
@media (max-width: 640px) {
    .dtb-hero { max-width: 480px; padding-bottom: 75.0%; }
    .dtb-hero .pc { display: none; }
    .dtb-hero .sp { display: block; }
    .dtb-hero .sp.plus_top     { left: 6.8229%;  top: 7.9167%;  width: 9.5312%;  animation: dtbFloatUp 0.45s cubic-bezier(.18,.75,.28,1) 0.0s both; }
    .dtb-hero .sp.watashitachi { left: 13.0729%; top: 13.125%;  width: 38.3854%; animation: dtbFloatUp 0.48s cubic-bezier(.18,.75,.28,1) 0.1s both; }
    .dtb-hero .sp.desu         { left: 62.1354%; top: 61.5278%; width: 16.0938%; animation: dtbFloatUp 0.48s cubic-bezier(.18,.75,.28,1) 0.1s both; }
    .dtb-hero .sp.box          { left: 21.1979%; top: 34.3056%; width: 57.2396%; animation: dtbBoxIn 0.5s cubic-bezier(.18,.75,.28,1) 0.44s both; }
    .dtb-hero .sp.logo         { left: 29.375%;  top: 79.9306%; width: 60.7292%; animation: dtbFloatUp 0.48s cubic-bezier(.18,.75,.28,1) 0.86s both; }
    .dtb-hero .sp.plus_bottom  { left: 81.6667%; top: 75.625%;  width: 9.4792%;  animation: dtbPopIn 0.45s cubic-bezier(.18,.75,.28,1) 1.02s both; }
}
@keyframes dtbFloatUp { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dtbBoxIn { 0% { opacity: 0; transform: translateY(9px) scale(.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dtbPopIn { 0% { opacity: 0; transform: scale(.55) rotate(-8deg); } 65% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
    .dtb-hero .p { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===== メインビジュアル v2 ===== */
.mainvisual-v2 {
    display: grid;
    width: 100%;
    aspect-ratio: 2880 / 860;
    min-height: 510px;
    padding: var(--mv-frame-width);
    box-sizing: border-box;
    background: var(--color-navy);
}
.mainvisual-v2__field {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--mv-frame-color);
}
.mainvisual-v2__field.is-playing {
    animation: fieldToWhite 1.6s var(--mv-ease-soft) .15s both;
}
.letter-hero {
    position: relative;
    width: min(1000px, calc(100% - clamp(64px, 10vw, 180px)));
    aspect-ratio: 1650 / 427;
    margin: 0;
    outline: none;
}
.letter-hero__layer {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: translateY(10px) scale(.995);
    will-change: opacity, transform;
}
.letter-hero__layer picture,
.letter-hero__layer img {
    display: block;
    width: 100%;
    height: 100%;
}
.letter-hero__layer img {
    object-fit: contain;
}
.letter-hero__layer--bottom img {
    transform: scale(1.3);
    transform-origin: 50% 100%;
}
.letter-hero__layer--top {
    clip-path: inset(0 0 36% 0);
}
.letter-hero__layer--bottom {
    clip-path: inset(55% 0 0 0);
}
.letter-hero.is-playing .letter-hero__layer--top {
    animation: softArrival 2.2s var(--mv-ease-soft) .65s both;
}
.letter-hero.is-playing .letter-hero__layer--bottom {
    animation: softArrival 2.05s var(--mv-ease-soft) 2.05s both;
}
@keyframes fieldToWhite {
    0%,
    12% {
        background-color: var(--mv-frame-color);
    }
    100% {
        background-color: var(--color-white);
    }
}
@keyframes softArrival {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.995);
    }
    60% {
        opacity: .82;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 640px) {
    .mainvisual-v2 {
        aspect-ratio: 563 / 420;
        min-height: 300px;
        --mv-frame-width: 15px;
        padding-bottom: calc(var(--mv-frame-width) + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 1px 0 var(--color-navy);
    }
    .letter-hero {
        width: 91.49%;
        aspect-ratio: 473 / 287;
        transform: translateY(-6px);
    }
    .letter-hero__layer--bottom img {
        transform: none;
    }
    .letter-hero__layer--top {
        clip-path: inset(0 0 34% 0);
    }
    .letter-hero__layer--bottom {
        clip-path: inset(66% 0 0 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .letter-hero__layer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .mainvisual-v2__field {
        animation: none !important;
        background: var(--color-white);
    }
}

/* ===== REPORTS ===== */
.section-reports {
    background-color: var(--color-bg-mint);
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
}
.reports-grid { row-gap: 60px; }
.card-report {
    border-radius: 16px;
    min-height: 445px;
}
.card-report-image { max-height: 192px; }


/* ===== CONCEPT ===== */
.section-concept {
    background-color: var(--color-navy);
    background-image: url('/about/doutokuginko/images/concept_bgimg_pc.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding-top: 110px;
    padding-bottom: 110px;
    scroll-margin-top: 104px;
}
.concept-text {
    color: var(--color-gray-200);
    font-size: 1.125rem;
}
.concept-text img { display: none; }

.play-triangle {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    margin-left: 2px;
}

.movie-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.movie-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.movie-modal__panel {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.movie-modal.is-open .movie-modal__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 動画プレーヤー（外部埋め込み）の縁に出る1pxの黒線を、親のoverflow-hiddenで切り取って隠す */
#brand-movie-frame {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: -1px;
    position: relative;
}
#brand-movie-frame::after {
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #e5e7eb;
    z-index: 2;
}    

/* ===== HISTORY ===== */
.section-history {
    background-color: var(--color-white);
    padding-top: 100px;
    padding-bottom: 100px;
    scroll-margin-top: 104px;
}
.section-history h3 {font-size: 1.5rem; font-weight: 700;}
.history-contentArea > .history-content:first-child {margin-bottom: 90px}
#history .img-placeholder { background-color: transparent; }
#history .img-placeholder img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
#history .img-placeholder + p {
    text-align: right;
    padding-top: 10px;
    font-size: 0.825rem;
}

/* ===== パンくずリスト ===== */
.breadcrumb-bar {
    background-color: var(--color-bg-gray);
    height: 46px;
}
.breadcrumb-bar nav {
    height: 46px;
    display: flex;
    align-items: center;
}
.breadcrumb-bar a,
.breadcrumb-bar span {
    font-size: 0.75rem;
}
.breadcrumb-bar a { color: var(--color-black); text-decoration: underline; }
.breadcrumb-bar a:hover { text-decoration: none; }
.breadcrumb-separator { color: var(--color-gray-400); display: inline-flex; align-items: center; }
.breadcrumb-current { color: var(--color-black); font-weight: 700; }

/* ===== GALLERY ===== */
.section-gallery { background-color: var(--color-bg-beige); padding-top: 100px; padding-bottom: 100px; }

/* ===== ギャラリー一覧（下層ページ） ===== */
.section-gallery-list { background-color: var(--color-bg-mint); }
.gallery-list-card { padding: 16px 16px 36px 16px; }


/* ===== ページネーション ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination-item {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-navy);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--color-navy);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.pagination-item:hover:not(.is-current) { background-color: var(--color-gray-200); }
.pagination-item.is-current { background-color: var(--color-navy); color: var(--color-white); }
.pagination-item.is-ellipsis { border: none; width: auto; }
.gallery-card-padding { padding: 16px; }       
.gallery-card-padding:hover .card-gallery-image {
    opacity: 0.82;
    transition: opacity 0.8s ease-out,
}
.card-gallery-image { width: 100%; aspect-ratio: 127 / 70; }
.tag-manga {
    background-color: var(--color-green-manga);
    font-size: 0.75rem;
    padding: 4px 8px;
    color: var(--color-white);
    line-height: 1.4;
    border-radius: 4px;
}
.tag-video {
    background-color: var(--color-red-video);
    font-size: 12px;
    padding: 4px 8px;
    color: var(--color-white);
    line-height: 1.4;
    border-radius: 4px;
}
.tag-solution {
    background-color: var(--color-navy);
    font-size: 12px;
    padding: 4px 8px;
    color: var(--color-white);
    line-height: 1.4;
    border-radius: 4px;
}


/* ===== MESSAGE ===== */
.section-message {
    background-color: var(--color-green-primary);
    padding-top: 100px;
    padding-bottom: 100px;
    color: var(--color-white);
}
.message-columns { gap: 40px; }
.message-photo {
    width: 200px;
    height: 200px;
    border: none;
}
.message-divider { border-bottom: 1px solid var(--color-white-30); }
.message-body { color: var(--color-white); }
.message-meta { color: var(--color-white-80); }

/* ===== LINK (CTA) ===== */
.cta-card { background-color: var(--color-bg-green-pale); padding: 2rem; }
.cta-card:last-child { background-color: var(--color-bg-orange-pale); }
.cta-card-img { width: 100%; height: 260px; padding: 6px 30px; overflow: hidden; }
.cta-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cta-card .btn-link { width: 100%; }
.cta-card .h3-link {font-size: 1.5rem; font-weight: 700; margin-bottom: 12px;}

/* ===== レポートタグ ===== */
.tag-industry { background-color: var(--color-green-industry); color: var(--color-white); }
.tag-youth    { background-color: var(--color-blue-youth); color: var(--color-white); }
.tag-eco      { background-color: var(--color-blue-eco); color: var(--color-white); }

/* ===== 記事詳細（report/gallery 各ページ） ===== */
.section-article-detail {
    background-color: var(--color-bg-mint);
    padding-top: 60px;
    padding-bottom: 60px;
}
.post-body h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}
.post-body h3 {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid var(--color-green-primary);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
.post-body p {
    margin-bottom: 30px;
}
.post-body li {
    margin-bottom: 15px;
}
.post-body .img-placeholder {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ===== ライトボックス（本文画像の拡大表示） ===== */
.lightbox-trigger {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.lightbox-trigger:focus-visible {
    outline: 3px solid var(--color-green-primary);
    outline-offset: -3px;
}
.lightbox-dialog {
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    max-width: min(92vw, 1000px);
    max-height: 90vh;
}
.lightbox-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}
.lightbox-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: lightbox-fade-in 0.25s ease-out;
}
@keyframes lightbox-fade-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-toolbar {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-bottom: 8px;
}
.lightbox-body {
    min-height: 0;
    overflow: auto;
}
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    background-color: var(--color-white);
}
.lightbox-caption {
    color: var(--color-white);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}
.lightbox-caption[hidden] {
    display: none;
}
.lightbox-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    color: var(--color-black);
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 0.8; }
.lightbox-close:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}

/* ===== スキップリンク ===== */
.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 100;
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

/* ===== フッター ===== */
.section-footer {
    overflow-x: hidden;
    overflow-x: clip;
    background-color: var(--color-bg-gray);
}
.footer-copyright { color: var(--color-green-dark); letter-spacing: -0.25px; }
.resonaInfoWrap {
    margin-top: 34px;
    padding-top: 30px;
    background-color: var(--color-white);
    box-shadow: 0 0 0 100vmax var(--color-white);
    clip-path: inset(0 -100vmax);
}
.footerRenewal2024Inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.resonaGroup {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
}
.resonaGroup dt,
.resonaGroup dd {
    margin: 0;
}
.resonaGroup dt img {
    display: block;
    width: 253px;
    height: auto;
}
.resonaGroup ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.resonaGroup li {
    flex-shrink: 0;
}
.resonaGroup a {
    display: block;
    text-decoration: none;
}
.resonaGroup li img {
    display: block;
    height: 17px;
    width: auto;
}
.footerLogoResona img {
    height: 16px;
}
.footerLogoSaitama img {
    height: 17px;
}
.footerLogoKansaimirai img {
    height: 17px;
}
.footerLogoMinato img {
    height: 16px;
}
.footerRenewal2024 figure {
    flex-shrink: 0;
    margin: 0;
}
.footerRenewal2024 figure img {
    display: block;
    width: 291px;
    height: auto;
}
.copyRight {
    margin: 0 0 -3rem;
    padding: 18px 0 3rem;
    background-color: var(--color-white);
    box-shadow: 0 0 0 100vmax var(--color-white);
    clip-path: inset(0 -100vmax);
    color: var(--color-green-primary);
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0;
}
.copyRight small {
    font-size: inherit;
}
.footer-hr {
    border: none;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
/* ===== タブレット レスポンシブ (max-width: 1080px ~ 768px) ===== */
@media (min-width: 768px) and (max-width: 1080px) {
    .header-brand-name { font-size: 1rem; }
    .header-brand-sub  { font-size: 0.8125rem; }
    .header-brand-wrap { gap: 4px; }
    .header-divider    { height: 22px; margin: 0 12px; }
    .header-logo       { height: 30px; }
    .header-global-nav { align-items: center; margin-left: 20px; }
    .header-global-nav .nav-link {
        font-size: 1rem;
    }
    .footerRenewal2024Inner {
        justify-content: center;
    }
    .resonaGroup {
        justify-content: center;
        flex-wrap: wrap;
    }
    .resonaGroup ul {
        justify-content: center;
    }
    .copyRight {
        text-align: center;
    }
}

@media (max-width: 1080px) {
    .nav-link::after { display: none; }
}

@media (min-width: 768px) and (max-width: 860px) {
    .header-brand-name { font-size: 0.9375rem; }
    .header-brand-sub  { font-size: 0.75rem; }
    .header-divider    { margin: 0 8px; }
    .header-logo       { height: 28px; }
    .header-global-nav .nav-link {
        font-size: 1rem;
    }
}

/* ===== SP レスポンシブ (max-width: 767px) ===== */
@media (max-width: 767px) {
    .h2-ja, .h2-ja-white { font-size: 1.5rem; }
    .h2-en, .h2-en-white { display: block; font-size: 0.875rem; margin-bottom: 5px !important; }
    /* ヘッダー */
    .header-brand-wrap { padding: 8px 8px 6px; }
    .header-brand-name { font-size: 0.875rem; }
    .header-brand-sub  { font-size: 0.6875rem; }
    .header-logo       { width: 92px; height: auto; }
    .header-divider    { height: 22px; margin: 0 12px; }

    /* メインビジュアル */
    .section-mainvisual { padding: 15px; min-height: 300px; }

    /* CONCEPT: SPでは背景画像を非表示にしてimg要素を表示 */
    .section-concept {
        padding-top: 55px;
        padding-bottom: 55px;
        background-image: url('/about/doutokuginko/images/concept_bgimg_sp.webp');
        background-position: top center;
        scroll-margin-top: 76px;
    }
    .concept-text {
        color: var(--color-gray-200);
        font-size: 1rem;
    }
    .concept-text img { display: block; }

    /* REPORT */
    .section-reports {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* HISTORY: 下段ブロックに上余白 */
    .history-lower-row { margin-top: 40px; }

    /* HISTORY: 画像エリアをアスペクト比固定から解除 */
    .section-history {
        padding-top: 50px;
        padding-bottom: 50px;
        scroll-margin-top: 76px;
    }
    .section-history h3 {font-size: 1.375rem;}
    .history-contentArea > .history-content:first-child {margin-bottom: 40px}

    #history .aspect-\[4\/3\] { aspect-ratio: auto; }
    #history .img-placeholder img { width: 100%; height: auto; max-height: none; }
    #history .img-placeholder + p { font-size: 0.75rem; }
    #history .flex.gap-10 { gap: 20px; }

    /* 各セクション導入文 左揃え */
    #cta .text-center p { text-align: left; }

    .breadcrumb-bar nav {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .breadcrumb-bar a,
    .breadcrumb-bar span {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .section-gallery { padding-top: 50px; padding-bottom: 50px; }
    .section-gallery-list {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .section-gallery-list > div > .text-center:first-child {
        margin-bottom: 40px !important;
    }
    /* REPORTS・GALLERY 導入文: <br>位置で改行し中央寄せ */
    .section-reports .text-center p,
    .section-gallery .text-center p { text-align: center; }

    /* 装飾プラスアイコン: SPは左上のみ */
    .section-reports::before,
    .section-gallery-list::before {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }

    /* CTA セクション上下余白 */
    #cta { padding-top: 50px; padding-bottom: 50px; }

    /* CTA カード padding */
    .cta-card { padding: 20px; }
    .cta-card .h3-link {font-size: 1.125rem;}

    /* 記事詳細 */
    .section-footer {
        padding-bottom: 0 !important;
    }
    .resonaInfoWrap {
        margin-top: 40px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .footerRenewal2024Inner,
    .resonaGroup {
        flex-direction: column;
        justify-content: flex-start;
        gap: 18px;
    }
    .resonaGroup dt img {
        width: 223px;
    }
    .resonaGroup dd {
        width: 100%;
    }
    .resonaGroup ul {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 14px 20px;
    }
    .resonaGroup li img,
    .footerLogoResona img,
    .footerLogoSaitama img,
    .footerLogoKansaimirai img,
    .footerLogoMinato img {
        height: 13px;
    }
    .footerRenewal2024 figure img {
        width: 243px;
    }
    .copyRight {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        margin: 0;
        padding: 4px 12px;
        background-color: var(--color-green-primary);
        box-shadow: 0 0 0 100vmax var(--color-green-primary);
        clip-path: inset(0 -100vmax);
        color: var(--color-white);
        font-size: 0.625rem;
        text-align: center;
        white-space: nowrap;
    }

    .section-article-detail {
        padding-top: 40px;
        padding-bottom: 40px;
    }

}
