@charset "UTF-8";

/* ========================================
   1. 基本設定
======================================== */
:root {
  --color-bg: #f6f2eb;
  --color-paper: #fffdf9;
  --color-text: #343631;
  --color-muted: #777a73;
  --color-line: #ddd7cc;
  --color-sage: #7d8977;
  --color-sage-dark: #5f695b;
  --color-ash: #d8cbbb;
  --color-accent: #b78e69;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", cursive;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

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

.section {
  padding: 92px 0;
}

.section--paper {
  background: var(--color-paper);
}

.section-label,
.eyebrow,
.post-category {
  color: var(--color-sage-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-heading--line {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}

.section-heading h2,
.story-copy h2,
.about-grid h2,
.search-section h2 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.45;
}

.hand-note {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  transform: rotate(-2deg);
}

.hand-note--small {
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
}

.text-link:hover {
  color: var(--color-sage-dark);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ========================================
   2. ヘッダー
======================================== */
.site-header {
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 94px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-logo__main {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.site-logo__sub {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.62rem;
}

.menu-button {
  width: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: var(--color-text);
}

.search-icon {
  font-size: 1.6rem;
  text-align: right;
}

.category-nav {
  border-top: 1px solid var(--color-line);
}

.category-nav__inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 13px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.category-nav a {
  font-size: 0.75rem;
}

.category-nav a:hover {
  color: var(--color-sage-dark);
}

/* ========================================
   3. メインビジュアル
======================================== */
.hero-section {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 58px;
}

.hero-copy {
  padding-left: 3vw;
}

.hero-copy h1 {
  margin: 12px 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  font-weight: 500;
  line-height: 1.42;
}

.hero-text {
  margin-bottom: 32px;
  color: var(--color-muted);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  background:
    linear-gradient(135deg, rgba(216, 203, 187, 0.75), rgba(238, 232, 223, 0.92));
  text-align: center;
}

.photo-placeholder span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.photo-placeholder small {
  display: block;
  margin-top: 6px;
  font-size: 0.67rem;
}

.photo-placeholder--hero {
  min-height: 570px;
  border-radius: 48% 48% 4px 4px / 12% 12% 4px 4px;
}

.intro-strip {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}

.intro-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0;
}

.intro-strip p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.intro-strip p span {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.paw-doodle,
.line-doodle {
  color: var(--color-accent);
  font-family: var(--font-hand);
}

/* ========================================
   4. はじめに読んでほしい記事
======================================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 34px;
}

.photo-placeholder--featured {
  min-height: 420px;
}

.featured-main__body {
  padding-top: 22px;
}

.featured-main h3 {
  margin: 7px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.featured-main__body > p:not(.post-category) {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.featured-main time,
.small-post time,
.post-card time {
  color: var(--color-muted);
  font-size: 0.68rem;
}

.featured-side {
  display: grid;
  gap: 20px;
}

.small-post {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
}

.photo-placeholder--small {
  min-height: 104px;
}

.small-post h3 {
  margin: 5px 0 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ========================================
   5. 新着記事
======================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 24px;
}

.post-card__image {
  min-height: 220px;
}

.post-card__body {
  padding-top: 16px;
}

.post-card h3 {
  margin: 7px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.55;
}

.post-card__body > p:not(.post-category) {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.81rem;
}

.center-link {
  margin-top: 44px;
  text-align: center;
}

.outline-button {
  display: inline-flex;
  min-width: 250px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  font-size: 0.8rem;
}

/* ========================================
   6. カテゴリー
======================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 240px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: rgba(255, 253, 249, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  background: var(--color-paper);
  transform: translateY(-4px);
}

.category-card__number {
  color: var(--color-sage-dark);
  font-size: 0.65rem;
}

.category-card__icon {
  margin: 38px 0 20px;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.category-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

/* ========================================
   7. 家づくりの記録
======================================== */
.story-section {
  background: #e9e4da;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.photo-placeholder--story {
  min-height: 480px;
  border-radius: 3px 120px 3px 3px;
}

.story-copy p:not(.section-label):not(.hand-note) {
  margin-bottom: 28px;
  color: var(--color-muted);
}

/* ========================================
   8. About・検索
======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.about-lead {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.about-text {
  padding-top: 30px;
}

.about-text p {
  color: var(--color-muted);
}

.search-section {
  padding: 72px 0;
  color: #fff;
  background: var(--color-sage-dark);
}

.search-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.search-section .section-label {
  color: rgba(255, 255, 255, 0.68);
}

.search-section h2 {
  font-size: 2rem;
}

.site-search {
  display: grid;
  grid-template-columns: 1fr auto;
}

.site-search input {
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  background: #fff;
}

.site-search button {
  padding: 0 22px;
  border: 0;
  color: var(--color-text);
  background: var(--color-ash);
}

/* ========================================
   9. 最下部リンク
======================================== */
.bottom-links {
  padding: 28px 0;
  background: var(--color-bg);
}

.bottom-links__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bottom-links a,
.bottom-links small {
  color: var(--color-muted);
  font-size: 0.68rem;
}

.bottom-links small {
  margin-left: auto;
}

/* ========================================
   10. タブレット
======================================== */
@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-photo {
    order: -1;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

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

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

  .search-section__inner {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   11. スマートフォン
======================================== */
@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .header-inner {
    min-height: 76px;
  }

  .site-logo__main {
    font-size: 1.05rem;
  }

  .site-logo__sub {
    font-size: 0.55rem;
  }

  .category-nav__inner {
    justify-content: flex-start;
  }

  .hero-section {
    padding: 20px 0 54px;
  }

  .hero-grid {
    gap: 34px;
  }

  .photo-placeholder--hero {
    min-height: 380px;
    border-radius: 48% 48% 4px 4px / 9% 9% 4px 4px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-text br {
    display: none;
  }

  .intro-strip__inner {
    align-items: flex-start;
  }

  .paw-doodle {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading > a,
  .hand-note--small,
  .line-doodle {
    display: inline-block;
    margin-top: 14px;
  }

  .small-post {
    grid-template-columns: 110px 1fr;
  }

  .post-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .post-card__image {
    min-height: 260px;
  }

  .category-card {
    min-height: 210px;
  }

  .photo-placeholder--story {
    min-height: 380px;
    border-radius: 3px 80px 3px 3px;
  }

  .search-section {
    padding: 56px 0;
  }

  .site-search {
    grid-template-columns: 1fr;
  }

  .site-search button {
    min-height: 46px;
  }

  .bottom-links__inner {
    justify-content: center;
  }

  .bottom-links small {
    width: 100%;
    margin: 10px 0 0;
    text-align: center;
  }
}

/* ========================================
   12. アクセシビリティ
======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
