@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
}

.page-template-page-landing .container {
    margin: 0 auto;
    max-width: 100%;
}

.page-template-page-landing .content {
    margin-top: 0;
}

.page-template-page-landing .main {
    padding: 0;
    border: none;
}

/* グラデーション */
.gradient-rice {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 50%, #FFD54F 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* パターン */
.rice-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
                      radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
}

/* ホバーエフェクト */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* アニメーション */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* スクロール効果用の初期状態 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* カスタムボタン */
.btn-primary {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B35 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: white;
    border: 2px solid #FF8C00;
    color: #FF8C00;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #FF8C00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF8C00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

/* フォーカス状態 */
button:focus,
a:focus {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
}

/* ヒーロースライドショー */
.hero-slideshow {
    position: relative;
    min-height: 400px;
    max-width: 500px;
    margin: 0 auto;
}

.hero-slide {
    display: none;
    min-height: 400px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #FF8C00;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 140, 0, 0.6);
}

#heroProgressBar {
    background: linear-gradient(90deg, #FF8C00, #FFD700);
}

.okomemo-container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px;
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .hero-slideshow {
      max-width: 400px;
      min-height: 350px;
  }
  .hero-slide {
      min-height: 350px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
    .floating {
        animation: none;
    }
    .hover-lift:hover {
        transform: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    .mobile-center {
        text-align: center;
    }
    .mobile-stack {
        flex-direction: column;
    }
    .hero-slideshow {
        max-width: 100%;
        min-height: 300px;
    }
    .hero-slide {
        min-height: 300px;
    }
    .hero-slide h3 {
        font-size: 1.25rem;
    }
    .hero-slide p {
        font-size: 0.875rem;
    }
    .hero-slide .p-6 {
        padding: 1rem;
    }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rice-pattern {
        background-size: 10px 10px;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    .floating,
    .fade-in,
    .scale-in {
        animation: none;
    }
    .hover-lift {
        transition: none;
    }
}
