/* Base Reset & Variables */
:root {
    /* Colors */
    /* --primary-color: 主色 */
    --primary-color: #009EA1;
    /* --primary-hover: 主色ホバー */
    --primary-hover: #006466;
    /* 主色ホバー */
    /* --secondary-color: 補助色（スレート900） */
    --secondary-color: #0F172A;
    /* --secondary-hover: 補助色ホバー（スレート800） */
    --secondary-hover: #1E293B;
    /* 補助色ホバー */
    /* Slate 800 */

    /* --text-main: メインテキスト色（スレート900） */
    --text-main: #0F172A;
    /* --text-muted: 補助テキスト色（スレート600） */
    --text-muted: #475569;
    /* 補助テキスト色 */
    /* --text-light: ライトテキスト色（スレート400） */
    --text-light: #94A3B8;
    /* ライトテキスト色 */
    /* Slate 400 */

    /* --bg-light: 背景色（スレート50） */
    --bg-light: #F8FAFC;
    /* Slate 50 */
    /* --bg-white: 白背景 */
    --bg-white: #FFFFFF;
    /* --border-color: 境界線色（スレート200） */
    --border-color: #E2E8F0;
    /* Slate 200 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 48px;

    /* Fonts */
    --font-base: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Backgrounds */
    /* --bg-card: カード背景 */
    --bg-card: #FFFFFF;
    /* --bg-header: ヘッダー背景（半透明白） */
    --bg-header: rgba(255, 255, 255, 0.9);
    /* --bg-overlay: オーバーレイ背景（暗い半透明） */
    --bg-overlay: rgba(0, 0, 0, 0.4);
    /* --bg-feature-icon: フィーチャーアイコン背景（淡い青） */
    --bg-feature-icon: #EFF6FF;
    /* --bg-product-image: 製品画像背景（淡いグレー） */
    --bg-product-image: #f1f5f9;
    /* --bg-mobile-menu: モバイルメニュー背景 */
    --bg-mobile-menu: #FFFFFF;
    /* --bg-footer: フッター背景 */
    --bg-footer: #FFFFFF;
    /* --bg-vision: ビジョンセクション背景 */
    --bg-vision: #FFFFFF;
    /* --bg-product: 製品セクション背景 */
    --bg-product: #FFFFFF;
    /* --bg-cta-secondary: セカンダリCTA背景 */
    --bg-cta-secondary: #FFFFFF;
    /* --bg-cta-secondary-hover: セカンダリCTAホバー背景 */
    --bg-cta-secondary-hover: #f8fafc;
}

.hidden {
    display: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    margin: 0;
    font-family: var(--font-base);
    line-height: 1.8;
    color: var(--text-main);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt";
    /* Proportional metrics for Japanese */
    position: relative;
    overflow-x: hidden;
}

/* Organic Background Shapes */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    pointer-events: none;
}

body::before {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(219, 234, 254, 0.8) 0%, rgba(219, 234, 254, 0) 70%);
    /* Pale Blue */
    top: -20%;
    left: -10%;
    animation: float 20s infinite alternate ease-in-out;
}

body::after {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(237, 233, 254, 0.8) 0%, rgba(237, 233, 254, 0) 70%);
    /* Pale Violet */
    bottom: -10%;
    right: -10%;
    animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== HEADER ===== */
header {
    padding: 20px 32px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-text {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--text-main);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    white-space: nowrap;
}

.logo-image {
    opacity: 1;
    transform: rotate(0deg);
    /* Remove transition for direct scroll control or keep for smooth settling */
    transition: opacity 1.2s ease;
    will-change: transform;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Scrolled State */
header.scrolled .logo-text {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

header.scrolled .logo-image {
    opacity: 1;
    transform: rotate(360deg);
    transform-origin: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.nav-btn:hover {
    background: var(--secondary-hover);
    color: #fff;
    opacity: 1;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    z-index: 101;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 98;
    backdrop-filter: blur(4px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    /* Header height approx */
    left: 0;
    right: 0;
    background: var(--bg-mobile-menu);
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: var(--shadow-md);
    max-height: 0;
}

.mobile-menu.menu-open {
    max-height: 500px;
    /* Adjust as needed */
}

.mobile-link {
    display: block;
    padding: 16px 32px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-link:last-child {
    border-bottom: none;
}


/* ===== SECTIONS ===== */
section {
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Vision Section */
.vision-section {
    text-align: center;
    background: var(--bg-vision);
    border-radius: var(--radius-xl);
    margin: 80px auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 80px 32px;
    position: relative;
}

.vision-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:last-child {
    grid-column: 1 / -1;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.value-card h4 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.value-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* List styling for values */
.value-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List items spacing */
.value-card li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-muted);
    padding-left: 0;
}

.value-card li:last-child {
    margin-bottom: 0;
}

/* Product Section */
.product-section {
    text-align: center;
    background: var(--bg-product);
    border-radius: var(--radius-xl);
    margin: 80px auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 80px 32px;
    position: relative;
}

.product-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.product-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.product-image {
    background: var(--bg-product-image);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    min-width: 180px;
}

.cta-btn.primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ===== FOOTER (Simple) ===== */
footer {
    background: var(--bg-footer);
    padding: 40px 32px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .mobile-overlay {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    /* Sections */
    section {
        padding: 60px 20px;
    }

    .vision-section {
        margin: 40px auto;
        padding: 40px 20px;
    }

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

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-content {
        padding: 32px;
    }

    .product-image {
        height: 240px;
    }
}