/* Windows環境などのローカルフォントを優先するための定義 */
@font-face {
    font-family: "Noto Sans JP Local";
    font-style: normal;
    font-weight: 400;
    src: local("Noto Sans JP"), local("NotoSansJP-Regular");
}
@font-face {
    font-family: "Noto Sans JP Local";
    font-style: normal;
    font-weight: 700;
    src: local("Noto Sans JP Bold"), local("NotoSansJP-Bold");
}

/* Google Fonts (iOS/macOSなどローカルにない環境用) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

:root {
    --primary-color: #002850; /* 深みのあるネイビー */
    --accent-color: #005bac;
    --logo-red: #cc0010; /* ロゴの赤（少し深みを持たせる） */
    --text-color: #333;
    --light-gray: #f9f9f9; /* より白に近く、モダンなグレー */
    --border-color: #e0e6ed;
    /* フォントスタック: 欧文(Lato) -> ローカルWindows用 -> Android用 -> GoogleFonts/システム用 */
    --font-base: "Lato", "Noto Sans JP Local", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
}

html {
    overflow-y: scroll; /* 常にスクロールバーを表示して横ズレを防止 */
}

body {
    font-family: var(--font-base);
    line-height: 2; /* 行間をさらに広げて可読性向上 */
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.05em;
    font-feature-settings: "palt"; /* 文字詰めを有効化して引き締める */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px; /* コンテナ幅を少し絞って引き締める */
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 140px 0; /* 余白をさらに拡大 */
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 80px; /* 見出し下の余白を拡大 */
    letter-spacing: 0.15em;
    font-weight: 700;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    /* Georgia (明朝体) を廃止し、Lato (サンセリフ) でモダンに統一 */
    font-family: "Lato", sans-serif;
    font-style: normal; /* イタリックも廃止 */
    letter-spacing: 0.2em; /* 字間を少し詰めて調整 */
    text-transform: uppercase;
}

/* Header */
.header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 透過率を少し下げて視認性アップ */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}

/* 透過状態のスタイル */
.header.is-transparent {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

.header.is-transparent .logo a,
.header.is-transparent .nav-list a {
    color: #fff;
}

.header.is-transparent .logo img {
    filter: brightness(0) invert(1);
}

.header.is-transparent .nav-list a.is-active {
    color: var(--logo-red);
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.logo {
    margin-right: auto;
    line-height: 0;
}

.logo img {
    height: 44px; /* ロゴサイズを微調整してスマートに */
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 40px; /* 間隔を広げてゆとりを持たせる */
    margin-right: 50px;
}

.nav-list a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.08em; /* 文字間を広げて洗練させる */
}

/* 言語切り替えメニュー */
.lang-switcher {
    display: flex;
    align-items: center;
    font-size: 0.75rem; /* サイズを下げて控えめに */
    font-weight: 700;
    color: #bbb; /* 色味を薄くしてノイズを減らす */
    letter-spacing: 0.1em;
}

.lang-switcher a {
    color: inherit;
    padding: 0 5px;
    transition: 0.3s;
}

.lang-switcher a:hover {
    color: var(--accent-color);
}

.header .lang-switcher a.is-active {
    color: var(--primary-color); /* アクティブ時も赤ではなくメインカラーで落ち着かせる */
}

/* 透過ヘッダー時の言語切り替え */
.header.is-transparent .lang-switcher {
    color: rgba(255, 255, 255, 0.6);
}

.header.is-transparent .lang-switcher a.is-active {
    color: #fff;
}

/* 下線（ロゴの青色）のベース */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px; /* 下線を細く繊細に */
    background-color: var(--accent-color);
    transition: 0.3s;
}

/* ホバーで下線を表示 */
.nav-list a:hover {
    color: var(--accent-color);
}

.nav-list a:hover::after {
    width: 100%;
}

/* 選択中のページ */
.nav-list a.is-active {
    color: var(--accent-color); /* 赤ではなくアクセントカラーに統一 */
}

.nav-list a.is-active::after {
    width: 100%;
    background-color: var(--accent-color);
}


/* Page Header */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: left;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 20, 40, 0.6), rgba(0, 20, 40, 0.8));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    font-weight: 700;
    /* font-family: "Georgia", serif; 削除してベースフォント(Lato)に任せる */
}

.page-header p {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: inherit;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.5;
}

/* Individual Page Header Images */
.concept-header { background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80'); }
.business-header { background-image: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1200&q=80'); }
.quality-header { background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1200&q=80'); }
.company-header { background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80'); }
.product-header { background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1200&q=80'); }
.recruit-header { background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1200&q=80'); }
.security-header { background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1200&q=80'); }
.contact-header { background-image: url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1200&q=80'); }

/* Main Visual */
.mv {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: #000;
}

.mv-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4); /* シンプルな黒透過に変更し、コントラストを確保 */
}

.mv-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 20px;
}

.mv-sub {
    font-size: 0.9rem; /* サイズを下げて控えめに */
    margin-bottom: 25px;
    letter-spacing: 0.4em; /* 字間を広げて高級感を出す */
    font-weight: 500;
    opacity: 0.9;
    /* text-shadow 削除 */
}

.mv-copy {
    font-size: 3.6rem; /* サイズアップ */
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.15em;
    /* text-shadow 削除 */
}

/* Common */
.bg-light {
    background-color: var(--light-gray);
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-80 {
    margin-top: 80px;
}

/* Concept Section specific extracted styles */
.concept-goal-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.concept-block {
    margin-bottom: 30px;
}

.concept-item-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    border: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: 0.4s;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* SPA / PJAX Fade Animation */
main {
    transition: opacity 0.5s;
}

main.fade-out {
    opacity: 0;
}

/* Scroll Animation Base */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Concept */
.concept .lead {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
}

.concept-text p {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #555;
}

/* Policy Content (Privacy, Security, etc.) */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    color: #444;
    line-height: 1.8;
}

.policy-content h2 {
    margin: 60px 0 30px;
    color: var(--primary-color);
    font-size: 1.6rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.policy-content h3 {
    margin: 40px 0 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.policy-content p {
    margin-bottom: 20px;
}

.policy-content ul, .policy-content ol {
    margin: 20px 0 30px 25px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content .policy-date {
    margin-top: 60px;
    text-align: right;
    line-height: 2;
}

.policy-content .policy-note {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #777;
}

/* Business */
.business-grid {
    display: flex;
    gap: 40px;
}

.business-card {
    flex: 1;
    padding: 50px 40px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    transition: 0.4s;
    position: relative;
}

.business-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--border-color);
    position: absolute;
    top: 30px;
    right: 30px;
}

.business-card h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.business-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Business Details Section */
.business-content {
    max-width: 900px;
    margin: 0 auto;
}

.business-lead {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.business-summary {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: #444;
}

.business-detail, .business-iso {
    margin-bottom: 60px;
    padding: 40px;
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.business-detail h3, .business-iso h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.business-list {
    margin-top: 20px;
    padding-left: 20px;
}

.business-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.business-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.business-iso p {
    margin-bottom: 15px;
}

/* Quality & Layout Flex */
.quality-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.quality-flex.reverse {
    flex-direction: row-reverse;
}

.quality-image {
    flex: 1;
}

.quality-text {
    flex: 1;
}

.quality-text h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
}

.list-check {
    margin-top: 30px;
}

.list-check li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.list-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 1px;
    background-color: var(--accent-color);
}

.quality-img {
    width: 100%;
    height: auto;
    filter: grayscale(20%);
    transition: 0.5s;
    display: block;
}

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

/* Product Page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(20%);
}

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

.product-info {
    padding: 30px;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* Product Alternating Layout */
.product-item {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.product-item .quality-image {
    flex: 1;
    height: 400px; /* 高さを400pxに固定して統一感を出す */
    background-color: #f9f9f9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-item .quality-image img {
    width: 100%;
    height: 100%; /* コンテナいっぱいに広げる */
    object-fit: cover; /* 余白を出さずに切り抜いて表示 */
    display: block;
    transition: 0.5s;
}

.product-item .quality-image:hover img {
    transform: scale(1.05); /* ホバー時に少しズームさせて躍動感を出す */
}

/* Company Page Details */
.history-list {
    max-width: 800px;
    margin: 0 auto;
}
.history-item {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}
.history-year {
    font-weight: bold;
    color: var(--accent-color);
    min-width: 100px;
    font-size: 1.2rem;
}
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.location-card {
    padding: 30px;
    background-color: #fff;
    border-left: 4px solid var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
.location-card h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.location-map {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    line-height: 0;
}

/* Company Table */
.table-profile {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    border-top: 1px solid var(--primary-color);
}

.table-profile th, .table-profile td {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table-profile th {
    width: 250px;
    text-align: left;
    background-color: #fcfcfc;
    color: var(--primary-color);
    font-weight: 700;
}

/* Page Top Button */
.pagetop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 100;
}

.pagetop span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.pagetop::before {
    content: '';
    position: absolute;
    top: 12px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
}

.pagetop span {
    padding-top: 15px;
}

.pagetop.is-visible {
    opacity: 1;
    visibility: visible;
}

.pagetop:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background-color: #fff; /* 背景色を白に変更 */
    color: var(--text-color); /* 文字色を黒に変更 */
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: block; /* フレックスを解除して縦並びに */
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-main {
    flex: 1;
}

.footer-banners {
    display: flex;
    flex-direction: row; /* 横並び */
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.footer-banner-item img {
    height: 38px; /* 中央の3つを大きめに設定 */
    width: auto;
    display: block;
    transition: 0.3s;
}

.footer-banner-item.large img {
    height: 32px; /* 一番左を少し小さく */
}

/* MOGAMIロゴ（最後）のサイズをさらに抑制 */
.footer-banner-item:last-child img {
    height: 20px;
}

.footer-banner-item img:hover {
    transform: scale(1.05);
}
    filter: grayscale(0%);
    opacity: 1;
}

.footer-banner-item.indented:first-of-type {
    margin-left: 20px; /* 2番目（グループ会社）の開始位置にインデント */
}

/* Breadcrumb in Footer */
.footer-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 40px;
    color: #333;
}

.footer-breadcrumb a {
    color: inherit;
}

.footer-breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* Policy Links Group */
.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 30px;
}

.footer-links-group a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px; /* 下線との距離をヘッダーに合わせる */
    transition: 0.3s;
    letter-spacing: 0.05em;
}

/* 下線（ロゴの青色）のベース */
.footer-links-group a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px; /* 2pxから1pxに変更し、ヘッダーと統一 */
    background-color: var(--accent-color);
    transition: 0.3s;
}

/* ホバーで下線を表示 */
.footer-links-group a:hover {
    color: var(--accent-color);
}

.footer-links-group a:hover::after {
    width: 100%;
}

/* 選択中のページ：ヘッダーに合わせてアクセントカラーに統一 */
.footer-links-group a.is-active {
    color: var(--accent-color);
}

.footer-links-group a.is-active::after {
    width: 100%;
    background-color: var(--accent-color);
}

.footer .copyright {
    width: 100%;
    font-size: 0.75rem;
    color: #555; /* opacityを削除し、濃いグレーに変更 */
    letter-spacing: 0.05em;
    border-top: none; 
    margin-top: 20px;
    padding-top: 0;
    text-align: left; 
}

.footer-info {
    margin-top: 40px;
}

.footer-company {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-address, .footer-tel {
    font-size: 0.85rem;
    color: #444; /* #666からより濃い#444に変更して視認性を向上 */
    margin-bottom: 5px;
}

/* Sitemap Overlay */
.sitemap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 80, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.sitemap-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sitemap-content {
    max-width: 1000px;
    width: 90%;
    color: #fff;
    text-align: center;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.sitemap-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.sitemap-column ul li {
    margin-bottom: 10px;
}

.sitemap-column ul li a {
    font-size: 1rem;
    opacity: 0.8;
}

.sitemap-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.sitemap-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
.menu-trigger {
    display: block; /* デスクトップでも表示 */
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px; /* JP/ENとの間隔 */
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

/* 透過ヘッダー時のメニューボタン色 */
.header.is-transparent .menu-trigger span {
    background-color: #fff;
}

.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { top: 22px; }

/* アクティブ（開いている時）のスタイル */
.menu-trigger.is-active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-trigger.is-active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Philosophy Section */
.philosophy-theme-sub {
    font-size: 0.9rem;
    font-family: "Lato", sans-serif; /* Georgiaから変更 */
    color: var(--accent-color);
    letter-spacing: 0.3em; /* 少し字間を調整 */
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s;
}

.philosophy-theme {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s 0.2s;
}

.philosophy-main {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s 0.4s;
}

.philosophy-label {
    font-size: 1rem;
    color: #999;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.philosophy-text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--primary-color);
    font-weight: 500;
}

.philosophy-diagram {
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: 1s 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.philosophy-img-large {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Animation triggers */
.is-visible .philosophy-theme-sub,
.is-visible .philosophy-theme,
.is-visible .philosophy-main,
.is-visible .philosophy-diagram {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    .section { padding: 80px 0; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        padding: 120px 40px;
        transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: 1000;
    }
    .nav.is-active { right: 0; }
    .nav-list { flex-direction: column; gap: 30px; text-align: center; height: auto; }
    .nav-list a { font-size: 1.2rem; height: auto; padding: 10px 0; border-bottom: none; }
    .nav-list a.is-active { border-bottom: none; }
    .mv-copy { font-size: 1.8rem; }
    
    /* Layout Fixes for Mobile */
    .quality-flex { flex-direction: column; gap: 40px; }
    .quality-flex.reverse { flex-direction: column; }
    .business-grid { flex-direction: column; gap: 30px; }
    
    /* Table Responsive for Mobile */
    .table-profile, 
    .table-profile tbody, 
    .table-profile tr, 
    .table-profile th, 
    .table-profile td {
        display: block;
        width: 100%;
    }
    
    .table-profile tr {
        margin-bottom: 30px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .table-profile th {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        background: none;
        color: var(--accent-color);
        font-size: 0.9rem;
        border-bottom: none;
    }
    
    .table-profile td {
        padding: 0 0 20px 0;
        border-bottom: none;
    }

    .footer .container { flex-direction: column; gap: 40px; }

    /* Philosophy Mobile */
    .philosophy-theme { font-size: 1.8rem; letter-spacing: 0.1em; }
    .philosophy-text { font-size: 1.2rem; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 50px; }
    .philosophy-card { padding: 40px 20px; }
}