/*
Theme Name: Organic Island Kikaijima
Theme URI: https://spotlight-test.site/organicisland-kikaijima/
Description: A custom theme crafted for NPO Organic Island Kikaijima - Promoting organic agriculture and sustainable farming on the beautiful island of Kikaijima.
Author: Spotlight Inc.
Author URI: https://hitasura.site/
Template: astra
Version: 1.0.0
Text Domain: organic-island-theme
License: Private - All Rights Reserved
*/

/* ===========================================
   1. CSS変数（Design Tokens）- 統一版
   =========================================== */
:root {
    /* フォントサイズ基準 */
    font-size: 16px;
    
    /* カラーパレット（統一） */
    --color-primary: #008E66;       /* 黄緑（メインカラー） */
    --color-primary-light: #00b07a; /* 黄緑の明るめ */
    --color-primary-dark: #00664d;  /* 黄緑の暗め */
    --color-dark: #004B36;          /* 深緑（アクセント/文字） */
    --color-dark-light: #006045;    /* 深緑の明るめ */
    --color-secondary: #d4ff5e;     /* ライムグリーン */
    --color-bg-cream: #FBF8E9;      /* クリーム背景 */
    --color-bg-cream-light: #FFFBF0;/* クリーム薄め */
    --color-bg-light: #f8fafc;      /* 薄いグレー背景 */
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #4a4a4a;
    --color-text-muted: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-warm: #FFE4C4;
    
    /* フォント */
    --font-en: 'BioRhyme';
    --font-jp: 'Zen Kaku Gothic Antique';
    --font-family-main: 'BioRhyme', 'Zen Kaku Gothic Antique', sans-serif;
    
    /* トランジション */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 角丸 */
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    /* シャドウ */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --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 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    /* z-index管理 */
    --z-header: 9999;
    --z-hamburger: 10000;
    --z-overlay: 9990;
}

/* ===========================================
   2. ベースリセット・共通スタイル
   =========================================== */

/* Elementor競合対策：サイト全体のフォント */
body,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-jp);
    color: var(--color-text);
    line-height: 1.6;
}

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

/* リンクリセット */
a {
    text-decoration: none;
    transition: var(--transition-fast);
}

/* リストリセット */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 見出しタグ定義 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-jp);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

h1 { font-size: 2.5rem; }   /* 40px */
h2 { font-size: 2rem; }     /* 32px */
h3 { font-size: 1.5rem; }   /* 24px */
h4 { font-size: 1.25rem; }  /* 20px */
h5 { font-size: 1rem; }     /* 16px */
h6 { font-size: 0.875rem; } /* 14px */

/* ===========================================
   3. 共通ユーティリティ
   =========================================== */

/* スマホのみ表示（768px以上で非表示） */
.sp-only {
    display: block;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* PCのみ表示（767px以下で非表示） */
.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .pc-only {
        display: block;
    }
}

/* 縦書き */
.vertical-text {
    writing-mode: vertical-rl;
}

/* ===========================================
   4. 共通ボタンスタイル
   =========================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--color-dark);
    color: var(--color-white) !important;
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-dark) !important;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .btn-primary {
        padding: 1rem 4rem;
        font-size: 1.25rem;
    }
}

/* ボタン波紋エフェクト */
.btn-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: border-radius 0.5s ease-in-out, background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-blob:hover {
    border-radius: 50%;
}

/* ===========================================
   5. 共通アニメーション
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* ===========================================
   6. ヘッダー
   =========================================== */
#custom-elementor-header-root {
    font-family: var(--font-family-main);
    line-height: 1.5;
}

/* リセット */
#custom-elementor-header-root a {
    text-decoration: none !important;
    box-shadow: none !important;
    transition: var(--transition-fast);
}

#custom-elementor-header-root ul,
#custom-elementor-header-root li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ヘッダー本体 */
#custom-elementor-header-root .ceh-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-header);
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

/* ロゴエリア */
#custom-elementor-header-root .ceh-logo-area {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    cursor: pointer;
}

#custom-elementor-header-root .ceh-logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

#custom-elementor-header-root .ceh-logo-text {
    font-weight: 700;
    color: var(--color-dark) !important;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    white-space: nowrap;
}

/* PCナビゲーション */
#custom-elementor-header-root .ceh-pc-nav {
    display: none;
    pointer-events: auto;
    align-items: center;
    gap: 2rem;
    flex-shrink: 1;
}

@media (min-width: 1024px) {
    #custom-elementor-header-root .ceh-pc-nav {
        display: flex;
    }
}

/* ノートPC調整 */
@media (min-width: 1024px) and (max-width: 1366px) {
    #custom-elementor-header-root .ceh-header {
        padding: 1rem 1.5rem !important;
    }
    #custom-elementor-header-root .ceh-pc-nav {
        gap: 1.25rem !important;
    }
    #custom-elementor-header-root .ceh-nav-link {
        font-size: 1rem !important;
    }
    #custom-elementor-header-root .ceh-cta-button {
        padding: 0.5rem 1.25rem !important;
        font-size: 1rem !important;
        margin-left: 0.5rem !important;
    }
    #custom-elementor-header-root .ceh-sub-text {
        font-size: 9px !important;
        margin-top: -2px !important;
    }
}

/* モバイル調整 */
@media (max-width: 768px) {
    #custom-elementor-header-root .ceh-header {
        padding: 0.75rem 1.25rem !important;
    }
    #custom-elementor-header-root .ceh-logo-img {
        height: 2.25rem !important;
    }
    #custom-elementor-header-root .ceh-logo-text {
        font-size: 0.75rem !important;
    }
    #custom-elementor-header-root .ceh-hamburger-btn {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }
    #custom-elementor-header-root .ceh-hamburger-line {
        width: 1.25rem !important;
    }
}

/* ナビリンク */
#custom-elementor-header-root .ceh-nav-link {
    position: relative;
    font-weight: 700;
    color: var(--color-dark) !important;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    display: inline-block;
    white-space: nowrap;
}

#custom-elementor-header-root .ceh-nav-link:hover {
    color: var(--color-primary) !important;
}

#custom-elementor-header-root .ceh-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

#custom-elementor-header-root .ceh-nav-link:hover::after {
    width: 100%;
}

/* サブテキスト */
#custom-elementor-header-root .ceh-sub-text {
    display: block;
    font-size: 10px;
    color: var(--color-text-muted) !important;
    font-weight: 400;
    margin-top: -4px;
    font-family: var(--font-jp);
    line-height: 1.2;
    white-space: nowrap;
}

/* CTAボタン */
#custom-elementor-header-root .ceh-cta-button {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.05em !important;
    box-shadow: var(--shadow-md) !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    border: none !important;
    transition: var(--transition-fast) !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

#custom-elementor-header-root .ceh-cta-button:hover {
    background-color: var(--color-dark) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-1px);
}

#custom-elementor-header-root .ceh-cta-button .ceh-sub-text {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 0 !important;
}

/* ハンバーガーボタン */
#custom-elementor-header-root .ceh-hamburger-btn {
    pointer-events: auto;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background-color: var(--color-primary) !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: var(--z-hamburger);
}

@media (min-width: 1024px) {
    #custom-elementor-header-root .ceh-hamburger-btn {
        display: none;
    }
}

#custom-elementor-header-root .ceh-hamburger-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-white) !important;
    border-radius: var(--radius-pill);
    transition: all var(--transition-bounce);
    position: relative;
    z-index: 10;
}

/* ハンバーガー変形 */
#custom-elementor-header-root.menu-open .ceh-hamburger-line-1 {
    transform: rotate(45deg) translate(5px, 6px);
}

#custom-elementor-header-root.menu-open .ceh-hamburger-line-2 {
    opacity: 0;
    transform: translateX(-20px);
}

#custom-elementor-header-root.menu-open .ceh-hamburger-line-3 {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* オーバーレイ */
#custom-elementor-header-root .ceh-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-primary) !important;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at top right);
    transition: clip-path var(--transition-slow);
    visibility: hidden;
}

#custom-elementor-header-root.menu-open .ceh-overlay {
    visibility: visible;
    clip-path: circle(150% at top right);
}

/* モバイルナビアイテム */
#custom-elementor-header-root .ceh-mobile-nav-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
    margin-bottom: 2rem;
    text-align: center;
}

#custom-elementor-header-root.menu-open .ceh-mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

#custom-elementor-header-root.menu-open .ceh-mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
#custom-elementor-header-root.menu-open .ceh-mobile-nav-item:nth-child(2) { transition-delay: 0.2s; }
#custom-elementor-header-root.menu-open .ceh-mobile-nav-item:nth-child(3) { transition-delay: 0.3s; }
#custom-elementor-header-root.menu-open .ceh-mobile-nav-item:nth-child(4) { transition-delay: 0.4s; }
#custom-elementor-header-root.menu-open .ceh-mobile-nav-item:nth-child(5) { transition-delay: 0.5s; }

#custom-elementor-header-root .ceh-mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white) !important;
    display: inline-block;
    position: relative;
}

#custom-elementor-header-root .ceh-mobile-link:hover {
    color: var(--color-secondary) !important;
}

/* SNSエリア */
#custom-elementor-header-root .ceh-sns-area {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

#custom-elementor-header-root.menu-open .ceh-sns-area {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

#custom-elementor-header-root .ceh-sns-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8) !important;
}

#custom-elementor-header-root .ceh-sns-icon:hover {
    color: var(--color-secondary) !important;
}

/* モバイルナビリスト */
#custom-elementor-header-root .ceh-mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* モバイルサブテキスト */
#custom-elementor-header-root .ceh-mobile-sub-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 12px;
    margin-top: 0.5rem;
    font-family: var(--font-jp);
}

/* 背景装飾 */
#custom-elementor-header-root .ceh-bg-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.05;
    pointer-events: none;
}

/* ===========================================
   7. フッター
   =========================================== */
#custom-elementor-footer-root {
    font-family: var(--font-en), var(--font-jp), sans-serif;
    line-height: 1.6;
    width: 100%;
    position: relative;
    overflow: hidden;
    color: var(--color-dark) !important;
}

#custom-elementor-footer-root a {
    text-decoration: none !important;
    transition: var(--transition-fast);
    color: inherit;
}

#custom-elementor-footer-root ul,
#custom-elementor-footer-root li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#custom-elementor-footer-root p {
    margin: 0 0 1rem 0;
}

/* フッター本体 */
#custom-elementor-footer-root .cef-footer {
    background-color: var(--color-bg-cream) !important;
    padding: 6rem 2rem 3rem 2rem;
    position: relative;
}

/* グリッド */
#custom-elementor-footer-root .cef-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    #custom-elementor-footer-root .cef-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* ブランドエリア */
#custom-elementor-footer-root .cef-brand-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

#custom-elementor-footer-root .cef-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity var(--transition-fast);
}

#custom-elementor-footer-root .cef-logo-link:hover {
    opacity: 0.7;
}

#custom-elementor-footer-root .cef-logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

#custom-elementor-footer-root .cef-address {
    font-size: 0.95rem;
    color: var(--color-dark);
    font-family: var(--font-jp);
    font-weight: 500;
    opacity: 0.9;
}

/* SNS */
#custom-elementor-footer-root .cef-sns-area {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

#custom-elementor-footer-root .cef-sns-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--color-primary) !important;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

#custom-elementor-footer-root .cef-sns-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    transform: translateY(-3px) rotate(12deg);
    border-color: var(--color-primary);
}

/* ナビゲーション */
#custom-elementor-footer-root .cef-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 769px) {
    #custom-elementor-footer-root .cef-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#custom-elementor-footer-root .cef-nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-en);
    position: relative;
    display: inline-block;
}

#custom-elementor-footer-root .cef-nav-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    margin-top: 4px;
    border-radius: 2px;
    opacity: 0.3;
}

#custom-elementor-footer-root .cef-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#custom-elementor-footer-root .cef-nav-item a {
    font-size: 1rem;
    color: var(--color-dark) !important;
    position: relative;
    display: inline-block;
    font-family: var(--font-jp);
    font-weight: 500;
    transition: color var(--transition-fast);
}

#custom-elementor-footer-root .cef-nav-item a:hover {
    color: var(--color-primary) !important;
    font-weight: 700;
}

#custom-elementor-footer-root .cef-nav-item a::before {
    content: '●';
    font-size: 0.5rem;
    color: var(--color-primary);
    margin-right: 0.5rem;
    vertical-align: middle;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition-fast);
    display: inline-block;
}

#custom-elementor-footer-root .cef-nav-item a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* コピーライト */
#custom-elementor-footer-root .cef-copyright {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 75, 54, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-dark);
    opacity: 0.8;
    font-family: var(--font-en);
}
