/*
Theme Name: JOZO
Author: JOZO
Description: JOZOのためのオリジナルWordPressテーマ。
Version: 0.1.4
Text Domain: jozo
*/

:root {
  --jozo-ink: #181818;
  --jozo-muted: #6d6a66;
  --jozo-line: #dedbd6;
  --jozo-accent: #a96d27;
  --jozo-soft: #f5f3ef;
  --jozo-white: #fff;
  --jozo-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jozo-ink);
  background: var(--jozo-white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 12px; padding: 8px 12px; z-index: 9999; background: #fff; }
.jozo-wrap { width: min(calc(100% - 48px), var(--jozo-width)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--jozo-line); background: rgba(255,255,255,.96); }
.site-header__inner { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.site-branding { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: .03em; }
.site-title a, .site-title img, .site-footer__brand img { display: block; }
.site-title img { width: clamp(96px, 12vw, 132px); height: auto; }
.site-footer__brand img { width: 96px; height: auto; }
.site-description { margin: 0; color: var(--jozo-muted); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: .87rem; }
.primary-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { text-decoration: none; font-size: .88rem; }
.primary-menu a:hover, .primary-menu a:focus-visible { color: var(--jozo-accent); }

.jozo-feature { border-bottom: 1px solid var(--jozo-line); }
.jozo-feature__inner { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 430px; }
.jozo-feature__media { min-height: 430px; background: var(--jozo-soft); overflow: hidden; }
.jozo-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.jozo-thumbnail-illustration { background: #f3eee4; }
.jozo-placeholder { width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center; background: #292724; color: #fff; font: 2.5rem/1 Georgia, serif; letter-spacing: .08em; }
.jozo-feature__body { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(32px, 5vw, 72px); }
.jozo-feature__title { margin: 0 0 24px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.45; font-weight: 600; }
.jozo-feature__title a { text-decoration: none; }
.jozo-feature__excerpt { margin: 0 0 22px; color: #494744; }
.jozo-meta { color: #85817d; font-size: .8rem; letter-spacing: .04em; }
.jozo-meta::before { content: ""; display: inline-block; width: 52px; height: 1px; margin: 0 14px 4px 0; background: var(--jozo-accent); }

.jozo-main { padding-block: 54px 76px; }
.jozo-section-title { display: flex; align-items: center; gap: 24px; margin: 0 0 28px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.65rem; font-weight: 600; }
.jozo-section-title::after { content: ""; height: 1px; flex: 1; background: var(--jozo-line); }
.jozo-section-title span { position: relative; }
.jozo-section-title span::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 48px; height: 3px; background: var(--jozo-accent); }
.jozo-post-list { border-top: 1px solid var(--jozo-line); }
.jozo-post-card { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--jozo-line); }
.jozo-post-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--jozo-soft); text-decoration: none; }
.jozo-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.jozo-post-card__thumb:hover img { transform: scale(1.02); }
.jozo-post-card__body { align-self: center; }
.jozo-post-card__category { margin: 0 0 7px; color: var(--jozo-accent); font-size: .72rem; letter-spacing: .08em; }
.jozo-post-card__title { margin: 0 0 9px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; }
.jozo-post-card__title a { text-decoration: none; }
.jozo-post-card__excerpt { margin: 0 0 10px; color: #5f5c58; font-size: .91rem; line-height: 1.75; }
.jozo-post-card time { color: #918d88; font-size: .76rem; }
.navigation.pagination { margin-top: 38px; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; }
.page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--jozo-accent); }

.jozo-content { width: min(calc(100% - 48px), 760px); margin-inline: auto; padding-block: 60px 90px; }
.entry-header { margin-bottom: 34px; }
.entry-title { margin: 0 0 14px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.4; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin: 2.6em 0 .9em; padding-bottom: .35em; border-bottom: 2px solid var(--jozo-ink); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; line-height: 1.5; }
.entry-content h3 { margin: 2.1em 0 .7em; padding-left: .75em; border-left: 3px solid var(--jozo-accent); line-height: 1.55; }
.entry-content p { margin: 0 0 1.5em; }
.entry-content figure { margin: 2em 0; }
.jozo-editorial-illustration { overflow: hidden; border: 1px solid var(--jozo-line); background: #f5f0e7; }
.jozo-editorial-illustration img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.jozo-amazon-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 26px 0; padding: 22px 24px; border: 1px solid var(--jozo-line); background: #fff; }
.jozo-amazon-card__label { margin: 0 0 4px; color: var(--jozo-muted); font-size: .72rem; }
.jozo-amazon-card__title { margin: 0; font-weight: 700; line-height: 1.55; }
.jozo-amazon-card__button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; color: #fff; background: #b56514; text-decoration: none; font-size: .86rem; font-weight: 700; }
.jozo-blog-card { display: grid; grid-template-columns: 150px minmax(0,1fr); margin: 26px 0; border: 1px solid var(--jozo-line); color: inherit; text-decoration: none; }
.jozo-blog-card__image { min-height: 112px; background: var(--jozo-soft); }
.jozo-blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.jozo-blog-card__body { padding: 16px 18px; }
.jozo-blog-card__title { margin: 0 0 6px; font-weight: 700; line-height: 1.55; }
.jozo-blog-card__excerpt { margin: 0; color: var(--jozo-muted); font-size: .82rem; line-height: 1.6; }

.site-footer { border-top: 1px solid var(--jozo-line); }
.site-footer__inner { min-height: 130px; display: flex; align-items: center; gap: 24px; }
.site-footer__brand { margin-right: auto; font: 2rem/1 Georgia, serif; }
.site-footer a, .site-footer small { color: var(--jozo-muted); font-size: .78rem; }
.jozo-associate-disclosure { margin-top: -28px; padding-bottom: 24px; color: var(--jozo-muted); font-size: .72rem; }

@media (max-width: 760px) {
  .jozo-wrap { width: min(calc(100% - 32px), var(--jozo-width)); }
  .site-header__inner { min-height: 70px; flex-wrap: wrap; gap: 12px 20px; padding-block: 14px; }
  .site-branding { width: 100%; }
  .site-description { font-size: .76rem; }
  .primary-menu { width: 100%; gap: 20px; overflow-x: auto; }
  .primary-menu a { white-space: nowrap; }
  .jozo-feature__inner { grid-template-columns: minmax(0, 1fr); }
  .jozo-feature__media { width: 100%; min-height: 250px; aspect-ratio: 16/10; }
  .jozo-feature__body { padding: 32px 20px 38px; }
  .jozo-main { padding-block: 42px 60px; }
  .jozo-post-card { grid-template-columns: 118px minmax(0,1fr); gap: 16px; padding: 18px 0; }
  .jozo-post-card__excerpt { display: none; }
  .jozo-post-card__title { font-size: 1rem; line-height: 1.5; }
  .jozo-post-card__category { margin-bottom: 4px; }
  .jozo-content { width: min(calc(100% - 32px), 760px); padding-block: 42px 64px; }
  .jozo-amazon-card { align-items: stretch; flex-direction: column; padding: 18px; }
  .jozo-blog-card { grid-template-columns: 104px minmax(0,1fr); }
  .jozo-blog-card__excerpt { display: none; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; padding-block: 30px; }
  .site-footer__brand { margin-right: 0; }
  .jozo-associate-disclosure { margin-top: -12px; padding-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.entry-content a:is(.jozo-comparison-cta, .jozo-action-link),
.entry-content .jozo-amazon-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  min-height: 46px;
  max-width: 100%;
  padding: .65em 1.2em;
  border-radius: 6px;
  background: #754115;
  color: white;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.entry-content a:is(.jozo-comparison-cta, .jozo-action-link, .jozo-amazon-card__button)::after {
  content: "";
  flex: 0 0 .5em;
  height: .5em;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.entry-content a.jozo-comparison-cta {
  display: flex;
  min-height: 96px;
  padding: 16px clamp(14px, 3vw, 28px) 16px clamp(86px, 15vw, 150px);
  border: 1px solid #cab593;
  border-radius: 8px;
  background: #f7f1e6 url('assets/images/jozo-bottle-size-editorial.jpg') left center / auto 100% no-repeat;
  background-size: clamp(72px, 13vw, 125px) auto;
  color: #482d15;
}
.entry-content a:is(.jozo-comparison-cta, .jozo-action-link, .jozo-amazon-card__button):is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.entry-content li:has(> .jozo-action-link) { margin-block: .4em; }

.jozo-price-tool { margin: 1.5em 0; padding: clamp(18px, 4vw, 32px); border: 1px solid #d4bfa2; background: #faf6ef; border-radius: 8px; color: #352515; }
.jozo-price-tool h2 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.6rem); }
.jozo-price-tool label, .jozo-price-tool output, .jozo-price-tool small { display: block; }
.jozo-price-tool input { width: 9em; max-width: 100%; margin: .3em 0; padding: .6em; border: 1px solid #89745a; border-radius: 4px; font: inherit; background: white; color: #352515; }
.jozo-price-tool output { margin-block: .6em; font-size: 1.15em; font-weight: 700; }

.jozo-unit { background:#f5f6ef; color:#22352e; padding:clamp(16px,4vw,30px); margin:22px 0; border:1px solid #cad3c7; border-radius:12px; }
.jozo-unit h2 { margin:0 0 16px; font-size:1.4rem; }
.jozo-unit-grid { display:grid; grid-template-columns:1fr 1fr minmax(64px,.55fr); gap:8px; }
.jozo-unit label { display:block; font-size:.9rem; }
.jozo-unit input,.jozo-unit select { display:block; box-sizing:border-box; width:100%; min-width:0; padding:9px; font:inherit; font-size:16px; min-height:44px; border:1px solid #809386; border-radius:6px; background:white; color:#192e23; }
.jozo-unit output { display:block; margin:12px 0; font-weight:700; }
.jozo-unit button { margin:10px 0; background:#214936; color:white; border:0; border-radius:6px; padding:11px 17px; cursor:pointer; }
.jozo-unit small { display:block; }
.jozo-unit-history ol { padding-left:1.5em; overflow-wrap:anywhere; }
.jozo-tool-link { margin:.5rem 0 1rem; font-size:.875rem; }
.jozo-tool-link a { color:inherit; text-underline-offset:.2em; }
#jozo-unit-title { scroll-margin-top:5rem; }
.jozo-shopping-nav {padding-block:24px}
.jozo-shopping-nav h2 {font-size:1.3rem}
.jozo-shopping-nav a {display:inline-block;padding:.7em 1.2em;margin:0 .5em .5em 0;border:1px solid #809386;border-radius:6px;text-decoration:none}

  .entry-content .wp-block-button__link {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .entry-content .wp-block-button + .wp-block-button {
    margin-block-start: 12px;
  }
  .entry-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .entry-content .wp-block-buttons > .wp-block-button {
    margin: 0;
    max-width: 100%;
  }
  .entry-content a:is([href^="https://www.amazon.co.jp/"], [href^="https://amazon.co.jp/"], [href^="https://amzn.to/"], [href^="https://amzn.asia/"]) {
    color: #854600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }
  .entry-content a:is(.wp-block-button__link, .btn1, .btn2, .jozo-amazon-card__button, .jozo-comparison-cta, .jozo-action-link):is([href^="https://www.amazon.co.jp/"], [href^="https://amazon.co.jp/"], [href^="https://amzn.to/"], [href^="https://amzn.asia/"]) {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    background: #ffd814;
    border: 1px solid #e6ba00;
    border-radius: 22px;
    padding: 10px 20px;
    color: #141414;
    text-decoration: none;
  }
  .entry-content a:is(.wp-block-button__link, .btn1, .btn2, .jozo-amazon-card__button, .jozo-comparison-cta, .jozo-action-link):is([href*="amazon.co.jp/"], [href^="https://amzn.to/"], [href^="https://amzn.asia/"]):is(:hover, :focus-visible) {
    background: #f7ca00;
  }

.entry-content a:is(.wp-block-button__link, .btn1, .btn2, .jozo-comparison-cta, .jozo-action-link, .jozo-amazon-card__button):is([href^="https://www.amazon.co.jp/"], [href^="https://amazon.co.jp/"], [href^="https://amzn.to/"], [href^="https://amzn.asia/"])::after {
  content: "↗";
  content: "↗" / "";
  margin-inline-start: .35em;
  border: 0;
  height: auto;
  transform: none;
}

.entry-content .jozo-product-illustration {
  width: min(100%, 280px);
  margin: 0 0 1.5em;
}
.jozo-product-illustration img {
  display: block;
  width: 100%;
  height: auto;
}
.jozo-product-illustration figcaption {
  margin-top: .45em;
  color: #68615a;
  font-size: .8rem;
}

.jozo-article-footer,
.jozo-article-footer .jozo-meta {
  color: #68615a;
  font-size: .8rem;
}
.jozo-article-footer {
  margin-top: 2rem;
}
.jozo-article-footer .jozo-meta::before {
  content: none;
}

.jozo-event-strip[hidden] { display: none; }
.jozo-event-strip {
  color: #fff8ef;
  background: #29251f;
  border-bottom: 2px solid #edb84b;
  font-size: .875rem;
}
.jozo-event-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: .35rem;
}
.jozo-event-strip__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
}
.jozo-event-strip__status {
  background: #ffd476;
  color: #38250e;
  border-radius: 4px;
  padding: .15rem .45rem;
  font-size: .72rem;
  font-weight: 700;
}
.jozo-event-strip__period {
  color: #e4d8cc;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
}
.jozo-event-strip .jozo-event-strip__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  color: #ffdd96;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.jozo-event-strip__link:focus-visible {
  outline: 2px solid #ffdd96;
  outline-offset: 3px;
}
.jozo-article-sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .75rem;
  margin-block: 1.5rem .75rem;
  padding: .5rem .85rem;
  border-inline-start: 3px solid #b47729;
  background: #faf2e4;
  color: #342b20;
  font-size: .84rem;
  line-height: 1.5;
}
.entry-content .jozo-article-sale a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #754115;
}
.jozo-article-sale small { color: #655444; }
@media (max-width: 760px) {
  .jozo-event-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: .6rem 0 .1rem;
  }
}
