/* ==========================================================
   Mori no Te — 共通スタイルシート
   ========================================================== */

/* ---- CSS変数 ---- */
:root {
  --color-main: #5C7A5A;
  --color-sub: #C1714F;
  --color-base: #FAF6EE;
  --color-section: #F2EDE3;
  --color-text: #2D2118;
  --color-text-sub: #7A6F66;

  --font-display: 'Playfair Display', serif;
  --font-base: 'Noto Sans JP', sans-serif;

  --section-padding: 80px 0;
  --section-padding-sp: 56px 0;
  --container-width: 1100px;
  --container-padding: 0 24px;

  --radius-btn: 4px;
  --radius-card: 8px;
}

/* ---- リセット ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ---- コンテナ ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- セクション共通 ---- */
.section {
  padding: var(--section-padding);
}

.section--bg {
  background-color: var(--color-section);
}

.section__label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-main);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 32px;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.section__lead {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 48px;
}

.section__header {
  margin-bottom: 48px;
}

.section__header--centered {
  text-align: center;
}

.section__header--centered .divider {
  margin: 16px auto 0;
}

.btn--mt {
  margin-top: 24px;
}

/* ---- CTAボタン ---- */
.btn--primary {
  display: inline-block;
  background-color: var(--color-sub);
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}

.btn--primary:hover {
  background-color: #A85E3E;
  transform: translateY(-1px);
}

.btn--outline {
  display: inline-block;
  background-color: transparent;
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn--secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--color-sub);
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-sub);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn--secondary:hover {
  background-color: var(--color-sub);
  color: #FFFFFF;
}

/* ---- スクロールアニメーション ---- */
.js-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 122, 90, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-main);
  letter-spacing: 0.05em;
  line-height: 1;
}

.header__logo span {
  display: block;
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 300;
  color: var(--color-text-sub);
  letter-spacing: 0.15em;
  margin-top: 3px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  position: relative;
}

.header__nav-item a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-main);
  transition: width 0.2s ease;
}

.header__nav-item a:hover {
  color: var(--color-main);
}

.header__nav-item a:hover::after {
  width: 100%;
}

.header__nav-cta {
  background-color: var(--color-sub);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
}

.header__nav-cta:hover {
  background-color: #A85E3E;
  color: #FFFFFF;
}

.header__nav-cta::after {
  display: none;
}

/* ハンバーガーボタン */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 4px;
}

.header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* スマホナビオーバーレイ */
.header__mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-base);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.header__mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.header__mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 40px 24px;
}

.header__mobile-nav-item a {
  display: block;
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.05em;
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid rgba(92, 122, 90, 0.15);
  width: 200px;
  transition: color 0.2s ease;
}

.header__mobile-nav-item a:hover {
  color: var(--color-main);
}

.header__mobile-nav-cta {
  margin-top: 32px;
}

/* ---- FOOTER ---- */
.footer {
  background-color: var(--color-text);
  color: rgba(250, 246, 238, 0.8);
  padding: 56px 0 32px;
}

.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 40px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-base);
  letter-spacing: 0.05em;
}

.footer__logo-sub {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 300;
  color: rgba(250, 246, 238, 0.5);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.footer__nav-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__nav-item a {
  font-size: 13px;
  color: rgba(250, 246, 238, 0.7);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer__nav-item a:hover {
  color: var(--color-base);
}

.footer__bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__portfolio-note {
  font-size: 11px;
  color: rgba(250, 246, 238, 0.45);
  letter-spacing: 0.03em;
  text-align: center;
}

.footer__copy {
  font-size: 12px;
  color: rgba(250, 246, 238, 0.4);
  letter-spacing: 0.05em;
}

/* ---- ページヘッダー（各ページ共通） ---- */
.page-header {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.page-header__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--container-padding);
}

.page-header__en {
  font-family: var(--font-display);
  font-size: 56px;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.page-header__ja {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.15em;
}

/* ---- テクスチャオーバーレイ（紙っぽさ） ---- */
.texture-overlay {
  position: relative;
}

.texture-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
}

/* ---- 区切り装飾ライン ---- */
.divider {
  width: 40px;
  height: 2px;
  background-color: var(--color-main);
  margin: 16px 0 24px;
}

/* ---- プレースホルダー画像 ---- */
.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* ---- レスポンシブ: タブレット ---- */
@media (max-width: 1023px) {
  .section__title {
    font-size: 26px;
  }
  .page-header__en {
    font-size: 44px;
  }
}

/* ---- レスポンシブ: スマホ ---- */
@media (max-width: 767px) {
  :root {
    --section-padding: var(--section-padding-sp);
  }

  .section__title {
    font-size: 22px;
  }

  .section__lead {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .page-header {
    height: 240px;
    padding-bottom: 32px;
  }

  .page-header__en {
    font-size: 36px;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__mobile-nav {
    display: flex;
  }

  .footer__top {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }

  .footer__nav-list {
    gap: 20px;
  }
}

/* ---- 植物アイコン装飾（CSSのみ） ---- */
.leaf-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
  margin-bottom: 16px;
}

.leaf-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 22px;
  height: 30px;
  border: 2px solid var(--color-main);
  border-radius: 50% 0 50% 0;
}

.leaf-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 28px;
  background-color: var(--color-main);
}
