@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ========================================
   東海シュークリームライド - トップページCSS
   ======================================== */

:root {
  --tp-orange: #F5A623;
  --tp-orange-dark: #E09010;
  --tp-brown: #5C3D1E;
  --tp-white: #ffffff;
  --tp-gray-light: #F8F6F2;
  --tp-gray: #f0ece4;
  --tp-text: #333333;
  --tp-text-light: #666666;
  --tp-radius: 12px;
  --tp-shadow: 0 4px 20px rgba(92,61,30,0.1);
  --tp-shadow-hover: 0 8px 30px rgba(92,61,30,0.18);
}

.top-page * { box-sizing: border-box; }
.top-page { font-family: 'Hiragino Kaku Gothic ProN','Hiragino Sans','Yu Gothic',sans-serif; color: var(--tp-text); background: #fff; margin: 0; padding: 0; }
.top-page a { text-decoration: none; color: inherit; }
.top-page img { max-width: 100%; height: auto; display: block; }

/* コンテナ */
.tp-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.tp-header { background: var(--tp-orange); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.tp-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; height: 64px; }
.tp-header__logo a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.tp-logo-icon { flex-shrink: 0; }
.tp-logo-text { font-size: 1.05rem; font-weight: 700; white-space: nowrap; letter-spacing: 0.02em; color: #fff; }

/* ナビ */
.tp-nav { margin-left: auto; }
.tp-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.tp-nav ul li a { color: #fff; font-size: 0.88rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; transition: background 0.2s; display: block; white-space: nowrap; }
.tp-nav ul li a:hover { background: rgba(255,255,255,0.2); }

/* ハンバーガー */
.tp-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.tp-nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.tp-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.tp-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.tp-hero { background-image: url('https://cycling-ikomai.com/wp-content/uploads/2026/04/IMG_2722.jpeg'); background-size: cover; background-position: center; position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.tp-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 1; }
.tp-hero__inner { max-width: 900px; margin: 0 auto; padding: 80px 24px 100px; display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.tp-hero__content { position: relative; z-index: 2; }
.tp-hero__catch { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: 0.05em; opacity: 1; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.tp-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: #fff; margin: 0 0 16px; line-height: 1.2; letter-spacing: 0.03em; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.tp-hero__sub { font-size: 0.95rem; color: #fff; opacity: 0.92; margin: 0 0 32px; line-height: 1.8; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.tp-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.tp-hero__wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; z-index: 2; }
.tp-hero__wave svg { width: 100%; }

/* ===== ボタン ===== */
.tp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 700; transition: all 0.25s; cursor: pointer; border: 2px solid transparent; }
.tp-btn--primary { background: var(--tp-orange); color: #fff; border-color: var(--tp-orange); box-shadow: 0 4px 14px rgba(245,166,35,0.4); }
.tp-btn--primary:hover { background: var(--tp-orange-dark); border-color: var(--tp-orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,0.5); color: #fff; }
.tp-btn--secondary { background: #fff; color: var(--tp-brown); border-color: #fff; }
.tp-btn--secondary:hover { background: rgba(255,255,255,0.88); color: var(--tp-brown); transform: translateY(-2px); }
.tp-btn--outline { background: transparent; color: var(--tp-orange); border-color: var(--tp-orange); }
.tp-btn--outline:hover { background: var(--tp-orange); color: #fff; transform: translateY(-2px); }

/* ===== セクション共通 ===== */
.tp-section { padding: 72px 0; }
.tp-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.tp-section__title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: var(--tp-brown); margin: 0; }
.tp-section__title--center { justify-content: center; width: 100%; margin-bottom: 36px; }
.tp-more-link { color: var(--tp-orange); font-size: 0.9rem; font-weight: 600; }
.tp-more-link:hover { text-decoration: underline; }
.tp-section__foot { text-align: center; margin-top: 40px; }

/* ===== 3つの柱 ===== */
.tp-pillars { background: var(--tp-gray-light); padding: 60px 0; }
.tp-pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tp-pillar { background: #fff; border-radius: var(--tp-radius); padding: 36px 24px; text-align: center; box-shadow: var(--tp-shadow); transition: all 0.3s; display: block; border: 2px solid transparent; }
.tp-pillar:hover { transform: translateY(-6px); box-shadow: var(--tp-shadow-hover); border-color: var(--tp-orange); }
.tp-pillar--active { border-color: var(--tp-orange); background: linear-gradient(135deg, #fff 0%, #FFF8EE 100%); }
.tp-pillar__icon { margin: 0 auto 20px; width: 72px; height: 72px; background: var(--tp-gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tp-pillar__title { font-size: 1.15rem; font-weight: 800; color: var(--tp-brown); margin: 0 0 12px; }
.tp-pillar__desc { font-size: 0.85rem; color: var(--tp-text-light); line-height: 1.7; margin: 0 0 16px; }
.tp-pillar__link { font-size: 0.88rem; font-weight: 700; color: var(--tp-orange); }

/* ===== 最新カード ===== */
.tp-latest { background: #fff; }
.tp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp-card { border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); transition: all 0.3s; background: #fff; }
.tp-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-hover); }
.tp-card__link { display: block; color: inherit; }
.tp-card__img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--tp-gray); }
.tp-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tp-card:hover .tp-card__img-wrap img { transform: scale(1.06); }
.tp-card__no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F8F0E0 0%, #F5E8D0 100%); }
.tp-card__badge { position: absolute; top: 10px; left: 10px; background: var(--tp-orange); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; display: flex; align-items: center; gap: 4px; }
.tp-card__body { padding: 16px; }
.tp-card__title { font-size: 0.92rem; font-weight: 700; color: var(--tp-text); margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card__excerpt { font-size: 0.78rem; color: var(--tp-text-light); line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card__date { font-size: 0.75rem; color: #aaa; }
.tp-no-posts { color: var(--tp-text-light); text-align: center; padding: 40px; grid-column: 1/-1; }

/* ===== MAPエリア ===== */
.tp-map { background: var(--tp-gray-light); }
.tp-map__body { border-radius: var(--tp-radius); overflow: hidden; }
.tp-map__placeholder { background: #e8e0d0; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--tp-text-light); font-size: 0.95rem; border-radius: var(--tp-radius); border: 2px dashed #ccc; }
.tp-map__placeholder p { margin: 0; text-align: center; line-height: 1.7; }

/* ===== ランキング ===== */
.tp-ranking { background: #fff; }
input[name="rank-tab"] { display: none; }
.tp-tabs__labels { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--tp-gray); }
.tp-tab-label { padding: 12px 28px; font-size: 0.95rem; font-weight: 700; color: var(--tp-text-light); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.tp-tab-label:hover { color: var(--tp-orange); }
#rank-ride:checked ~ .tp-tabs__labels label[for="rank-ride"],
#rank-sweets:checked ~ .tp-tabs__labels label[for="rank-sweets"],
#rank-gear:checked ~ .tp-tabs__labels label[for="rank-gear"] { color: var(--tp-orange); border-bottom-color: var(--tp-orange); }
.tp-tab-panel { display: none; }
.tp-tab-panel.is-active { display: block; }
.tp-rank-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--tp-gray); }
.tp-rank-item:last-child { border-bottom: none; }
.tp-rank-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; flex-shrink: 0; background: var(--tp-gray); color: var(--tp-text-light); }
.tp-rank-num--1 { background: #F5A623; color: #fff; }
.tp-rank-num--2 { background: #aaa; color: #fff; }
.tp-rank-num--3 { background: #cd7f32; color: #fff; }
.tp-rank-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.tp-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-rank-no-img { width: 100%; height: 100%; background: var(--tp-gray); }
.tp-rank-title { font-size: 0.9rem; font-weight: 600; color: var(--tp-text); line-height: 1.5; flex: 1; }
a.tp-rank-title:hover { color: var(--tp-orange); }

/* ===== プロフィール ===== */
.tp-profile { background: var(--tp-gray-light); }
.tp-profile__inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 800px; margin: 0 auto; }
.tp-profile__avatar { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tp-profile__avatar svg { border-radius: 50%; background: linear-gradient(135deg, #FFF8EE 0%, #FFE8C0 100%); padding: 8px; box-shadow: var(--tp-shadow); }
.tp-profile__name { font-size: 1.8rem; font-weight: 800; color: var(--tp-brown); margin: 0 0 12px; }
.tp-profile__bio { font-size: 0.92rem; color: var(--tp-text-light); line-height: 1.8; margin: 0 0 20px; }
.tp-profile__meta { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.tp-profile__meta li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--tp-text); }

/* ===== アフィリエイト ===== */
.tp-affiliate { background: var(--tp-brown); padding: 60px 0; }
.tp-affiliate__title { color: #fff !important; }
.tp-affiliate__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-affiliate__link { display: block; border-radius: var(--tp-radius); overflow: hidden; transition: transform 0.3s; }
.tp-affiliate__link:hover { transform: translateY(-4px); }
.tp-affiliate__placeholder { background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.3); border-radius: var(--tp-radius); height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-align: center; }
.tp-affiliate__placeholder span { font-size: 1rem; font-weight: 700; }
.tp-affiliate__placeholder small { font-size: 0.78rem; opacity: 0.7; }

/* ===== フッター ===== */
.tp-footer { background: #1a1108; padding: 40px 0 24px; }
.tp-footer__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tp-footer__logo { display: flex; align-items: center; gap: 10px; color: var(--tp-orange); font-size: 1rem; font-weight: 700; }
.tp-footer__nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.tp-footer__nav a { color: rgba(255,255,255,0.6); font-size: 0.82rem; transition: color 0.2s; }
.tp-footer__nav a:hover { color: var(--tp-orange); }
.tp-footer__copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .tp-cards { grid-template-columns: repeat(2, 1fr); }
  .tp-pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tp-nav-toggle { display: flex; }
  .tp-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--tp-brown); padding: 16px; }
  .tp-nav.is-open { display: block; }
  .tp-nav ul { flex-direction: column; gap: 2px; }
  .tp-nav ul li a { color: #fff; padding: 12px 16px; }
  .tp-logo-text { font-size: 0.9rem; }
  .tp-hero__inner { text-align: center; padding: 56px 24px 80px; align-items: center; }
  .tp-hero__btns { justify-content: center; }
  .tp-pillars__grid { grid-template-columns: 1fr; gap: 16px; }
  .tp-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tp-profile__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .tp-profile__meta { align-items: center; }
  .tp-affiliate__grid { grid-template-columns: 1fr; }
  .tp-section { padding: 48px 0; }
  .tp-section__title { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .tp-cards { grid-template-columns: 1fr; }
  .tp-hero__title { font-size: 2rem; }
  .tp-btn { padding: 12px 20px; font-size: 0.88rem; }
  .tp-hero__btns { flex-direction: column; align-items: center; }
}
