/*
Theme Name: SWELL Child
Theme URI: https://swell-theme.com/
Description: SWELL専用の子テーマ
Template: swell
Author: LOOS, Inc.
Author URI: https://loos.co.jp/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===================================================
 * ここから下に独自CSSを記述してください
 * =================================================== */

/* ------------------------------------------------------------------
   GLOBAL STYLES & VARIABLES
   ------------------------------------------------------------------ */

:root {
    --text-color: #5A5550;
    --bg-color: #F4F1EA;
    --accent-color: #88A65E;
    --accent-hover: #769051;
    --secondary-color: #FFCC80;
    --font-main: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(88, 80, 70, 0.08);
}

body {
    font-family: var(--font-main) !important;
    color: var(--text-color);
    background-color: var(--bg-color) !important;
    line-height: 1.8;
}

a {
    transition: 0.3s;
    color: inherit;
    /* Prevent blue link color */
    text-decoration: none;
}

/* ------------------------------------------------------------------
   FRONT PAGE STYLES
   ------------------------------------------------------------------ */

/* Hero Section */
.hero {
    background-color: var(--bg-color);
    /* Same as body background */
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    font-weight: normal;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

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

.btn-secondary {
    background-color: var(--accent-color);
    /* Changed from secondary-color to accent-color (green) */
    color: white;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Icons */
.card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    stroke-width: 2.0;
    fill: none !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Scene Cards */
.scene-card {
    display: block;
    text-decoration: none;
}

.scene-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Review Cards */
.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ------------------------------------------------------------------
   PRODUCT PAGE STYLES
   ------------------------------------------------------------------ */

/* Container for our custom area */
.goods-detail-container {
    padding: 0;
}

/* Page Title (Product Title) */
.c-pageTitle,
.entry-title {
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: none !important;
    font-size: 2.2rem !important;
    text-align: left !important;
    width: 100%;
    color: #66605A !important;
}

/* Pochipp Rounded Corners */
.pochipp-box {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Custom Section Titles - 大見出し（どんなグッズ？） */
.custom-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #66605A;
    position: relative;
    line-height: 1.4;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #d4cec5;
    text-align: left;
    width: 100%;
    display: block;
}

.custom-section-title::after {
    display: none !important;
    content: none !important;
}

.custom-section-title.title-left {
    text-align: left;
    margin-bottom: 1.25rem;
}

/* Custom Card Title (not used for points anymore - kept for compatibility) */
.custom-card-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #66605A;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.5;
}

.scene-card .custom-card-title {
    text-align: left;
}

/* ------------------------------------------------------------------
   GOODS POINT CARDS (おすすめポイント)
   ------------------------------------------------------------------ */

/* カード全体を左揃えに */
.goods-detail-container .card {
    text-align: left;
}

/* ポイント番号バッジ＋タイトルのflexレイアウト */
.goods-point-header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

/* 番号バッジ（緑丸） */
.goods-point-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 0.1em;
    /* テキストのベースラインに揃える微調整 */
}

/* ポイントタイトルテキスト */
.goods-point-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #66605A;
    line-height: 1.5;
    flex: 1;
}

/* ポイント説明文エリア */
.goods-point-desc {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #555;
}

/* ------------------------------------------------------------------
   GOODS SUB HEADINGS（こんな場面で・我が家では・こんなご家庭）
   ------------------------------------------------------------------ */

.goods-sub-heading {
    font-size: 1.1rem;
    font-weight: bold;
    color: #66605A;
    margin-bottom: 0.75rem;
    text-align: left;
    line-height: 1.5;
}

/* ------------------------------------------------------------------
   GOODS BULLET LIST（箇条書きリスト）
   ------------------------------------------------------------------ */

.goods-bullet-list {
    text-align: left;
    padding-left: 1.4em;
    margin: 0;
    list-style-type: disc;
}

.goods-bullet-list li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.goods-point-desc p {
    text-align: left;
    margin: 0 0 0.5em;
}

/* ------------------------------------------------------------------
   TEXT FORMATTING（マーカー・太字）
   textarea内で ==text== や **text** と書くと適用される
   ------------------------------------------------------------------ */

/* 蛍光ペン風マーカー（==text== と書くと適用） */
.text-marker {
    background: linear-gradient(transparent 55%, #ffe599 55%);
    padding: 0 2px;
}


/* Reset SWELL Content Images */
.post_content img {
    margin: 0;
    box-shadow: none !important;
    border: none !important;
}

/* Hiding SWELL Elements that interfere */
#main_visual,
.l-mainVisual,
.p-mainVisual,
.p-pickupSlider,
#pickup_slider,
.c-pickupSlider,
.l-topPage-subHeader,
.l-contentTop {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure Post Content aligns with Container if needed */
.post_content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.custom-section {
    padding: 2rem 0;
}

.custom-section.injected-title-section {
    padding-bottom: 0;
    padding-top: 1rem;
}

/* ------------------------------------------------------------------
   CATEGORY ARCHIVE LAYOUT
   ------------------------------------------------------------------ */

/* Force center alignment for category archives */
.tax-goods_category .l-main {
    width: 100% !important;
    max-width: none !important;
}

.tax-goods_category .container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.tax-goods_category .archive-header {
    text-align: center !important;
    margin: 0 auto !important;
}

.tax-goods_category .section-title {
    text-align: center !important;
    left: auto !important;
    transform: none !important;
}

.tax-goods_category .grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
}

.tax-goods_category .grid .card {
    flex: 0 0 350px !important;
    max-width: 350px !important;
}