/* ========================================
   G-SHOWROOM ベーススタイル
   - CSS変数
   - リセット
   - 基本スタイル
   ======================================== */

/* CSS変数 */
:root {
    /* カラー */
    --color-primary: #29ABDD;
    --color-primary-dark: #0E69B5;
    --color-cream: #FBF7F1;
    --color-text: #333333;
    --color-white: #ffffff;
    --color-gray: #aaaaaa;
    --color-border: #e6e6e6;
    --color-card-bg: #fcf9f5;
    --color-card-border: #e9e0d4;

    /* フォント */
    --font-ja: "BIZ UDMincho", serif;
    --font-en: "Figtree", sans-serif;
    --font-script: "Niconne", cursive;

    /* 間隔 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 60px;
    --space-3xl: 80px;

    /* 角丸 */
    --radius-xs: 2px;
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-2xl: 25px;
    --radius-full: 9999px;

    /* シャドウ */
    --shadow-sm: 1px 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 1px 1px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);

    /* トランジション */
    --transition-fast: 0.3s ease;
}

/* リセット */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* 英数字フォント */
.en {
    font-family: var(--font-en);
    font-weight: 700;
}

/* PCのみ改行（スマホで非表示） */
.br-pc {
    display: inline;
}

@media (max-width: 768px) {
    .br-pc {
        display: none;
    }
}

/* 視覚的に非表示（スクリーンリーダー用） */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   グリッドユーティリティ
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 1024px) {
    .grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .grid--4col,
    .grid--3col,
    .grid--2col {
        grid-template-columns: 1fr;
    }
}
