/* =========================
   徳宝 公式ホームページ
   基本設定
========================= */

:root {
  --ivory: #f8f5ed;
  --pale-yellow: #eee4c5;
  --gold: #b79a59;
  --dark: #403d34;
  --text: #666257;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ヘッダー */

.site-header {
  min-height: 88px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background: rgba(250, 248, 243, 0.75);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  font-family: serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.logo span {
  display: inline;
  vertical-align: 6px;
  font-family: sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: normal;
}

.main-nav {
  margin-left: 0;
  display: flex;
  flex: 1;
  transform: translateX(100px);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--gold);
}

/* メインビジュアル */


.hero {
  display: block;
  position: relative;
  width: 100%;
  min-height: 0;
  background: var(--ivory);
}

.hero-content {
  padding: 90px 8% 90px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow,
.section-label {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.hero h1 {
  margin: 18px 0;
  font-family: serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: normal;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.hero-text {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 30px;
}

.hero-image {
  min-height: 400px;
  overflow: hidden;
  background: var(--ivory);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.hero-image picture {
  display: block;
  width: 100%;
}

.hero-image img {
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 25px;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.8;
}

.button-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--dark);
}

/* 共通セクション */

.section {
  padding: 90px 7%;
  text-align: center;
}

.section h2,
.message h2 {
  margin: 8px 0 15px;
  font-family: serif;
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 0.1em;
}

.section-intro {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 35px;
}

.product-placeholder {
  max-width: 760px;
  margin: 35px auto 0;
  padding: 65px 20px;
  background: var(--ivory);
  color: var(--text);
}

.small-text {
  font-size: 12px;
}

/* ブランドメッセージ */

.message {
  padding: 90px 20px;
  text-align: center;
  background: var(--pale-yellow);
}

.message > p:not(.section-label) {
  color: var(--text);
  font-size: 14px;
  margin: 25px 0;
}

.text-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
}

/* お知らせ・FAQ */

.news {
  background: var(--ivory);
}

.faq {
  padding: 70px 7%;
  text-align: center;
}

.faq h2 {
  font-family: serif;
  font-size: 25px;
  font-weight: normal;
}

.faq p {
  color: var(--text);
  font-size: 14px;
}

/* フッター */

.site-footer {
  padding: 45px 20px 25px;
  text-align: center;
  background: #454239;
  color: var(--white);
}

.site-footer .logo {
  display: inline-block;
}

.site-footer p {
  font-size: 12px;
  color: #e2ddcf;
}

.site-footer small {
  display: block;
  margin-top: 25px;
  font-size: 10px;
  color: #d1ccbf;
}

/* スマートフォン対応 */

@media (max-width: 768px) {
  .site-header {
    padding: 10px 4%;
    flex-direction: row;
    gap: 10px;
  }

  .main-nav {
    display: none;
  }

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

  .hero-content {
    padding: 55px 8%;
  }

  .hero-image {
    min-height: 260px;
  }

  .section {
    padding: 65px 6%;
  }

  .section h2,
  .message h2 {
    font-size: 25px;
  }

  .message {
    padding: 65px 20px;
  }
}

/* SCROLL表示 */

.scroll-indicator {
  position: fixed;
  bottom: 35px;
  left: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px; /* SCROLLと縦線の間 */
  font-family: sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8b7355;
  text-decoration: none;
  z-index: 1000;
  width: 64px;
  height: 64px;
  padding: 0;
  box-sizing: border-box;
  background: rgba(250, 247, 240, 0.88);
  border-radius: 50%;
  justify-content: center;
}

.scroll-indicator::after {
  content: "";
  display: block;
  width: 1px;
  height: 16px;
  background-color: #8b7355;
}

@media (max-width: 768px) {
  .scroll-indicator {
    left: 15px;
    bottom: 20px;
  }
}

/* ヘッダー右側のアイコン */

.header-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #333333;
  text-decoration: none;
}

.header-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon:hover {
  opacity: 0.6;
}


/* スマホ用メニューボタン */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #9a7b45;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    width 0.35s ease;
}

.menu-toggle span:nth-child(2) {
  width: 16px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-icons {
    gap: 12px;
  }
}

/* スマホ用メニュー */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px 6% 18px;
  background: #faf8f3;
  border-top: 1px solid #e5e0d5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  z-index: 1001;
}

.mobile-menu a {
  display: block;
  text-align: center;
  padding: 17px 4px;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e5e0d5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.site-header {
  position: absolute;
}

/* ハンバーガーメニューを×に変える */

.menu-toggle span {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* メニュー項目のホバー・タップ効果 */

.mobile-menu a:hover {
  color: #9a7b45;
  padding-left: 10px;
}

.mobile-menu a:active {
  color: #9a7b45;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}