/*
Theme Name: 暮らしの購入品レビュー
Author: Wakako
Description: 家族の暮らしを少しラクにする購入品レビュー向けクラシックテーマ。
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kurashi-review
*/
:root {
  --color-bg: #fcfaf7;
  --color-surface: #fff;
  --color-primary: #9b5566;
  --color-primary-dark: #713846;
  --color-secondary: #756c68;
  --color-text: #342f2d;
  --color-muted: #6b625e;
  --color-border: #ded7d2;
  --color-soft: #f4ecec;
  --color-good: #eaf4ee;
  --color-warn: #fff5df;
  --shadow: 0 5px 18px rgba(52, 47, 45, .08);
  --radius: 6px;
  --content: 1120px;
  --reading: 720px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-thickness: .14em;
}

button, input, textarea, select {
  max-width: 100%;
  font: inherit;
}

button, .button, .wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.15rem;
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--radius);
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  z-index:101;
}

button:hover, .button:hover, .wp-block-button__link:hover {
  background: #542833;
  color: #fff;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #bb742b;
  outline-offset: 3px;
}

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

.narrow {
  max-width: var(--reading);
}

.site-main {
/*  padding-block: clamp(2rem, 5vw, 4.5rem);*/
}

.screen-reader-text {
  position: absolute!important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: .75rem;
  clip: auto;
  background: #fff;
  color: #000;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, .98);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), var(--content));
  min-height: 76px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  min-width: 0;
}

.custom-logo {
  max-width: 210px;
  max-height: 58px;
  width: auto;
}

.site-title {
  display: block;
  color: var(--color-text);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 800;
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: var(--color-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.menu-toggle {
  width: 46px;
  padding: 0;
  font-size: 1.3rem;
}

.main-navigation {
  position: fixed;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: block;
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px);
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-bottom: 0;
}

.js .main-navigation {
  display: none;
}

.js .main-navigation.is-open {
  display: block;
}

.main-navigation ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  min-height: 52px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

body.menu-is-open {
  overflow: hidden;
}

.menu-toggle[aria-expanded="true"] > span[aria-hidden="true"] {
  font-size: 0;
}

.menu-toggle[aria-expanded="true"] > span[aria-hidden="true"]::before {
  content: "×";
  font-size: 1.6rem;
  line-height: 1;
}

.header-search {
  font-size: 1.5rem;
}

.intro {
  box-sizing: border-box;
  aspect-ratio: 19 / 5;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background-color: var(--color-soft);
  background-image: url("./assets/img/front/mv_background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid var(--color-border);
}

@media screen and (max-width: 767px) {
  .intro {
    aspect-ratio: 750 / 560;
    padding: 2.5rem 1rem;
    background-image:
      url("./assets/img/front/mv_background_sp.png");
    background-position: center center;
    background-size: cover;
  }
}

.intro .container {
  max-width: 800px;
  text-align: center;
}

.intro-kicker {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.intro h1 {
  margin: .2em 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 620px;
  margin-inline: auto;
}

.home-section {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.home-section h2, .related-posts>h2 {
  font-size: clamp(1.15rem, 3.5vw, 1.22rem);
}

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.card-thumbnail {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #eee8e4;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--color-secondary);
  font-size: .75rem;
  letter-spacing: .12em;
}

.card-body {
  padding: 1.15rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem;
  color: var(--color-muted);
  font-size: .78rem;
}

.card-title {
  margin: .45rem 0;
/*  font-size: 1.22rem;*/
  line-height: 1.5;
}

.card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.card-excerpt p {
  margin: .5rem 0;
  font-size: .92rem;
}

.text-link {
  font-weight: 700;
}

.category-band {
  width: 100%;
  background: #eeebe8;
}

.category-list {
  display: grid;
  gap: .75rem;
}

.category-list a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-left: 4px solid var(--color-primary);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}

.category-list small {
  color: var(--color-muted);
}

.profile-cta {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background: var(--color-primary-dark);
  color: #fff;
}

.profile-cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.profile-cta h2 {
  margin: 0;
}

.profile-cta .button {
  border-color: #fff;
  background: #fff;
  color: var(--color-primary-dark);
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1, .entry-header h1 {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.4;
}

.breadcrumbs {
  margin-bottom: 2rem;
  font-size: .82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li+li::before {
  margin-right: .35rem;
  content: "/";
  color: var(--color-muted);
}

.entry-categories a, .card-meta a {
  font-weight: 700;
}

.entry-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-muted);
  font-size: .85rem;
}

.hero-image {
  margin: 2rem 0;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

.affiliate-disclosure {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  background: #fff;
  font-size: .85rem;
}

.entry-content {
  font-size: 1.02rem;
}

.entry-content>* {
  max-width: 100%;
}

.entry-content h1{
  font-size: clamp(1.25rem, 4vw, 1.6rem);
}

.entry-content h2 {
  margin-top: 2.7em;
  padding-bottom: .35em;
  border-bottom: 2px solid var(--color-primary);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  line-height: 1.5;
}

.entry-content h3 {
  margin-top: 2.1em;
  padding-left: .7em;
  border-left: 4px solid var(--color-primary);
  font-size: 1.25rem;
}

.entry-content p, .entry-content li {
  overflow-wrap: anywhere;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: .5rem 1.25rem;
  border-left: 4px solid var(--color-secondary);
  background: #f3f0ee;
}

.entry-content pre, .entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.entry-content pre {
  padding: 1rem;
  background: #282626;
  color: #fff;
  white-space: pre;
}

.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.entry-content table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
}

.entry-content th, .entry-content td {
  padding: .7rem;
  text-align: left;
}

.entry-content figcaption {
  color: var(--color-muted);
  font-size: .82rem;
  text-align: center;
}

.entry-content .wp-block-separator {
  margin-block: 2.5rem;
}

.product-box {
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: #fff;
}

.product-box h2 {
  margin-top: .5rem;
}

.product-note {
  color: var(--color-muted);
}

.is-style-amazon .wp-block-button__link {
  background: #a65418;
  border-color: #a65418;
}

.is-style-rakuten .wp-block-button__link {
  background: #a80000;
  border-color: #a80000;
}

.wp-block-button__link:not([href]) {
  display: none;
}

.is-style-good, .is-style-concern, .is-style-recommend, .is-style-product-info, .is-style-summary, .is-style-notice, .is-style-personal {
  margin-block: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  background: #fff;
}

.is-style-good {
  background: var(--color-good);
  border-left-color: #347250;
}

.is-style-concern, .is-style-notice {
  background: var(--color-warn);
  border-left-color: #a86b16;
}

.is-style-recommend {
  border-left-color: #276c7a;
}

.is-style-summary {
  background: var(--color-soft);
}

.entry-tags, .post-navigation, .author-box, .comments-area, .related-posts {
  margin-top: clamp(2rem, 6vw, 4rem);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--color-border);
}

.post-navigation div:last-child {
  text-align: right;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #eeebe8;
}

.author-box img {
  border-radius: 50%;
}

.author-box h2, .author-box p {
  margin-top: 0;
}

.comment-list {
  padding-left: 1.5rem;
}

.comment-body {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
}

.search-form {
  display: flex;
  gap: .5rem;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: .65rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  background: #fff;
}

.empty-state {
  padding: clamp(2rem, 7vw, 5rem) 0;
  text-align: center;
}

.empty-state .search-form {
  max-width: 560px;
  margin: 1.5rem auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}

.page-numbers {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: .4rem;
  place-items: center;
  border: 1px solid var(--color-border);
  background: #fff;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--color-primary-dark);
  color: #fff;
}

.sidebar {
  margin-top: 2rem;
}

.widget {
  padding-block: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.site-footer {
  padding: 2.5rem 0;
  background: #342f2d;
  color: #fff;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--content));
  margin: auto;
}

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

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.copyright {
  font-size: .82rem;
}

.alignwide {
  width: min(100%, var(--content));
  max-width: var(--content);
}

@media (min-width:600px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-cta .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

}

@media (min-width:800px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation, .js .main-navigation {
    position: static;
    display: flex;
    min-height: auto;
    align-items: center;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .main-navigation ul {
    flex-direction: row;
    align-items: center;
  }

  .main-navigation a {
    padding: .65rem .75rem;
  }

  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }

}

/* Review rating */
.review-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: .75rem 0 1rem;
}

.review-rating__stars {
  display: inline-flex;
  gap: .08em;
  color: #b56a16;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.review-rating__star--empty {
  color: #b8afa9;
}

.review-rating__score {
  color: var(--color-muted);
  font-size: .88rem;
  font-weight: 700;
}
