/**
 * G-MAX ウェブサイト メインスタイルシート
 * コンポーネント指向のスリムな構造
 */

/* ベーススタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background-color: #FFFFFF;
}

.serif {
    font-family: 'Noto Serif JP', serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* カラー変数（将来的にCSSカスタムプロパティへの移行も検討可能） */
/* 色定義 */
.text-green { color: #8DAA91; }
.bg-green { background-color: #8DAA91; }
.text-gold { color: #D4B254; }
.bg-gold { background-color: #D4B254; }
.text-orange { color: #F3A269; }
.bg-orange { background-color: #F3A269; }
.bg-lightgray { background-color: #F9F7F5; }

/* テキスト装飾 */
.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(141, 170, 145, 0.2);
    z-index: -1;
}

/* ボタンコンポーネント */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    color: white;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #8DAA91;
}

.btn-primary:hover {
    background-color: #7A9781;
}

.btn-secondary {
    background-color: #D4B254;
}

.btn-secondary:hover {
    background-color: #C4A244;
}

/* カードコンポーネント */
.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* アニメーション */
.hero-slide-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 引用マーク */
.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: rgba(141, 170, 145, 0.2);
}

/* アイコンコンポーネント */
.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon i {
    font-size: 24px;
}

.icon-green {
    background-color: rgba(141, 170, 145, 0.1);
}

.icon-green i {
    color: #8DAA91;
}

/* 商品バッジ */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #D4B254;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ランキング番号 */
.ranking-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background-color: #D4B254;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* スクロールトップボタン */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #8DAA91;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* データテーブルコンポーネント */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    width: 30%;
    background-color: #F9F7F5;
    padding: 1.5rem;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.data-table td {
    width: 70%;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

/* セクションスタイル */
.guide-section {
    border-bottom: 1px solid #eee;
    padding: 2rem 0;
}

.guide-section:last-child {
    border-bottom: none;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* アンカーリンクスクロール調整 */
html {
    scroll-padding-top: 100px;
}

/* レスポンシブ対応 */
/* ここから追加 */
/* トランジション遅延ユーティリティ */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
/* 必要に応じて増やしてください */
/* ここまで追加 */


@media (max-width: 768px) {
    .data-table,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
        width: 100%;
    }
    
    .data-table th {
        padding: 1rem;
    }
    
    .data-table td {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
}
