/*
Theme Name: Oripario
Theme URI: https://oripario.com/
Author: Oripario
Description: Mobile-first comparison portal theme for Japanese online oripa sales sites.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: oripario
*/

:root {
    --ink: #111817;
    --ink-2: #18312f;
    --muted: #62706d;
    --deep: #062928;
    --teal: #0f7670;
    --mint: #dff5ef;
    --coral: #ee655c;
    --pink: #fff0ed;
    --gold: #d5a84d;
    --cream: #fff7e8;
    --paper: #fffdf8;
    --soft: #edf8f5;
    --line: rgba(17, 24, 23, 0.12);
    --shadow: 0 18px 48px rgba(13, 41, 39, 0.14);
    --radius: 8px;
    --container: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--coral);
}

:focus-visible {
    outline: 3px solid rgba(238, 101, 92, 0.5);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.16;
    font-weight: 900;
}

h1 {
    font-size: 3.45rem;
}

h2 {
    font-size: 1.92rem;
}

h3 {
    font-size: 1.18rem;
}

p {
    margin: 0;
}

.container {
    width: min(calc(100% - 28px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    transform: translateY(-150%);
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 253, 248, 0.95);
    border-bottom: 1px solid rgba(17, 24, 23, 0.08);
    backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
    top: 46px;
}

.site-header__inner {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding-block: 10px;
}

.site-brand {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.site-brand__mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--deep);
    border: 2px solid var(--gold);
    font-size: 0.72rem;
    line-height: 1;
}

.site-brand__text {
    font-size: 1.05rem;
}

.custom-logo-link img {
    max-width: 168px;
    height: auto;
}

.site-nav {
    min-width: 0;
    overflow: hidden;
}

.site-nav__menu,
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav__menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    color: #243432;
    font-size: 0.83rem;
    font-weight: 900;
    white-space: nowrap;
}

.site-nav__menu::-webkit-scrollbar {
    display: none;
}

.site-nav__menu a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(15, 118, 112, 0.18);
    border-radius: 999px;
    background: rgba(223, 245, 239, 0.72);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 15px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.header-cta {
    min-width: 94px;
    color: #fff;
    background: var(--coral);
    box-shadow: 0 12px 24px rgba(238, 101, 92, 0.25);
    font-size: 0.86rem;
}

.button {
    width: 100%;
}

.button--primary {
    color: #fff;
    background: var(--coral);
    box-shadow: 0 14px 30px rgba(238, 101, 92, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
    color: #fff;
    background: #d9554d;
}

.button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.82);
}

.button--secondary {
    color: var(--deep);
    background: var(--mint);
    border-color: rgba(15, 118, 112, 0.26);
}

.hero {
    position: relative;
    min-height: 650px;
    display: grid;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--deep);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 66% center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 41, 40, 0.2) 0%, rgba(6, 41, 40, 0.48) 38%, rgba(6, 41, 40, 0.95) 100%),
        linear-gradient(90deg, rgba(6, 41, 40, 0.72), rgba(6, 41, 40, 0.1));
}

.hero__content {
    padding-block: 120px 34px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--coral);
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.hero .eyebrow,
.section--ink .eyebrow {
    color: #ffb2ac;
}

.hero__lead {
    max-width: 590px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    font-weight: 700;
}

.hero__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 900;
}

.quick-rail {
    padding-block: 14px 16px;
    background: #071c1b;
}

.quick-rail__scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 72%);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.quick-rail__scroller::-webkit-scrollbar {
    display: none;
}

.quick-rail article {
    scroll-snap-align: start;
    min-height: 122px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 118, 112, 0.42), rgba(238, 101, 92, 0.18));
    color: #fff;
}

.quick-rail span {
    display: block;
    color: #ffd78b;
    font-weight: 900;
    font-size: 0.78rem;
}

.quick-rail strong {
    display: block;
    margin-top: 5px;
    font-size: 1.08rem;
}

.quick-rail p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
    line-height: 1.55;
}

.section {
    padding-block: 58px;
}

.section--cream {
    background: var(--cream);
}

.section--soft {
    background: var(--soft);
}

.section--ink {
    color: #fff;
    background: var(--deep);
}

.section-heading {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading > p:last-child,
.image-story__copy p,
.safety-story__copy p,
.faq-layout__intro p {
    color: var(--muted);
}

.mode-grid,
.pack-grid,
.archive-grid,
.flow-grid {
    display: grid;
    gap: 14px;
}

.mode-grid article,
.flow-grid article {
    min-height: 188px;
    padding: 20px;
    border: 1px solid rgba(17, 24, 23, 0.1);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(13, 41, 39, 0.08);
}

.mode-grid__num,
.flow-grid span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #fff;
    background: var(--teal);
    font-weight: 900;
}

.mode-grid p,
.flow-grid p,
.pack-card__body p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.68;
}

.image-story,
.safety-story {
    background: var(--paper);
}

.image-story__grid,
.safety-story__grid,
.rio-panel,
.faq-layout,
.single-pack-hero__grid,
.site-footer__grid {
    display: grid;
    gap: 26px;
}

.image-story__media,
.safety-story__media,
.single-pack-hero__image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-story__media img,
.safety-story__media img,
.single-pack-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-story__copy,
.safety-story__copy {
    display: grid;
    align-content: center;
    gap: 16px;
}

.mini-checks {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.mini-checks p {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(15, 118, 112, 0.16);
    border-radius: var(--radius);
    background: #fff;
}

.mini-checks strong {
    color: var(--teal);
}

.rio-panel__image {
    max-width: 260px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.rio-panel__copy {
    display: grid;
    align-content: center;
    gap: 16px;
}

.rio-panel__copy p {
    color: rgba(255, 255, 255, 0.8);
}

.rio-steps {
    display: grid;
    gap: 10px;
}

.rio-steps p {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
}

.rio-steps span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--deep);
    background: #ffd98f;
    font-weight: 900;
}

.section-heading--split {
    max-width: none;
}

.pack-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 23, 0.1);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.pack-card__image,
.pack-card__visual {
    aspect-ratio: 1.32 / 1;
    overflow: hidden;
    background: var(--deep);
}

.pack-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pack-card__visual {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.pack-card__visual::before {
    content: "";
    position: absolute;
    width: 52%;
    aspect-ratio: 0.72 / 1;
    border: 2px solid rgba(255, 216, 143, 0.9);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(15, 118, 112, 0.95), rgba(238, 101, 92, 0.78)),
        var(--deep);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transform: rotate(-7deg);
    z-index: -1;
}

.pack-card__visual span {
    color: #fff;
    font-weight: 900;
}

.pack-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.pack-card__body p {
    margin-top: 0;
}

.pack-card__label {
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--deep);
    background: var(--mint);
    font-size: 0.75rem;
    font-weight: 900;
}

.pack-card__specs,
.spec-panel {
    display: grid;
    gap: 1px;
    margin: 2px 0 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(17, 24, 23, 0.1);
}

.pack-card__specs div,
.spec-panel div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
}

.pack-card__specs dt,
.spec-panel dt {
    color: var(--muted);
    font-size: 0.86rem;
}

.pack-card__specs dd,
.spec-panel dd {
    margin: 0;
    font-weight: 900;
    text-align: right;
}

.text-link {
    margin-top: auto;
    color: var(--teal);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid rgba(15, 118, 112, 0.2);
    border-radius: var(--radius);
    background: #fff;
}

.faq-list summary {
    cursor: pointer;
    padding: 16px;
    font-weight: 900;
}

.faq-list p {
    padding: 0 16px 16px;
    color: var(--muted);
}

.cta-section {
    background: var(--paper);
}

.cta-band {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 118, 112, 0.92), rgba(6, 41, 40, 0.98)),
        var(--deep);
}

.cta-band .eyebrow {
    color: #ffb2ac;
}

.page-header {
    padding-block: 54px 34px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(6, 41, 40, 0.95), rgba(15, 118, 112, 0.92)),
        var(--deep);
}

.page-header p:last-child {
    max-width: 760px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
}

.content-section {
    padding-block: 52px;
}

.content-narrow {
    max-width: 860px;
    margin-inline: auto;
}

.content-narrow > * + * {
    margin-top: 22px;
}

.wp-content h2 {
    margin-top: 42px;
    font-size: 1.58rem;
}

.wp-content h3 {
    margin-top: 28px;
}

.wp-content p,
.wp-content li {
    color: #3d4946;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.info-table,
.info-table tbody,
.info-table tr,
.info-table th,
.info-table td {
    display: block;
    width: 100%;
}

.info-table th,
.info-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    color: var(--deep);
    background: #eff9f6;
    font-weight: 900;
}

.notice-box {
    padding: 18px;
    border: 1px solid rgba(238, 101, 92, 0.22);
    border-radius: var(--radius);
    background: var(--pink);
}

.single-pack-hero {
    padding-block: 52px;
    color: #fff;
    background: var(--deep);
}

.single-pack-hero__copy {
    display: grid;
    gap: 16px;
}

.single-pack-hero__copy p {
    color: rgba(255, 255, 255, 0.78);
}

.spec-panel {
    background: rgba(255, 255, 255, 0.18);
}

.spec-panel div {
    background: rgba(255, 255, 255, 0.08);
}

.spec-panel dt {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: #071817;
}

.site-footer__grid {
    padding-block: 44px;
}

.site-footer h2 {
    color: #fff;
    font-size: 1rem;
}

.site-brand--footer {
    color: #fff;
}

.site-footer__brand p,
.site-footer__notice p {
    margin-top: 14px;
}

.footer-menu {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__bottom {
    padding-block: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 700px) {
    h1 {
        font-size: 4.7rem;
    }

    h2 {
        font-size: 2.32rem;
    }

    .container {
        width: min(calc(100% - 48px), var(--container));
    }

    body.admin-bar .site-header {
        top: 32px;
    }

    .site-header__inner {
        min-height: 72px;
        gap: 18px;
    }

    .site-brand__mark {
        width: 42px;
        height: 42px;
    }

    .site-brand__text {
        font-size: 1.2rem;
    }

    .site-nav__menu {
        justify-content: center;
        gap: 12px;
        overflow: visible;
        font-size: 0.92rem;
    }

    .header-cta {
        min-width: 132px;
        font-size: 0.94rem;
    }

    .button {
        width: auto;
        padding-inline: 20px;
    }

    .hero {
        min-height: 720px;
        align-items: center;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(6, 41, 40, 0.94) 0%, rgba(6, 41, 40, 0.68) 42%, rgba(6, 41, 40, 0.12) 100%),
            linear-gradient(0deg, rgba(6, 41, 40, 0.26), rgba(6, 41, 40, 0));
    }

    .hero__content {
        max-width: 680px;
        padding-block: 86px;
    }

    .hero__lead {
        font-size: 1.2rem;
    }

    .hero__actions {
        display: flex;
        flex-wrap: wrap;
    }

    .quick-rail__scroller {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: initial;
        overflow: visible;
    }

    .section {
        padding-block: 86px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading--split {
        grid-template-columns: 0.9fr 0.85fr;
        align-items: end;
    }

    .mode-grid,
    .pack-grid,
    .archive-grid,
    .flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .image-story__grid,
    .safety-story__grid,
    .rio-panel,
    .single-pack-hero__grid {
        grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
        gap: 48px;
        align-items: center;
    }

    .safety-story__grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    }

    .rio-panel {
        grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1fr);
    }

    .rio-panel__image {
        max-width: 360px;
    }

    .faq-layout,
    .site-footer__grid {
        grid-template-columns: 0.72fr 1fr;
        gap: 44px;
        align-items: start;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 0.72fr 1fr;
    }

    .cta-band {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 34px;
    }

    .info-table {
        display: table;
        border-collapse: collapse;
    }

    .info-table tbody {
        display: table-row-group;
    }

    .info-table tr {
        display: table-row;
    }

    .info-table th,
    .info-table td {
        display: table-cell;
        width: auto;
        padding: 16px;
    }

    .info-table th {
        width: 30%;
    }
}

@media (min-width: 1080px) {
    .hero__media img {
        object-position: center right;
    }

    .image-story__media,
    .safety-story__media {
        max-height: 660px;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 3.05rem;
    }

    h2 {
        font-size: 1.72rem;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 3;
    }
}
