/* ==========================================
   暮らしラク相談室 共通スタイル
   ========================================== */

/* リセット・ベース */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:    #D4694A;   /* テラコッタ：温かみ・家 */
  --color-secondary:  #3D405B;   /* ネイビー：信頼感 */
  --color-bg:         #F9F7F4;   /* 温かみのある白 */
  --color-text:       #2D2D2D;   /* 読みやすいダークグレー */
  --color-text-light: #666666;
  --color-border:     #E5E0D8;
  --color-cta:        #D4694A;
  --font-base: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --max-width: 860px;
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ==========================================
   ヘッダー
   ========================================== */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--color-primary);
  padding: 12px 20px;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-header__logo { display: block; text-decoration: none; }
.site-header__name {
  display: block;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-primary);
}
.site-header__tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ==========================================
   ナビゲーション
   ========================================== */
.site-nav {
  background: var(--color-secondary);
  padding: 0 20px;
}
.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-nav__list {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}
.site-nav__list li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
}
.site-nav__list li a:hover {
  background: rgba(255,255,255,0.15);
}

/* ==========================================
   メインコンテンツ
   ========================================== */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ==========================================
   フッター
   ========================================== */
.site-footer {
  background: var(--color-secondary);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.site-footer__message {
  font-size: 0.875rem;
  line-height: 1.9;
  margin-bottom: 24px;
  opacity: 0.9;
}
.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.site-footer__nav a {
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0.8;
}
.site-footer__nav a:hover { opacity: 1; }
.site-footer__copy {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ==========================================
   トップページ：読者別ナビ
   ========================================== */
.reader-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.reader-nav__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s;
}
.reader-nav__item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.reader-nav__item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.reader-nav__item span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ==========================================
   カテゴリカード
   ========================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.category-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s;
}
.category-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.category-card__label {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-secondary);
}

/* ==========================================
   CTAボタン
   ========================================== */
.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-cta:hover { opacity: 0.85; text-decoration: none; }
.btn-cta--block { display: block; width: 100%; }

/* ==========================================
   セクション見出し
   ========================================== */
.section-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
  margin: 40px 0 20px;
}

/* ==========================================
   レスポンシブ
   ========================================== */
@media (max-width: 600px) {
  .site-nav__list li a { padding: 10px 12px; font-size: 0.8rem; }
  .reader-nav { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   トップページ LPデザイン（2024モダン）
   ========================================== */

/* ヒーローセクション（背景画像方式） */
.lp-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image: url('/assets/img/hero-bg-2.webp');
  background-size: cover;
  background-position: right center;
  overflow: hidden;
  border-bottom: 1px solid #E5E0D8;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247,243,236,0.98) 0%,
    rgba(247,243,236,0.95) 34%,
    rgba(247,243,236,0.72) 56%,
    rgba(247,243,236,0.18) 100%
  );
  z-index: 1;
}
.lp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 88px 20px;
}
.lp-hero__left {
  max-width: 520px;
}
.lp-hero__eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: #d97957;
  margin-bottom: 18px;
  font-weight: 700;
}
.lp-hero__title {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: #30364f;
}
.lp-hero__title em {
  font-style: normal;
  color: #e87955;
}
.lp-hero__desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4e5566;
  margin-bottom: 28px;
}
.lp-hero__cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* SP用画像カード（PC非表示、SPで表示） */
.lp-hero__img-sp {
  display: none;
  margin-top: 28px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(35,40,60,0.10);
}
.lp-hero__img-sp img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: right center;
}

/* ボタン */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.lp-btn--primary {
  background: #e87955;
  color: #fff;
  box-shadow: 0 12px 28px rgba(232,121,85,0.28);
}
.lp-btn--primary:hover {
  background: #d4694a;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(232,121,85,0.35);
  text-decoration: none;
  color: #fff;
}
.lp-btn--outline {
  background: rgba(255,255,255,0.9);
  color: #30364f;
  border: 1px solid rgba(48,54,79,0.14);
}
.lp-btn--outline:hover {
  background: #30364f;
  color: #fff;
  text-decoration: none;
  border-color: #30364f;
}

/* セクション共通 */
.lp-section {
  padding: 64px 20px;
}
.lp-section--gray {
  background: #F3F1EE;
}
.lp-section__inner {
  max-width: 900px;
  margin: 0 auto;
}
.lp-section__header {
  margin-bottom: 36px;
}
.lp-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2D2D2D;
  margin-bottom: 8px;
  position: relative;
  padding-left: 0;
  border: none;
}
.lp-section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #D4694A;
  border-radius: 2px;
  margin-top: 8px;
}
.lp-section__desc {
  color: #666;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* 悩みカード */
.lp-trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-trouble-card {
  display: grid;
  grid-template-areas: "icon title arrow" "icon sub arrow";
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 4px 12px;
  background: #fff;
  border: 1px solid #E5E0D8;
  border-radius: 12px;
  padding: 18px 16px;
  text-decoration: none;
  color: #2D2D2D;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lp-trouble-card:hover {
  border-color: #D4694A;
  box-shadow: 0 4px 16px rgba(212,105,74,0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #2D2D2D;
}
.lp-trouble-card__icon {
  grid-area: icon;
  font-size: 1.8rem;
  text-align: center;
}
.lp-trouble-card__title {
  grid-area: title;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}
.lp-trouble-card__sub {
  grid-area: sub;
  font-size: 0.75rem;
  color: #888;
}
.lp-trouble-card__arrow {
  grid-area: arrow;
  color: #D4694A;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.2s;
}
.lp-trouble-card:hover .lp-trouble-card__arrow {
  transform: translateX(4px);
}

/* 記事カード */
.lp-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-article-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #2D2D2D;
  border: 1px solid #E5E0D8;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lp-article-card:hover {
  border-color: #D4694A;
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-3px);
  text-decoration: none;
  color: #2D2D2D;
}
.lp-article-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.lp-tag--aircon { background: #E8F4FE; color: #1a6fa8; }
.lp-tag--kaji   { background: #FEF0EB; color: #a84a1a; }
.lp-tag--hikaku { background: #EBF5EB; color: #1a7a1a; }
.lp-tag--house  { background: #F5EBFE; color: #6a1a9a; }
.lp-article-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}
.lp-article-card__desc {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.6;
  flex: 1;
}

/* カテゴリカード */
.lp-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lp-cat-card {
  background: #fff;
  border: 1px solid #E5E0D8;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #2D2D2D;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lp-cat-card:hover {
  border-color: #D4694A;
  box-shadow: 0 6px 20px rgba(212,105,74,0.12);
  transform: translateY(-4px);
  text-decoration: none;
  color: #2D2D2D;
}
.lp-cat-card__icon {
  font-size: 2.2rem;
}
.lp-cat-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3D405B;
}
.lp-cat-card__desc {
  font-size: 0.75rem;
  color: #888;
}

/* About */
.lp-about {
  display: flex;
  gap: 48px;
  align-items: center;
}
.lp-about__text { flex: 1; }
.lp-about__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #3D405B;
}
.lp-about__text p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}
.lp-about__stat {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.lp-stat {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  border: 1px solid #E5E0D8;
}
.lp-stat__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #D4694A;
  line-height: 1;
}
.lp-stat__label {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 4px;
}

/* SP表示のみ改行 */
.sp-only { display: none; }

/* ==========================================
   レスポンシブ（LP）
   ========================================== */
@media (max-width: 768px) {
  .lp-hero {
    min-height: 620px;
    background-position: right center;
  }
  .lp-hero::before {
    background: linear-gradient(
      180deg,
      rgba(247,243,236,0.97) 0%,
      rgba(247,243,236,0.92) 45%,
      rgba(247,243,236,0.78) 100%
    );
  }
  .lp-hero__inner { padding: 52px 20px; }
  .lp-hero__left { max-width: 100%; }
  .lp-hero__title { font-size: 2.35rem; line-height: 1.16; }
  .lp-hero__desc { font-size: 0.98rem; line-height: 1.85; }
  .lp-hero__img-sp { display: none; }
  .sp-only { display: inline; }
  .lp-hero__cta-group { flex-direction: column; }
  .lp-btn { justify-content: center; }

  .lp-trouble-grid { grid-template-columns: 1fr; }
  .lp-article-grid { grid-template-columns: 1fr; }
  .lp-cat-grid { grid-template-columns: repeat(2, 1fr); }

  .lp-about { flex-direction: column; gap: 24px; }
  .lp-about__stat { justify-content: center; }

  .lp-section { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .lp-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   トップページ追加CSS：診断ブロック・サブリンク
   ========================================== */

/* ヒーローサブリンク */
.lp-hero__sub-links {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #999;
}
.lp-hero__sub-links a {
  color: #888;
  text-decoration: underline;
}
.lp-hero__sub-links a:hover { color: #D4694A; }
.lp-hero__sub-links span { margin: 0 6px; }

/* 診断ブロック */
.lp-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lp-guide-card {
  background: #fff;
  border: 2px solid #E5E0D8;
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: #2D2D2D;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.lp-guide-card:hover {
  border-color: #D4694A;
  box-shadow: 0 4px 16px rgba(212,105,74,0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: #2D2D2D;
}
.lp-guide-card--featured {
  border-color: #D4694A;
  background: linear-gradient(135deg, #fff 80%, #FFF3EF 100%);
}
.lp-guide-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D4694A;
  background: #FFF3EF;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}
.lp-guide-card__q {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.lp-guide-card__a {
  font-size: 0.82rem;
  color: #D4694A;
  font-weight: 600;
}

@media (max-width: 600px) {
  .lp-guide-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   トップページ追加CSS：3記事カード・目的別・カテゴリリッチ
   ========================================== */

/* 家事代行まずこの3記事 */
.lp-first3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-first3-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 2px solid #E5E0D8;
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: #2D2D2D;
  transition: all 0.2s;
}
.lp-first3-card:hover {
  border-color: #D4694A;
  box-shadow: 0 6px 20px rgba(212,105,74,0.12);
  transform: translateY(-3px);
  text-decoration: none;
  color: #2D2D2D;
}
.lp-first3-card__label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  align-self: flex-start;
}
.lp-label--handan { background: #EBF5EB; color: #1a7a1a; }
.lp-label--fuan   { background: #FFF3EF; color: #a84a1a; }
.lp-label--hikaku { background: #E8F4FE; color: #1a6fa8; }
.lp-first3-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
}
.lp-first3-card__desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
}
.lp-first3-card__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #D4694A;
}

/* 目的別に記事を探す */
.lp-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-route-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E5E0D8;
}
.lp-route-box__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #3D405B;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5E0D8;
}
.lp-route-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-route-box__list li::before {
  content: '→ ';
  color: #D4694A;
  font-size: 0.8rem;
}
.lp-route-box__list a {
  font-size: 0.82rem;
  color: #3D405B;
  text-decoration: none;
  line-height: 1.5;
}
.lp-route-box__list a:hover {
  color: #D4694A;
  text-decoration: underline;
}

/* カテゴリリッチカード */
.lp-cat-grid-rich {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.lp-cat-rich {
  background: #fff;
  border: 1px solid #E5E0D8;
  border-radius: 12px;
  overflow: hidden;
}
.lp-cat-rich__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: #2D2D2D;
  background: #F9F7F4;
  border-bottom: 1px solid #E5E0D8;
  transition: background 0.2s;
}
.lp-cat-rich__head:hover {
  background: #FFF3EF;
  text-decoration: none;
  color: #2D2D2D;
}
.lp-cat-rich__icon { font-size: 1.6rem; }
.lp-cat-rich__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #3D405B;
}
.lp-cat-rich__desc {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}
.lp-cat-rich__links {
  list-style: none;
  padding: 12px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-cat-rich__links li::before {
  content: '→ ';
  color: #D4694A;
  font-size: 0.78rem;
}
.lp-cat-rich__links a {
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
}
.lp-cat-rich__links a:hover {
  color: #D4694A;
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .lp-first3-grid { grid-template-columns: 1fr; }
  .lp-route-grid { grid-template-columns: 1fr; }
  .lp-cat-grid-rich { grid-template-columns: 1fr; }
}
