/*
Theme Name: 丸石サイクル
Theme URI: https://maruishi-cycle.com/
Author: 丸石サイクル
Author URI: https://maruishi-cycle.com/
Description: 丸石サイクル - 家族でつくる、家族で遊ぶ。元自転車屋の複合体験施設のウェブサイト。Tシャツ制作、カフェ、砂場カフェ、レーザー彫刻の4つの体験エリアを持つファミリー向け施設です。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maruishi-cycle
Tags: family, custom, business, one-page, responsive, retro
*/

/* ========================================
   基本設定
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ee5a6f;
    --accent-red: #ff8787;
    --accent-blue: #74c0fc;
    --accent-yellow: #ffd93d;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #fff5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #fff5f5 0%, #ffe3e3 50%, #fff0f0 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ナビゲーション
   ======================================== */

.navbar {
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.nav-brand h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ========================================
   ボタン
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-2px) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ========================================
   セクション共通スタイル
   ======================================== */

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before,
.section-title::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.section-title::before {
    left: calc(50% - 200px);
    animation-delay: 0.3s;
}

.section-title::after {
    right: calc(50% - 200px);
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

section {
    padding: 5rem 0;
    position: relative;
}

/* 背景パターン（自転車のギア・チェーン） */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20px 20px, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle at 60px 60px, var(--primary-color) 2px, transparent 2px);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* セクション装飾（自転車イラスト） */
.services::after,
.story-preview::after,
.info-section::after {
    content: '🚲';
    position: absolute;
    font-size: 8rem;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    animation: slowRotate 20s linear infinite;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.services::after {
    top: 50px;
    right: 50px;
}

.story-preview::after {
    bottom: 50px;
    left: 50px;
}

.info-section::after {
    top: 50px;
    left: 50px;
}

/* 追加の楽しい絵文字装飾 */
.services {
    position: relative;
}

.services .container::before,
.services .container::after {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

.services .container::before {
    content: '⚙️';
    top: 100px;
    left: 30px;
    animation-delay: 0.5s;
}

.services .container::after {
    content: '🔧';
    bottom: 100px;
    right: 30px;
    animation-delay: 1s;
}

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

/* ========================================
   4つの体験エリア
   ======================================== */

.services {
    background: linear-gradient(180deg, #ffe3e3 0%, #ffcdd2 100%);
}

/* ギアパターンの強化 */
.services::before {
    background-image: 
        radial-gradient(circle at 25px 25px, transparent 18px, var(--primary-color) 18px, var(--primary-color) 20px, transparent 20px),
        radial-gradient(circle at 25px 25px, transparent 22px, var(--primary-color) 22px, var(--primary-color) 24px, transparent 24px),
        radial-gradient(circle at 25px 25px, var(--primary-color) 2px, transparent 2px);
    background-size: 100px 100px;
    background-position: 0 0, 50px 50px, 0 0;
    opacity: 0.05;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-image: linear-gradient(135deg, #ffffff, #fff5f5), 
                      linear-gradient(135deg, var(--primary-color), var(--accent-yellow), var(--accent-red));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: var(--shadow-lg);
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-10px) rotate(-2deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-10px) rotate(1deg); }
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

/* 画像アイコンスタイル */
.service-icon-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 4px solid var(--primary-color);
}

.service-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.service-card:hover .service-icon-image img {
    transform: scale(1.2);
}

/* Coming Soonカードの画像を少し薄く */
.coming-soon-card .service-icon-image {
    opacity: 0.7;
    border-color: var(--accent-yellow);
}

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

/* アイコンごとに異なる遅延 */
.service-card:nth-child(1) .service-icon { animation-delay: 0s; }
.service-card:nth-child(2) .service-icon { animation-delay: 0.2s; }
.service-card:nth-child(3) .service-icon { animation-delay: 0.4s; }
.service-card:nth-child(4) .service-icon { animation-delay: 0.6s; }

.service-card:nth-child(1) .service-icon-image { animation: iconBounce 2s ease-in-out infinite 0s; }
.service-card:nth-child(2) .service-icon-image { animation: iconBounce 2s ease-in-out infinite 0.2s; }
.service-card:nth-child(3) .service-icon-image { animation: iconBounce 2s ease-in-out infinite 0.4s; }
.service-card:nth-child(4) .service-icon-image { animation: iconBounce 2s ease-in-out infinite 0.6s; }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Coming Soon カード専用スタイル */
.coming-soon-card {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px dashed var(--primary-color);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-red));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(245, 87, 108, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.coming-soon-card .service-icon {
    opacity: 0.6;
}

.coming-soon-card h3 {
    color: var(--primary-color);
}

.coming-soon-card p {
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   なぜこの4つ？セクション
   ======================================== */

.why-section {
    background: linear-gradient(180deg, #fff5f5 0%, #ffe3e3 100%);
    padding: 4rem 0;
    position: relative;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(255, 107, 107, 0.03) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.owner-photo {
    text-align: center;
}

.owner-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.owner-image:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.4);
}

.owner-name {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.why-text {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
}

.why-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
}

.why-text strong {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: var(--accent-yellow);
    text-decoration-thickness: 3px;
}

/* ========================================
   ストーリープレビュー
   ======================================== */

.story-preview {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

/* チェーンパターン */
.story-preview::before {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    opacity: 1;
}

/* 波型の区切り線 */
.services {
    position: relative;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 50px;
    background: 
        radial-gradient(circle at 50px 0, var(--bg-light) 50px, transparent 50px),
        radial-gradient(circle at 150px 0, var(--bg-light) 50px, transparent 50px),
        radial-gradient(circle at 250px 0, var(--bg-light) 50px, transparent 50px),
        radial-gradient(circle at 350px 0, var(--bg-light) 50px, transparent 50px);
    background-size: 200px 50px;
    background-repeat: repeat-x;
    z-index: 10;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-preview .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 3px solid white;
}

.story-preview .btn-primary:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.story-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ========================================
   営業情報セクション
   ======================================== */

.info-section {
    background: linear-gradient(180deg, #fff0f0 0%, #ffcdd2 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.12);
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s;
}

.info-card:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.25);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-light);
}

.info-cta {
    text-align: center;
}

/* ========================================
   フッター
   ======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section h3 i {
    margin-right: 0.5rem;
    color: var(--accent-yellow);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   トップへ戻るボタン
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========================================
   楽しいインタラクティブ要素
   ======================================== */

/* カーソルについてくる星 */
.cursor-star {
    position: absolute;
    pointer-events: none;
    font-size: 1.5rem;
    animation: starFade 1s ease-out forwards;
    z-index: 9999;
}

@keyframes starFade {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, -50px) scale(0.5);
    }
}

/* 紙吹雪エフェクト */
.confetti {
    position: absolute;
    pointer-events: none;
    font-size: 1.2rem;
    animation: confettiFall 1.5s ease-out forwards;
    z-index: 9999;
    border-radius: 50%;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, 100px)) rotate(720deg);
    }
}

/* 自転車ホイールの装飾 */
.info-section::before {
    background-image: 
        repeating-conic-gradient(
            from 0deg at 50px 50px,
            var(--primary-color) 0deg 10deg,
            transparent 10deg 30deg
        ),
        radial-gradient(circle at 50px 50px, transparent 40px, var(--primary-color) 40px, var(--primary-color) 42px, transparent 42px);
    background-size: 100px 100px;
    opacity: 0.04;
}

/* カラフルな色の飛沫装飾 */
.info-section {
    position: relative;
}

.info-section .container::before,
.info-section .container::after {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.info-section .container::before {
    content: '';
    top: 150px;
    right: 100px;
    background: radial-gradient(circle, var(--accent-yellow), transparent);
    animation: pulse 3s ease-in-out infinite;
}

.info-section .container::after {
    content: '';
    bottom: 150px;
    left: 100px;
    background: radial-gradient(circle, var(--accent-red), transparent);
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.5); opacity: 0.2; }
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-content h2 {
        font-size: 2rem;
    }

    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* なぜこの4つ？セクションのレスポンシブ */
    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .owner-image {
        width: 220px;
        height: 220px;
    }

    /* モバイルでは装飾を小さく */
    .services::after,
    .story-preview::after,
    .info-section::after {
        font-size: 4rem;
        opacity: 0.05;
    }

    .services::after {
        top: 20px;
        right: 20px;
    }

    .story-preview::after {
        bottom: 20px;
        left: 20px;
    }

    .info-section::after {
        top: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* なぜこの4つ？セクション - スマホ */
    .owner-image {
        width: 180px;
        height: 180px;
    }

    .why-text {
        padding: 1.5rem;
    }

    .why-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
}
