/*
Theme Name: Nice Pace
Theme URI: http://localhost:10090/
Author: Nice Pace Editorial
Description: 生活グッズとガジェットのレビューに特化した、読みやすく信頼感のあるアフィリエイトブログテーマ。
Version: 1.1.56
Text Domain: nicepace
*/

:root {
  --ink: #111;
  --muted: #767676;
  --cream: #f4f4f4;
  --paper: #fff;
  --green: #111;
  --green-2: #f2f2f2;
  --orange: #111;
  --line: #e5e5e5;
  --shadow: 0 18px 48px rgba(0, 0, 0, .10);
  --radius: 22px;
  --max: 1130px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-feature-settings: "halt" 1;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border-radius: 16px; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; background: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(222,221,213,.8); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: Montserrat, sans-serif; font-size: 21px; }
.brand-name { display: block; font: 700 24px/1 Montserrat, "Noto Sans JP", sans-serif; letter-spacing: .02em; }
.brand-tagline { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.main-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: var(--orange); }
.header-search { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0; }
.header-search::before { content: "⌕"; font-size: 22px; line-height: 1; }
.menu-toggle { display: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font-weight: 700; }

.hero { overflow: hidden; padding: 86px 0 72px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: clamp(43px, 6vw, 76px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy { max-width: 560px; margin: 28px 0 34px; color: var(--muted); font-size: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--green); color: white; font-size: 14px; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: #333; }
.button-light { background: white; color: var(--ink); border: 1px solid var(--line); }
.hero-art { position: relative; min-height: 440px; }
.hero-circle { position: absolute; inset: 20px 40px 20px 0; border-radius: 48% 52% 45% 55%; background: var(--green-2); transform: rotate(-4deg); }
.product-scene { position: absolute; inset: 45px 0 0 45px; }
.device { position: absolute; border: 4px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.device.phone { width: 126px; height: 240px; right: 18%; top: 12%; border-radius: 28px; transform: rotate(8deg); }
.device.phone::after { content: "12:28"; display: grid; place-items: center; height: 100%; color: var(--green); font: 700 22px Montserrat, sans-serif; background: linear-gradient(155deg, #fff 20%, var(--green-2)); border-radius: 22px; }
.device.speaker { width: 175px; height: 155px; left: 8%; bottom: 10%; border: 0; border-radius: 38px; background: var(--orange); transform: rotate(-8deg); }
.device.speaker::before { content: ""; position: absolute; width: 80px; height: 80px; left: 48px; top: 35px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; }
.plant { position: absolute; left: 30%; top: 0; font-size: 106px; line-height: 1; transform: rotate(-8deg); filter: saturate(.6); }
.hero-note { position: absolute; right: 0; bottom: 24px; width: 190px; padding: 18px; border-radius: 16px; background: white; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; transform: rotate(3deg); }
.hero-note span { display: block; color: var(--orange); font: 700 28px/1 Montserrat, sans-serif; }

.section { padding: 92px 0; }
.section-soft { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-kicker { margin: 0 0 5px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.3; }
.text-link { color: var(--green); font-size: 13px; font-weight: 800; border-bottom: 1px solid currentColor; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 168px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon { display: block; margin-bottom: 29px; font-size: 31px; }
.category-card strong { display: block; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 18px; }
.category-card small { color: var(--muted); font-size: 11px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--green-2), #f1d8c8); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .35s; }
.post-card:hover img { transform: scale(1.035); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green); font: italic 34px Montserrat, sans-serif; }
.post-body { padding: 23px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.post-meta .cat { color: var(--orange); font-weight: 800; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.post-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}
.post-tags a:hover { background: #e4e4e4; color: #333; }
.post-card h3 { margin: 0 0 12px; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 20px; line-height: 1.55; }
.post-card p { margin: 0; color: var(--muted); font-size: 13px; }

.pick-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; padding: 58px; border-radius: 34px; background: var(--green); color: white; }
.pick-panel h2 { margin: 0 0 18px; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: clamp(34px, 5vw, 54px); font-weight: 500; line-height: 1.3; }
.pick-panel p { color: #d5e1db; }
.pick-list { display: grid; gap: 12px; }
.pick-link { display: flex; align-items: center; gap: 18px; padding: 17px 20px; border-radius: 15px; background: rgba(255,255,255,.1); }
.pick-link:hover { background: rgba(255,255,255,.16); }
.pick-number { color: #f1af86; font: 700 22px Montserrat, sans-serif; }
.pick-link strong { font-size: 14px; }

.newsletter { padding: 65px 0; text-align: center; background: #efd9c9; }
.newsletter h2 { margin: 0 0 10px; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 32px; font-weight: 500; }
.newsletter p { margin: 0; color: var(--muted); }
.site-footer { padding: 58px 0 28px; background: #000; color: #ddd; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand { font: 700 27px Montserrat, sans-serif; color: white; }
.footer-copy { max-width: 360px; color: #9eada6; font-size: 13px; }
.footer-title { margin: 0 0 16px; color: white; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a { color: #b9c5bf; font-size: 13px; }
.copyright { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #89988f; font-size: 11px; }

.page-shell { padding: 64px 0 100px; }
.archive-header { max-width: 760px; margin-bottom: 42px; }
.archive-header h1, .entry-header h1 { margin: 0; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.35; }
.archive-description { color: var(--muted); }
.content-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 70px; align-items: start; }
.entry-content { font-size: 16px; }
.entry-content h2 { margin-top: 2.3em; padding-bottom: .45em; border-bottom: 2px solid var(--green); font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 28px; }
.entry-content h3 { margin-top: 2em; font-size: 21px; }
.entry-content a { color: var(--orange); text-decoration: underline; }
.entry-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--orange); background: var(--cream); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); }
.entry-featured { margin: 34px 0; }
.sidebar-box { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.sidebar-box h2 { margin: 0 0 12px; font: 500 20px Montserrat, sans-serif; }
.sidebar-box ul { margin: 0; padding-left: 1.2em; }
.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; }
.page-numbers.current { background: var(--green); color: white; }
.search-form { display: flex; gap: 8px; }
.search-field { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-submit { border: 0; border-radius: 999px; padding: 0 16px; background: var(--green); color: white; font-weight: 700; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; gap: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { min-height: 350px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .pick-panel { grid-template-columns: 1fr; gap: 30px; }
  .content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-tagline { display: none; }
  .header-search { display: none; }
  .hero { padding: 55px 0 36px; }
  .hero h1 { font-size: 41px; }
  .hero-art { min-height: 300px; }
  .plant { font-size: 78px; }
  .device.speaker { width: 135px; height: 120px; }
  .device.speaker::before { width: 60px; height: 60px; left: 38px; top: 28px; }
  .device.phone { width: 98px; height: 190px; }
  .hero-note { width: 155px; }
  .section { padding: 64px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 145px; padding: 19px; }
  .post-grid { grid-template-columns: 1fr; }
  .pick-panel { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
