/*
Theme Name: Okatazuke Space
Theme URI: https://okatazuke.space/
Author: okatazuke.space editorial team
Description: 省スペース家具と収納用品の比較メディア向けオリジナルテーマ。
Version: 1.0.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: okatazuke-space
*/

:root {
  --paper: #f7f3eb;
  --paper-deep: #eee7da;
  --ink: #28352f;
  --muted: #6e766f;
  --forest: #315a46;
  --forest-dark: #244636;
  --sage-pale: #dce4d7;
  --wood: #b98559;
  --terracotta: #c97655;
  --line: #d9d1c3;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(52, 57, 47, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.shell { width: min(1360px, calc(100% - 80px)); margin: 0 auto; }
.ad-note { min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 6px 16px; color: #77756f; background: #ebe5da; border-bottom: 1px solid rgba(49,90,70,.08); font-size: 11px; letter-spacing: .08em; text-align: center; }
.site-header { min-height: 92px; display: flex; align-items: center; background: rgba(247,243,235,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 27px; font-weight: 700; letter-spacing: .055em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; position: relative; flex: 0 0 auto; border-radius: 50% 50% 48% 52%; background: var(--forest); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--paper); }
.brand-mark::before { width: 18px; height: 2px; transform: translate(-50%,-50%) rotate(-42deg); }
.brand-mark::after { width: 2px; height: 16px; transform: translate(-1px,-9px) rotate(-42deg); }
.main-nav, .main-menu { display: flex; align-items: center; gap: 39px; margin: 0; padding: 0; color: #4e5952; font-size: 14px; font-weight: 600; letter-spacing: .06em; list-style: none; }
.main-nav a { position: relative; display: block; padding: 12px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--forest); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { right: 0; }

.hero { min-height: 535px; display: grid; grid-template-columns: 52% 48%; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 80px max(62px, calc((100vw - 1360px) / 2)) 66px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--forest); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--forest); }
.hero h1, .archive-header h1, .article-header h1 { max-width: 760px; margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(42px,3.75vw,66px); font-weight: 600; line-height: 1.45; letter-spacing: .04em; }
.hero-copy p { max-width: 590px; margin: 23px 0 32px; color: var(--muted); font-size: 15px; line-height: 2; letter-spacing: .025em; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--forest); border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: .045em; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(49,90,70,.12); }
.button-primary { color: var(--white); background: var(--forest); }
.button-secondary { color: var(--forest); background: transparent; }

.room { position: relative; overflow: hidden; background: #dfe4da; isolation: isolate; }
.room::before { content: ""; position: absolute; z-index: -1; width: 335px; height: 335px; top: -105px; right: -75px; border-radius: 50%; background: #edf0e8; }
.wall-line { position: absolute; left: 0; right: 0; bottom: 108px; height: 2px; background: rgba(72,85,71,.13); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 108px; background: #d0bb9e; }
.floor::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(96deg,transparent 0 116px,rgba(103,78,54,.08) 118px 120px); }
.window { position: absolute; width: 192px; height: 210px; top: 42px; right: 46px; border: 10px solid #faf8f0; background: #c7d4cc; box-shadow: 0 10px 24px rgba(56,71,58,.08); }
.window::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; background: #faf8f0; transform: translateX(-50%); }
.window::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 8px; background: #faf8f0; transform: translateY(-50%); }
.art { position: absolute; top: 52px; left: 50px; width: 122px; height: 150px; padding: 9px; background: #f8f3e9; box-shadow: 0 8px 24px rgba(56,71,58,.08); }
.art::before { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(155deg,transparent 51%,#94a58d 52% 69%,transparent 70%),radial-gradient(ellipse at 32% 68%,#bd7558 0 18%,transparent 19%),#e7dfd0; }
.desk-top { position: absolute; left: 70px; bottom: 166px; width: 405px; height: 24px; border-radius: 2px; background: var(--wood); box-shadow: 0 12px 20px rgba(83,63,44,.13); }
.desk-leg { position: absolute; bottom: 62px; width: 15px; height: 106px; background: #93643f; }
.desk-leg-left { left: 89px; }
.desk-leg-right { left: 442px; }
.drawer { position: absolute; left: 105px; bottom: 114px; width: 88px; height: 50px; background: #bd8d62; border-top: 1px solid rgba(89,57,31,.2); }
.drawer::before { content: ""; position: absolute; width: 20px; height: 3px; border-radius: 3px; background: #805739; left: 34px; top: 12px; }
.monitor { position: absolute; left: 230px; bottom: 190px; width: 150px; height: 105px; border: 8px solid #f4f1e9; border-radius: 5px; background: #829687; box-shadow: 0 8px 18px rgba(36,57,43,.13); }
.monitor::before { content: ""; position: absolute; width: 8px; height: 30px; background: #ddd9cf; left: 63px; bottom: -37px; }
.monitor::after { content: ""; position: absolute; width: 64px; height: 7px; border-radius: 4px; background: #ddd9cf; left: 35px; bottom: -41px; }
.plant-pot { position: absolute; right: 92px; bottom: 109px; width: 72px; height: 74px; background: var(--terracotta); clip-path: polygon(8% 0,92% 0,80% 100%,20% 100%); }
.leaf { position: absolute; right: 112px; bottom: 175px; width: 40px; height: 92px; border-radius: 100% 0 100% 0; background: #58745d; transform-origin: bottom; }
.leaf-one { transform: rotate(-35deg); }
.leaf-two { right: 92px; bottom: 173px; width: 34px; height: 105px; transform: rotate(21deg) scale(.9); background: #6e876f; }
.leaf-three { right: 132px; bottom: 174px; width: 31px; height: 74px; transform: rotate(-63deg); background: #81957d; }
.lamp-arm { position: absolute; left: 150px; bottom: 188px; width: 7px; height: 94px; background: #485348; transform: rotate(21deg); transform-origin: bottom; }
.lamp-shade { position: absolute; left: 160px; bottom: 267px; width: 70px; height: 47px; border-radius: 48px 48px 5px 5px; background: #3f5547; transform: rotate(13deg); }
.room-tag { position: absolute; right: 28px; bottom: 24px; width: 180px; padding: 14px 17px; background: rgba(255,253,248,.92); border-left: 3px solid var(--forest); box-shadow: var(--shadow); font-size: 11px; line-height: 1.6; letter-spacing: .04em; }
.room-tag strong { display: block; color: var(--forest); font-size: 13px; }

.features { padding: 64px 0 78px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-title { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 30px; letter-spacing: .05em; }
.section-title small { display: block; margin-bottom: 8px; color: var(--forest); font: 700 10px/1 sans-serif; letter-spacing: .18em; }
.all-link { padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.story-card { min-width: 0; background: var(--white); border: 1px solid var(--line); transition: .2s ease; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card > a { display: block; }
.story-thumb { position: relative; height: 190px; overflow: hidden; background: #d9e0d5; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb:not(.story-photo)::after { content: ""; position: absolute; inset: auto 0 0; height: 27%; background: #c7ac8a; }
.story-thumb-desk .story-object-one { position: absolute; z-index: 2; width: 68%; height: 12px; left: 16%; bottom: 55px; border-radius: 2px; background: #aa764d; box-shadow: -8px 43px 0 -4px #815638,218px 43px 0 -4px #815638; }
.story-thumb-desk .story-object-two { position: absolute; z-index: 2; width: 26%; height: 58px; left: 37%; bottom: 69px; border: 5px solid #f2eee5; background: #70877a; }
.story-thumb-storage { background: #e2d9c8; }
.story-thumb-storage .story-object-one { position: absolute; z-index: 2; width: 36%; height: 145px; left: 32%; bottom: 24px; border: 9px solid #a9794f; background: repeating-linear-gradient(to bottom,#dfe6da 0 39px,#95663f 40px 46px); }
.story-thumb-storage .story-object-two { position: absolute; z-index: 3; width: 36px; height: 28px; left: 38%; bottom: 38px; background: #efe9dc; box-shadow: 78px -47px 0 #879d87; }
.story-thumb-cable { background: #cfd9d1; }
.story-thumb-cable .story-object-one { position: absolute; z-index: 2; left: 9%; right: 9%; height: 12px; bottom: 72px; background: #9b6c48; box-shadow: 250px 47px 0 -2px #7d573d; }
.story-thumb-cable .story-object-two { position: absolute; z-index: 3; width: 105px; height: 31px; left: 36%; bottom: 54px; border-radius: 3px; background: #f0eee7; box-shadow: 0 4px 8px rgba(58,67,60,.15); }
.story-copy { padding: 20px 22px 22px; }
.category { display: inline-block; margin-bottom: 9px; color: var(--forest); font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.story-card h3 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; line-height: 1.62; letter-spacing: .025em; }
.story-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #858780; font-size: 10px; }
.story-arrow { color: var(--forest); font-size: 17px; }

.finder { padding: 82px 0; color: var(--white); background: var(--forest); }
.finder-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 100px; align-items: end; }
.finder .eyebrow { color: #cad7cf; }
.finder .eyebrow::before { background: #cad7cf; }
.finder-title { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(30px,3vw,46px); font-weight: 600; line-height: 1.55; }
.finder-copy { max-width: 620px; margin: 20px 0 0; color: #d8e0da; font-size: 14px; line-height: 2; }
.finder-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.finder-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; min-height: 74px; border-bottom: 1px solid rgba(255,255,255,.25); }
.finder-steps b { color: #bfd0c5; font-family: "Yu Mincho", serif; font-size: 18px; letter-spacing: .08em; }
.finder-steps span { font-size: 14px; font-weight: 700; letter-spacing: .08em; }

.content-shell { min-height: 65vh; padding-top: 88px; padding-bottom: 110px; }
.archive-header, .article-header { max-width: 900px; margin-bottom: 55px; }
.archive-header h1, .article-header h1 { font-size: clamp(36px,5vw,58px); }
.post-list { border-top: 1px solid var(--line); }
.post-list-item { padding: 34px 0; border-bottom: 1px solid var(--line); }
.post-list-item h2 { margin: 0 0 12px; font-family: "Yu Mincho", serif; font-size: 25px; }
.post-list-item p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.9; }
.article { max-width: 900px; margin: 0 auto; }
.article-image { margin: 0 0 45px; }
.article-content { color: #3f4944; font-size: 16px; line-height: 2; }
.article-content h2 { margin-top: 2.5em; font-family: "Yu Mincho", serif; font-size: 30px; }
.article-content h3 { margin-top: 2.1em; font-size: 21px; }
.article-content a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: 3px; }
.site-footer { padding: 29px 0; color: #e6e8e3; background: var(--forest-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 700; letter-spacing: .06em; }
.trust-links { display: flex; gap: 25px; color: #bdc7c0; font-size: 11px; }
.copyright { color: #93a298; font-size: 10px; }

@media (max-width: 960px) {
  .shell { width: min(100% - 40px,760px); }
  .site-header { min-height: 78px; }
  .main-nav, .main-menu { gap: 20px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 65px 40px; }
  .room { min-height: 430px; }
  .story-grid { gap: 16px; }
  .story-card h3 { font-size: 15px; }
  .finder-grid { grid-template-columns: 1fr; gap: 46px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .ad-note { min-height: 28px; font-size: 9px; }
  .site-header { min-height: auto; padding: 17px 0 12px; }
  .header-inner { display: block; }
  .brand { font-size: 22px; }
  .brand-mark { width: 31px; height: 31px; }
  .main-nav, .main-menu { margin-top: 13px; justify-content: space-between; gap: 10px; overflow-x: auto; }
  .main-nav a { padding: 5px 0; white-space: nowrap; }
  .hero-copy { padding: 52px 24px 48px; }
  .hero h1 { font-size: 38px; line-height: 1.5; }
  .hero-copy p { margin: 19px 0 27px; font-size: 13px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .room { min-height: 365px; }
  .window { width: 130px; height: 150px; right: 24px; }
  .art { left: 25px; width: 90px; height: 115px; }
  .desk-top { left: 35px; width: 300px; }
  .desk-leg-left { left: 51px; }
  .desk-leg-right { left: 315px; }
  .drawer { left: 70px; }
  .monitor { left: 166px; }
  .lamp-arm { left: 105px; }
  .lamp-shade { left: 110px; }
  .plant-pot, .leaf { display: none; }
  .features { padding: 48px 0 56px; }
  .section-head { align-items: center; }
  .section-title { font-size: 24px; }
  .all-link { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 18px; }
  .finder { padding: 60px 0; }
  .finder-title { font-size: 31px; }
  .content-shell { padding-top: 58px; padding-bottom: 75px; }
  .footer-inner { display: block; text-align: center; }
  .trust-links { margin: 18px 0; justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
