/* =========================
   吉盛額縁 トップページ専用CSS
   file: /assets/css/yoshimori-top.css
========================= */

/* =========================
   基本設定
========================= */

.yoshimori-top {
  --main: #1f2f2d;
  --main2: #273b37;
  --accent: #b68b45;
  --sub: #8a6a3f;
  --bg: #f7f4ee;
  --soft: #fbf8f2;
  --white: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #e5ded2;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: var(--text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  line-height: 1.9;
  letter-spacing: 0.03em;
  background: var(--bg);
  overflow: hidden;
}

.yoshimori-top * {
  box-sizing: border-box;
}

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

.yoshimori-top a {
  color: inherit;
  text-decoration: none;
}

.yoshimori-top p {
  margin-top: 0;
}

.yoshimori-top-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.yoshimori-top-section {
  padding: 86px 0;
}

.yoshimori-top-center {
  text-align: center;
}

.yoshimori-top-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.16em;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.yoshimori-top-title {
  margin: 0 0 20px;
  color: var(--main);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.45;
  font-weight: 700;
}

.yoshimori-top-lead {
  max-width: 780px;
  margin: 0 auto;
  color: #444444;
  font-size: 17px;
}

.yoshimori-top-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.yoshimori-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--main);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(31, 47, 45, 0.22);
  transition: 0.25s ease;
}

.yoshimori-top-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.yoshimori-top-btn.secondary {
  background: #ffffff;
  color: var(--main) !important;
  border: 1px solid var(--main);
  box-shadow: none;
}

/* =========================
   Lightning標準ヘッダーは触らない
========================= */

body.home .siteHeader,
body.home .site-header,
body.home header {
  position: relative;
  z-index: 20;
}

/* Lightningのページタイトル・パンくずだけ消す */
body.home .page-header,
body.home .breadcrumb {
  display: none;
}

/* Lightning本文まわりの余白だけ調整 */
body.home .siteContent {
  padding-top: 0;
}

body.home .mainSection {
  padding-top: 0;
}

/* 見出し装飾の干渉をリセット */
.yoshimori-top h1,
.yoshimori-top h2,
.yoshimori-top h3,
.yoshimori-top h4,
.yoshimori-top h5,
.yoshimori-top h6 {
  border: none;
  background: none;
  padding: 0;
}

.yoshimori-top ul,
.yoshimori-top ol {
  border: none;
  background: none;
}

/* =========================
   Hero
========================= */

.yoshimori-top-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 47, 45, 0.94), rgba(31, 47, 45, 0.78)),
    radial-gradient(circle at top right, rgba(182, 139, 69, 0.28), transparent 36%),
    var(--main);
  color: #ffffff;
  overflow: hidden;
}

.yoshimori-top-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.yoshimori-top-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.yoshimori-top-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 20px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.yoshimori-top-hero-copy .yoshimori-top-kicker {
  color: #ead9bb;
  border-color: rgba(234, 217, 187, 0.75);
}

.yoshimori-top-hero h1 {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.32;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.yoshimori-top-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.yoshimori-top-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.yoshimori-top-hero-badges span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.yoshimori-top-hero-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.yoshimori-top-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e9e2d6, #fbf8f2);
  border: 1px solid #ded5c8;
  color: #8a7a64;
  text-align: center;
  font-size: 15px;
}

.yoshimori-top-hero-card-text {
  padding: 18px 6px 4px;
}

.yoshimori-top-hero-card-text strong {
  display: block;
  color: var(--main);
  font-size: 20px;
  line-height: 1.6;
}

.yoshimori-top-hero-card-text span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   商品一覧
========================= */

.yoshimori-products {
  background: #ffffff;
}

.yoshimori-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}

.yoshimori-product-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
}

.yoshimori-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.1);
}

.yoshimori-product-card .yoshimori-top-photo {
  min-height: 220px;
  border: none;
  border-radius: 0;
}

.yoshimori-product-body {
  padding: 24px 24px 26px;
}

.yoshimori-product-body h3 {
  margin: 0 0 12px;
  color: var(--main);
  font-size: 22px;
  line-height: 1.5;
}

.yoshimori-product-body p {
  margin: 0;
  color: #555555;
  font-size: 15px;
}

.yoshimori-product-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.yoshimori-product-link::after {
  content: " →";
}

/* =========================
   About
========================= */

.yoshimori-about {
  background: var(--bg);
}

.yoshimori-about-box {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.yoshimori-about-text {
  padding: 42px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.yoshimori-about-text h3 {
  margin: 0 0 18px;
  color: var(--main);
  font-size: 28px;
  line-height: 1.55;
}

.yoshimori-about-text p {
  margin: 0 0 18px;
  color: #444444;
}

.yoshimori-about-text p:last-child {
  margin-bottom: 0;
}

.yoshimori-info-table {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 15px;
}

.yoshimori-info-table th,
.yoshimori-info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.yoshimori-info-table th {
  width: 120px;
  color: var(--main);
  font-weight: 700;
}

/* =========================
   Strength
========================= */

.yoshimori-strength {
  background: #ffffff;
}

.yoshimori-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}

.yoshimori-strength-card {
  padding: 34px 28px;
  border-radius: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.yoshimori-strength-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
}

.yoshimori-strength-card h3 {
  margin: 0 0 12px;
  color: var(--main);
  font-size: 21px;
  line-height: 1.5;
}

.yoshimori-strength-card p {
  margin: 0;
  color: #555555;
  font-size: 15px;
}

/* =========================
   Contact
========================= */

.yoshimori-contact {
  padding: 90px 20px;
  background:
    linear-gradient(135deg, rgba(31, 47, 45, 0.94), rgba(31, 47, 45, 0.84)),
    var(--main);
  color: #ffffff;
  text-align: center;
}

.yoshimori-contact h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.45;
}

.yoshimori-contact p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
}

.yoshimori-contact .yoshimori-top-btn {
  background: var(--accent);
  color: #ffffff !important;
}

.yoshimori-contact .yoshimori-top-btn.secondary {
  background: #ffffff;
  color: var(--main) !important;
}

.yoshimori-contact-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* =========================
   スマホ対応
========================= */

@media (max-width: 900px) {
  .yoshimori-top-hero-inner,
  .yoshimori-about-box {
    grid-template-columns: 1fr;
  }

  .yoshimori-product-grid,
  .yoshimori-strength-grid {
    grid-template-columns: 1fr;
  }

  .yoshimori-top-section {
    padding: 64px 0;
  }

  .yoshimori-top-hero {
    min-height: auto;
  }

  .yoshimori-top-hero-inner {
    padding: 76px 20px;
  }

  .yoshimori-about-text {
    padding: 30px 24px;
  }

  .yoshimori-top-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 520px) {
  .yoshimori-top-hero h1 {
    font-size: 34px;
  }

  .yoshimori-top-title {
    font-size: 28px;
  }

  .yoshimori-top-hero p,
  .yoshimori-top-lead {
    font-size: 15px;
  }

  .yoshimori-top-photo {
    min-height: 240px;
  }

  .yoshimori-product-body {
    padding: 22px 20px 24px;
  }
}

/* =========================
   最新記事
========================= */

.yoshimori-latest {
  background: var(--bg);
}

.yoshimori-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}

.yoshimori-latest-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
}

.yoshimori-latest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.1);
}

.yoshimori-latest-thumb {
  display: block;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9e2d6, #fbf8f2);
}

.yoshimori-latest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.yoshimori-latest-card:hover .yoshimori-latest-img {
  transform: scale(1.04);
}

.yoshimori-latest-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 210px;
  color: #8a7a64;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.yoshimori-latest-body {
  padding: 24px 24px 26px;
}

.yoshimori-latest-meta {
  margin-bottom: 8px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.yoshimori-latest-title {
  margin: 0 0 12px;
  color: var(--main);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
}

.yoshimori-latest-title a {
  color: inherit;
  text-decoration: none;
}

.yoshimori-latest-excerpt {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.8;
}

.yoshimori-latest-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.yoshimori-latest-link::after {
  content: " →";
}

.yoshimori-latest-empty {
  margin-top: 40px;
  text-align: center;
  color: #666666;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .yoshimori-latest-grid {
    grid-template-columns: 1fr;
  }

  .yoshimori-latest-thumb,
  .yoshimori-latest-noimage {
    height: 220px;
  }
}

/* =========================
   トップ画像表示
========================= */

.yoshimori-top-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: inherit;
}