/* --- Global Settings --- */
:root {
    /* Colors */
    --primary-teal: #00A99D;
    --primary-yellow: #FFD400;
    --primary-green: #39B54A;
    --text-black: #333333;
    --bg-base: #FAF9F5; /* ページ全体のベーストーン */
    --bg-light: #F9F8F1;
    --white-semi: rgba(255, 255, 255, 0.9);
    
    /* Dimensions */
    --header-height: 80px;
    --header-height-scroll: 60px;
    --logo-height-init: 120px;
    --logo-height-scroll: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-black);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
}

/* --- Typography Weights --- */
.page-title, h1 { 
    font-weight: 700; 
    font-size: clamp(2.1rem, 5vw, 2.7rem); 
    letter-spacing: 0.05em;
}

/* 見出しサイズ（大きく設定） */
.section-heading, h2, h3, .nav-item { 
    font-weight: 500; 
    font-size: clamp(2.4rem, 5vw, 3.5rem); 
}

/* 本文サイズ（大きく設定） */
.body-text, p, address, .nav-link { 
    font-weight: 300; 
    font-size: 1.2rem; 
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(250, 249, 245, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

header.scrolled {
    height: var(--header-height-scroll);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-area {
    position: relative;
    height: 100%;
    width: 220px;
}

.logo {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1010;
    transition: all 0.4s ease;
}

.logo img {
    height: var(--logo-height-init);
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

header.scrolled .logo img {
    height: var(--logo-height-scroll) !important;
    margin-top: 5px;
}

.global-nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.global-nav a {
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.global-nav a:hover, .global-nav a.active {
    color: var(--primary-teal);
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

.global-nav a:hover::after, .global-nav a.active::after {
    width: 100%;
}

.insta-link { font-size: 1.4rem; }

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-black);
    position: absolute;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Main Visual (Slideshow) --- */
.main-visual {
    height: 130vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-base);
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* --- Content Sections --- */
section { 
    padding: clamp(80px, 10vh, 150px) 0; 
    position: relative; 
    overflow: hidden;
    background: transparent;
}

/* Aboutセクションの高さを個別に調整 */
.about {
    padding: 200px 0; 
}

.section-heading {
    display: flex;
    flex-direction: column;
    color: var(--primary-teal);
    margin-bottom: 50px;
}

.sub-heading {
    font-size: 1.2rem;
    margin-top: 8px;
    color: var(--primary-green);
    letter-spacing: 0.1em;
}

/* 【背景画像設定】 */
.about-pattern, .interview-bg, .manga-bg {
    position: absolute;
    top: 0;
    background-size: 70% auto; 
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.about-pattern {
    left: auto;
    right: 0;
    width: 50%; 
    height: 100%;
    top: 0;
    opacity: 0.5;
}

.interview-bg, .manga-bg {
    left: 0;
    width: 100%; 
    height: 100%;
    opacity: 0.5;
}

.about-content { 
    max-width: 600px; 
    position: relative;
    z-index: 2;
    background: rgba(250, 249, 245, 0.5); 
    padding: 40px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

/* Card Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.card {
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.card:hover { 
    transform: translateY(-10px);
}

/* カード画像の基本コンテナ（インタビュー用など） */
.card-img {
    width: 100%;
    aspect-ratio: 16/10; /* 基本は横長 */
    background: transparent;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* マンガ用：画像の高さに合わせる */
.manga-thumb {
    aspect-ratio: auto !important; 
    min-height: 200px; /* 空の時に潰れないように最低高さを設定 */
}

/* 画像の表示方法：containで全体を表示し、影や背景を消す */
.card-img img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    transition: 0.6s ease; 
}

.card:hover .card-img img { transform: scale(1.05); }

.card-tag { font-size: 0.85rem; color: var(--primary-teal); letter-spacing: 0.1em; font-weight: 500; }
.card-title { font-size: 1.15rem; margin: 12px 0; line-height: 1.5; color: var(--text-black); }

/* Data Preview - 背景色を復元 */
.data-preview { 
    background-color: #FFF9E1; /* 明るい黄色の背景を復元 */
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.data-image-area {
    display: flex;
    height: 70%;
    justify-content: center;
}

.data-preview-img {
    max-width: 100%;
    height: auto;
}

/* Manga Background Overlay */
.manga-bg-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-base), transparent);
    z-index: -2;
    opacity: 0.3;
}

/* --- Buttons --- */
.btn-area { text-align: center; margin-top: 60px; }
.btn {
    display: inline-block;
    padding: 16px 60px;
    margin-top: 40px;
    border-radius: 2px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.btn-more { background: var(--primary-green); }
.btn-yellow { background: var(--primary-yellow); color: var(--text-black); }
.btn-teal { background: var(--primary-teal); }

.btn:hover { 
    opacity: 0.9; 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 外部リンクセクション - 中央寄せ */
.banner-box {
    padding: 40px 20px;
    text-align: center;
    background: transparent; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    transition: 0.3s;
}

.banner-box a:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.banner-box a p {
    margin-bottom: 15px;
}

.logo-frame {
    display: inline-block;
    padding: 0;
    border: none; 
    background: transparent;
}

.logo-frame img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

/* --- Footer --- */
footer {
    background: #ebebeb; /* 背景色を変更 */
    padding: 100px 0 50px;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4% 60px;
    display: block;
    text-align: left;
}

.footer-logo-content .logo img {
    height: 90px !important;
    width: auto !important;
    display: block;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 4%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links a { font-size: 0.95rem; opacity: 0.7; }
.footer-links a:hover { opacity: 1; color: var(--primary-teal); }

.company-name { 
    font-weight: 600; 
    font-size: 1.3rem; 
    margin-bottom: 20px; 
    display: block;
    color: var(--primary-teal);
}

.footer-contact address {
    font-style: normal;
    color: #535353;
    margin-bottom: 25px;
}

.contact-link {
    display: inline-block;
    background: var(--primary-teal);
    color: #fff;
    padding: 14px 40px;
    border-radius: 2px;
    font-weight: 500;
}

.copyright {
    text-align: center;
    margin-top: 100px;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* --- Responsive Media Queries --- */

@media (max-width: 991px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .data-grid { grid-template-columns: 1fr; text-align: left; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; padding: 0; }
    .footer-logo-block { text-align: center; padding: 0 0 40px; }
}

@media (max-width: 767px) {
    :root {
        --header-height: 70px;
        --logo-height-init: 80px;
    }

    /* スマホでのセクション余白をさらに削減 */
    section { padding: 40px 0; }
    
    /* メインビジュアル直後のAbout余白を特に詰める */
    .about { padding: 30px 0 50px; }

    /* 見出し下の余白も少し詰める */
    .section-heading { margin-bottom: 30px; }
    
    /* ボタンエリア上の余白を削減 */
    .btn-area { margin-top: 30px; }
    .btn { margin-top: 20px; }

    .menu-toggle { display: block; }
    
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-base);
        padding: 100px 40px;
        transition: 0.4s ease;
        z-index: 1200;
    }
    
    .global-nav.active { right: 0; }
    
    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .about-pattern, .interview-bg, .manga-bg { display: none; }
    
    .about-content { 
        max-width: 100%; 
        text-align: left; /* センター揃えから左揃えに変更 */
        padding: 0; 
        background: transparent; 
        backdrop-filter: none; 
    }
    
    .card-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: center; text-align: center; }
    
    /* メインビジュアルの高さを抑えて間延びを防ぐ */
    .main-visual { height: 60vh; }
}

    /* Manga Page Specific Styles */
        .manga-header {
            text-align: center;
            padding-top: 150px;
            padding-bottom: 60px;
        }

        .manga-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px 30px;
            margin-bottom: 100px;
        }

        .manga-item {
            cursor: pointer;
        }

        .manga-thumb-container {
            width: 100%;
            /* アスペクト比を固定せず、画像全体が表示されるように修正 */
            aspect-ratio: auto; 
            min-height: 250px;
            background: transparent;
            margin-bottom: 15px;
            overflow: hidden;
            position: relative;
            border: 1px solid #ddd;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .manga-item:hover .manga-thumb-container {
            border-color: var(--primary-teal);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .manga-thumb-container img {
            width: 100%;
            height: auto;
            /* 切り取らずに全体を表示 */
            object-fit: contain;
        }

        /* Hover Overlay */
        .manga-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 169, 157, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: 0.3s;
        }

        .manga-item:hover .manga-overlay {
            opacity: 1;
        }

        .manga-overlay i {
            color: #fff;
            font-size: 2rem;
        }

        .manga-title {
            font-size: 1rem;
            font-weight: 500;
            text-align: center;
            line-height: 1.4;
        }

        /* Lightbox (Modal) */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 2000;
            display: none; /* JSで制御 */
            justify-content: center;
            align-items: center;
            padding: 40px;
            cursor: zoom-out;
        }

        .lightbox.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .lightbox-content {
            position: relative;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            cursor: default;
        }

        .lightbox-content img {
            width: 100%;
            height: auto;
            max-height: 90vh;
            object-fit: contain;
            box-shadow: 0 0 30px rgba(0,0,0,0.5);
            border: 5px solid #fff;
        }

        .lightbox-close {
            position: absolute;
            top: -40px;
            right: -40px;
            color: #fff;
            font-size: 2rem;
            cursor: pointer;
            background: none;
            border: none;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Responsive */
        @media (max-width: 992px) {
            .manga-grid { grid-template-columns: repeat(2, 1fr); }
            .lightbox-close { right: 0; top: -50px; }
        }

        @media (max-width: 576px) {
            .manga-grid { grid-template-columns: 1fr; }
        }

    /* data Page Specific Styles */
        .data-header {
            text-align: center;
            padding-top: 150px;
            padding-bottom: 60px;
        }

        .data-content-area {
            padding-bottom: 100px;
        }

        .data-item {
            display: flex;
            align-items: center;
            gap: 60px;
            margin-bottom: 100px;
        }

        .data-item:nth-child(even) {
            flex-direction: row-reverse;
        }

        .data-text-box {
            flex: 1;
        }

        .data-text-box h3 {
            font-size: 1.6rem;
            color: var(--primary-teal);
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .data-text-box h3::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background: var(--primary-yellow);
        }

        .data-graph-box {
            flex: 1;
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 350px;
            overflow: hidden;
        }

        .data-graph-box img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

        .data-footer-action {
            text-align: center;
            padding: 80px 0;
            background: var(--bg-light);
            margin-top: 40px;
        }

        .btn-pdf {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: var(--primary-teal);
            color: #fff;
            padding: 18px 45px;
            border-radius: 5px;
            font-weight: 500;
            font-size: 1.1rem;
        }

        .btn-pdf:hover {
            background: var(--primary-green);
            transform: translateY(-3px);
        }

        /* Responsive for Data Page */
        @media (max-width: 992px) {
            .data-item, .data-item:nth-child(even) {
                flex-direction: column;
                gap: 30px;
            }
            .data-graph-box {
                width: 100%;
                min-height: auto;
            }
        }

    /* data details page specific styles */
        .detail-header {
            text-align: center;
            padding-top: 150px;
            padding-bottom: 40px;
        }
        .detail-header span {
            color: var(--primary-green);
            font-weight: 500;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .detail-main-visual {
            margin-bottom: 60px;
        }
        .detail-main-visual img {
            width: 100%;
            height: auto;
            max-height: 600px;
            object-fit: cover;
        }
        .detail-content {
            max-width: 800px;
            margin: 0 auto;
            padding-bottom: 100px;
        }
        .detail-title-block {
            margin-bottom: 60px;
        }
        .detail-main-title {
            font-size: 2.2rem;
            line-height: 1.4;
            margin-bottom: 20px;
            color: var(--text-black);
        }
        .detail-caption {
            font-size: 1.2rem;
            font-weight: 500;
            border-left: 4px solid var(--primary-teal);
            padding-left: 20px;
        }
        .content-section {
            margin-bottom: 80px;
        }
        .content-section h3 {
            font-size: 1.5rem;
            color: var(--primary-teal);
            margin-bottom: 25px;
            display: flex;
            align-items: center;
        }
        .content-section h3::before {
            content: "";
            width: 30px;
            height: 1px;
            background: var(--primary-teal);
            margin-right: 15px;
        }
        .content-image {
            margin: 40px 0;
        }
        .pagination-area {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 40px;
            border-top: 1px solid #eee;
            margin-top: 60px;
        }
        .page-link {
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-black);
        }
        .page-link:hover {
            color: var(--primary-teal);
        }

        @media (max-width: 768px) {
            .detail-main-title { font-size: 1.6rem; }
            .detail-header { padding-top: 100px; }
        }