/* =========================================
   コーポレートサイト共通スタイル
   株式会社グッドアイ (GUDI)
   ========================================= */

:root {
    --primary: #0a3d62;
    --primary-dark: #062a44;
    --primary-light: #1e6091;
    --accent: #c89b3c;
    --accent-dark: #a87a1f;
    --text: #1a1a1a;
    --text-muted: #5a6470;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-section: #fafbfc;
    --border: #e1e5eb;
    --sky: #4a90c2;
    --food: #6fae5b;
    --protect: #d4694f;
    --harmony: #b1718a;
    --joy: #d4a84b;
    --max-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    -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 0.2s ease;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-soft {
    background: var(--bg-soft);
}

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

.section-title {
    font-family: "Noto Serif JP", serif;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.section-title-en {
    display: block;
    font-family: "Cormorant Garamond", "Noto Serif JP", serif;
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: uppercase;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 56px;
    font-size: 1rem;
}

/* =========================================
   Header
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-header .brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.site-footer .brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-name {
    font-family: "Noto Serif JP", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
}

.brand-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    font-family: "Cormorant Garamond", serif;
    margin-top: 2px;
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.global-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-size: 0.85rem !important;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-light);
    color: #fff !important;
}

.nav-cta::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: space-around;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* =========================================
   Hero
   ========================================= */

.hero {
    margin-top: var(--header-height);
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3b3f46 0%, #4e535c 50%, #626770 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 155, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-en {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

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

.hero-lead {
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.92);
}

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

/* Subpage hero */
.subhero {
    margin-top: var(--header-height);
    padding: 88px 0 72px;
    background-color: #0a3d62;
    background-image:
        var(--subhero-overlay, linear-gradient(135deg, rgba(10, 61, 98, 0.88) 0%, rgba(30, 96, 145, 0.86) 100%)),
        var(--subhero-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    position: relative;
}

.subhero-en {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.4em;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}

.subhero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.subhero p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.breadcrumb {
    background: var(--bg-soft);
    padding: 14px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

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

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--border);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* =========================================
   Five themes (5つの視点)
   ========================================= */

.themes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.theme-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 61, 98, 0.15);
}

.theme-kanji {
    font-family: "Noto Serif JP", serif;
    font-size: 3rem;
    font-weight: 700;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
}

.theme-card.sky .theme-kanji { background: var(--sky); }
.theme-card.food .theme-kanji { background: var(--food); }
.theme-card.protect .theme-kanji { background: var(--protect); }
.theme-card.harmony .theme-kanji { background: var(--harmony); }
.theme-card.joy .theme-kanji { background: var(--joy); }

.theme-name {
    font-family: "Noto Serif JP", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.theme-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   Product cards
   ========================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 61, 98, 0.12);
}

.product-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-soft), var(--border));
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image .badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.product-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-card-subtitle {
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    font-family: "Cormorant Garamond", serif;
    text-transform: uppercase;
}

.product-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.product-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.product-card-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* =========================================
   Feature blocks (for product detail pages)
   ========================================= */

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    padding: 28px;
}

.feature-number {
    font-family: "Cormorant Garamond", serif;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.feature-title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   Product detail intro
   ========================================= */

.product-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-intro-img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
}

.product-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-intro h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-intro p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.9;
}

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.spec-table th,
.spec-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.spec-table th {
    background: var(--bg-soft);
    color: var(--primary);
    font-weight: 600;
    width: 30%;
    font-family: "Noto Serif JP", serif;
}

/* =========================================
   News
   ========================================= */

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.news-date {
    font-family: "Cormorant Garamond", serif;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.news-title {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

/* =========================================
   Company info
   ========================================= */

.company-table {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.company-table .spec-table th {
    width: 28%;
}

/* =========================================
   Contact form
   ========================================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
}

.contact-info h3 {
    font-family: "Noto Serif JP", serif;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.contact-info-block {
    margin-bottom: 32px;
}

.contact-info-label {
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-info-value {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-form {
    background: var(--bg-soft);
    padding: 40px;
    border-radius: 8px;
}

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

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

.form-label .required {
    color: #d4694f;
    margin-left: 6px;
    font-size: 0.78rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.08);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235a6470' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-actions {
    text-align: center;
    margin-top: 32px;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-light);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

/* =========================================
   FAQ (共通)
   ========================================= */

.faq-list {
    max-width: 820px;
    margin: 48px auto 0;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.98rem;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--bg-soft);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 0.92rem;
}

/* =========================================
   CTA section
   ========================================= */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 88px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    background: #0a1929;
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-brand .brand-sub {
    color: var(--accent);
}

.footer-brand p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column h4 {
    font-family: "Noto Serif JP", serif;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Utility
   ========================================= */

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

.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 960px) {
    .section {
        padding: 64px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .global-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .global-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .global-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--bg-soft);
    }

    .global-nav a::after {
        display: none;
    }

    .nav-cta {
        margin: 12px 24px;
        text-align: center;
    }

    .hero {
        min-height: 480px;
        padding: 64px 0;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .features-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-title {
        font-size: 1.8rem;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .contact-form {
        padding: 24px;
    }
}
