/* ============================================================
   Lifestyle ありがとう株式会社 — 共通スタイルシート
   ロゴの猫は白ベタのため、ロゴ／マスコットは必ず
   白または極薄の面に置く設計にしています。
   ============================================================ */

:root {
  /* --- ロゴ由来のブランドカラー --- */
  --brown:      #543E32;  /* ロゴ文字の濃茶 */
  --brown-mid:  #9E6438;  /* ボタン・電話番号用（猫のぶちを濃くした茶） */
  --brown-soft: #AD7246;  /* 猫のぶちそのまま：装飾用 */
  --brown-lt:   #C99A72;  /* 淡い茶：装飾用（本文には使わない） */
  --sky:        #2A70A0;  /* 文字・ボタン用（ロゴの水色を濃くした読める青） */
  --sky-soft:   #84B6D8;  /* ロゴそのままの水色：装飾・細い線用 */
  --sky-bg:     #EDF5FA;  /* 水色の薄い面 */
  --sun:        #FDCA7B;  /* 花の山吹 */
  --sun-bg:     #FEF4E2;
  --blush:      #FCDDD4;

  /* --- ベース（ロゴが白いので全体を白基調に） --- */
  --ink:    #4A3A2E;
  --body:   #6F5C4D;
  --faint:  #8D7A68;
  --white:  #FFFFFF;   /* ロゴを置く面 */
  --cream:  #FEFCF8;   /* ほぼ白のベース */
  --sand:   #FBF5EC;   /* 薄いクリーム（ロゴは直接置かない） */
  --line:   #EFE6D8;

  --round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --sans:  'Noto Sans JP', sans-serif;

  --max: 1080px;
  --nav-h: 76px;

  --r-md: 18px;
  --r-lg: 28px;
  --shadow: 0 4px 20px rgba(84,62,50,.07);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ロゴの猫が白ベタのため、サイト全体をライト表示に固定します。
   端末がダークモードでも色が反転しません。 */
html { font-size: 16px; scroll-behavior: smooth; color-scheme: light; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   LOGO SURFACE — ロゴ・マスコットを置く白い面
   ============================================================ */
.logo-surface {
  background: var(--white);
  border-radius: var(--r-lg);
}

/* マスコット用の白い丸（薄色の面に置くとき用） */
.mascot-dot {
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(84,62,50,.08);
  overflow: hidden;
}

.mascot-dot img {
  width: 76%;
  height: auto;
}

/* ============================================================
   NAV（常に白地、ロゴがそのまま乗る）
   ============================================================ */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo { flex-shrink: 0; display: flex; align-items: center; }
.nav__logo img { height: 48px; width: auto; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--round);
  font-size: .84rem;
  font-weight: 500;
  color: var(--body);           /* ナビは常に白地なので固定色 */
  letter-spacing: .03em;
  white-space: nowrap;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}

.nav__links a:hover { color: var(--brown-mid); }

.nav__links a[aria-current="page"] {
  color: var(--brown);
  border-bottom-color: var(--sun);
}

.nav__tel {
  font-family: var(--round);
  font-weight: 700;
  font-size: .88rem;
  color: #fff;
  background: var(--brown-mid);
  padding: .5rem 1.15rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s;
}

.nav__tel:hover { background: var(--brown); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__burger span {
  display: block;
  width: 23px; height: 2.5px;
  border-radius: 2px;
  background: var(--brown-mid);
}

.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 300;
  flex-direction: column;
  padding: 4.5rem 2rem 2.5rem;
  overflow-y: auto;
}

.nav__drawer.is-open { display: flex; }

.nav__drawer a {
  font-family: var(--round);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  padding: .95rem .5rem;
  border-bottom: 1px dashed var(--line);
}

.nav__drawer a[aria-current="page"] { color: var(--brown-mid); }

.nav__drawer-tel {
  margin-top: 1.75rem;
  text-align: center;
  background: var(--brown-mid);
  color: #fff !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 700 !important;
}

.nav__close {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  background: none; border: none;
  font-size: 1.4rem;
  color: var(--faint);
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   FOOTER（ロゴは白いボックスに載せる）
   ============================================================ */
.footer {
  background: var(--sand);
  padding: 3.5rem 2rem 1.75rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer__logo {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1rem 1.4rem;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.footer__logo img { height: 52px; width: auto; }

.footer__addr {
  font-size: .78rem;
  color: var(--faint);
  line-height: 1.95;
}

.footer__addr a { color: var(--brown-mid); font-weight: 500; }

.footer__nav {
  list-style: none;
  display: grid;
  grid-template-columns: auto auto;
  gap: .45rem 2rem;
}

.footer__nav a {
  font-family: var(--round);
  font-size: .79rem;
  color: var(--body);
  transition: color .18s;
}

.footer__nav a:hover { color: var(--brown-mid); }

.footer__copy {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: .7rem;
  color: var(--faint);
}

/* ============================================================
   PAGE HERO（下層ページ）
   ============================================================ */
.page-hero {
  background: var(--sand);
  padding: 3rem 2rem 2.75rem;
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-hero__mascot { width: 84px; height: 84px; }

.page-hero__label {
  font-family: var(--round);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--sky);
  display: block;
  margin-bottom: .35rem;
}

.page-hero__title {
  font-family: var(--round);
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.45;
}

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 4.5rem 2rem; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--sky   { background: var(--sky-bg); }

.section__inner { max-width: var(--max); margin: 0 auto; }

.section__label {
  font-family: var(--round);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--sky);
  display: block;
  margin-bottom: .45rem;
}

.section__title {
  font-family: var(--round);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

/* 見出し横の小花（ロゴの黄色い花を模した形） */
.section__title::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: var(--sun);
  border-radius: 50% 12% 50% 12%;
  transform: rotate(12deg);
}

/* ============================================================
   LAYOUT / TEXT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  /* 上端揃え。center にすると文章量が少ないページで
     本文が下に落ちて始まって見えるため。 */
  align-items: start;
}

.two-col--flip { direction: rtl; }
.two-col--flip > * { direction: ltr; }

.body-text {
  font-size: .89rem;
  color: var(--body);
  line-height: 2.15;
  margin-bottom: 1.4rem;
}

.ruled-list { list-style: none; font-size: .87rem; color: var(--body); }

.ruled-list li {
  padding: .7rem 0 .7rem 1.6rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
  line-height: 1.85;
}

.ruled-list li::before {
  content: '';
  position: absolute;
  left: .15rem; top: 1.3rem;
  width: 8px; height: 8px;
  background: var(--sun);
  border-radius: 50%;
}

.ruled-list strong { color: var(--brown); font-weight: 700; }

.callout {
  background: var(--sun-bg);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  font-size: .83rem;
  color: var(--body);
  line-height: 2;
  margin-top: 1.5rem;
}

.callout strong { color: var(--brown); font-weight: 700; }
.callout a { color: var(--sky); font-weight: 500; }

/* ---- マスコット入りカード ---- */
.visual-block {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 2rem;
}

.visual-block img { width: 44%; max-width: 135px; }

.visual-block__caption {
  font-family: var(--round);
  font-size: .8rem;
  font-weight: 500;
  color: var(--body);
  text-align: center;
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--round);
  font-weight: 700;
  font-size: .87rem;
  padding: .85rem 2rem;
  border-radius: 999px;
  margin-top: 1.5rem;
  transition: transform .12s, background .18s, box-shadow .12s;
}

.btn:active { transform: translateY(2px); box-shadow: none !important; }

.btn--primary {
  background: var(--brown-mid);
  color: #fff !important;
  box-shadow: 0 4px 0 #7D4F2C;
}

.btn--primary:hover { background: #83522E; }

.btn--sky {
  background: var(--sky);
  color: #fff !important;
  box-shadow: 0 4px 0 #1F587D;
}

.btn--sky:hover { background: #225B83; }

/* ---- SOFT CARDS ---- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.soft-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .18s;
}

.soft-card:hover { transform: translateY(-3px); }

/* 画像アイコン（円形イラスト） */
.soft-card__icon {
  width: 92px; height: 92px;
  margin-bottom: 1.1rem;
}

.soft-card__icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.soft-card__name {
  font-family: var(--round);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
}

.soft-card__desc {
  font-size: .81rem;
  color: var(--body);
  line-height: 1.95;
}

.soft-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--round);
  font-weight: 500;
  font-size: .78rem;
  color: var(--sky);
}

.soft-card__link:hover { color: var(--brown-mid); }

/* ---- FLOW STEPS ---- */
.flow__item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}

.flow__num {
  font-family: var(--round);
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  background: var(--sky);
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow__item-title {
  font-family: var(--round);
  font-weight: 700;
  font-size: .95rem;
  color: var(--brown);
  margin-bottom: .2rem;
}

.flow__item-body {
  font-size: .83rem;
  color: var(--body);
  line-height: 1.95;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links, .nav__tel { display: none; }
  .nav__burger { display: flex; }

  .card-grid--4 { grid-template-columns: 1fr 1fr; }
  .card-grid--3 { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col--flip { direction: ltr; }
  .visual-block { max-width: 290px; margin: 0 auto; }

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

@media (max-width: 560px) {
  :root { --nav-h: 66px; }
  .nav__logo img { height: 36px; }
  .section { padding: 3.25rem 1.4rem; }
  .page-hero { padding: 2.25rem 1.4rem 2rem; }
  .page-hero__inner { gap: 1rem; }
  .page-hero__mascot { width: 60px; height: 60px; }
  .card-grid--4 { grid-template-columns: 1fr; }
  .footer { padding: 2.75rem 1.4rem 1.5rem; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__logo img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================================================
   商品カード（仏壇・仏具／墓石）— 写真を主役にする
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s;
}

.product-card:hover { transform: translateY(-3px); }

/* 写真の下地：淡いクリームで木目や石の色を引き立てる */
.product-card__photo {
  background: var(--sand);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-card__photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-card__body { padding: 1.5rem 1.4rem 1.75rem; }

.product-card__name {
  font-family: var(--round);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brown);
  margin-bottom: .5rem;
}

.product-card__desc {
  font-size: .81rem;
  color: var(--body);
  line-height: 1.95;
}

@media (max-width: 900px) {
  .product-grid,
  .product-grid--3 { grid-template-columns: 1fr 1fr; }
  .product-card__photo { height: 190px; }
}

@media (max-width: 560px) {
  .product-grid,
  .product-grid--3 { grid-template-columns: 1fr; }
  .product-card__photo { height: 230px; }
}

/* ============================================================
   お問い合わせフォーム
   ============================================================ */
.form-field { margin-bottom: 1.4rem; }

.form-field__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--round);
  font-weight: 700;
  font-size: .83rem;
  color: var(--brown);
  margin-bottom: .5rem;
}

.form-field__req {
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--brown-mid);
  padding: .1rem .55rem;
  border-radius: 999px;
  letter-spacing: .04em;
}

.form-field__opt {
  font-size: .68rem;
  font-weight: 500;
  color: var(--faint);
  background: var(--sand);
  padding: .1rem .55rem;
  border-radius: 999px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  transition: border-color .18s;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239E6438' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #BFB2A4; }

/* 同意チェック */
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--sun-bg);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  font-size: .83rem;
  color: var(--body);
  line-height: 1.8;
  cursor: pointer;
}

.form-agree input[type="checkbox"] {
  width: 1.2rem; height: 1.2rem;
  accent-color: var(--brown-mid);
  flex-shrink: 0;
  margin-top: .2rem;
  cursor: pointer;
}

.form-agree a { color: var(--sky); font-weight: 500; text-decoration: underline; }

/* 送信ボタン */
.form-submit {
  width: 100%;
  font-family: var(--round);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--brown-mid);
  border: none;
  border-radius: 999px;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #7D4F2C;
  transition: background .18s, transform .12s;
}

.form-submit:hover { background: #83522E; }
.form-submit:active { transform: translateY(2px); box-shadow: none; }

.form-note {
  font-size: .76rem;
  color: var(--faint);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.8;
}
