/* =================================== ペラサイト汎用テンプレート CSS デザインシステム + レスポンシブ対応 =================================== */ /* --- カスタムプロパティ(カラースキーム) --- */ :root { --font-main: 'Noto Sans JP', sans-serif; --color-text: #1a1a2e; --color-text-light: #555; --color-bg: #f8f9fb; --color-white: #ffffff; --color-shadow: rgba(0, 0, 0, 0.08); --radius: 12px; --max-width: 780px; --transition: 0.3s ease; } /* カラースキーム: blue */ .hero--blue, .cta-box--blue { --accent: #2563eb; --accent-dark: #1d4ed8; --accent-light: #dbeafe; --gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%); } /* カラースキーム: green */ .hero--green, .cta-box--green { --accent: #16a34a; --accent-dark: #15803d; --accent-light: #dcfce7; --gradient: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #22c55e 100%); } /* カラースキーム: pink */ .hero--pink, .cta-box--pink { --accent: #db2777; --accent-dark: #be185d; --accent-light: #fce7f3; --gradient: linear-gradient(135deg, #831843 0%, #db2777 50%, #ec4899 100%); } /* カラースキーム: orange */ .hero--orange, .cta-box--orange { --accent: #ea580c; --accent-dark: #c2410c; --accent-light: #fff7ed; --gradient: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #f97316 100%); } /* カラースキーム: purple */ .hero--purple, .cta-box--purple { --accent: #7c3aed; --accent-dark: #6d28d9; --accent-light: #ede9fe; --gradient: linear-gradient(135deg, #3b0764 0%, #7c3aed 50%, #8b5cf6 100%); } /* --- リセット・ベース --- */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: var(--font-main); color: var(--color-text); background: var(--color-bg); line-height: 1.8; -webkit-font-smoothing: antialiased; padding-bottom: 80px; /* スティッキーCTA用余白 */ } img { max-width: 100%; height: auto; } a { text-decoration: none; color: inherit; } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; } /* --- セクション共通 --- */ .section { padding: 60px 0; } .section__heading { text-align: center; font-size: 1.6rem; font-weight: 900; margin-bottom: 40px; position: relative; padding-bottom: 16px; } .section__heading::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent, #2563eb); border-radius: 2px; } .section__heading strong { color: var(--accent, #2563eb); } /* --- ヒーロー --- */ .hero { background: var(--gradient); color: #fff; padding: 80px 20px 60px; text-align: center; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: -50%; right: -30%; width: 500px; height: 500px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; } .hero::after { content: ''; position: absolute; bottom: -40%; left: -20%; width: 400px; height: 400px; background: rgba(255, 255, 255, 0.03); border-radius: 50%; } .hero__inner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; } .hero__label { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; margin-bottom: 12px; } .hero__title { font-size: 2rem; font-weight: 900; line-height: 1.4; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .hero__subtitle { font-size: 1rem; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; } /* --- CTAボタン --- */ .cta-btn { display: inline-block; padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 1.05rem; transition: all var(--transition); cursor: pointer; position: relative; overflow: hidden; } .cta-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.5s ease; } .cta-btn:hover::before { left: 100%; } .cta-btn--hero { background: #fff; color: var(--accent, #2563eb); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); } .cta-btn--hero:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); } .cta-btn--large, .cta-btn--final { background: var(--accent, #2563eb); color: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); font-size: 1.15rem; padding: 18px 50px; } .cta-btn--large:hover, .cta-btn--final:hover { background: var(--accent-dark, #1d4ed8); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); } /* マイクロコピー */ .micro-copy { display: block; font-size: 0.85rem; font-weight: 700; color: #e11d48; margin-bottom: 6px; letter-spacing: 1px; } /* 権威性バッジ */ .authority-badge { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #b45309; border: 2px solid #f59e0b; border-radius: 50px; padding: 6px 16px; font-size: 0.9rem; font-weight: 900; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); } .authority-badge__icon { font-size: 1.1rem; margin-right: 6px; } /* パルスアニメーション */ .cta-btn--final { animation: pulse 2s infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } } /* --- 商品紹介カード --- */ .product-card { background: var(--color-white); border-radius: var(--radius); padding: 40px 30px; text-align: center; box-shadow: 0 4px 20px var(--color-shadow); position: relative; overflow: hidden; border: 2px solid transparent; transition: border-color var(--transition); } .product-card:hover { border-color: var(--accent, #2563eb); } .product-card__catch { font-size: 1.3rem; font-weight: 700; line-height: 1.6; color: var(--color-text); } .product-card__badge { position: absolute; top: 16px; right: -30px; background: var(--accent, #2563eb); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 40px; transform: rotate(45deg); } /* --- メリットカード --- */ .benefits { background: var(--color-white); } .benefits__grid { display: grid; grid-template-columns: 1fr; gap: 24px; } .benefit-card { background: var(--color-bg); border-radius: var(--radius); padding: 30px 24px; display: flex; align-items: flex-start; gap: 20px; transition: transform var(--transition), box-shadow var(--transition); } .benefit-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px var(--color-shadow); } .benefit-card__number { font-size: 2rem; font-weight: 900; color: var(--accent, #2563eb); line-height: 1; flex-shrink: 0; opacity: 0.7; } .benefit-card__text { font-size: 1.05rem; font-weight: 500; line-height: 1.7; padding-top: 4px; } /* --- チェックリスト --- */ .check-list { list-style: none; max-width: 500px; margin: 0 auto; } .check-list__item { font-size: 1.05rem; padding: 12px 0; border-bottom: 1px solid #eee; line-height: 1.7; } .check-list__item:last-child { border-bottom: none; } /* --- CTAボックス --- */ .cta-box { background: var(--accent-light, #dbeafe); border-radius: var(--radius); padding: 48px 32px; text-align: center; } .cta-box__text { font-size: 0.95rem; color: var(--accent, #2563eb); font-weight: 700; margin-bottom: 8px; } .cta-box__product { font-size: 1.5rem; font-weight: 900; margin-bottom: 24px; color: var(--color-text); } .cta-box--final { background: var(--gradient); color: #fff; padding: 60px 32px; } .cta-box__heading { font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; } .cta-box__catch { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.9; } /* --- FAQ --- */ .faq { background: var(--color-white); } .faq__list { max-width: 600px; margin: 0 auto; } .faq-item { border-bottom: 1px solid #eee; padding: 16px 0; } .faq-item__q { font-weight: 700; font-size: 1rem; cursor: pointer; padding: 8px 0; list-style: none; position: relative; padding-right: 30px; } .faq-item__q::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent, #2563eb); transition: transform var(--transition); } .faq-item[open] .faq-item__q::after { content: '−'; } .faq-item__a { padding: 12px 0 8px; color: var(--color-text-light); font-size: 0.95rem; line-height: 1.8; } /* --- フッター --- */ .footer { text-align: center; padding: 40px 20px; background: #1a1a2e; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; } .footer__text { margin-bottom: 8px; } /* --- レスポンシブ --- */ @media (min-width: 600px) { .hero__title { font-size: 2.4rem; } .benefits__grid { grid-template-columns: repeat(3, 1fr); } .benefit-card { flex-direction: column; text-align: center; } .benefit-card__number { font-size: 2.5rem; } } @media (min-width: 768px) { .hero { padding: 100px 20px 80px; } .hero__title { font-size: 2.8rem; } .section { padding: 80px 0; } .section__heading { font-size: 1.8rem; } } /* --- 口コミ・レビュー --- */ .reviews { background: var(--color-bg); } .reviews__grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 800px; margin: 0 auto; } @media (min-width: 768px) { .reviews__grid { grid-template-columns: 1fr 1fr; } } .review-card { background: var(--color-white); border-radius: var(--radius); padding: 30px; box-shadow: 0 4px 15px var(--color-shadow); border-left: 4px solid var(--accent, #2563eb); } .review-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .review-card__stars { color: #fbbf24; font-size: 1.2rem; letter-spacing: 2px; } .review-card__user { font-size: 0.9rem; color: var(--color-text-light); font-weight: 700; } .review-card__text { font-size: 0.95rem; line-height: 1.7; font-style: italic; } /* --- 緊急性・マイクロコピー --- */ .cta-box__urgency { color: #e11d48; background: #fff1f2; padding: 8px 16px; border-radius: 5px; border: 1px dashed #e11d48; display: inline-block; font-size: 0.95rem; font-weight: 900; margin-bottom: 20px; animation: blink 2.5s infinite; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* --- スティッキーCTA --- */ .sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1); padding: 12px 20px; z-index: 50; display: flex; justify-content: center; transform: translateY(100%); animation: slideUp 0.5s forwards 1s; } @keyframes slideUp { to { transform: translateY(0); } } .sticky-cta__btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent, #2563eb); color: #fff; width: 100%; max-width: 400px; padding: 14px 24px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: transform var(--transition), box-shadow var(--transition); } .sticky-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); background: var(--accent-dark, #1d4ed8); } /* --- シャインエフェクト --- */ .cta-btn--shine { position: relative; overflow: hidden; } .cta-btn--shine::after { content: ''; position: absolute; top: -50%; left: -100%; width: 50%; height: 200%; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%); transform: rotate(30deg); animation: shine 3s infinite; } @keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }