/* main style placeholder */
/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "YuGothic", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  color: #3a2b22;
  background-color: #f5eee0;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

/* =========================================================
   Layout (.l-)
   ========================================================= */

.l-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================
   Header Layout
   ============================== */

.l-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ddcdb8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ヘッダーの高さ・余白 */
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 1.5rem;  /* ここで高さ調整 */
}

/* ロゴの右側（ナビ + 電話）コンテナ */
.l-header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* PC 用：電話を右端に寄せる */
.c-header-contact {
  text-align: right;
}

.c-header-contact__label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.c-header-contact__number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.c-header-contact__number:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .l-header__inner {
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  .l-header__right {
    gap: 0.75rem;
  }

  /* ラベルはSPで消して数字だけ */
  .c-header-contact__label {
    display: none;
  }

  .c-header-contact__number {
    font-size: 0.95rem;
  }
}

/* Footer */

.l-footer {
  background-color: #e3d4bd;
  padding: 2rem 0;
}

.l-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.l-footer__info {
  flex: 1 1 220px;
}

.l-footer__copy {
  display: flex;
  align-items: flex-end;
}

/* Section layout */

.c-section__inner {
  padding: 3rem 0;
}

.c-section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2rem;
}

/* =========================================================
   Modules (.c-)
   ========================================================= */

/* ==============================
   Logo（家紋 + テキスト）
   ============================== */

.c-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;       /* 横の余白も少し広げる */
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 家紋ロゴをさらに大きく（PC） */
.c-logo__img {
  width: 60px;   /* ← 前回 50px → 今回 60px にアップ */
  height: auto;
}

/* ★ テキストも大きくする */
.c-logo__text {
  font-size: 1.2rem;  /* ← 1rem → 1.2rem に拡大 */
  line-height: 1;
}

.c-logo__img--kamon {
  filter: brightness(0) saturate(100%) invert(22%) sepia(18%) saturate(700%) hue-rotate(345deg) brightness(92%) contrast(92%);
}

/* ==============================
   SP最適化
   ============================== */
@media (max-width: 768px) {

  /* SPロゴ（家紋）は PC より少し小さめだけど、もとの32pxより大きく */
  .c-logo__img {
    width: 48px;      /* ← 32px → 40px に拡大 */
  }

  /* SP テキストも大きめに */
  .c-logo__text {
    font-size: 1.1rem;  /* ← 0.9rem → 1.1rem */
  }

  /* ロゴ周りの余白詰まりを防止 */
  .c-logo {
    gap: 0.6rem;
  }
}

/* スマホでは全体に左右の余白を追加する */
@media (max-width: 768px) {
  body,
  .l-inner,
  .page-content,
  .c-section__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Header contact (tel) */

.c-header-contact {
  text-align: right;
}

.c-header-contact__label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.c-header-contact__number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.c-header-contact__number:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header {
    display: flex;
    align-items: center; /* ←上下中央揃え */
    justify-content: space-between;
    height: 64px; /* 必要なら調整 */
    padding: 0 1rem;
  }
}


/* Global nav */

.c-global-nav {
  display: flex;
}

.c-global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.c-global-nav__item a {
  font-size: 0.9rem;
  font-weight: 500;
}

.c-global-nav__item a:hover {
  text-decoration: none;
  border-bottom: 1px solid #3a2b22;
}

/* Hamburger */

.c-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.c-nav-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background-color: #3a2b22;
}

/* ============================================
   SPハンバーガーメニュー 完全対応版
   ============================================ */
@media (max-width: 768px) {

  /* ナビコンテナ（開いた時だけ対象にする） */
  nav.c-global-nav.is-open {
    width: 100%;
    background: #faf5ed; /* 既存サイトのSP背景と合わせる */
    padding: 0;
    margin: 0;
  }

  /* UL リセット */
  nav.c-global-nav.is-open .c-global-nav__list {
    padding: 0;
    margin: 0;
  }

  /* LI（区切り線） */
  nav.c-global-nav.is-open .c-global-nav__item {
    list-style: none;
    border-bottom: 1px solid #e3d8c7;
  }

  nav.c-global-nav.is-open .c-global-nav__item:first-child {
    border-top: 1px solid #e3d8c7;
  }

  /* a 要素（横いっぱいタップ可能に） */
  nav.c-global-nav.is-open .c-global-nav__item > a {
    display: block;
    width: 100%;
    padding: 1.3rem 1.4rem;
    text-decoration: none;
    color: #3a2b22;
    font-size: 1.1rem;
    box-sizing: border-box;
  }

  /* タップ時のフィードバック */
  nav.c-global-nav.is-open .c-global-nav__item > a:active {
    background-color: #f1e8dd;
  }
}

/* Hero */

.c-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.c-hero__slider {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.c-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.c-hero__content {
  padding: 4.5rem 0 3rem;
}

.c-hero-panel {
  max-width: 420px;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background-color: rgba(245, 238, 224, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.c-hero-panel__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.c-hero-panel__title {
  font-size: 1.7rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.c-hero-panel__accent {
  font-weight: 700;
}

.c-hero-panel__text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.c-hero__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
}

.c-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Section */

.c-section {
  background-color: #f5eee0;
}

.c-section--alt {
  background-color: #efe0c8;
}

.c-section__title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.c-section__text {
  font-size: 0.95rem;
  max-width: 640px;
}

.c-section__actions {
  margin-top: 1.5rem;
}

/* Subsection (下層ページ) */

.c-subsection {
  margin-top: 2rem;
}

.c-subsection__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Media */

.c-media {
  margin: 0;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* List */

.c-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.c-list--check .c-list__item {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.c-list--check .c-list__item::before {
  content: "・";
  position: absolute;
  left: 0.2rem;
  top: 0;
}

/* Buttons */

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.c-button--primary {
  background-color: #7b8242;
  color: #fff;
}

.c-button--primary:hover {
  background-color: #676e36;
  text-decoration: none;
}

.c-link-button {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #7b8242;
  font-size: 0.9rem;
}

.c-link-button:hover {
  background-color: rgba(123, 130, 66, 0.08);
  text-decoration: none;
}

/* Footer text */

.c-footer__name {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.c-footer__text {
  font-size: 0.85rem;
}

.c-footer__copy {
  font-size: 0.8rem;
}

/* Floating call */

.c-fab-call {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #7b8242;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.c-fab-call__icon {
  font-size: 1.4rem;
}

/* Breadcrumb */

.c-breadcrumb {
  font-size: 0.8rem;
  margin: 1rem 0 1.5rem;
}

.c-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.c-breadcrumb__item::after {
  content: ">";
  margin-left: 0.3rem;
}

.c-breadcrumb__item:last-child::after {
  content: "";
}

.c-breadcrumb__item a {
  text-decoration: underline;
}

.c-breadcrumb__item--current span {
  opacity: 0.8;
}

/* Links section on top page */

.c-links__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.c-links__item a {
  text-decoration: underline;
  font-size: 0.95rem;
}

/* =========================================================
   States (.is-)
   ========================================================= */

.is-active {
  opacity: 1;
}

.c-global-nav.is-open {
  display: block;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  .l-header__inner {
    align-items: center;
  }

  .l-header__right {
    gap: 0.75rem;
  }

  .c-header-contact__label {
    display: none;
  }

  .c-header-contact__number {
    font-size: 0.95rem;
  }

  .c-nav-toggle {
    display: inline-block;
  }

  .c-global-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #f5eee0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
  }

  .c-global-nav__list {
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.75rem;
  }

  .c-section__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-hero-panel {
    margin-top: 1rem;
    padding: 2rem 1.4rem;
  }

  .c-links__list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =========================================================
   階層ページ装飾（about.php ベース）
   ========================================================= */

/* 階層ページ全体の背景（section に付け足すクラス） */
.page-section {
  background-color: #f3e8d7; /* ほんのり温かみのあるベージュ */
}

/* 本文を包む白カード */
.page-content {
  background-color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ページタイトル（h1） */
.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 6px solid #7b6a4f;
  padding-left: 0.75rem;
}

/* --- h2：セクションの大見出し（●なし） --- */
.page-content h2.c-subsection__title--main {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4a3a28;
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid #d8c8b5;
  line-height: 1.4;
}

/* --- h3：小見出し（●付き） --- */
.page-content h3.c-subsection__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #6a5540;
  /* margin-top: 1.8rem; */
  margin-bottom: 0.6rem;
}

/* h3小見出し：PNGアイコン（1.5em） */
.page-content h3.c-subsection__title::before {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("../img/h3icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0.45rem;
  vertical-align: middle;   /* ★文字と縦位置を揃える */
  position: relative;
  top: -0.05em;             /* ★微調整（ほぼ中央） */
}

.page-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a3a28;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

/* 本文 */
.page-content p {
  line-height: 1.85;
  margin-bottom: 1.2rem;
  color: #3a2b22;
}

/* SP 調整 */
@media (max-width: 768px) {
  .page-content {
    padding: 1.8rem 1.4rem;
  }
  .page-title {
    font-size: 1.55rem;
  }
  .page-content h2.c-subsection__title--main {
    font-size: 1.35rem;
  }
}

/* テキスト強調（階層ページなどで再利用可） */
.c-strong {
  font-weight: 700;
  color: #4a3a28; /* h2 と同系統で強さを出す */
  background: linear-gradient(transparent 60%, #f3e8d7 60%); /* ほんのり背景強調 */
  padding: 0 0.1em; /* 背景をきれいに見せる微調整 */
}

/* お米ができるまで：工程ナビ */
.flow-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 2.2rem;
}

.flow-nav__btn {
  display: inline-block;
  background: #7b6a4f;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity .2s;
}
.flow-nav__btn:hover {
  opacity: .75;
}

/* イラスト */
.flow-illust img {
  width: 100%;
  height: auto;
  max-width: 1400px;
  display: block;
  margin: 0 auto 2rem;
}

/* =========================================================
   okome-made（お米ができるまで）専用デザイン
   ========================================================= */

/* カード風セクション */
.page--flow .c-subsection {
  background: #f7f1e8; /* 和の薄いベージュ */
  padding: 1.8rem 1.6rem;
  border-radius: 12px;
  margin-bottom: 2.2rem;
  border: 1px solid #e5d9c8;
}

/* h3 のマージン調整（カード内で映えるように） */
.page--flow .c-subsection__title {
  margin-top: 0;
}

/* 下のセクションとの余白 */
.page--flow .c-subsection:last-of-type {
  margin-bottom: 0;
}

/* =========================================================
   tsukurite（作り手紹介）専用デザイン
   ========================================================= */

/* 作り手紹介ページなどで使うページビジュアル */
.page-content .page-visual {
  margin: 1.6rem 0 2.2rem;
  text-align: center;
}

.page-content .page-visual img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================
   TOP「加瀬家の米をもっと知る」専用ボタンスタイル
   他への影響なし
   ============================================ */
.c-links__list .c-links__item a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #f3e8d7;   /* 和ベージュ */
  border: 1px solid #d6c7b5;  /* 優しめの枠線 */
  border-radius: 6px;
  text-decoration: none;       /* 下線は消す */
  color: #3a2b22;
  font-size: 0.95rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.c-links__list .c-links__item a:hover {
  background-color: #e9dece;
  border-color: #c8b8a4;
}

@media (max-width: 768px) {
  .c-links__list .c-links__item a {
    display: block;            /* SPは横幅いっぱいにしやすい */
    width: 100%;
    text-align: center;
  }
}