/* ============================================
   モトクルストーリーページ - style.css
   motocul.com のデザインテイストに合わせたスタイル
   バニラCSS / レスポンシブ対応
   標準幅: 980px
   ============================================ */

/* --- CSS Variables --- */
:root {
    --story-max-width: 980px;
    --story-color-bg: #faf9f7;
    --story-color-bg-alt: #f4f1ec;
    --story-color-text: #333333;
    --story-color-text-sub: #888888;
    --story-color-text-light: #aaaaaa;
    --story-color-white: #ffffff;
    --story-color-accent: #c8a87e;
    --story-color-accent-pink: #e8b4b8;
    --story-color-marker: rgba(232, 180, 184, 0.25);
    --story-color-border: #e5e0d8;
    --story-font-mincho: "dnp-shuei-mincho-pr6n", "Noto Serif JP", "YuMincho", "Yu Mincho", serif;
    --story-font-gothic: "dnp-shuei-gothic-gin-std", "Noto Sans JP", "YuGothic", "Yu Gothic", sans-serif;
}

#page-our-story br.sp {
	display: none;
}

/* --- Reset for story page --- */
.entry-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* WP block reset - prevent WP defaults from interfering */
.entry-content .wp-block-group {
    padding: 0;
    margin: 0;
}

.entry-content .wp-block-separator {
    border: none;
    margin: 0;
    opacity: 1;
}

.entry-content .wp-block-image {
    margin: 0;
}

.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

#page-our-story .entry-header {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */
.entry-content .story-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 100px;
    overflow: hidden;
}

.entry-content .story-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.entry-content .story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.entry-content .story-hero__content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.entry-content .story-hero__label {
    display: inline-block;
    font-family: var(--story-font-gothic);
    font-size: 11px;
    letter-spacing: 0.35em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 40px;
}

.entry-content .story-hero__label::before,
.entry-content .story-hero__label::after {
    content: '―';
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.5);
}

.entry-content .story-hero__title {
    font-family: var(--story-font-mincho);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    letter-spacing: 0.08em;
    margin-top: 0;
    margin-bottom: 40px;
}

.entry-content .story-hero__subtitle {
    font-family: var(--story-font-mincho);
    font-size: 14px;
    line-height: 1.8;
    color: #ffffff;
    letter-spacing: 0.06em;
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content .story-hero__divider {
    display: block;
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 50px auto 0;
}

/* ============================================
   Section Base
   ============================================ */
.entry-content .story-section {
    position: relative;
}

.entry-content .story-section__inner {
    max-width: var(--story-max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Background variants */
.entry-content .story-section--white {
    background-color: var(--story-color-white);
    padding: 100px 0;
}

.entry-content .story-section--cream {
    background-color: var(--story-color-bg);
    padding: 100px 0;
}

.entry-content .story-section--warm {
    background-color: var(--story-color-bg-alt);
    padding: 100px 0;
}

/* ============================================
   Section Heading
   ============================================ */
.entry-content .story-section__heading {
    margin-bottom: 50px;
}

.entry-content .story-section__heading--center {
    text-align: center;
}

.entry-content .story-section__en {
    display: block;
    font-family: var(--story-font-gothic);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--story-color-text-light);
    margin-top: 0;
    margin-bottom: 16px;
}

.entry-content .story-section__title {
    font-family: var(--story-font-mincho);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--story-color-text);
    letter-spacing: 0.06em;
    margin: 0;
}

.entry-content .story-section__subtitle {
    display: block;
    font-family: var(--story-font-gothic);
    font-size: 13px;
    color: var(--story-color-text-sub);
    letter-spacing: 0.05em;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Decorative line under heading */
.entry-content .story-section__heading-line {
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--story-color-accent);
    margin-top: 24px;
    margin-bottom: 0;
}

.entry-content .story-section__heading--center .story-section__heading-line {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Section Body Text
   ============================================ */
.entry-content .story-section__body {
    font-family: var(--story-font-mincho);
    font-size: 15px;
    line-height: 1.8;
    color: var(--story-color-text);
    letter-spacing: 0.04em;
}

.entry-content .story-section__body p {
    margin-bottom: 24px;
}

.entry-content .story-section__body p:last-child {
    margin-bottom: 0;
}

/* Marker highlight style (蛍光マーカー風) */
.entry-content .story-marker {
    background: linear-gradient(transparent 60%, var(--story-color-marker) 60%);
    padding: 0 2px;
    margin-top: 0;
    margin-bottom: 0;
}

/* Emphasised phrase block */
.entry-content .story-emphasis {
    display: block;
    font-family: var(--story-font-mincho);
    font-size: 18px;
    line-height: 1.8;
    color: var(--story-color-text);
    letter-spacing: 0.05em;
    margin: 40px 0;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--story-color-border);
    border-bottom: 1px solid var(--story-color-border);
}

/* Negative lis (原点セクション) */
.entry-content .story-list {
    list-style: none !important;
    padding: 0;
    margin: 20px 0;
}

.entry-content .story-list li {
    list-style: none !important;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-family: var(--story-font-mincho);
    font-size: 15px;
    color: var(--story-color-text-sub);
    line-height: 1.7;
}

.entry-content .story-list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: var(--story-color-accent-pink);
    font-size: 20px;
    line-height: 1.7;
}

/* ============================================
   Two Column Layout
   ============================================ */
.entry-content .story-columns {
    display: flex;
    align-items: center;
    gap: 50px;
    /* テキストと画像の間にゆとりをもたせる */
}

.entry-content .story-columns--reverse {
    flex-direction: row-reverse;
}

.entry-content .story-columns__text {
    flex: 1;
    min-width: 0;
}

.entry-content .story-columns__media {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* 画面端まで広げるためのネガティブマージン（画像本体に適用） */
.entry-content .story-columns__media .story-image-placeholder {
    width: calc(100% + max(0px, (100vw - var(--story-max-width)) / 2));
}

/* HTMLのDOM配置とrow-reverse設定に応じて、画像の左右どちらを画面端まで広げるかを正確に判定する */

/* DOM1番目(左)にある画像は左に広げる */
.entry-content .story-columns:not(.story-columns--reverse)>.story-columns__media:first-child .story-image-placeholder {
    margin-left: calc(-1 * max(0px, (100vw - var(--story-max-width)) / 2));
}

/* DOM2番目(右)にある画像は右に広げる */
.entry-content .story-columns:not(.story-columns--reverse)>.story-columns__media:last-child .story-image-placeholder {
    margin-right: calc(-1 * max(0px, (100vw - var(--story-max-width)) / 2));
}

/* row-reverse時、DOM1番目(見た目右)にある画像は右に広げる */
.entry-content .story-columns.story-columns--reverse>.story-columns__media:first-child .story-image-placeholder {
    margin-right: calc(-1 * max(0px, (100vw - var(--story-max-width)) / 2));
}

/* row-reverse時、DOM2番目(見た目左)にある画像は左に広げる */
.entry-content .story-columns.story-columns--reverse>.story-columns__media:last-child .story-image-placeholder {
    margin-left: calc(-1 * max(0px, (100vw - var(--story-max-width)) / 2));
}

/* ============================================
   Image Styles
   ============================================ */
.entry-content .story-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 高さを抑え、トンマナに合わせる */
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.entry-content .story-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.entry-content .story-image-placeholder--wide {
    aspect-ratio: 16 / 9;
}

.entry-content .story-image-placeholder--warm {
    background-color: #ede8e1;
}

.entry-content .story-image-placeholder--pink {
    background-color: #f0e5e6;
}

.entry-content .story-image-placeholder--sage {
    background-color: #e5ebe6;
}

.entry-content .story-image-placeholder--gray {
    background-color: #e8e6e3;
}

/* ============================================
   Free Items Grid
   ============================================ */
.entry-content .story-free-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.entry-content .story-free-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px 20px;
    background-color: var(--story-color-white);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    /* デフォルトで浮遊感 */
}

.entry-content .story-free-item__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    object-fit: contain;
}

.entry-content .story-free-item__label {
    font-family: var(--story-font-gothic);
    font-size: 13px;
    font-weight: 400;
    color: var(--story-color-text);
    line-height: 1.5;
    letter-spacing: 0.04em;
}

/* ============================================
   Centered Text Section
   ============================================ */
.entry-content .story-center-text {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.entry-content .story-center-text .story-section__body {
    text-align: center;
}

/* ============================================
   Closing Section
   ============================================ */
.entry-content .story-closing {
    text-align: center;
    padding: 100px 20px 0;
    background-color: var(--story-color-white);
}

.entry-content .story-closing__inner {
    max-width: 680px;
    margin: 0 auto;
}

.entry-content .story-closing__body {
    font-family: var(--story-font-mincho);
    font-size: 15px;
    line-height: 1.8;
    color: var(--story-color-text);
    letter-spacing: 0.04em;
}

.entry-content .story-closing__body p {
    margin-bottom: 24px;
}

.entry-content .story-closing__highlight {
    display: block;
    font-family: var(--story-font-mincho);
    font-size: 17px;
    line-height: 1.8;
    color: var(--story-color-text);
    letter-spacing: 0.05em;
    padding: 30px 0;
    margin-top: 40px;
    margin-bottom: 0;
    border-top: 1px solid var(--story-color-border);
    border-bottom: 1px solid var(--story-color-border);
}

.entry-content .story-closing__visual {
    margin-top: 60px;
    width: 100%;
}

.entry-content .story-closing__visual img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================
   Utility - Responsive Visibility
   ============================================ */
.entry-content .story-pc-only {
    display: block !important;
}

.entry-content .story-sp-only {
    display: none !important;
}


/* ============================================
   Small text note
   ============================================ */
.entry-content .story-note {
    font-size: 12px;
    color: var(--story-color-text-sub);
    line-height: 1.6;
}

/* ============================================
   Section Divider
   ============================================ */
.entry-content .story-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--story-color-white);
}

.entry-content .story-divider__line {
    width: 1px;
    height: 60px;
    background-color: var(--story-color-border);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media screen and (max-width: 980px) {
    .entry-content .story-section__inner {
        padding: 0 40px;
    }
}

/* ============================================
   Responsive - Mobile (768px)
   ============================================ */
@media screen and (max-width: 768px) {

    /* Hero */
    .entry-content .story-hero {
        padding: 80px 20px 60px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .entry-content .story-hero__title {
        font-size: 24px;
        line-height: 1.5;
    }

    .entry-content .story-hero__subtitle {
        font-size: 13px;
        line-height: 1.6;
    }

    .entry-content .story-hero__label {
        font-size: 10px;
        margin-bottom: 30px;
    }

    .entry-content .story-hero__divider {
        height: 40px;
        margin-top: 40px;
    }

    /* Section spacing */
    .entry-content .story-section--white,
    .entry-content .story-section--cream,
    .entry-content .story-section--warm {
        padding: 60px 0;
    }

    /* Section headings */
    .entry-content .story-section__title {
        font-size: 20px;
        line-height: 1.5;
    }

    .entry-content .story-section__heading {
        margin-bottom: 36px;
        text-align: center;
    }

    /* Utility */
    .entry-content .story-pc-only {
        display: none !important;
    }

    .entry-content .story-sp-only {
        display: block !important;
    }

    /* Body text */
    .entry-content .story-section__body {
        font-size: 14px;
        line-height: 1.7;
        text-align: left;
    }

    .entry-content .story-center-text .story-section__body {
        text-align: left;
    }

    /* Two columns -> Stack */
    .entry-content .story-columns {
        flex-direction: column;
        gap: 30px;
    }

    .entry-content .story-columns--reverse {
        flex-direction: column;
    }

    .entry-content .story-columns__media {
        width: 100%;
    }

    /* Elements ordering -> Image -> Heading -> Body on mobile */
    .entry-content .story-section__inner {
        display: flex;
        flex-direction: column;
    }

    .entry-content .story-section__heading {
        order: 1;
        /* 見出し */
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    .entry-content .story-section__heading-line {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .entry-content .story-section__media-wrap {
        order: 0;
        /* 画像 */
        margin-bottom: 20px !important;
    }

    .entry-content .story-center-text,
    .entry-content .story-free-grid {
        order: 2;
        /* 本文・グリッド */
    }

    /* Two columns order adjustment */
    .entry-content .story-columns {
        display: flex;
        flex-direction: column;
    }

    .entry-content .story-columns__media {
        order: 0;
        /* 画像 */
    }

    .entry-content .story-columns__text {
        order: 1;
        /* 内容（見出し含む） */
    }

    /* Sections with background color -> Full width on mobile */
    .entry-content .story-section--cream,
    .entry-content .story-section--warm,
    .entry-content .story-closing {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Images -> 4:3 aspect ratio on mobile */
    .entry-content .story-image-placeholder {
        aspect-ratio: 4 / 3 !important;
    }

    .entry-content .story-image-placeholder img {
        height: 100%;
        object-fit: cover;
    }

    /* Free grid: 3 -> 2 columns */
    .entry-content .story-free-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .entry-content .story-free-item {
        padding: 20px 12px;
    }

    /* Emphasis */
    .entry-content .story-emphasis {
        font-size: 16px;
        padding: 24px 0;
        margin: 30px 0;
    }

    /* Closing */
    .entry-content .story-closing {
        padding: 60px 20px 0;
    }

    .entry-content .story-closing__highlight {
        font-size: 15px;
    }

    /* Inner padding */
    .entry-content .story-section__inner {
        padding: 0 20px;
    }

    /* Divider */
    .entry-content .story-divider__line {
        height: 40px;
    }
}

/* ============================================
   Responsive - Small Mobile (480px)
   ============================================ */
@media screen and (max-width: 480px) {

	#page-our-story br.sp {
		display: block;
	}

    .entry-content .story-hero__title {
        font-size: 21px;
    }

	.entry-content .story-section__inner {
		padding-inline: 10px;
	}

    .entry-content .story-section__title {
        font-size: 18px;
    }

    .entry-content .story-section__body {
        font-size: 14px;
        line-height: 1.6;
    }

	.entry-content .story-section__body p,
	.entry-content .story-closing__body p {
        font-size: 14px;
	}

    .entry-content .story-free-item__label {
        font-size: 12px;
    }

    .entry-content .story-closing__highlight {
        font-size: 14px;
    }

    .entry-content .story-closing__body {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ============================================
   Scroll Fade-In Animation
   ============================================ */
.entry-content .story-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.entry-content .story-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}