/* カラーパレット・デザイン変数の定義 */
:root {
    --ink: #1a1a1a;
    --terracotta: #c85a32;
    --terracotta-dark: #b04e2a;
    --cream: #f9f6f0;
    --cream-dark: #f0eae1;
    --off-white: #ffffff;
    --warm-gray: #7a756e;
    --font-display: 'Playfair Display', serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

/* 共通リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background-color: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* レイアウトシステム */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
}

.bg-cream { background-color: var(--cream); }
.bg-off-white { background-color: var(--off-white); }
.bg-ink { background-color: var(--ink); }
.bg-cream-dark { background-color: var(--cream-dark); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 48px; }
    .grid-3 { grid-template-columns: 1fr; gap: 24px; }
}

/* セクション固有テキスト表現 */
.section-tag {
    display: block;
    color: var(--terracotta);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}
.text-serif { font-family: var(--font-serif); }

.section-intro {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    margin-bottom: 32px;
}
.section-intro.color-dark { color: var(--warm-gray); }

/* 固定型ヘッダーナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.logo-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    tracking: -0.02em;
}

.logo-company {
    font-size: 11px;
    font-family: var(--font-sans);
    letter-spacing: 0.2em;
    color: var(--warm-gray);
    padding-left: 12px;
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--ink)!important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-menu a:hover { color: var(--terracotta)!important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--ink);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink)!important;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-online:hover {
    background-color: var(--ink);
    color: var(--off-white);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--ink);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu, .btn-online { display: none; }
    .mobile-menu-toggle { display: block; }
    .navbar { height: 64px; }
}

/* モバイルドロワー */
.mobile-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--off-white);
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.mobile-drawer.open { max-height: 400px; }

.drawer-menu {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-link {
    text-decoration: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}

.drawer-btn-online {
    text-decoration: none;
    background: var(--ink);
    color: var(--off-white);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
}

/* ヒーローコンポーネント */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.6;
    transform: scale(1.05);
    animation: scaleOut 1.5s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.2) 50%, rgba(26,26,26,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    color: var(--off-white);
    padding: 0 24px;
}

.hero-sub {
    font-size: 14px;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-title-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 64px;
    font-weight: 400;
    color: var(--terracotta);
    color: var(--off-white);
}

@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .hero-title-italic { font-size: 32px; }
}

.hero-line {
    width: 64px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 36px auto;
}

.hero-lead {
    font-family: var(--font-serif);
    font-size: 17px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
}

.hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-down span {
    font-size: 11px;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* アセット・画像ボックス */
.image-wrapper {
    position: relative;
}

.image-wrapper img, .relative-box img {
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-square { aspect-ratio: 1 / 1; }

.image-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.image-badges .badge {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
}

/* フィロソフィーコンポーネント */
.flex-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card-ink {
    background-color: var(--ink);
    color: var(--off-white);
    padding: 40px;
    border-radius: 16px;
}

.card-tag {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
}

.serif-display {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.6;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .serif-display { font-size: 18px; }
}

.mission-block {
    margin-top: 32px;
    padding: 40px;
}

.color-terracotta { color: var(--terracotta); }

.text-muted {
    color: rgba(26, 26, 26, 0.8);
    font-size: 15px;
    margin-top: 16px;
    line-height: 1.75;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cloud-tag {
    padding: 8px 18px;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

/* 会社概要 テーブルデザイン */
.company-table {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.table-label {
    width: 140px;
    font-size: 14px;
    font-weight: 500;
    color: var(--warm-gray);
    flex-shrink: 0;
}

.table-value {
    font-size: 15px;
    color: var(--ink);
}

.row-subtext {
    color: var(--warm-gray);
    font-size: 13px;
}

.text-link {
    color: var(--ink)!important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.text-link:hover { color: var(--terracotta)!important; }

/* マップオーバレイ */
.relative-box { position: relative; }

.map-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.map-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.map-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(200, 90, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    font-size: 20px;
    flex-shrink: 0;
}

.map-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.map-desc {
    font-size: 12px;
    color: var(--warm-gray);
    margin-top: 2px;
}

/* タイムラインコンポーネント (沿革) */
.timeline-container {
    position: relative;
    margin-top: 60px;
}

.timeline-axis {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-item {
    display: flex;
    position: relative;
}

.timeline-header {
    width: 120px;
    flex-shrink: 0;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--terracotta);
    position: absolute;
    left: 115px;
    top: 14px;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--ink);
}

.timeline-card-wrapper {
    flex-grow: 1;
    padding-left: 48px;
}

.timeline-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s;
}

.timeline-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-card h3 {
    font-size: 17px;
    color: var(--off-white);
    font-weight: 600;
}

.timeline-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .timeline-axis { display: none; }
    .timeline-item { flex-direction: column; gap: 12px; }
    .timeline-dot { display: none; }
    .timeline-card-wrapper { padding-left: 0; }
    .mobile-axis-line {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }
}

.history-gallery {
    margin-top: 80px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* 事業内容（ビジネス）タブシステム */
.tab-navigation {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 40px;
}

.tab-trigger {
    background: var(--off-white);
    border: 1px solid rgba(26, 26, 26, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-trigger-num {
    color: var(--terracotta);
    margin-right: 8px;
    font-weight: 600;
}

.tab-trigger.active {
    background-color: var(--ink);
    color: var(--off-white);
    transform: scale(1.03);
}

.tab-wrapper {
    position: relative;
}

.tab-panel {
    display: none;
    background: var(--off-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

.grid-2-panels {
    display: grid;
    grid-template-columns: 55% 45%;
}

@media (max-width: 1024px) {
    .grid-2-panels { grid-template-columns: 1fr; }
}

.panel-image-box {
    position: relative;
}
@media (min-width: 1025px) {
    .panel-image-box { aspect-ratio: auto;}
}

.panel-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-image-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.panel-info-box {
    padding: 48px;
    display: flex;
    flex-direction: column;
}
@media (max-width: 576px) { .panel-info-box { padding: 24px; } }

.panel-header {
    margin-bottom: 24px;
}

.panel-num {
    color: var(--terracotta);
    font-size: 14px;
    font-weight: 600;
}

.panel-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    margin-top: 4px;
}

.panel-desc {
    color: rgba(26, 26, 26, 0.7);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.panel-list-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--warm-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.panel-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
@media (max-width: 576px) { .panel-bullets { grid-template-columns: 1fr; } }

.bullet-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--terracotta);
    flex-shrink: 0;
}

.bullet-item span {
    font-size: 13.5px;
    color: rgba(26, 26, 26, 0.85);
}

.panel-footer-clients {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.client-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-chips span {
    background-color: var(--cream);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(26, 26, 26, 0.7);
}

/* ミニカード切替ランチャー */
.grid-4-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 992px) { .grid-4-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .grid-4-cards { grid-template-columns: 1fr; } }

.panel-launcher {
    background-color: var(--off-white);
    border: 1px solid rgba(26, 26, 26, 0.05);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-launcher:hover { transform: translateY(-4px); }

.panel-launcher.active {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--off-white);
}

.launcher-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--terracotta);
}

.panel-launcher h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.panel-launcher p {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.4;
}

/* 第二創業セクション（アート装飾・グリッド） */
.overflow-hidden-section {
    position: relative;
    overflow: hidden;
}

.section-bg-art {
    position: absolute;
    inset: 0;
    background-image: url('./img/top02.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--ink) 20%, transparent, var(--ink) 80%);
}

.relative-z { position: relative; z-index: 10; }

.text-light-muted {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.8;
}

.grid-2-dense {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 576px) { .grid-2-dense { grid-template-columns: 1fr; } }

.pillar-card {
    background-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(200, 90, 50, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    font-size: 18px;
    margin-bottom: 16px;
}

.pillar-card h3 {
    font-size: 14.5px;
    font-weight: 600;
}

.pillar-card p {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    line-height: 1.5;
}

.footer-signtext {
    font-size: 12px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.divider-short {
    width: 64px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 16px auto 0;
}

/* お問い合わせ */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    font-size: 18px;
    transition: background 0.3s;
}
.contact-row:hover .contact-icon-wrapper { background: rgba(200, 90, 50, 0.2); }

.contact-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--off-white);
}

.contact-detail {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-outline-btn, .contact-solid-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-outline-btn {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--off-white);
}
.contact-outline-btn:hover { background-color: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

.contact-solid-btn {
    background-color: var(--terracotta);
    color: var(--off-white);
}
.contact-solid-btn:hover { background-color: var(--terracotta-dark); transform: translateY(-1px); }

.smaller { font-size: 11px; }

.bottom-badge-wrapper {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
}

.transparent-blur-badge {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.badge-text-white { font-size: 14px; color: var(--off-white); font-weight: 500; }
.badge-text-sub { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }

/* サイト全体の高品質フッター */
.footer-upper {
    padding: 64px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-font { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.company-font { font-size: 11px; color: var(--warm-gray); letter-spacing: 0.15em;}

.footer-about-text {
    font-size: 13.5px;
    color: var(--warm-gray);
    margin-top: 16px;
    max-width: 400px;
    line-height: 1.65;
}

.footer-heading {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--warm-gray)!important;
    font-size: 14px;
    transition: all 0.2s;
}
.footer-links a:hover { color: var(--ink)!important; transform: translateX(3px); }

.footer-contact-details p {
    font-size: 13.5px;
    color: var(--warm-gray);
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.footer-actions a {
    text-decoration: none;
    color: var(--ink)!important;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.footer-actions a:hover { color: var(--terracotta)!important; transform: translateX(3px); }

.footer-lower {
    padding: 32px 0;
    border-top: 1px solid rgba(26, 26, 26, 0.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
@media (max-width: 576px) { .footer-bottom-flex { flex-direction: column; text-align: center; } }

.copyright { font-size: 12px; color: var(--warm-gray); }

.footer-sub-links {
    display: flex;
    gap: 16px;
}

.footer-sub-links a {
    font-size: 12px;
    color: var(--warm-gray);
    text-decoration: none;
}
.footer-sub-links a:hover { color: var(--ink); }

/* モーションアニメーション（Reveal効果） */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.96); }
.reveal-row { transform: translateY(16px); }

.reveal.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

@keyframes scaleOut {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   既存のGallery構造（figure.g1）を活かす専用スタイル
   ========================================== */

/* ギャラリー全体のグリッド配置（PC4列、タブレット2列、スマホ1列） */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px; /* 縦の隙間を少し広めに確保 */
    margin: 100px 40px;;
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-cols: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 40px;margin: 100px 40px;}
}

/* 高さを揃え、静かなホバー演出を付与するベース（figure.g1） */
figure.g1 {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}


figure.g1 > a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--cream-dark);
}

/* 画像自体のズームエフェクト */
figure.g1 > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ホバー時に画像を静かに拡大 */
figure.g1:hover > a img {
    transform: scale(1.05);
}

/* タイトル（h5.t1）のスタイリング（墨色） */
h5.t1 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* クレジット表記（span.t2）のスタイリング（ウォームグレー） */
span.t2 {
    display: block;
    font-size: 12px;
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 2px;
}

/* --- リンクが紫色になるのを完全に防ぐ設定 --- */

/* クレジット内のリンク（菅井様などのお名前リンク） */
span.t2 a,
span.t2 a:visited {
    color: var(--warm-gray) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(26, 26, 26, 0.15);
    transition: all 0.2s ease;
}

/* お名前にカーソルを乗せた時はテラコッタ色に */
span.t2 a:hover,
span.t2 a:active {
    color: var(--terracotta) !important;
    text-decoration-color: var(--terracotta);
}