/* ========================================
   I-KAN Corporate Site - Main CSS
   ======================================== */

/* --- Variables --- */
:root {
    --navy: #002B5C;
    --blue: #009FE8;
    --dark: #0f172a;
    --gray: #f8fafc;
    --slate: #334155;
}

/* --- Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
    color: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem 0;
    transition: padding 0.3s;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 36px;
    max-width: 160px;
    width: auto;
    height: auto;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav a {
    color: var(--navy);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--blue);
}

.nav-btn {
    background: var(--navy);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
}

.nav-btn:hover {
    background: var(--blue);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--navy);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    /* Increased from 1rem */
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
}

.mobile-menu a {
    color: var(--navy);
    padding: 0.875rem 0;
    /* Increased from 0.5rem for better touch target */
    border-bottom: 1px solid #f3f4f6;
    display: block;
}

/* --- Hero --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 43, 92, 0.2);
    /* mix-blend-mode: multiply; -- Removed to fix vignette blur */
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
    }
}

.hero-label {
    position: relative;
    top: auto;
    left: auto;
    border-top: 4px solid var(--blue);
    padding-top: 0.5rem;
    z-index: 10;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-label {
        position: absolute;
        top: 6rem;
        left: 3rem;
        margin-bottom: 0;
        z-index: 1;
        /* Title behind */
    }
}

.hero-label p {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-label p:first-child {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero-label p:first-child {
        font-size: 1.125rem;
    }
}

.hero-label p:last-child {
    font-size: 0.625rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .hero-label p:last-child {
        font-size: 0.75rem;
    }
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 3.5rem;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    margin-top: 0;
    position: relative;
    z-index: 20;
    /* Title front */
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 10rem;
        line-height: 0.85;
        letter-spacing: -0.05em;
    }
}

.hero-title .accent {
    color: var(--blue);
}

.hero-card {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: left;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    backdrop-filter: blur(4px);
    border-left: 4px solid var(--navy);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 20;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero-card {
        position: absolute;
        bottom: 3rem;
        right: 3rem;
        text-align: right;
        width: auto;
        max-width: 28rem;
        padding: 1.5rem;
        margin-top: 0;
    }
}

.hero-card h2 {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .hero-card h2 {
        font-size: 1.5rem;
    }
}

.hero-card p {
    color: var(--slate);
    font-size: 0.8125rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-card p {
        font-size: 0.875rem;
        line-height: 1.75;
    }
}

.hero-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--blue);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .hero-card a {
        margin-top: 1rem;
        font-size: 1.125rem;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
}

@media (min-width: 768px) {
    .scroll-hint {
        display: flex;
        bottom: 2rem;
    }
}

.scroll-hint span:first-child {
    display: block;
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.6);
}

.scroll-hint span:last-child {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* --- Section --- */
.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-light {
    background: #fff;
}

.section-gray {
    background: var(--gray);
}

.section-dark {
    background: var(--navy);
    color: #fff;
}

.section-dark .lead-heading,
.section-dark h2,
.section-dark p {
    color: #fff;
}

.section-navy {
    background: var(--navy);
    color: #fff;
}

/* --- Vision Section --- */
.section-vision {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0;
}

.philosophy-vision .tag {
    background: var(--blue);
}

.vision-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vision-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 43, 92, 0.85);
}

.vision-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .vision-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }
}

.vision-box,
.mission-box {
    text-align: center;
    color: #fff;
    max-width: 500px;
}

.vision-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .vision-subtitle {
        font-size: 0.875rem;
    }
}

.vision-box h2,
.mission-box h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {

    .vision-box h2,
    .mission-box h2 {
        font-size: 1.75rem;
    }
}

.vision-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .vision-desc {
        font-size: 0.875rem;
    }
}

.vision-box .tag,
.mission-box .tag {
    background: var(--blue);
}

/* --- Renri Tree Section --- */
.renri-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.renri-header {
    text-align: center;
}

.renri-header .lead-heading {
    margin-bottom: 0;
}

.renri-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .renri-content {
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 4rem;
    }
}

.renri-img {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .renri-img {
        width: 45%;
    }
}

.renri-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s;
}

.renri-img:hover img {
    filter: grayscale(0%);
}

.renri-text {
    width: 100%;
}

@media (min-width: 1024px) {
    .renri-text {
        width: 55%;
        padding-top: 2rem;
    }
}

.renri-text p {
    color: var(--slate);
    line-height: 2;
    text-align: justify;
}

.renri-text .link-arrow {
    margin-top: 1.5rem;
    display: inline-flex;
}

/* --- Lead Story --- */
.lead {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .lead {
        flex-direction: row;
    }
}

.lead.reverse {
    flex-direction: column;
}

@media (min-width: 1024px) {
    .lead.reverse {
        flex-direction: row-reverse;
    }
}

.lead-img {
    width: 100%;
    position: relative;
}

@media (min-width: 1024px) {
    .lead-img {
        width: 41.666%;
    }
}

.lead-img-inner {
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lead-img img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s;
}

.lead-img:hover img {
    filter: grayscale(0%);
}

.lead-box {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    background: var(--navy);
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--blue);
    z-index: 20;
    display: none;
}

@media (min-width: 768px) {
    .lead-box {
        display: block;
    }
}

.lead-box p {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.lead-box p:first-child {
    font-size: 2.25rem;
}

.lead-box .accent {
    color: var(--blue);
}

.lead-box p:last-child {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.lead-deco {
    position: absolute;
    top: 3rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 43, 92, 0.1);
    z-index: -1;
}

.lead-text {
    width: 100%;
    padding-top: 3rem;
}

@media (min-width: 1024px) {
    .lead-text {
        width: 58.333%;
    }
}

.tag {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.lead-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .lead-heading {
        font-size: 3rem;
    }
}

.underline-blue {
    position: relative;
    display: inline-block;
}

.underline-blue::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 159, 232, 0.3);
    z-index: -1;
}

.lead-cols {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .lead-cols {
        flex-direction: row;
    }
}

.lead-col {
    width: 100%;
}

@media (min-width: 768px) {
    .lead-col {
        width: 50%;
    }
}

.drop-cap::first-letter {
    float: left;
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 0.8;
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--navy);
}

.lead-col p {
    color: var(--slate);
    line-height: 2;
    text-align: justify;
    font-weight: 500;
}

.lead-col p.small {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-weight: 700;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 0.25rem;
    transition: color 0.3s;
}

.link-arrow:hover {
    color: var(--blue);
}

/* --- Domains --- */
.domains-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .domains-header {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
        margin-bottom: 4rem;
    }
}

.domains-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
}

@media (min-width: 768px) {
    .domains-header h2 {
        font-size: 4.5rem;
    }
}

.domains-header p {
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.domains-header .right {
    text-align: right;
    display: none;
}

@media (min-width: 768px) {
    .domains-header .right {
        display: block;
    }
}

.domains-header .right p {
    font-size: 0.875rem;
    color: #6b7280;
}

.domain {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .domain {
        flex-direction: row;
    }
}

.domain.reverse {
    flex-direction: column;
}

@media (min-width: 768px) {
    .domain.reverse {
        flex-direction: row-reverse;
    }
}

.domain-img {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .domain-img {
        width: 50%;
    }
}

.domain-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s;
}

.domain:hover .domain-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.domain-text {
    width: 100%;
}

@media (min-width: 768px) {
    .domain-text {
        width: 50%;
    }
}

.domain.reverse .domain-text {
    text-align: right;
}

.domain-num {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.domain.reverse .domain-num {
    justify-content: flex-end;
}

.domain-num span {
    font-family: 'Oswald', sans-serif;
    font-size: 3.75rem;
    font-weight: 700;
    color: #d1d5db;
    transition: color 0.3s;
}

.domain:hover .domain-num span {
    color: var(--blue);
}

.domain-num h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.05em;
}

.domain-text h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .domain-text h4 {
        font-size: 1.875rem;
    }
}

.domain-text>p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.domain.reverse .domain-text>p {
    margin-left: auto;
    max-width: 32rem;
}

.domain-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    list-style: none;
}

.domain.reverse .domain-list {
    justify-items: end;
}

.domain-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
}

.domain-list li span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--blue);
}

.btn {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 0.75rem 2rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--blue);
}

/* --- Cases --- */
.cases-header {
    text-align: center;
    margin-bottom: 4rem;
}

.cases-header span {
    display: block;
    color: var(--blue);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cases-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .cases-header h2 {
        font-size: 3.75rem;
    }
}

.cases-header p {
    margin-top: 1rem;
    opacity: 0.7;
    font-weight: 500;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-card {
    display: block;
}

.case-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.case-card:hover .case-img {
    border-color: var(--blue);
}

.case-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.7s;
}

.case-card:hover .case-img img {
    transform: scale(1.1);
}

.case-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
}

.case-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.case-card:hover h3 {
    color: var(--blue);
}

.case-card p {
    font-size: 0.875rem;
    opacity: 0.6;
    line-height: 1.75;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* --- Approach Cards --- */
.approach-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.approach-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.approach-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    padding: 1rem 1.5rem 0.5rem;
}

.approach-card p {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.75;
    padding: 0 1.5rem 1.5rem;
}

/* --- Experience Section --- */
.section-experience {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .section-experience {
        padding: 8rem 0;
    }
}

.experience-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .experience-header {
        margin-bottom: 4rem;
    }
}

.experience-label {
    display: inline-block;
    color: var(--blue);
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.experience-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .experience-header h2 {
        font-size: 4rem;
    }
}

.experience-header p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.8;
}

.sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* Showcase Grid */
.experience-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .experience-showcase {
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
    }
}

/* Feature Card (レモンケーキ) */
.experience-feature {
    position: relative;
    display: block;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .experience-feature {
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .experience-feature {
        height: 100%;
        min-height: 560px;
    }
}

.experience-feature-bg {
    position: absolute;
    inset: 0;
}

.experience-feature-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-feature:hover .experience-feature-bg img {
    transform: scale(1.05);
}

.experience-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 43, 92, 0) 0%,
            rgba(0, 43, 92, 0.3) 40%,
            rgba(0, 43, 92, 0.85) 100%);
    transition: background 0.5s;
}

.experience-feature:hover .experience-feature-overlay {
    background: linear-gradient(180deg,
            rgba(0, 43, 92, 0) 0%,
            rgba(0, 43, 92, 0.4) 40%,
            rgba(0, 43, 92, 0.9) 100%);
}

.experience-feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #fff;
    z-index: 10;
}

@media (min-width: 768px) {
    .experience-feature-content {
        padding: 2.5rem;
    }
}

.experience-category {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.experience-feature-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .experience-feature-content h3 {
        font-size: 2.25rem;
    }
}

.experience-feature-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.experience-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.experience-cta span {
    transition: transform 0.3s;
}

.experience-feature:hover .experience-cta {
    background: #fff;
    color: var(--navy);
}

.experience-feature:hover .experience-cta span {
    transform: translateX(4px);
}

.experience-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

/* Sub Cards Grid */
.experience-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .experience-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .experience-sub-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Sub Card */
.experience-sub-card {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    border-radius: 8px;
}

@media (min-width: 1024px) {
    .experience-sub-card {
        height: calc(50% - 1rem);
        min-height: 260px;
    }
}

.experience-sub-bg {
    position: absolute;
    inset: 0;
}

.experience-sub-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-sub-card:hover .experience-sub-bg img {
    transform: scale(1.08);
}

.experience-sub-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 43, 92, 0) 0%,
            rgba(0, 43, 92, 0.75) 100%);
    transition: background 0.4s;
}

.experience-sub-card:hover .experience-sub-overlay {
    background: linear-gradient(180deg,
            rgba(0, 43, 92, 0.1) 0%,
            rgba(0, 43, 92, 0.85) 100%);
}

.experience-sub-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 10;
}

.experience-sub-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.experience-sub-content p {
    font-size: 0.8125rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.experience-cta-small {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--blue);
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.experience-sub-card:hover .experience-cta-small {
    border-bottom-color: var(--blue);
}

/* --- Timeline --- */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.timeline-item {
    text-align: center;
    flex: 1 1 150px;
    max-width: 180px;
}

.timeline-year {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
}

.timeline-item p {
    color: var(--slate);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Timeline Mobile Responsive */
@media (max-width: 767px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .timeline-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        max-width: 100%;
        padding: 1rem;
        background: #fff;
        border-left: 4px solid var(--blue);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .timeline-year {
        font-size: 1.75rem;
        min-width: 4.5rem;
    }

    .timeline-item p {
        margin-top: 0;
        flex: 1;
    }
}

/* --- CTA Cards --- */
.cta-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s, transform 0.3s;
}

.cta-card:hover {
    background: var(--blue);
    transform: translateY(-4px);
}

.cta-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Certification Cards --- */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.cert-card {
    flex: 0 0 calc(33.333% - 1.4rem);
    background: #fff;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s;
}

@media (max-width: 992px) {
    .cert-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .cert-card {
        flex: 0 0 100%;
    }
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cert-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
}

.cert-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 1rem;
    line-height: 1.5;
}

.cert-card p {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 0.5rem;
}

/* --- Activity Cards --- */
.activity-card {
    background: #fff;
    border-left: 4px solid var(--blue);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.activity-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.activity-card p {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.75;
}

/* --- News --- */
.news-header {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
}

.news-header span {
    flex-grow: 1;
    height: 1px;
    background: #d1d5db;
    margin-bottom: 0.5rem;
}

.news-header a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue);
}

.news-header a:hover {
    text-decoration: underline;
}

.news-list {
    max-width: 56rem;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
    }
}

.news-date {
    width: 8rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.news-content {
    flex: 1;
}

.news-tag {
    display: inline-block;
    background: #f3f4f6;
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-weight: 700;
    font-size: 1.125rem;
    transition: color 0.3s;
    cursor: pointer;
}

.news-content h3:hover {
    color: var(--blue);
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: #fff;
    padding: 6rem 0 3rem;
    border-top: 8px solid var(--blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    max-height: 48px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-info p {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 2;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: var(--blue);
}

.footer-links h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-policy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.6875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-policy {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0;
        text-align: left;
    }

    .footer-policy a:not(:last-child)::after {
        content: '|';
        margin: 0 1rem;
        opacity: 0.5;
    }
}

.footer-policy a {
    white-space: nowrap;
    opacity: 1;
}


/* --- Utilities --- */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.img-zoom {
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===========================================
   MOBILE RESPONSIVE ENHANCEMENTS
   =========================================== */

/* --- Regional Club Section --- */
.regional-club {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.regional-club-header {
    text-align: center;
}

.regional-club-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .regional-club-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
}

.regional-club-img {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .regional-club-img {
        width: 50%;
    }
}

.regional-club-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.regional-club-text {
    width: 100%;
    color: #fff;
    text-align: center;
}

@media (min-width: 1024px) {
    .regional-club-text {
        width: 50%;
        text-align: left;
    }
}

.regional-club-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
}

/* --- CEO Section --- */
.ceo-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ceo-header {
    text-align: center;
}

.ceo-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .ceo-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }
}

.ceo-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .ceo-img {
        width: 35%;
        max-width: none;
        margin: 0;
    }
}

.ceo-img img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ceo-text {
    width: 100%;
}

@media (min-width: 1024px) {
    .ceo-text {
        width: 60%;
    }
}

.ceo-text p {
    color: var(--slate);
    line-height: 2;
}

.ceo-name {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.ceo-text .link-arrow {
    margin-top: 1rem;
    display: inline-flex;
}

/* --- Activity Cards Mobile --- */
@media (max-width: 767px) {
    .activity-card {
        display: flex;
        flex-direction: column;
        /* Force vertical stacking on mobile */
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .activity-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .activity-card p {
        font-size: 0.95rem;
        /* Increased specific size */
        line-height: 1.75;
        color: #334155;
        /* Darker slate for readability */
    }
}

/* --- Footer Mobile Compact --- */
@media (max-width: 767px) {
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-info p {
        font-size: 0.8125rem;
        line-height: 1.75;
        margin-bottom: 1rem;
    }

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

    .footer-links ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem 1rem;
    }

    .footer-links h3 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0.25rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }
}

/* --- Domain Card (New Structure) --- */
.domain-card {
    margin-bottom: 4rem;
}

.domain-header {
    margin-bottom: 1.5rem;
}

.domain-header .domain-num {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.domain-header .domain-num span {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d1d5db;
}

.domain-header .domain-num h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.05em;
}

.domain-header h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.domain-card .domain-img {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.domain-card .domain-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s;
}

.domain-card:hover .domain-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.domain-body>p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.domain-body .domain-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.domain-body .domain-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
}

.domain-body .domain-list li span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--blue);
}

@media (min-width: 768px) {
    .domain-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 2rem;
    }

    .domain-header {
        grid-column: 1;
        grid-row: 1;
    }

    .domain-card .domain-img {
        grid-column: 2;
        grid-row: 1 / 3;
        margin-bottom: 0;
    }

    .domain-card .domain-img img {
        height: 100%;
        min-height: 350px;
    }

    .domain-body {
        grid-column: 1;
        grid-row: 2;
    }

    /* Reverse layout for alternating cards */
    .domain-card.reverse .domain-header {
        grid-column: 2;
        text-align: right;
    }

    .domain-card.reverse .domain-header .domain-num {
        justify-content: flex-end;
    }

    .domain-card.reverse .domain-img {
        grid-column: 1;
    }

    .domain-card.reverse .domain-body {
        grid-column: 2;
        text-align: right;
    }

    .domain-card.reverse .domain-body .domain-list {
        justify-items: end;
    }
}

/* --- Activity Grid --- */
.activity-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .activity-grid {
        flex-direction: row;
        gap: 2rem;
    }
}

.activity-grid .activity-card {
    flex: 1;
    display: block;
    padding: 1.5rem;
}

.activity-grid .activity-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.activity-grid .activity-card p {
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* --- Lead Story Section --- */
.lead-story {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lead-story-header {
    text-align: center;
}

.lead-story-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .lead-story-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }
}

.lead-story-img {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .lead-story-img {
        width: 45%;
    }
}

.lead-story-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s;
}

.lead-story-img:hover img {
    filter: grayscale(0%);
}

.lead-story-text {
    width: 100%;
}

@media (min-width: 1024px) {
    .lead-story-text {
        width: 55%;
    }
}

.lead-story-text p {
    color: var(--slate);
    line-height: 2;
    margin-bottom: 1rem;
}

.lead-story-text .link-arrow {
    margin-top: 1rem;
    display: inline-flex;
}

/* --- Philosophy Page Vision & Mission --- */
.philosophy-vision {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.philosophy-vm-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .philosophy-vm-content {
        flex-direction: row;
        gap: 4rem;
        max-width: 1100px;
        align-items: flex-start;
    }
}

.philosophy-vm-block {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .philosophy-vm-block {
        text-align: left;
    }
}

.philosophy-vm-header {
    margin-bottom: 1.5rem;
}

.philosophy-vm-header .tag {
    background: #fff;
    color: var(--navy);
    font-size: 1rem;
    letter-spacing: 0.15em;
}

.philosophy-vm-lead {
    font-size: 1rem;
    color: #fff;
    margin-top: 0.75rem;
    font-weight: 500;
}

.philosophy-vm-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .philosophy-vm-heading {
        font-size: 2rem;
    }
}

.philosophy-vm-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 2;
}

.philosophy-vm-divider {
    display: none;
}

@media (min-width: 1024px) {
    .philosophy-vm-divider {
        display: block;
        width: 1px;
        background: rgba(255, 255, 255, 0.2);
        align-self: stretch;
    }
}

/* --- Cases Grid Mobile --- */
@media (max-width: 767px) {
    .case-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .case-card p {
        font-size: 0.8125rem;
    }

    .case-img {
        margin-bottom: 1rem;
    }
}

/* ========================================= */
/* Mobile Optimization for All Pages         */
/* ========================================= */

@media (max-width: 767px) {

    /* Hero sections on subpages */
    .section-navy h1 {
        font-size: 2rem !important;
    }

    /* Cases header - center align */
    .cases-header {
        text-align: center;
    }

    /* Lead section - heading before image */
    .lead {
        display: flex;
        flex-direction: column;
    }

    .lead .lead-text {
        order: -1;
        padding-top: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .lead .lead-img {
        order: 1;
        width: 100%;
    }

    .lead-text .tag,
    .lead-text .link-arrow {
        display: inline-flex;
        justify-content: center;
    }

    /* Domain section - heading before image */
    .domain {
        display: flex;
        flex-direction: column;
    }

    .domain .domain-text {
        order: -1;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .domain .domain-img {
        order: 1;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .domain .domain-img img {
        height: 250px;
    }

    .domain .btn {
        display: inline-block;
    }

    /* Inline grids - convert to 1 column */
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns:repeat(2"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
    }

    /* Restaurant brand cards - full width */
    [style*="grid-template-columns:repeat(3, 1fr)"]>a,
    [style*="grid-template-columns: repeat(3, 1fr)"]>a {
        padding: 1.5rem !important;
    }

    /* Flex layouts - stack vertically */
    [style*="display:flex"][style*="gap"] {
        flex-direction: column !important;
    }

    /* CTA buttons - center */
    .text-center [style*="display:flex"] {
        justify-content: center !important;
    }

    /* Table responsive */
    table th {
        width: 40% !important;
        font-size: 0.875rem;
    }

    table td {
        font-size: 0.875rem;
    }

    /* Cert grid - 1 column with narrower cards */
    .cert-grid {
        grid-template-columns: 1fr !important;
    }

    .cert-card {
        padding: 1.25rem !important;
    }

    /* Activity Cards - better spacing */
    .activity-card h3 {
        font-size: 1rem;
    }

    .activity-card p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    /* Sub-page navigation buttons */
    .section-navy [style*="display:flex"][style*="gap:1rem"] {
        gap: 0.5rem !important;
    }

    .section-navy [style*="display:flex"] .btn {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
    }

    /* Philosophy page 4-column grid fix */
    [style*="grid-template-columns:repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Philosophy page approach cards */
    [style*="background:rgba(255,255,255,0.05)"] {
        padding: 1.5rem !important;
    }

    [style*="background:rgba(255,255,255,0.05)"] h3 {
        font-size: 1rem !important;
    }

    /* Related links - stack */
    [style*="justify-content:center"][style*="gap:2rem"] {
        gap: 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Cases detail pages - grid fix */
    [style*="grid-template-columns:80px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    [style*="grid-template-columns:80px 1fr"]>div:first-child {
        width: auto !important;
        margin: 0 auto;
    }

    /* History page founding section */
    [style*="grid-template-columns:1fr 1fr"][style*="gap:3rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Vision section boxes */
    .vision-box,
    .mission-box {
        text-align: center;
    }

    .vision-box h2,
    .mission-box h2 {
        font-size: 1.25rem !important;
    }
}

/* --- 404 Error Page --- */
.error-page {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
}

.error-code {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

@media (min-width: 768px) {
    .error-code {
        font-size: 12rem;
    }
}

.error-page h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .error-page h1 {
        font-size: 2rem;
    }
}

.error-page>p {
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.error-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.error-sitemap {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.error-sitemap h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.error-sitemap ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.error-sitemap a {
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.error-sitemap a:hover {
    color: var(--blue);
}

/* ========================================
   Language Switch
   ======================================== */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lang-switch a {
    color: var(--slate);
    opacity: 0.5;
    transition: all 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--navy);
    opacity: 1;
}

.lang-switch span {
    color: #cbd5e1;
}

.mobile-lang-switch {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-lang-switch a {
    color: var(--slate);
    font-size: 0.875rem;
    opacity: 0.6;
    transition: all 0.3s;
}

.mobile-lang-switch a.active {
    color: var(--navy);
    opacity: 1;
    font-weight: 700;
}

/* Alpine.js x-cloak */
[x-cloak] {
    display: none !important;
}

/* --- Company Info Table --- */
.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.company-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.company-info-table th {
    text-align: left;
    padding: 1rem 0;
    width: 30%;
    color: var(--navy);
    font-weight: 700;
}

.company-info-table td {
    padding: 1rem 0;
}

@media (max-width: 640px) {

    .company-info-table th,
    .company-info-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .company-info-table th {
        border-bottom: none;
        padding-bottom: 0;
    }

    .company-info-table td {
        padding-top: 0.25rem;
        padding-bottom: 1rem;
    }
}

/* Mobile menu with Alpine.js */
.mobile-menu[x-cloak] {
    display: none !important;
}

/* --- Global Responsive Patterns (Audit Fixes) --- */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-split-img img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-split-img {
        margin-bottom: 2rem;
    }
}

.step-list {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.step-num {
    background: var(--navy);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .step-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .step-num {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

.cert-grid,
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cert-card,
.activity-card {
    background: #fff;
    padding: 2rem;
    border-top: 4px solid var(--blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cert-card h3,
.activity-card h3 {
    color: var(--navy);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.cert-card p,
.activity-card p {
    color: #334155 !important;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {

    .cert-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cert-card,
    .activity-card {
        padding: 1.5rem 1.25rem;
        /* Gate E: Max 24px(V) / 20px(H) */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Force readable text on light backgrounds */
.section-light p,
.section-gray p,
.section-white p {
    color: #334155;
}

.section-light li,
.section-gray li,
.section-white li {
    color: #334155;
}

/* Metric: Strict HIT compliance for Hero sections */
@media (max-width: 768px) {
    .hero-split {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .hero-split-img {
        margin-bottom: 1.5rem;
    }
}

/* --- Fix for Philosophy Vision Page Layout (Mobile Readability) --- */

/* Background fix: Ensure it doesn't consume space in flex column */
.view-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.view-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Container */
.philosophy-vm-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .philosophy-vm-content {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        max-width: 1000px;
    }
}

/* Content Blocks */
.philosophy-vm-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0;
    /* Gate T compliance: No side padding on mobile (container handles it) */
}

@media (min-width: 768px) {
    .philosophy-vm-block {
        padding: 0 4rem;
        /* Adequate spacing on desktop */
        max-width: 500px;
    }
}

/* Headers */
.philosophy-vm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-vm-lead {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    font-weight: 500;
    margin: 0;
}

.philosophy-vm-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    /* Mobile font size */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #fff;
}

@media (min-width: 768px) {
    .philosophy-vm-heading {
        font-size: 2rem;
    }
}

.philosophy-vm-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    max-width: 400px;
    margin: 0 auto;
}

/* Divider */
.philosophy-vm-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .philosophy-vm-divider {
        width: 1px;
        height: auto;
        min-height: 200px;
        margin: 0;
        align-self: stretch;
    }
}

/* --- Philosophy Page Refactoring (Inline to Class) --- */

.philosophy-intro-box {
    background: var(--gray);
    padding: 0.75rem;
    /* Gate T: 12px + 24px(container) = 36px/side. 375-72=303px > 300px */
    margin-bottom: 2rem;
    border-left: 4px solid var(--blue);
}

@media (min-width: 768px) {
    .philosophy-intro-box {
        padding: 2.5rem;
    }
}

.philosophy-founder-box {
    background: #fff;
    padding: 0.75rem;
    /* Match intro box for consistency on mobile */
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

@media (min-width: 768px) {
    .philosophy-founder-box {
        padding: 3rem;
    }
}

.philosophy-nature-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .philosophy-nature-stat {
        padding: 1.5rem;
    }
}

.philosophy-project-card {
    background: #fff;
    padding: 0.75rem;
    border-top: 4px solid var(--blue);
}

@media (min-width: 768px) {
    .philosophy-project-card {
        padding: 2rem;
    }
}

.philosophy-nature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .philosophy-nature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.philosophy-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .philosophy-projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}