/* ============================================
   株式会社トータスグローブ — メインスタイルシート
   カラー: フォレストグリーン + ブラウン + エメラルド
   モチーフ: 亀甲（六角形）
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-navy: #1B4332;
    --color-navy-light: #2D6A4F;
    --color-navy-dark: #143528;
    --color-gold: #92400E;
    --color-gold-light: #B45309;
    --color-gold-dark: #78350F;
    --color-accent: #059669;
    --color-accent-light: #10B981;
    --color-highlight: #F59E0B;
    --color-highlight-light: #FBBF24;
    --color-offwhite: #FAFCFA;
    --color-white: #FFFFFF;
    --color-text: #1E293B;
    --color-text-light: #4B5563;
    --color-text-muted: #9CA3AF;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-light: rgba(0, 0, 0, 0.03);
    --color-success: #059669;
    --color-error: #DC2626;

    --font-ja: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    --font-en: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --header-height: 72px;
    --max-width: 1200px;
    --section-padding: clamp(60px, 10vw, 120px);
    --side-padding: clamp(20px, 5vw, 40px);

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.6);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ja);
    font-size: 16px;
    line-height: 2.0;
    color: var(--color-text);
    background-color: var(--color-offwhite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-label {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 640px;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: box-shadow var(--transition), background var(--transition);
}

.site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-navy);
}

.logo-icon {
    display: flex;
    color: var(--color-accent);
}

.logo-en {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.logo-ja {
    display: block;
    font-family: var(--font-ja);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.nav-active::after {
    width: 100%;
}

.nav-contact {
    background: var(--color-accent);
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.nav-contact::after {
    display: none;
}

.nav-contact:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-active .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 40%, #1B4332 100%);
    color: var(--color-offwhite);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* 亀甲パターン背景 */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0L60 15V37L30 52L0 37V15Z' fill='none' stroke='%2310B981' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    animation: patternDrift 80s linear infinite;
}

@keyframes patternDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 52px); }
}

/* Hi-tech glow effect for accent elements */
@keyframes subtleGlow {
    0%, 100% { opacity: 0.06; }
    50% { opacity: 0.1; }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(52, 211, 153, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
}

.hero-label {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-highlight);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-highlight);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    max-width: 720px;
}

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

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero装飾 - 六角形 */
.hero-hex {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.06;
    z-index: 0;
}

.hero-hex svg {
    width: 100%;
    height: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ja);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-offwhite);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.btn-navy {
    background: var(--color-navy);
    color: var(--color-offwhite);
}

.btn-navy:hover {
    background: var(--color-navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 10px 20px;
}

.btn-arrow::after {
    content: '→';
    transition: transform var(--transition);
}

.btn-arrow:hover::after {
    transform: translateX(2px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-highlight-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

/* --- Feature / About Section --- */
.about-section {
    background: rgba(255, 255, 255, 0.5);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-label {
    text-align: left;
}

.about-text .section-title {
    text-align: left;
}

.about-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 2;
}

.about-features {
    display: grid;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.about-feature-text h4 {
    font-size: 0.95rem;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.about-feature-text p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.about-visual {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.9), rgba(45, 106, 79, 0.85));
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 六角形パターンの装飾 */
.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0L60 15V37L30 52L0 37V15Z' fill='none' stroke='%2310B981' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 60px 52px;
}

.about-image-frame .hex-decoration {
    position: relative;
    z-index: 1;
    color: var(--color-accent);
    opacity: 0.3;
}

/* --- Tech Stack --- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    color: var(--color-navy);
    transition: all var(--transition);
}

.tech-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-navy);
}

/* --- News Section --- */
.news-list {
    display: grid;
    gap: 1px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.8);
    transition: background var(--transition);
}

.news-item:hover {
    background: var(--color-offwhite);
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    min-width: 100px;
}

.news-category {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* タグ別カラー */
.news-category-news {
    background: rgba(245, 158, 11, 0.12);
    color: #92400E;
}

.news-category-blog {
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-success);
}

.news-category-press {
    background: rgba(10, 22, 40, 0.08);
    color: var(--color-navy);
}

.news-category-tech {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
}

.news-category-event {
    background: rgba(168, 85, 247, 0.1);
    color: #7C3AED;
}

.news-category-recruit {
    background: rgba(236, 72, 153, 0.1);
    color: #DB2777;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}

.news-title a:hover {
    color: var(--color-accent);
}

/* --- Blog Filters --- */
.blog-filters {
    margin-bottom: 32px;
}

.blog-search-form {
    margin-bottom: 20px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 4px 4px 4px 16px;
    transition: border-color var(--transition);
    gap: 8px;
}

.search-input-wrap:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.search-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.search-input {
    flex: 1;
    font-family: var(--font-ja);
    font-size: 0.95rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text);
    padding: 8px 0;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-btn {
    font-family: var(--font-ja);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    background: var(--color-navy);
    color: var(--color-offwhite);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--color-navy-light);
}

.blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
    transition: all var(--transition);
}

.category-tab:hover {
    border-color: var(--color-accent);
    color: var(--color-navy);
}

.category-tab.active {
    background: var(--color-navy);
    color: var(--color-offwhite);
    border-color: var(--color-navy);
}

.category-tab.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-offwhite);
}

.category-count {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--color-offwhite);
    color: var(--color-text-muted);
    padding: 1px 7px;
    border-radius: 100px;
}

.search-result-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.search-clear {
    font-size: 0.82rem;
    color: var(--color-navy);
    font-weight: 500;
}

.search-clear:hover {
    color: var(--color-accent);
}

/* --- Blog Card Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-navy);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    opacity: 0.3;
}

.blog-card-body {
    padding: 20px 24px 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.blog-card-date {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-muted);
}

.blog-empty svg {
    margin: 0 auto 16px;
}

.blog-empty p {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .search-result-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* News Detail Page */
.news-detail-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-light);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.news-detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-navy);
}

.news-detail-body {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text);
}

.news-detail-body h2 {
    font-size: 1.4rem;
    color: var(--color-navy);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.news-detail-body h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin: 32px 0 12px;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.news-detail-body li {
    margin-bottom: 8px;
    list-style: disc;
}

.news-detail-body ol li {
    list-style: decimal;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: var(--color-offwhite);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0L60 15V37L30 52L0 37V15Z' fill='none' stroke='%2310B981' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 60px 52px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 16px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* --- Company Page --- */
.company-info-table {
    width: 100%;
    border-collapse: collapse;
}

.company-info-table tr {
    border-bottom: 1px solid var(--color-border-light);
}

.company-info-table th,
.company-info-table td {
    padding: 20px 16px;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.company-info-table th {
    font-weight: 600;
    color: var(--color-navy);
    width: 180px;
    white-space: nowrap;
}

.company-info-table td {
    color: var(--color-text-light);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.form-label .required {
    font-size: 0.75rem;
    color: var(--color-error);
    margin-left: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    font-family: var(--font-ja);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
}

.form-error {
    font-size: 0.82rem;
    color: var(--color-error);
    margin-top: 6px;
}

.form-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Contact Confirm */
.confirm-table {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 32px;
    border-collapse: collapse;
}

.confirm-table tr {
    border-bottom: 1px solid var(--color-border-light);
}

.confirm-table th,
.confirm-table td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.confirm-table th {
    font-weight: 600;
    color: var(--color-navy);
    width: 160px;
}

.confirm-table td {
    color: var(--color-text);
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* --- Alert / Flash Messages --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(5, 150, 105, 0.08);
    color: var(--color-success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-error {
    background: rgba(220, 38, 38, 0.08);
    color: var(--color-error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* --- Page Header (内部ページ) --- */
.page-header {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: var(--color-offwhite);
    padding: calc(var(--header-height) + 48px) 0 48px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0L60 15V37L30 52L0 37V15Z' fill='none' stroke='%2310B981' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 60px 52px;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.page-header-label {
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-highlight);
    margin-bottom: 8px;
}

.page-header-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Page Content */
.page-content {
    padding: var(--section-padding) 0;
}

.page-content .container {
    max-width: 960px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-navy);
}

.breadcrumb span {
    margin: 0 8px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-navy);
}

.pagination .current {
    background: var(--color-navy);
    color: var(--color-offwhite);
    border-color: var(--color-navy);
}

/* --- Financial Page --- */
.financial-list {
    display: grid;
    gap: 12px;
}

.financial-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.financial-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.financial-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.financial-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
}

.financial-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-navy);
}

.financial-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.financial-download {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.financial-download:hover {
    color: var(--color-accent);
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(180deg, #1B4332 0%, #143528 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-offwhite);
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    color: var(--color-highlight);
}

.footer-logo .logo-ja {
    color: rgba(255, 255, 255, 0.5);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.82rem;
    font-family: var(--font-en);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-offwhite);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-highlight);
}

.footer-address p {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.footer-address a:hover {
    color: var(--color-highlight);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Complete Page --- */
.complete-section {
    text-align: center;
    padding: var(--section-padding) 0;
}

.complete-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-success);
    border-radius: 50%;
    font-size: 2rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--color-offwhite);
        flex-direction: column;
        padding: calc(var(--header-height) + 24px) 32px 32px;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-xl);
        z-index: 999;
    }

    .main-nav.nav-open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border-light);
        width: 100%;
    }

    .nav-contact {
        margin-top: 16px;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-hex {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

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

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

    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    .news-date {
        min-width: auto;
    }

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

    .company-info-table th {
        padding-top: 16px;
    }

    .company-info-table td {
        padding-bottom: 16px;
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .confirm-actions {
        flex-direction: column;
        align-items: center;
    }

    .financial-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

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

    .section-title {
        font-size: 1.5rem;
    }
}

/* --- Services Page (Card Grid) --- */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.service-detail-card-visual {
    height: 140px;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-detail-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0L60 15V37L30 52L0 37V15Z' fill='none' stroke='%2310B981' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px 52px;
}

.service-detail-card-visual svg {
    position: relative;
    z-index: 1;
}

.service-detail-card-body {
    padding: 28px 28px 32px;
}

.service-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.service-detail-card h3 {
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.service-detail-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

@media (max-width: 768px) {
    .services-detail-grid {
        grid-template-columns: 1fr;
    }
}
