@charset "UTF-8";
/* ==========================================================
   トップページ（front-page.php）専用スタイル
   ロゴのピンクと線の色をベースにした、やわらかいデザイン
   ========================================================== */

.sm-top {
  --sm-ink: #3b3536;
  --sm-sub: #6f6668;
  --sm-line: #e9e2e0;
  --sm-pink: #f3d8df;
  --sm-pink-soft: #fbf1f3;
  --sm-pink-deep: #b9788a;
  --sm-cream: #faf7f4;
  --sm-white: #fff;
  --sm-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --sm-en: "Josefin Sans", "Zen Maru Gothic", sans-serif;
  --sm-header-h: 76px;

  margin: 0;
  background: var(--sm-white);
  color: var(--sm-ink);
  font-family: var(--sm-jp);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}
.sm-top *,
.sm-top *::before,
.sm-top *::after { box-sizing: border-box; }
.sm-top img { display: block; max-width: 100%; height: auto; }
.sm-top a { color: inherit; text-decoration: none; }
.sm-top ul,
.sm-top ol { list-style: none; margin: 0; padding: 0; }
.sm-top h1, .sm-top h2, .sm-top h3, .sm-top p, .sm-top figure, .sm-top dl, .sm-top dd {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.sm-top h1, .sm-top h2, .sm-top h3 { font-weight: 500; line-height: 1.6; color: var(--sm-ink); }
html:has(.sm-top) { scroll-behavior: smooth; scroll-padding-top: 76px; }

.sm-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sm-nobr { display: inline-block; }
.sm-pc { display: none; }
@media (min-width: 768px) { .sm-pc { display: inline; } }

.sm-wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.sm-en {
  font-family: var(--sm-en);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sm-pink-deep);
}

/* ---------- ボタン ---------- */
.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: .95em 2.2em;
  border-radius: 999px;
  background: var(--sm-ink);
  color: var(--sm-white) !important;
  font-size: 14px;
  letter-spacing: .1em;
  transition: background .3s, transform .3s;
}
.sm-btn span { transition: transform .3s; }
.sm-btn:hover { background: var(--sm-pink-deep); }
.sm-btn:hover span { transform: translateX(4px); }
.sm-btn--small { padding: .55em 1.4em; font-size: 13px; }
.sm-btn--line {
  background: transparent;
  color: var(--sm-ink) !important;
  border: 1px solid var(--sm-ink);
}
.sm-btn--line:hover { background: var(--sm-ink); color: var(--sm-white) !important; }

/* ---------- ヘッダー ---------- */
.sm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.sm-header.is-scrolled { border-bottom-color: var(--sm-line); }
.admin-bar .sm-header { top: 32px; }
.sm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sm-header-h);
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}
.sm-header__logo { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: .12em; }
.sm-header__logo img { width: 58px; }
.sm-nav { display: flex; align-items: center; gap: 36px; }
.sm-nav ul { display: flex; gap: 28px; }
.sm-nav ul a {
  position: relative;
  font-family: var(--sm-en);
  font-size: 14px;
  letter-spacing: .14em;
}
.sm-nav ul a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--sm-pink-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.sm-nav ul a:hover::after { transform: scaleX(1); }
.sm-header__toggle { display: none; }

@media (max-width: 960px) {
  .sm-top { --sm-header-h: 64px; }
  .sm-header__logo img { width: 46px; }
  .sm-header__logo span { font-size: 14px; }
  .sm-header__toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .sm-header__toggle span:not(.sm-visually-hidden) {
    display: block; width: 26px; height: 1.5px; background: var(--sm-ink);
    transition: transform .3s;
  }
  .sm-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .sm-header__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .sm-nav {
    position: fixed;
    inset: var(--sm-header-h) 0 auto 0;
    flex-direction: column;
    gap: 28px;
    padding: 32px 20px 44px;
    background: var(--sm-white);
    border-bottom: 1px solid var(--sm-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .admin-bar .sm-nav { top: calc(var(--sm-header-h) + 46px); }
  .sm-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .sm-nav ul { flex-direction: column; align-items: center; gap: 18px; }
  .sm-nav ul a { font-size: 16px; }
}

/* ---------- ヒーロー ---------- */
.sm-hero__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sm-hero__photos img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.sm-hero__copy {
  position: relative;
  text-align: center;
  padding: 72px 20px 88px;
}
.sm-hero__copy h1 {
  margin: 14px 0 22px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: .14em;
  line-height: 1.75;
}
.sm-hero__copy p:last-child { color: var(--sm-sub); font-size: 15px; }

@media (max-width: 767px) {
  .sm-hero__photos { grid-template-columns: 1fr; }
  .sm-hero__photos img { aspect-ratio: 1 / 1; }
  .sm-hero__photos img:nth-child(2) { display: none; }
  .sm-hero__copy { padding: 48px 20px 64px; }
  .sm-hero__copy p:last-child { font-size: 14px; text-align: left; }
}

/* ---------- セクション共通 ---------- */
.sm-section { padding: 112px 0; }
.sm-section h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: .12em; }
.sm-heading { text-align: center; margin-bottom: 56px; }
.sm-heading h2 { margin-top: 6px; }
.sm-heading--left { text-align: left; margin-bottom: 0; }
@media (max-width: 767px) {
  .sm-section { padding: 80px 0; }
  .sm-heading { margin-bottom: 40px; }
}

/* ---------- Concept ---------- */
.sm-concept { background: var(--sm-cream); }
.sm-concept__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
/* ロゴの「家＋ピンクの四角」を写真の後ろの四角で表現 */
.sm-concept__photo { position: relative; }
.sm-concept__photo::before {
  content: "";
  position: absolute;
  inset: -28px 28px 28px -28px;
  background: var(--sm-pink);
  z-index: 0;
}
.sm-concept__photo img { position: relative; z-index: 1; border-radius: 2px; }
.sm-concept__text h2 { margin: 8px 0 28px; line-height: 1.8; }
.sm-concept__text p + p { margin-top: 1.2em; }
.sm-concept__text p:not(.sm-en) { color: var(--sm-sub); font-size: 15px; }
@media (max-width: 860px) {
  .sm-concept__inner { grid-template-columns: 1fr; gap: 64px; }
  .sm-concept__photo { margin: 28px 0 0 28px; }
}

/* ---------- Brand ---------- */
.sm-brand__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
  max-width: 960px;
}
.sm-brand__logo { width: 100%; }
.sm-brand__text h2 { margin: 6px 0 24px; }
.sm-brand__text p:not(.sm-en) { color: var(--sm-sub); font-size: 15px; }
.sm-brand__text p + p { margin-top: 1em; }
.sm-brand__text .sm-btn { margin-top: 36px; }
@media (max-width: 860px) {
  .sm-brand__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .sm-brand__logo { width: min(280px, 80%); margin-inline: auto; }
  .sm-brand__text p:not(.sm-en) { text-align: left; }
}

/* ---------- Products ---------- */
.sm-products { background: linear-gradient(var(--sm-white) 0, var(--sm-pink-soft) 0); }
.sm-products__list { display: grid; gap: 40px; }
.sm-product {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--sm-white);
  border-radius: 4px;
  overflow: hidden;
}
.sm-product:nth-child(even) { grid-template-columns: 1fr 380px; }
.sm-product:nth-child(even) .sm-product__photo { order: 2; }
.sm-product__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.sm-product__body {
  position: relative;
  align-self: center;
  padding: 48px 56px;
}
.sm-product__no {
  position: absolute;
  top: 8px;
  right: 40px;
  font-family: var(--sm-en);
  font-weight: 300;
  font-size: 96px;
  line-height: 1;
  color: var(--sm-pink);
  letter-spacing: 0;
}
.sm-product h3 {
  position: relative;
  font-size: 24px;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.sm-product h3 small {
  display: block;
  font-size: 12px;
  color: var(--sm-pink-deep);
  letter-spacing: .2em;
  font-weight: 400;
}
.sm-product__body p { position: relative; color: var(--sm-sub); font-size: 15px; }
.sm-products__more { margin-top: 56px; text-align: center; }
@media (max-width: 860px) {
  .sm-product,
  .sm-product:nth-child(even) { grid-template-columns: 1fr; }
  .sm-product:nth-child(even) .sm-product__photo { order: 0; }
  .sm-product__body { padding: 32px 24px 40px; }
  .sm-product__no { top: 20px; right: 20px; font-size: 64px; }
  .sm-product h3 { font-size: 21px; }
}

/* ---------- Gallery ---------- */
.sm-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sm-gallery__grid li { overflow: hidden; border-radius: 2px; }
.sm-gallery__grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .8s ease;
}
.sm-gallery__grid li:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
  .sm-gallery__grid { gap: 6px; }
}

/* ---------- News ---------- */
.sm-news { background: var(--sm-cream); }
.sm-news__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 960px;
}
.sm-news__list li { border-bottom: 1px solid var(--sm-line); }
.sm-news__list li:first-child { border-top: 1px solid var(--sm-line); }
.sm-news__list a,
.sm-news__empty {
  display: flex;
  gap: 32px;
  padding: 22px 4px;
  font-size: 15px;
  transition: color .3s;
}
.sm-news__list a:hover { color: var(--sm-pink-deep); }
.sm-news__list time { flex: none; font-family: var(--sm-en); color: var(--sm-sub); letter-spacing: .1em; }
@media (max-width: 767px) {
  .sm-news__inner { grid-template-columns: 1fr; gap: 28px; }
  .sm-news__list a { flex-direction: column; gap: 2px; }
}

/* ---------- フッター ---------- */
.sm-footer { padding: 72px 0 40px; border-top: 1px solid var(--sm-line); text-align: center; }
.sm-footer__logo { width: 140px; margin: 0 auto 28px; }
.sm-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.sm-footer ul a { font-family: var(--sm-en); font-size: 13px; letter-spacing: .14em; color: var(--sm-sub); }
.sm-footer ul a:hover { color: var(--sm-pink-deep); }
.sm-footer__copy { margin-top: 40px; color: var(--sm-sub); font-size: 12px; letter-spacing: .1em; }

/* ---------- スクロールで表示（JS有効時のみ） ---------- */
.js .sm-fade { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.js .sm-fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:has(.sm-top) { scroll-behavior: auto; }
  .js .sm-fade { opacity: 1; transform: none; transition: none; }
}
