/*
Theme Name: 一期一エロ Child
Author: Site Project
Description: 「一期一エロ」専用の軽量子テーマです。
Version: 0.10.8
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ichigoichiero-child
Template: th01-simple-base
*/

:root {
    --th01-color-canvas: #0d0b10;
    --th01-color-surface: #17131b;
    --th01-color-surface-strong: #211a25;
    --th01-color-text: #f8f3f6;
    --th01-color-muted: #b9adb5;
    --th01-color-link: #f05a83;
    --th01-color-link-hover: #ff86a7;
    --th01-color-border: #342a37;
    --th01-color-focus: #ffd166;
    --th01-color-button-text: #ffffff;
    --th01-wide-width: 1320px;
    --th01-content-width: 820px;
    --th01-radius: 14px;
    --th01-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    --iei-accent-soft: rgba(240, 90, 131, 0.14);
    --iei-accent-line: rgba(240, 90, 131, 0.44);
    --iei-card-gap: clamp(0.75rem, 1.7vw, 1.25rem);
}

body {
    background:
        radial-gradient(circle at 8% -8%, rgba(130, 43, 77, 0.18), transparent 28rem),
        var(--th01-color-canvas);
}

a {
    text-decoration: none;
}

.site-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(13, 11, 16, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

/*
 * Header height is content-driven. A one-line tagline stays compact, while a
 * tagline split with the full-width separator (｜) simply adds its second line.
 * The actual top/bottom spacing is emitted from the Customizer settings.
 */
.site-header,
.site-header__inner,
.site-header.is-scrolled .site-header__inner,
.site-branding,
.site-identity {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.site-header__inner,
.site-header.is-scrolled .site-header__inner {
    align-items: center;
}

.site-branding {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 0.38rem;
}

.site-identity {
    display: block !important;
    flex: 0 0 auto;
}

.site-title {
    line-height: 1.1;
    letter-spacing: 0.06em;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
}

.site-title a {
    color: #fff8fb;
}

.site-description {
    display: block !important;
    visibility: visible !important;
    width: auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0;
    overflow: visible !important;
    opacity: 1 !important;
    color: #cfbec7;
    font-size: 0.78rem;
    line-height: 1.62;
    letter-spacing: 0.04em;
    text-overflow: clip;
    transform: none !important;
    white-space: pre-line !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

/*
 * Keep the original compact sticky-header behavior: once the header enters
 * its scrolled state, only the site title remains visible. This deliberately
 * overrides the normal multi-line tagline reset above.
 */
.site-header.is-scrolled .site-description {
    display: none !important;
}

@media (max-width: 782px) {
    .site-title {
        font-size: clamp(1.28rem, 6vw, 1.7rem);
    }

    .site-description {
        font-size: 0.74rem;
        line-height: 1.58;
    }
}

.main-navigation a {
    color: #ded4da;
    font-size: 0.92rem;
    font-weight: 650;
}

.site-content {
    display: block;
    padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem);
}

.iei-home {
    min-width: 0;
}

.iei-section + .iei-section {
    margin-top: clamp(3.5rem, 7vw, 6rem);
}

.iei-section__header {
    display: flex;
    gap: 1rem 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.iei-section__title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    letter-spacing: -0.02em;
}

.iei-section__description {
	max-width: 620px;
	margin: 0;
	color: var(--th01-color-muted);
	font-size: 0.9rem;
}

.iei-encounter-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: -0.75rem 0 clamp(1.25rem, 3vw, 2rem);
}

.iei-encounter-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.35rem;
	border: 1px solid var(--iei-accent-line);
	border-radius: 999px;
	background: rgba(240, 90, 131, 0.1);
	color: #ffe8ef;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.45rem 0.9rem;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.iei-encounter-links a:hover,
.iei-encounter-links a:focus-visible {
	border-color: var(--th01-color-link-hover);
	background: rgba(240, 90, 131, 0.24);
	color: #fff;
	transform: translateY(-1px);
}

.iei-preview-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 1rem;
    border: 1px solid var(--iei-accent-line);
    border-radius: 999px;
    background: var(--iei-accent-soft);
    color: #ffc1d2;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.72rem;
}

.iei-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: var(--iei-card-gap);
}

.mps01-shelf-grid {
    overflow-anchor: none;
}

.iei-video-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--th01-radius);
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.iei-video-card__link {
    display: block;
    color: var(--th01-color-text);
}

.iei-video-card:hover,
.iei-video-card:focus-within {
    border-color: var(--iei-accent-line);
    background: rgba(255, 255, 255, 0.025);
    transform: translateY(-3px);
}

.iei-video-card__link:hover,
.iei-video-card__link:focus-visible {
    color: var(--th01-color-text);
}

.iei-video-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: calc(var(--th01-radius) - 1px);
    background: #221b24;
}

.iei-video-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iei-video-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(240, 90, 131, 0.22), transparent 48%),
        linear-gradient(160deg, #30232e, #17131b 62%, #0f0d11);
    color: rgba(255, 255, 255, 0.36);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

.iei-video-card__label {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(11, 9, 13, 0.82);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.24rem 0.62rem;
}

.iei-video-card__body {
    padding: 0.85rem 0.4rem 0.4rem;
}

.iei-video-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.95em;
    margin: 0;
    font-size: 0.94rem;
    font-weight: 680;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.iei-video-card__meta {
    overflow: hidden;
    margin: 0.05rem 0.4rem 0.5rem;
    color: var(--th01-color-muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iei-video-card__meta a {
    color: var(--th01-color-muted);
}

.iei-video-card__meta a:hover,
.iei-video-card__meta a:focus-visible {
    color: var(--th01-color-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.iei-video-card__tags {
    display: -webkit-box;
    overflow: hidden;
    margin: -0.1rem 0.4rem 0.5rem;
    color: var(--th01-color-muted);
    font-size: 0.72rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.iei-video-card__tags a,
.iei-video-card__tags span {
    display: inline;
}

.iei-video-card__tags a {
    color: var(--th01-color-muted);
}

.iei-video-card__tags a:hover,
.iei-video-card__tags a:focus-visible {
    color: var(--th01-color-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.iei-video-card__tags a + a::before,
.iei-video-card__tags a + span::before,
.iei-video-card__tags span + a::before,
.iei-video-card__tags span + span::before {
    color: var(--th01-color-border);
    content: " / ";
}

.iei-map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.45rem, 1.4vw, 1rem);
    max-width: 980px;
    margin-inline: auto;
}

.iei-map-grid .iei-video-card--center {
    border-color: var(--th01-color-link);
    background: var(--iei-accent-soft);
    box-shadow: 0 0 0 3px rgba(240, 90, 131, 0.12), var(--th01-shadow);
}

.iei-map-grid .iei-video-card--center .iei-video-card__media::after {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.iei-map-grid .iei-video-card__body {
    padding-inline: 0.2rem;
}

.iei-empty-state {
    border: 1px dashed var(--th01-color-border);
    border-radius: var(--th01-radius);
    background: rgba(255, 255, 255, 0.018);
    color: var(--th01-color-muted);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.iei-page-content {
    max-width: var(--th01-content-width);
    margin: clamp(3rem, 7vw, 6rem) auto 0;
}

.entry-card,
.widget,
.comments-area {
    background: var(--th01-color-surface);
}

.site-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: #0a090c;
}

@media (max-width: 820px) {
    .iei-section__header {
        display: block;
    }

	.iei-section__description {
		margin-top: 0.55rem;
	}

	.iei-encounter-links {
		margin-top: 0;
	}
}

@media (max-width: 560px) {
    :root {
        --iei-card-gap: 0.7rem;
    }

    .site-container {
        width: min(calc(100% - 1.2rem), var(--th01-wide-width));
    }

   .site-description {
        max-width: 17rem;
        font-size: 0.72rem;
    }

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

    .iei-video-card__body {
        padding-top: 0.7rem;
    }

    .iei-video-card__title {
        font-size: 0.83rem;
    }

    .iei-map-grid .iei-video-card__title {
        min-height: 0;
        font-size: 0.68rem;
        -webkit-line-clamp: 1;
    }

    .iei-map-grid .iei-video-card__meta {
        display: none;
    }

	.iei-map-grid .iei-video-card__label {
		left: 0.35rem;
		bottom: 0.35rem;
		font-size: 0.58rem;
		padding: 0.16rem 0.4rem;
	}

	.iei-encounter-links {
		gap: 0.45rem;
	}

	.iei-encounter-links a {
		min-height: 2.2rem;
		font-size: 0.82rem;
		padding-inline: 0.72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
    .iei-video-card,
    .iei-video-card__link,
    .iei-video-card__image {
        transition: none;
    }
}
/* =========================================================
 * 共通動画カード：共通タグ数の色
 * 0: グレー / 1: 青 / 2: 緑 / 3: 紫 /
 * 4: ピンク / 5: オレンジ / 6以上: ゴールド
 * ========================================================= */
:root {
    --th01-motion-match-0: #6b7280;
    --th01-motion-match-1: #3287ff;
    --th01-motion-match-2: #2ecc71;
    --th01-motion-match-3: #9b5cff;
    --th01-motion-match-4: #ff4fa3;
    --th01-motion-match-5: #f59e0b;
    --th01-motion-match-6: #d4af37;

    --th01-motion-match-0-soft: rgba(55, 65, 81, 0.94);
    --th01-motion-match-1-soft: rgba(30, 100, 210, 0.94);
    --th01-motion-match-2-soft: rgba(28, 135, 79, 0.94);
    --th01-motion-match-3-soft: rgba(105, 60, 175, 0.94);
    --th01-motion-match-4-soft: rgba(190, 42, 110, 0.94);
    --th01-motion-match-5-soft: rgba(185, 101, 10, 0.94);
    --th01-motion-match-6-soft: rgba(164, 119, 12, 0.96);
}

.ic01-shelf-card.is-match-0 {
    --ic01-card-color: var(--th01-motion-match-0);
}
.ic01-shelf-card.is-match-1 {
    --ic01-card-color: var(--th01-motion-match-1);
}
.ic01-shelf-card.is-match-2 {
    --ic01-card-color: var(--th01-motion-match-2);
}
.ic01-shelf-card.is-match-3 {
    --ic01-card-color: var(--th01-motion-match-3);
}
.ic01-shelf-card.is-match-4 {
    --ic01-card-color: var(--th01-motion-match-4);
}
.ic01-shelf-card.is-match-5 {
    --ic01-card-color: var(--th01-motion-match-5);
}
.ic01-shelf-card.is-match-6 {
    --ic01-card-color: var(--th01-motion-match-6);
}

.ic01-shelf-card.is-match-0 .ic01-shelf-card__match {
    background: var(--th01-motion-match-0-soft);
}
.ic01-shelf-card.is-match-1 .ic01-shelf-card__match {
    background: var(--th01-motion-match-1-soft);
}
.ic01-shelf-card.is-match-2 .ic01-shelf-card__match {
    background: var(--th01-motion-match-2-soft);
}
.ic01-shelf-card.is-match-3 .ic01-shelf-card__match {
    background: var(--th01-motion-match-3-soft);
}
.ic01-shelf-card.is-match-4 .ic01-shelf-card__match {
    background: var(--th01-motion-match-4-soft);
}
.ic01-shelf-card.is-match-5 .ic01-shelf-card__match {
    background: var(--th01-motion-match-5-soft);
}
.ic01-shelf-card.is-match-6 .ic01-shelf-card__match {
    background: var(--th01-motion-match-6-soft);
}