/* ===================================
   1. 軽めのリセット
=================================== */

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* リンク・画像の基本 */
a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===================================
   2. 基本設定・変数
=================================== */

:root {
  --color-bg: #f7f3ec;
  --color-bg-light: #fcf9f4;

  /* テキスト系 */
  --color-text: #3a3a3a;
  --color-muted: #7a756b;

  /* アクセント系 */
  --color-main: #8d6e52;
  --color-accent: #c48b5a;

  --color-border: #e0d4c4;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Yu Gothic", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

/* ===================================
   3. 見出し・テキスト
=================================== */

h1,
h2,
h3 {
  font-family: inherit;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  line-height: 1.25;
  font-weight: 700;
}

/* セクションタイトル */
.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0 0 1.6rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 0.4rem;
}

/* h3 小見出し */
h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

/* リード文・段落 */
.section-lead {
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

p {
  font-size: 1rem;
  margin: 0 0 1rem;
  line-height: 1.85;
}

/* ===================================
   4. ヘッダー
=================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

nav ul {
  display: flex;
  gap: 1.2rem;
  font-size: 1rem;
}

nav a {
  position: relative;
  padding-bottom: 0.1rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===================================
   5. レイアウト共通
=================================== */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
}

/* ===================================
   6. HERO セクション
   （横スクロールが出ない安全設計）
=================================== */

.hero {
  position: relative;
  margin: 0 -1.5rem 4.5rem; /* main の左右パディングだけ打ち消して全幅風に */
  height: 70vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

/* 背景画像 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.8);
}

/* 追加の暗めレイヤー */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* テキスト */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 0 2rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  color: #fff;
}

.hero-date {
  margin-bottom: 2rem;
  font-size: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ===================================
   7. ボタン
=================================== */

.btn-primary {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.95rem 2.8rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: normal; /* スマホで折り返しOKにする */
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #d39a67;
  box-shadow: 0 16px 36px rgba(196, 139, 90, 0.45);
}

/* ===================================
   8. コンセプト
=================================== */

.concept {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.concept-text p {
  margin-top: 0;
}

.concept-tagline {
  font-weight: 600;
  color: var(--color-main);
  margin-top: 0.6rem;
}

.concept-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ===================================
   9. 商品カード
=================================== */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.3rem 1.3rem;
  font-size: 0.95rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

/* ===================================
   10. マットレス体験
=================================== */

.mattress {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  background: var(--color-bg-light);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.mattress-points {
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.mattress-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.mattress-points span {
  font-size: 1rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.mattress-image {
  border-radius: 18px;
  overflow: hidden;
}

/* ===================================
   11. ギャラリー
=================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ===================================
   12. アクセス
=================================== */

#access {
  padding: 3.5rem 0;
  background: linear-gradient(
    180deg,
    #f7f3ec 0%,
    #fdf9f3 40%,
    #fdf9f3 100%
  );
}

#access .section-title {
  margin-bottom: 0.8rem;
}

#access .section-lead {
  margin-bottom: 2.2rem;
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

/* 左側カード */
.access-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.access-box dl {
  margin: 0;
  padding-left: 1rem;
}

.access-box dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

.access-box dd {
  margin: 0.15rem 0 0.35rem;
}

/* 左側の縦ライン */
.access-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  bottom: 1.3rem;
  width: 4px;
  background: var(--color-accent);
  border-radius: 999px;
}

/* 右側：地図 */
.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.map-caption {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: right;
  margin-top: 0.3rem;
}

/* ===================================
   13. FAQ
=================================== */

.faq-list {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem;
  font-size: 0.95rem;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.faq-q {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ===================================
   14. ENTRY
=================================== */

.entry {
  text-align: center;
  padding: 2.3rem 1.5rem;
  background: linear-gradient(135deg, #fdf9f3, #f4eadc);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.entry p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.entry-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.8rem;
}

/* ===================================
   15. フッター
=================================== */

footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-muted);
}

/* ===================================
   16. フォームページ用
=================================== */

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.contact-form {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-form label {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fcfaf7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
}

.req {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.back-link {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.back-link a {
  color: var(--color-main);
  text-decoration: underline;
}

/* ===================================
   17. レスポンシブ
=================================== */

@media (max-width: 880px) {
  /* シンプルに：ナビはPCのみ表示 */
  nav {
    display: none;
  }

  .concept,
  .mattress,
  .access {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-3,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 1rem 3rem;
  }

  section {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
  }

  .hero {
    margin: 0 -1rem 3.5rem;
    height: 65vh;
    min-height: 420px;
  }

  .hero-content {
    padding: 0 1.4rem;
  }

  .cards-3,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mattress {
    padding: 1.4rem;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .access-map {
    min-height: 260px;
  }
}
