/* ============================================
   となりの通信制 - 共通スタイル
   デザイン正: assets/design/top-design-03-layout.png（レイアウト）
              assets/design/top-design-01-hero.png（FV写真・コピー）
   ============================================ */

:root {
  --bg: #F6F0E1;            /* 全体背景クリーム */
  --bg-soft: #FBF7EC;       /* 明るめカード背景 */
  --white: #FFFFFF;
  --ink: #4A3826;           /* 見出しの濃茶 */
  --text: #5A4633;          /* 本文茶（コントラスト強め調整済み） */
  --text-weak: #8A7660;
  --green: #7C9A5C;         /* メイン緑 */
  --green-deep: #5F7D44;
  --yellow: #F2CE6B;        /* マーカー黄 */
  --memo: #FBF3D8;          /* メモ用紙 */
  --dark-btn: #6F6034;      /* 濃ボタン */
  --line: #E5DCC8;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 4px 18px rgba(90, 70, 51, 0.10);
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-hand: "Yomogi", "M PLUS Rounded 1c", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(229, 220, 200, 0.6);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.site-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.12em;
  line-height: 1.3;
  white-space: nowrap;
}
.site-tagline {
  font-size: 11px;
  color: var(--text-weak);
  letter-spacing: 0.22em;
}
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 26px; }
.global-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}
.global-nav a:hover,
.global-nav a.current { color: var(--green-deep); }
.global-nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
}
.contact-btn:hover { background: var(--green-deep); }
.contact-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* ---------- ボタン共通 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); }
.btn-dark { background: var(--dark-btn); color: #fff; }
.btn-dark:hover { background: #5a4e2a; }
.btn-wide { width: 100%; }
.btn .arrow { font-size: 18px; line-height: 1; }

/* ---------- ファーストビュー ---------- */
.hero { padding: 40px 24px 56px; }
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.hero-doodle {
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.5em;
  font-size: 20px;
  margin-bottom: 4px;
}
.hero-catch {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.marker {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 2px;
}
.hero-lead { font-size: 15px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-photo img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
}
.memo-card {
  position: absolute;
  top: -18px;
  right: -8px;
  width: 304px;
  background: var(--memo);
  border-radius: 6px;
  padding: 18px 20px 16px;
  box-shadow: 0 6px 16px rgba(90, 70, 51, 0.18);
  transform: rotate(2deg);
}
.memo-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 90px;
  height: 20px;
  background: rgba(210, 190, 140, 0.55);
}
.memo-title {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.memo-card ul li {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0 4px 26px;
  position: relative;
  line-height: 1.55;
}
.memo-card ul li strong { font-weight: 800; }
.memo-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- セクション見出し ---------- */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.28em;
  text-align: center;
}
.section-title.dotted::before,
.section-title.dotted::after {
  content: "・・・・・";
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.3em;
  margin: 0 16px;
  vertical-align: middle;
  opacity: 0.55;
}
.section-title.leaf { text-align: left; letter-spacing: 0.2em; }
.section-title.leaf::after { content: " 🌿"; font-size: 16px; }

/* ---------- このサイトについて ---------- */
.about-site {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 10px;
}
.about-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 10px;
}
.about-item {
  text-align: center;
  padding: 0 22px;
  border-right: 1px dashed var(--line);
}
.about-item:last-child { border-right: none; }
.about-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-icon svg { width: 34px; height: 34px; }
.about-item h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.about-item p { font-size: 13px; line-height: 1.8; }

/* ---------- 記事エリア ---------- */
.articles-area {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.articles-heading { margin-bottom: 24px; }
.articles-sub { font-size: 13px; color: var(--text-weak); margin-top: 4px; }

.card-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.card a { display: block; }
.card-thumb {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card a:hover .card-thumb img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.badge-green  { background: #8FAF6E; }
.badge-blue   { background: #7FA8C9; }
.badge-yellow { background: #DFAE3E; }
.badge-pink   { background: #E58BA6; }
.badge-navy   { background: #6E9BC5; }
.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 6px;
}
.card a:hover .card-title { color: var(--green-deep); }
.card-date { font-size: 12px; color: var(--text-weak); }

.all-articles { margin-top: 34px; text-align: center; }
.all-articles .btn { max-width: 320px; }

.hand-message {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--ink);
  margin-top: 40px;
  line-height: 2.1;
  letter-spacing: 0.06em;
}

/* ---------- サイドカラム ---------- */
.money-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.money-box-label {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.money-box-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.check-list { margin-bottom: 20px; }
.check-list li {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0 6px 28px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-box {
  margin-top: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.trust-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.trust-title::before, .trust-title::after { content: " 🌿 "; font-size: 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-item svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  color: var(--green-deep);
  display: block;
}
.trust-item p { font-size: 11.5px; font-weight: 500; line-height: 1.6; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 60px;
  background: #EFE7D2;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 30px;
  text-align: center;
}
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.12em;
}
.footer-tagline {
  font-size: 11px;
  color: var(--text-weak);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 20px;
}
.footer-nav a { font-size: 13px; color: var(--text); }
.footer-nav a:hover { color: var(--green-deep); text-decoration: underline; }
.footer-note { font-size: 11.5px; color: var(--text-weak); margin-bottom: 8px; }
.copyright { font-size: 12px; color: var(--text-weak); }

/* ---------- レスポンシブ ---------- */
.pc-only { display: inline; }

@media (max-width: 1100px) {
  .global-nav ul { gap: 16px; }
  .card-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 900px) {
  .global-nav { display: none; }
  .contact-btn { margin-left: auto; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 9px;
  }
  .nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; }
  body.nav-open .global-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
  }
  body.nav-open .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
  }
  body.nav-open .global-nav a { display: block; padding: 12px 4px; }

  .hero { padding-top: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }        /* スマホは写真→キャッチの順 */
  .memo-card {
    position: static;
    transform: rotate(0);
    width: 100%;
    margin-top: 14px;
  }
  .pc-only { display: none; }

  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .about-item:nth-child(2) { border-right: none; }

  .articles-area { grid-template-columns: 1fr; }
  .articles-side { max-width: 480px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .site-name { font-size: 19px; }
  .site-tagline { font-size: 9.5px; letter-spacing: 0.12em; }
  .contact-btn { font-size: 0; padding: 11px 13px; gap: 0; }
  .contact-btn svg { width: 20px; height: 20px; }
  .hero-catch { font-size: 27px; }
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; padding: 26px 8px; }
  .about-item { border-right: none; border-bottom: 1px dashed var(--line); padding-bottom: 20px; }
  .about-item:last-child { border-bottom: none; padding-bottom: 0; }
  .section-title.dotted::before, .section-title.dotted::after { content: "・・・"; margin: 0 8px; }
}
