body {
  font-family: "Noto Serif JP", serif;
}


/* ===== HERO ===== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-logo {
    position: absolute;
    top: 32px;
    left: 40px;
    font-size: 14px;
    letter-spacing: 0.15em;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
}

.hero-inner {
    margin-left: 80px;
    max-width: 720px;
    color: #ff0000;
}

.hero-inner h1 {
    font-size: 48px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.hero-inner p {
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #4d4d4d;
}

/* ===== HEADER/NAVI ===== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
}

.site-logo a {
    font-size: 14px;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

/* =========================
グローバルナビ
========================= */

.global-nav {
    background: #fff;
    border-bottom: 3px solid #e60012;
}

.global-nav .global-nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.global-nav .global-nav-list li {
    flex: 1;
    border-left: 1px solid #ccc;
}

.global-nav .global-nav-list li:first-child {
    border-left: none;
}

.global-nav .global-nav-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 110px;
    text-decoration: none;
}

.global-nav .jp {
    color: #e60012;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.2;
}

.global-nav .en {
    color: #999;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* =========================
ドロップダウン（挨拶）
========================= */

.global-nav .menu-item-has-children {
    position: relative;
}

.global-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    width: 320px;padding: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
}

.global-nav .menu-item-has-children.open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 10px);
}

.global-nav .sub-menu li {
    border: none;
    width: 100%;
}

.global-nav .sub-menu li+li {
    margin-top: 8px;
}

.global-nav .sub-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.global-nav .sub-menu .jp {
    display: block;
    font-weight: bold;
    color: #e60012;
}

.global-nav .sub-menu .en {
    display: block;
    font-size: 12px;
    color: #999;
}

/* hover時 */
.global-nav .sub-menu a:hover {
    background: linear-gradient(35deg, #e20909, #ff0000);
    color: #fff;
}

.global-nav .sub-menu a:hover .jp {
    color: #ffffff;
    /* 日本語：白 */
}

.global-nav .sub-menu a:hover .en {
    color: #ccc;
    /* 英語：グレー */
}

.global-nav .sub-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

/* ===== SIDEBAR ===== */

:root {
    --sidebar-width: 260px;
}

.wrapper {
    display: flex;
    background-color: white;
}

.sidebar {
    width: 260px;
        flex: 0 0 260px;
    padding: 30px 20px;
    background: #ffffff;
    overflow-y: auto;

    position: sticky;
    top: 0;
    height: 100vh;

    border-right: 1px solid #e5e5e5;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-menu li a {
    position: relative;
    display: block;
    height: 110px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.menu-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: 0.4s;
}

.menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.menu-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff2d2d, #b80000);
    border-radius: 28%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.menu-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sidebar-menu-text {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    z-index: 2;
}

.menu-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    z-index: 2;
}

.sidebar-menu li a:hover .menu-bg {
    transform: scale(1.08);
}

.wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.main {
    flex: 1;
    min-width: 0;
}

/* ===== TOP MESSAGE ===== */
.top-message {
    position: relative;
    padding: 100px 80px;
    min-height: 600px;
    background: url("../images/top2.png") no-repeat;
    background-size: cover;
    background-position: 22% center;
    font-family: "Noto Serif JP", serif;
    overflow: hidden;
}

.top-message::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.6) 80%,
            rgba(255, 255, 255, 1) 100%),

        linear-gradient(to right,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 40%,
            rgba(255, 255, 255, 0.6) 70%,
            rgba(255, 255, 255, 0.2) 90%);
}

.top-message>* {
    position: relative;
    z-index: 2;
}

.top-message h1 {
    font-size: 42px;
    color: #ff0000;
    margin-bottom: 30px;
}

.top-message p {
    font-size: 18px;
    line-height: 2;
    white-space: pre-line;
    max-width: 700px;
}

/* ===== GRID ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 80px;
}

.image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.6s ease;
}

.image-card.large {
    height: 420px;
}

.image-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0) 70%);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    z-index: 2;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    margin-bottom: 10px;
}

.card-title img {
    height: 28px;
    width: auto;
}

.card-icon {
    width: 28px;
    height: auto;
}

.card-text h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.card-text p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.card-text .link {
    font-size: 14px;
    text-decoration: none;
    color: white;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* ===== PHILOSOPHY ===== */
.philosophy {
    position: relative;
    text-align: center;
    padding: 100px 20px;
    background: #ffffff;
}

.philosophy::before,
.philosophy::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e60012;
}

.philosophy::before {
    top: 0;
}

.philosophy::after {
    bottom: 0;
}

.philosophy-en {
    display: block;
    color: #e60012;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.philosophy-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.philosophy-catch {
    font-size: 24px;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 20px;
}

.philosophy-sub {
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
}

.philosophy-sub span {
    color: #e60012;
    font-weight: bold;
}

.btn-red {
    display: inline-block;
    padding: 14px 30px;
    background: #e60012;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-red:hover {
    background: #b8000e;
    transform: translateY(-3px);
}

/* ===== FEATURE SECTION ===== */
.feature-section {
    padding: 100px 60px;
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.2));
}

.feature-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.feature-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.large {
    height: 300px;
}

.wide {
    grid-column: 1 / 2;
    height: 380px;
}

.feature-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.small {
    height: 175px;
}

.feature-card:hover img {
    transform: scale(1.05);
    transition: 0.4s;
}

/* ===== NEWS ===== */
.news-section {
    padding: 70px 20px;
    background: #ffffff;
}

.news-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.news-label {
    display: inline-block;
    background: #ffe5e5;
    color: #e60012;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-header h2 {
    font-size: 36px;
}

.news-all {
    color: #e60012;
    text-decoration: none;
    font-size: 14px;
}

.news-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 30px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #fafafa;
}

.news-date {
    width: 120px;
    text-align: center;
}

.news-date .year {
    display: block;
    font-size: 14px;
    color: #888;
}

.news-date .day {
    font-size: 22px;
    font-weight: bold;
    color: #e60012;
}

.news-content {
    flex: 1;
}

.news-category {
    display: inline-block;
    background: #e60012;
    color: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
}

.news-arrow {
    font-size: 20px;
    color: #999;
}

/* ===== LOGO ===== */
.logo-marquee {
    background: #fff;
    padding: 40px 0;
    overflow: hidden;
}

.logo-row {
    overflow: hidden;
    white-space: nowrap;
}

.logo-track {
    display: inline-flex;
    gap: 60px;
    animation: scroll-left 20s linear infinite;
}

.logo-track img {
    height: 60px;
    width: auto;
}

/* 上段：右方向 */
.row-right .logo-track {
    animation-name: scroll-right;
}

/* 下段：左方向 */
.row-left .logo-track {
    animation-name: scroll-left;
}

.row-left {
    margin-top: 50px;
}

/* アニメーション定義 */

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===== CTA ===== */
.cta {
    padding: 140px 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg,
            #ff1a1a 0%,
            #e60012 35%,
            #c40010 65%,
            #99000c 100%);
}

.cta-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: #e60012;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
}

/* =========================
レスポンシブ（SP）
========================= */
@media screen and (max-width: 768px) {

    /* ===== HERO ===== */
    .hero {
        height: 60vh;
        min-height: 420px;
        padding: 0 20px;
    }

    .hero-logo {
        top: 20px;
        left: 20px;
        font-size: 12px;
    }

    .hero-inner {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-inner h1 {
        font-size: 28px;
    }

    .hero-inner p {
        font-size: 14px;
    }

    /* ===== HEADER ===== */
    .header-inner {
        padding: 20px;
    }

    /* ===== TOP MESSAGE ===== */
    .top-message {
        padding: 60px 20px;
        min-height: auto;
        background-position: center;
    }

    .top-message h1 {
        font-size: 26px;
    }

    .top-message p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* ===== GRID ===== */
    .grid-2 {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 20px;
    }

    .image-card.large {
        height: 260px;
    }

    /* ===== PHILOSOPHY ===== */
    .philosophy {
        padding: 60px 20px;
    }

    .philosophy-title {
        font-size: 24px;
    }

    .philosophy-catch {
        font-size: 18px;
    }

    /* ===== FEATURE ===== */
    .feature-section {
        padding: 60px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: auto;
        height: 240px;
    }

    .small {
        height: 140px;
    }

    /* ===== NEWS ===== */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-header h2 {
        font-size: 26px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }

    .news-date {
        width: auto;
        text-align: left;
    }

    /* ===== LOGO ===== */
    .logo-track img {
        height: 40px;
    }

    /* ===== CTA ===== */
    .cta {
        padding: 80px 20px;
    }

    .cta h2 {
        font-size: 26px;
    }

    .cta p {
        font-size: 14px;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* =========================
SP時ナビ消す
========================= */
@media (max-width:768px) {
    .global-nav {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .wrapper {
        display: block;
    }
}

/* =========================
ハンバーガー
========================= */
.sp-menu-btn {
    display: none;
}

@media (max-width:768px) {
    .sp-menu-btn {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 26px;
        height: 22px;
        flex-direction: column;
        justify-content: space-between;
        z-index: 10000;
        cursor: pointer;
    }

    .sp-menu-btn span {
        height: 2px;
        background: #333;
    }
}

/* =========================
SP MENU BASE
========================= */

.sp-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    padding: 80px 30px 40px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ff0000, #b40000);
    color: #fff;
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 9999;
    overflow-y: auto;
}

.sp-menu.open {
    transform: translateX(0);
}

.sp-menu-inner {
    padding: 0;
    color: #fff;
}

/* =========================
閉じるボタン（画像版）
========================= */

.sp-close {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.sp-close::before,
.sp-close::after {
    display: none;
}

.sp-close img {
    width: 100%;
    height: 100%;
}

/* =========================
MENU LIST
========================= */

.sp-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-menu-list>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================
＋画像
========================= */
.sp-menu-list li.menu-item-has-children>a {
    position: relative;
}

.sp-menu-list li.menu-item-has-children>a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 20px;
    height: 20px;
    background: url("../images/plus.png") no-repeat center;
    background-size: contain;
    transition: transform .3s ease;
}

.sp-menu-list li.open.menu-item-has-children>a::after {
    transform: translateY(-50%) rotate(180deg);
}

.sp-menu-list>li>a {
    position: relative;
}

/* =========================
サブメニュー
========================= */
.sp-menu-list .sub-menu {
    display: none;
    margin: 0;
    padding: 0;
}

.sp-menu-list li.open .sub-menu {
    display: block;
}

.sp-menu-list .sub-menu li {
    margin: 12px 0;
}

.sp-menu-list .sub-menu a {
    display: block;
    text-align: right;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

/* =========================
CTAボタン
========================= */
.sp-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    background: #fff;
    color: #e60012;
    border-radius: 12px;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 4px 5px 1px rgb(128 39 39 / 99%);
}

.sp-contact-btn img {
    width: 20px;
    height: auto;
}

/* =========================
スマホ微調整（header-pageと完全一致）
========================= */
@media(max-width:768px) {

    .sp-menu {
        width: 80%;
        max-width: none;
        padding: 70px 20px 30px;
    }

    .sp-close {
        top: 20px;
        left: 20px;
        width: 24px;
        height: 24px;
    }

    .sp-menu-list>li>a {
        font-size: 18px;
        padding: 16px 0;
    }

    .sp-menu-list .sub-menu a {
        font-size: 15px;
    }

    .sp-contact-btn {
        font-size: 16px;
        padding: 12px;
        border-radius: 10px;
    }
}
/* =========================
SPメニューを2枚目の形に強制調整
========================= */

.sp-menu-list .en,
.sp-menu-list .menu-en,
.sp-menu-list small {
    display: none !important;
}

.sp-menu-list>li>a {
    display: block !important;
    text-align: left;
    position: relative;
}

.sp-menu-list li.menu-item-has-children>a::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
}

.sp-menu-list .sub-menu a {
    text-align: right;
    padding-right: 0;
}

.sp-menu-list>li>a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.sp-menu-list>li>a {
    font-size: 20px;
    font-weight: 700;
}

.sp-menu-list .sub-menu {
    list-style: none;
    padding-left: 0;
}

@media (min-width:769px) {

    .global-nav .menu-item-has-children .sub-menu {
        display: none;
    }
}

.menu-item-has-children .sub-menu {
    display: none;
}

@media (min-width:769px) {

    .global-nav .sub-menu {
        display: none;
    }

    .global-nav .menu-greeting.open .sub-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 10px);
    }
}

body.menu-open .sp-menu-btn {
    display: none;
}