/*
Theme Name: 暮らしのインテリア
Theme URI: https://interior.d-a.co.jp/
Author: DA
Description: インテリア家具メディア「暮らしのインテリア」のオリジナルテーマ
Version: 1.0.2
Text Domain: kurashi-interior
*/

:root {
  --ink: #263029;
  --muted: #687069;
  --green: #315c4c;
  --green-dark: #234438;
  --sage: #dfe7df;
  --cream: #f7f4ed;
  --paper: #fffefa;
  --sand: #e9dfd1;
  --wood: #9a6849;
  --line: #deddd6;
  --shadow: 0 18px 50px rgba(39, 50, 42, .09);
  --serif: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.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; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px 18px; margin: 8px; background: #fff; z-index: 9999; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,244,237,.94); border-bottom: 1px solid rgba(49,92,76,.13); backdrop-filter: blur(14px); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; position: relative; border: 1px solid var(--green); border-radius: 50% 50% 45% 55%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--green); transform-origin: bottom center; }
.brand-mark::before { width: 1px; height: 23px; left: 17px; bottom: 5px; transform: rotate(32deg); }
.brand-mark::after { width: 13px; height: 8px; left: 6px; top: 9px; border-radius: 100% 0 100% 0; transform: rotate(18deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .08em; }
.brand-note { margin-top: 7px; color: var(--muted); font-family: Georgia, serif; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); padding: 0; margin: 0; list-style: none; }
.main-nav a { position: relative; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; background: var(--green); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-search { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.header-search svg { width: 17px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 11px; color: var(--ink); background: none; border: 0; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: currentColor; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 78px; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; top: -210px; right: -170px; border: 1px solid rgba(49,92,76,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(49,92,76,.025), 0 0 0 140px rgba(49,92,76,.02); }
.hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(48px, 7vw, 100px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--wood); font-family: Georgia, serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 67px); font-weight: 500; line-height: 1.45; letter-spacing: .08em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 440px; margin: 26px 0 0; color: var(--muted); font-size: 14px; line-height: 2; }
.hero-visual { position: relative; min-height: 480px; }
.hero-photo { position: absolute; inset: 0 0 35px 9%; display: block; overflow: hidden; background: linear-gradient(145deg, #b6c5b5, #6f8878); border-radius: 180px 0 0 0; box-shadow: var(--shadow); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.hero-photo:hover img { transform: scale(1.025); }
.hero-placeholder { position: absolute; inset: 0; background: linear-gradient(145deg, #d5ded1, #849b89); }
.hero-placeholder::before { content: ""; position: absolute; width: 58%; height: 38%; left: 22%; bottom: 18%; background: #bd9a79; border-radius: 4px 4px 12px 12px; box-shadow: 0 10px 0 #83634e, 0 65px 0 -28px #7c5a45; }
.hero-placeholder::after { content: ""; position: absolute; width: 35%; height: 42%; right: 8%; top: 12%; border: solid rgba(255,255,255,.62); border-width: 0 0 2px 2px; border-radius: 0 0 0 90%; transform: rotate(-10deg); }
.hero-card { position: absolute; right: -18px; bottom: 0; width: min(330px, 63%); padding: 25px 26px; background: var(--paper); box-shadow: var(--shadow); }
.hero-card .meta { color: var(--wood); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-card h2 { margin: 9px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.65; }

/* Sections and cards */
.section { padding: 82px 0; }
.section-white { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--wood); font-family: Georgia, serif; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(25px, 3vw, 36px); font-weight: 500; letter-spacing: .07em; }
.section-link { padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .08em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.post-card { min-width: 0; }
.card-thumb { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 20px; background: var(--sage); }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .card-thumb img { transform: scale(1.035); }
.thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dce3da, #aabbaa); }
.thumb-placeholder::after { content: "暮らしのインテリア"; display: grid; width: 100%; height: 100%; place-items: center; color: rgba(35,68,56,.45); font-family: var(--serif); font-size: 13px; letter-spacing: .15em; }
.card-category { color: var(--wood); font-size: 10px; font-weight: 600; letter-spacing: .11em; }
.card-title { margin: 8px 0 10px; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.65; }
.card-excerpt { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-date { display: block; margin-top: 14px; color: #8a8e89; font-family: Georgia, serif; font-size: 10px; letter-spacing: .08em; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topic-card { min-height: 190px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .25s, background .25s; }
.topic-card:hover { color: #fff; background: var(--green); }
.topic-number { color: var(--wood); font-family: Georgia, serif; font-size: 11px; }
.topic-card:hover .topic-number { color: #d8bd9f; }
.topic-icon { height: 55px; margin: 18px 0 9px; color: var(--green); }
.topic-card:hover .topic-icon { color: #fff; }
.topic-icon svg { width: 52px; height: 52px; stroke: currentColor; stroke-width: 1; fill: none; }
.topic-card h3 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.topic-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.topic-card:hover p { color: rgba(255,255,255,.72); }

.philosophy { overflow: hidden; color: #f7f4ed; background: var(--green-dark); }
.philosophy-inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding: 86px 0; }
.philosophy-inner::after { content: "暮"; position: absolute; right: -40px; bottom: -160px; color: rgba(255,255,255,.035); font-family: var(--serif); font-size: 390px; line-height: 1; }
.philosophy-label { color: #d1b291; font-family: Georgia, serif; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.philosophy h2 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(27px, 4vw, 43px); font-weight: 400; line-height: 1.6; letter-spacing: .08em; }
.philosophy-copy { align-self: end; position: relative; z-index: 1; color: rgba(255,255,255,.72); font-size: 14px; line-height: 2.25; }

/* Archive / search */
.page-header { padding: 72px 0 45px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); font-weight: 500; letter-spacing: .07em; }
.page-description { max-width: 700px; margin-top: 15px; color: var(--muted); font-size: 13px; }
.archive-list { padding: 60px 0 90px; }
.pagination { margin-top: 55px; }
div.pagination, .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.nav-links { display: flex; justify-content: center; gap: 7px; }
.page-numbers { display: grid; min-width: 40px; height: 40px; padding: 0 10px; place-items: center; border: 1px solid var(--line); font-size: 12px; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--green); border-color: var(--green); }
.page-numbers.dots { color: var(--muted); background: transparent; border-color: transparent; }
.search-form { display: flex; max-width: 560px; margin-top: 28px; }
.search-field { width: 100%; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-right: 0; outline: 0; }
.search-field:focus { border-color: var(--green); }
.search-submit { padding: 0 23px; color: #fff; background: var(--green); border: 0; cursor: pointer; }
.empty-state { padding: 65px 0 100px; text-align: center; }

/* Article */
.article-header { padding: 72px 0 46px; text-align: center; }
.article-category { display: inline-block; margin-bottom: 18px; color: var(--wood); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.article-title { max-width: 900px; margin: 0 auto; font-family: var(--serif); font-size: clamp(30px, 5vw, 52px); font-weight: 500; line-height: 1.5; letter-spacing: .04em; }
.article-meta { display: flex; justify-content: center; gap: 22px; margin-top: 20px; color: var(--muted); font-family: Georgia, serif; font-size: 11px; letter-spacing: .07em; }
.article-featured { width: min(1080px, calc(100% - 48px)); max-height: 650px; margin: 0 auto 60px; object-fit: cover; }
.article-body { padding-bottom: 75px; }
.article-body > * { margin-top: 0; margin-bottom: 1.7em; }
.article-body h2 { margin-top: 2.6em; padding: 18px 22px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.55; background: var(--sage); border-left: 3px solid var(--green); }
.article-body h3 { margin-top: 2.3em; padding-bottom: 9px; font-family: var(--serif); font-size: 21px; font-weight: 500; border-bottom: 1px solid var(--line); }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 2px; }
.article-body blockquote { margin-inline: 0; padding: 20px 28px; color: var(--muted); background: #fff; border-left: 2px solid var(--wood); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 12px; border: 1px solid var(--line); }
.article-body th { background: var(--sage); }
.article-tags { padding: 24px 0; border-top: 1px solid var(--line); }
.article-tags a { display: inline-block; margin: 4px; padding: 4px 12px; background: var(--sage); border-radius: 20px; font-size: 11px; }
.post-navigation { margin-bottom: 80px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; height: 100%; padding: 24px; background: #fff; border: 1px solid var(--line); font-family: var(--serif); font-size: 14px; }
.post-navigation .nav-next { text-align: right; }
.comments-area { padding-bottom: 80px; }

/* Footer */
.site-footer { color: #e9ede9; background: #1e2b25; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; padding: 70px 0 54px; }
.footer-brand .brand-mark { border-color: #e9ede9; }
.footer-brand .brand-mark::before, .footer-brand .brand-mark::after { background: #e9ede9; }
.footer-brand .brand-note { color: rgba(255,255,255,.5); }
.footer-intro { max-width: 440px; margin: 24px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 2; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 12px 30px; padding: 0; margin: 0; list-style: none; }
.footer-nav a { color: rgba(255,255,255,.72); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.1); font-family: Georgia, serif; font-size: 9px; letter-spacing: .1em; }

@media (max-width: 900px) {
  .container { width: min(100% - 36px, 720px); }
  .header-inner { height: 72px; }
  .menu-toggle { display: block; }
  .header-search { margin-left: auto; }
  .main-nav { position: fixed; inset: 72px 0 auto; display: none; padding: 28px 24px 38px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero { padding: 48px 0 60px; }
  .hero-grid, .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 600px; }
  .hero-visual { min-height: 430px; }
  .hero-photo { left: 0; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .philosophy-inner { padding: 65px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 600px) {
  .container, .narrow, .article-featured { width: calc(100% - 32px); }
  .brand-name { font-size: 18px; }
  .brand-note { font-size: 8px; }
  .header-search { display: none; }
  .hero h1 { font-size: 35px; }
  .hero-visual { min-height: 360px; }
  .hero-photo { inset: 0 0 30px 0; border-radius: 110px 0 0 0; }
  .hero-card { right: -8px; width: 78%; padding: 18px; }
  .hero-card h2 { font-size: 15px; }
  .section { padding: 60px 0; }
  .section-head { align-items: start; }
  .post-grid { grid-template-columns: 1fr; gap: 42px; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topic-card { min-height: 165px; padding: 20px 16px; }
  .topic-icon { height: 44px; }
  .topic-icon svg { width: 42px; height: 42px; }
  .topic-card p { display: none; }
  .article-header { padding-top: 50px; }
  .article-title { font-size: 29px; }
  .article-body h2 { padding: 15px 16px; font-size: 22px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
