/* ===== EigoMark front-page styles ===== */
:root {
    --em-yellow: #FFE135;
    --em-yellow-light: #FFF3B0;
    --em-paper: #FAFAF7;
    --em-charcoal: #2B2D2E;
    --em-green: #3D7A5F;
    --em-pink: #FF8FA3;
    --em-pink-light: #FFD6DD;
    --em-green-accent: #77DD77;
    --em-green-light: #C4F0C4;
    --em-blue: #89CFF0;
    --em-blue-light: #CCE8FA;
    --em-purple: #C4A7FF;
    --em-purple-light: #E5D8FF;
    --em-font-heading: inherit; /* JIN:R デフォルト (Albert Sans + Hiragino Sans) を継承 */
    --em-font-en: 'EB Garamond', serif;
}

/* ===== Brand override (JIN:R customizer の上書き) ===== */
body:not(.wp-admin) { background-color: var(--em-paper) !important; }
body:not(.wp-admin) #wrapper { background-image: none !important; background-color: var(--em-paper) !important; }

/* グローバルメニューを EigoMark チャコールに統一 */
#commonHeader,
#commonHeader.d--header-style-default {
    background: var(--em-charcoal) !important;
}
#commonHeader #headerLogoLink,
#commonHeader #globalMenuList .menu-item a,
#commonHeader #headerSearch .a--search-icon,
#commonHeader #headerSearch .a--search-label {
    color: #fff !important;
}
#commonHeader #globalMenuList .menu-item a:hover {
    color: var(--em-yellow) !important;
}
#commonHeader .d--glonavi-hover-borderup #globalMenuList > li a::after {
    background-color: var(--em-yellow) !important;
}
/* ロゴ: Plus Jakarta Sans でブランド名を表示 */
#commonHeader #headerLogoLink {
    font-family: 'Plus Jakarta Sans', -apple-system, "Hiragino Sans", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    font-size: 2.3rem !important; /* ≒ 23px、LP のロゴと同サイズ */
    line-height: 1 !important;
    white-space: nowrap;
}
/* サブタイトル: ロゴの右に小さく */
#commonHeader #SiteSubCopy {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    color: rgba(255,255,255,0.6) !important;
    margin-left: 12px;
    line-height: 1.2 !important;
    white-space: nowrap;
}
/* LP と同じ高さに合わせる: 約 56px */
#commonHeader,
#commonHeader.d--header-style-default {
    min-height: 0 !important;
}
.d--header-layout1 #commonHeaderInner {
    height: 56px !important;
}
@media (min-width: 782px) {
    .d--header-layout1 #commonHeaderInner {
        height: 56px !important;
    }
}
@media screen and (min-width: 552px) and (max-width: 781px) {
    .d--header-layout1 #commonHeaderInner {
        height: 56px !important;
    }
}
@media (max-width: 551px) {
    .d--header-layout1 #commonHeaderInner {
        height: 52px !important;
    }
    #commonHeader #SiteSubCopy { display: none !important; }
}
/* グロナビのアイテム余白も詰める */
#globalMenuList > .menu-item { padding: 6px 0 !important; }
#globalMenuList .menu-item a {
    font-size: 1.4rem !important;
    letter-spacing: 0.02em !important;
}

/* JIN:R の home/front 用 mainContent / inner レイアウトを無効化 (横並び/最大幅を撤廃) */
body.home main.em-front { display: block; background: transparent; }
.em-front .em-section { display: block; }

/* 共通コンテナ */
.em-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1200px) {
    .em-container { padding: 0 32px; }
}

/* JIN:R は html に font-size:62.5% を効かせており、rem は 10px 基準。
   このフロント領域は 16px 基準で書きたいので、ブロックごとに base を 1.6rem(=16px) に再設定する。
   各子要素の font-size はそのまま (1.6rem→16px のスケールで指定する) */
.em-hero,
.em-front,
.em-cta-band {
    font-size: 1.6rem;
    line-height: 1.8;
}

/* ===== Highlighter ===== */
.em-hl {
    position: relative;
    display: inline;
    padding: 0 2px;
}
.em-hl::before {
    content: '';
    position: absolute;
    left: -2px; right: -2px;
    bottom: 2px;
    height: 40%;
    z-index: -1;
    transform: skewX(-1.5deg);
    border-radius: 1px;
}
.em-hl--y::before  { background: rgba(255, 225, 53, 0.50); }
.em-hl--pk::before { background: rgba(255, 143, 163, 0.38); }
.em-hl--g::before  { background: rgba(119, 221, 119, 0.38); }
.em-hl--bl::before { background: rgba(137, 207, 240, 0.42); }
.em-hl--pp::before { background: rgba(196, 167, 255, 0.38); }

/* ===== Hero ===== */
.em-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to right, var(--em-paper) 38%, transparent 62%),
        linear-gradient(145deg, var(--em-paper) 0%, var(--em-yellow-light) 50%, rgba(255,225,53,0.15) 100%);
    overflow: hidden;
    color: var(--em-charcoal);
}
@media (min-width: 768px) {
    .em-hero {
        min-height: 88vh;
        background:
            linear-gradient(to right, var(--em-paper) 30%, rgba(250,250,247,0.3) 50%, transparent 65%),
            url('hero.jpg') center right / cover no-repeat;
        background-color: var(--em-paper);
    }
}
.em-hero__inner {
    width: 100%;
    padding: 96px 24px 72px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .em-hero__inner {
        width: 55%;
        padding: 0 0 0 7%;
        margin: 0;
    }
}
.em-hero__phrase {
    font-family: var(--em-font-en);
    font-size: clamp(2.8rem, 5.8vw, 4.6rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.25em;
}
.em-hero__phrase .em-hl::before {
    clip-path: inset(0 100% 0 0);
    animation: em-draw 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.em-hero__phrase:first-child .em-hl::before { animation-delay: 0.4s; }
.em-hero__phrase:nth-child(2) .em-hl::before { animation-delay: 1.0s; }
@keyframes em-draw { to { clip-path: inset(0 0 0 0); } }

.em-hero__sub {
    margin-top: 1.6em;
    font-size: clamp(1.5rem, 2.2vw, 1.7rem);
    font-weight: 500;
    line-height: 2;
    max-width: 30em;
}
.em-hero__brand {
    font-family: var(--em-font-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.em-hero__cta {
    margin-top: 2.4em;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    opacity: 0;
    animation: em-up 0.6s ease forwards 1.4s;
}
@keyframes em-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.em-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    line-height: 1.3;
}
.em-btn--primary {
    background: var(--em-charcoal);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.em-btn--primary:hover {
    transform: translateY(-1px);
    background: #1a1c1d;
}
.em-btn--ghost {
    background: transparent;
    color: var(--em-charcoal);
    border: 1px solid rgba(43,45,46,0.18);
    flex-direction: row;
    align-items: center;
}
.em-btn--ghost:hover { background: rgba(255,225,53,0.18); }
.em-btn__price {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0;
}
.em-btn--lg {
    padding: 18px 40px;
    font-size: 1.7rem;
}

/* ===== Sections ===== */
.em-front { background: var(--em-paper); }
.em-section {
    padding: 96px 0;
    border-bottom: 1px solid rgba(43,45,46,0.06);
    background: transparent;
}
.em-section:last-of-type { border-bottom: 0; }
@media (max-width: 767px) { .em-section { padding: 64px 0; } }
.em-pickup { background: linear-gradient(180deg, var(--em-paper) 0%, #FFFCEC 100%); }

.em-section__head { margin-bottom: 48px; }
.em-eyebrow {
    font-family: var(--em-font-en);
    font-size: 1.3rem;
    letter-spacing: 0.22em;
    color: var(--em-green);
    margin-bottom: 12px;
    font-weight: 600;
}
.em-eyebrow--light { color: var(--em-yellow); }
.em-section__title {
    font-family: var(--em-font-heading);
    font-weight: 700;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: var(--em-charcoal);
}
.em-section__lead {
    margin-top: 20px;
    color: rgba(43,45,46,0.78);
    font-size: 1.6rem;
    line-height: 1.95;
    max-width: 38em;
}

/* ===== Pickup (LP) ===== */
.em-pickup__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
    background: var(--em-yellow-light);
    border-radius: 4px;
    color: var(--em-charcoal);
    text-decoration: none;
    transition: transform .25s ease;
    box-shadow: 0 2px 0 rgba(43,45,46,0.04);
}
@media (min-width: 768px) {
    .em-pickup__card {
        grid-template-columns: 280px 1fr;
        align-items: center;
        padding: 56px;
        gap: 56px;
    }
}
.em-pickup__card:hover { transform: translateY(-2px); }
/* LP と同じ vol1/vol2 重ね表示 */
.em-pickup__cover-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.em-pickup__cover {
    position: absolute;
    max-height: 90%;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.18);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.em-pickup__cover-wrap > .em-pickup__cover:nth-child(1) {
    transform: rotate(7deg) translateX(22%);
    z-index: 1;
}
.em-pickup__cover-wrap > .em-pickup__cover:nth-child(2) {
    transform: rotate(-7deg) translateX(-22%);
    z-index: 2;
}
.em-pickup__card:hover .em-pickup__cover-wrap > .em-pickup__cover:nth-child(1) {
    transform: rotate(9deg) translateX(28%);
}
.em-pickup__card:hover .em-pickup__cover-wrap > .em-pickup__cover:nth-child(2) {
    transform: rotate(-9deg) translateX(-28%);
}
.em-pickup__body { min-width: 0; }
.em-pickup__series {
    font-family: var(--em-font-en);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--em-green);
    font-size: 1.45rem;
    margin-bottom: 8px;
}
.em-pickup__title {
    font-family: var(--em-font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    line-height: 1.6;
    margin-bottom: 18px;
}
.em-pickup__desc { line-height: 2; font-size: 1.6rem; margin-bottom: 18px; }
.em-pickup__price { font-weight: 700; font-size: 1.7rem; margin-bottom: 14px; }
.em-pickup__more {
    display: inline-block;
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--em-yellow);
    padding-bottom: 2px;
}

/* ===== Latest (記事グリッド) ===== */
.em-card-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 640px) {
    .em-card-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (min-width: 1024px) {
    .em-card-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
    .em-card--lead {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }
    .em-card--lead .em-card__thumb { aspect-ratio: 16 / 9; }
    .em-card--lead .em-card__title {
        font-size: clamp(1.7rem, 2vw, 2rem);
        line-height: 1.55;
        -webkit-line-clamp: 3;
        max-height: 4.65em;
    }
}
/* JIN:R 既定の postlist と同じトーン (16:9 / 小さめタイトル / 3行クランプ) */
.em-card { background: transparent; }
.em-card__link {
    display: flex;
    flex-direction: column;
    color: var(--em-charcoal);
    text-decoration: none;
    height: 100%;
}
.em-card__link:hover .em-card__thumb img { transform: scale(1.04); }
.em-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(43,45,46,0.04);
    margin-bottom: 14px;
    border-radius: 4px;
}
.em-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.em-card__thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--em-yellow-light), #fff);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    color: rgba(43,45,46,0.3);
    font-weight: 700;
}
.em-card__cat {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--em-green);
    margin-bottom: 6px;
    font-weight: 600;
}
.em-card__title {
    font-weight: 700;
    font-size: clamp(1.4rem, 1.3vw, 1.55rem);
    line-height: 1.55;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: 4.65em;
}
.em-card__date {
    font-size: 1.15rem;
    color: rgba(43,45,46,0.55);
    margin-top: auto;
    letter-spacing: 0.04em;
}

.em-latest__more { margin-top: 56px; text-align: center; }
.em-link {
    color: var(--em-charcoal);
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--em-yellow);
    padding-bottom: 2px;
    text-decoration: none;
}

/* ===== Categories ===== */
.em-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.em-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(43,45,46,0.08);
    border-radius: 2px;
    color: var(--em-charcoal);
    text-decoration: none;
    font-family: var(--em-font-heading);
    font-weight: 700;
    font-size: 1.65rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.em-cat-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(43,45,46,0.06);
}
.em-cat-list__count {
    font-family: var(--em-font-en);
    font-size: 1.3rem;
    color: rgba(43,45,46,0.55);
    font-weight: 500;
}

/* ===== CTA Band ===== */
.em-cta-band {
    background: var(--em-charcoal);
    color: #fff;
}
.em-cta-band__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 768px) {
    .em-cta-band__inner {
        grid-template-columns: 1fr auto;
        gap: 48px;
        padding: 96px 48px;
    }
}
.em-cta-band__lead {
    font-family: var(--em-font-heading);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.8vw, 3.4rem);
    line-height: 1.6;
    margin-top: 12px;
}
.em-cta-band__lead .em-hl::before { background: rgba(255,225,53,0.55); }
.em-cta-band__sub {
    margin-top: 18px;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}
.em-cta-band__action .em-btn--primary {
    background: var(--em-yellow);
    color: var(--em-charcoal);
}
.em-cta-band__action .em-btn--primary:hover { background: #ffe85a; }

.em-br-sp { display: none; }
@media (max-width: 640px) { .em-br-sp { display: inline; } }

/* ===== Footer 軽い整え ===== */
#commonFooter { background-color: #1a1c1d !important; color: rgba(255,255,255,0.78) !important; }
#commonFooter a,
#commonFooter #commonFooterSiteMenu a,
#commonFooter #footerMenuList a { color: rgba(255,255,255,0.78) !important; }
#commonFooter a:hover,
#commonFooter #footerMenuList a:hover { color: var(--em-yellow) !important; }
#commonFooter #copyright {
    font-family: var(--em-font-en);
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.35rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 20px;
}
#commonFooter #footerMenuList {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    justify-content: center;
}
#commonFooter #footerMenuList .menu-item { border: 0 !important; }
#commonFooter #footerMenuList a { font-size: 1.25rem; padding: 4px 0; letter-spacing: 0.02em; }
