/* ============================================================
   LOHMA Site - Design Tokens & Base
   ============================================================ */

:root {
  /* Colors */
  --color-bg:        #F5F3EF;  /* 生成りベース */
  --color-text:      #3C3428;  /* メイン文字（焦茶） */
  --color-text-sub:  #6B6358;  /* サブ文字 */
  --color-text-mute: #A09A90;  /* 補助・キャプション */
  --color-accent:    #8A9A8E;  /* セージグリーン */
  --color-line:      #E0DCD4;  /* 罫線・プレースホルダ */
  --color-dark:      #3C3428;  /* 暗背景 */
  --color-light:     #FFFFFF;

  /* Typography */
  --font-en: 'Josefin Sans', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', sans-serif;

  /* Layout */
  --max-width: 1440px;
  --side-padding: 80px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }


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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
  background: rgba(245, 243, 239, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.site-logo {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
}

.site-logo:hover {
  opacity: 0.7;
}

.site-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 56px;
}

.site-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: opacity 0.2s;
}

.site-nav__item:hover {
  opacity: 0.55;
}

.site-nav__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--color-text);
  line-height: 1;
}

.site-nav__jp {
  font-family: var(--font-jp);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--color-text-mute);
  line-height: 1;
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  color: #FFFFFF;
}

/* 背景画像（後でhero.jpgを配置すれば自動で反映される） */
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #C5BFB4; /* 画像未設定時のフォールバック */
  background-image: url('../images/hero.jpg?v=2');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* 文字を読みやすくするためのオーバーレイ（暗→透明のグラデーション） */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(40, 32, 22, 0.35) 0%,
    rgba(40, 32, 22, 0.45) 50%,
    rgba(40, 32, 22, 0.6) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.hero__text {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 3px;
  color: #FFFFFF;
  margin-bottom: 36px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__lead {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.85);
}


/* ============================================================
   Section Head（各セクション共通の見出しブロック）
   ============================================================ */

.section-head {
  margin-bottom: 60px;
}

.section-head__accent {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 28px;
}

.section-head__label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head__en {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--color-accent);
}

.section-head__jp {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-mute);
}

.section-head__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text);
  line-height: 1.4;
}


/* ============================================================
   Service Section
   ============================================================ */

.service {
  background: #F7F5F0;
  padding: 120px 0;
}

.service__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
}

.service-card {
  background: var(--color-light);
  border: 1px solid var(--color-line);
  padding: 56px 44px 60px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(60, 52, 40, 0.08);
}

.service-card__title {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.service-card__sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-mute);
}

.service-card__line {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-accent);
  margin: 24px 0;
}

.service-card__desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-text-sub);
}


/* ============================================================
   Concept Section
   ============================================================ */

.concept {
  background: var(--color-light);
  padding: 140px 0;
}

.concept__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: grid;
  grid-template-columns: 560fr 680fr;
  gap: 100px;
  align-items: start;
}

.concept__image {
  aspect-ratio: 560 / 680;
  background: #EBE8E2;
  border-radius: 2px;
  overflow: hidden;
}

.concept__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.concept__title {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 1px;
  line-height: 1.55;
}

.concept__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.concept__body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-sub);
}


/* ============================================================
   Member Section（暗背景）
   ============================================================ */

.member {
  background: var(--color-dark);
  padding: 140px 0 160px;
}

.member__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* 暗背景でのsection-headカラー上書き */
.section-head--light .section-head__title {
  color: #F5F3EF;
}

.section-head--light .section-head__jp {
  color: #7A7268;
}

.member__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
}

.member-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* バッジが無いカードはバッジ分の余白を上に確保して、3枚の下辺を揃える */
.member-card:not(.member-card--featured) {
  padding-top: 40px;
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-card__photo {
  aspect-ratio: 400 / 520;
  background: #4A4238;
  background-image:
    linear-gradient(135deg,
      transparent 24%, rgba(255,255,255,0.025) 25%,
      rgba(255,255,255,0.025) 26%, transparent 27%,
      transparent 74%, rgba(255,255,255,0.025) 75%,
      rgba(255,255,255,0.025) 76%, transparent 77%);
  background-size: 8px 8px;
  border: 1px solid #5A5248;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.member-card--featured .member-card__photo {
  border: 1.5px solid var(--color-accent);
}

.member-card__badge {
  display: block;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  padding: 9px 0;
  border: 1.5px solid var(--color-accent);
  border-bottom: none;
}

.member-card__placeholder {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  color: #5A5248;
}

.member-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-card__body {
  padding: 36px 24px 0;
  text-align: center;
}

.member-card__en {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: 4px;
  color: #F5F3EF;
  line-height: 1;
  margin-bottom: 8px;
}

.member-card__jp {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.member-card__jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: #5A5248;
}

.member-card__desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: #9B9588;
}


/* ============================================================
   CTA Section（Webマーケティング診断）
   ============================================================ */

.cta {
  background: var(--color-accent);
  padding: 100px 0 90px;
  color: #FFFFFF;
}

.cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.cta__resources-caption {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.cta__resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.cta__resource {
  aspect-ratio: 400 / 283;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: #FFFFFF;
  overflow: hidden;
}

.cta__resource img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta__content {
  text-align: center;
}

.cta__limit {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.cta__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.cta__lead {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 6px;
}

.cta__sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 44px;
}

.cta__button {
  display: inline-block;
  background: #FFFFFF;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 18px 80px;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 22px;
}

.cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.cta__note {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   Contact Section
   ============================================================ */

.contact {
  background: #F7F5F0;
  padding: 140px 0 160px;
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.contact__head {
  text-align: center;
  margin-bottom: 80px;
}

.contact__accent {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 20px;
}

.contact__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 22px;
}

.contact__title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.45;
}

.contact__lead {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-sub);
  line-height: 1.85;
}

.contact__form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-field__required,
.form-field__optional {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1;
}

.form-field__required {
  background: var(--color-accent);
  color: #FFFFFF;
}

.form-field__optional {
  background: transparent;
  color: var(--color-text-mute);
  border: 1px solid var(--color-line);
}

.form-field__input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #D8D4CC;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field__input::placeholder {
  color: #C0BAB0;
  font-weight: 200;
}

.form-field__input:focus {
  border-bottom-color: var(--color-accent);
}

.form-field__input--textarea {
  border: 1px solid #D8D4CC;
  padding: 16px;
  resize: vertical;
  min-height: 140px;
  border-radius: 2px;
  line-height: 1.75;
}

.form-field__input--textarea:focus {
  border-color: var(--color-accent);
}

.contact__submit {
  display: block;
  min-width: 200px;
  margin: 24px auto 0;
  padding: 16px 32px;
  background: var(--color-text);
  color: #F5F3EF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact__submit:hover {
  background: #2A241A;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(60, 52, 40, 0.18);
}


/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-dark);
  padding: 36px 0;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__logo {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.site-footer__logo:hover {
  opacity: 0.8;
}

.site-footer__logo img {
  height: 30px;
  width: auto;
  /* 暗背景用にロゴを反転して薄い色味で表示 */
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.site-footer__copy {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 2px;
  color: #5A5248;
}


/* ============================================================
   Scroll Fade-in Animation
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* スタッガー（子要素を順番にフェードイン） */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.fade-in-stagger.is-visible > *:nth-child(3) { transition-delay: 0.28s; }

.fade-in-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* アクセシビリティ: 動きを減らす設定の場合は無効化 */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   Hamburger Menu Toggle (モバイル用)
   ============================================================ */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   Responsive: Tablet（〜1024px）
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --side-padding: 48px;
  }

  .site-nav {
    gap: 36px;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero__inner {
    gap: 48px;
    grid-template-columns: 1.1fr 1fr;
  }

  .hero__title {
    font-size: clamp(28px, 4.5vw, 40px);
  }

  .service,
  .concept,
  .member,
  .contact {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .service__grid {
    gap: 24px;
  }

  .service-card {
    padding: 44px 32px 48px;
  }

  .concept__inner {
    gap: 60px;
  }

  .member__grid {
    gap: 32px;
  }

  .cta {
    padding: 80px 0 70px;
  }

  .cta__resources-grid {
    gap: 24px;
    margin-bottom: 60px;
  }
}


/* ============================================================
   Responsive: Mobile（〜768px）
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --side-padding: 24px;
  }

  /* Header & Hamburger */
  .site-header {
    padding: 18px 0;
    /* fixedな子要素（モバイルメニュー）の containing block を阻害しないよう外す */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(245, 243, 239, 0.95);
  }

  .site-logo img {
    height: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__item {
    align-items: center;
    text-align: center;
  }

  .site-nav__en {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .site-nav__jp {
    font-size: 11px;
    margin-top: 4px;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  /* Hero */
  .hero {
    padding: 120px 0 80px;
    min-height: 88vh;
  }

  .hero__title {
    font-size: clamp(24px, 7vw, 34px);
    margin-bottom: 28px;
    letter-spacing: 1px;
    line-height: 1.55;
  }

  .hero__title br,
  .hero__lead br {
    display: none;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero__scroll {
    display: none;
  }

  /* Section common */
  .section-head {
    margin-bottom: 40px;
  }

  .section-head__en {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .section-head__title {
    font-size: 26px;
  }

  .service,
  .concept,
  .member,
  .contact {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  /* Service */
  .service__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  .service-card {
    padding: 40px 28px 44px;
  }

  .service-card__title {
    font-size: 22px;
  }

  /* Concept */
  .concept__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .concept__title {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .concept__body p {
    font-size: 15px;
  }

  /* Member */
  .member {
    padding-bottom: 100px;
  }

  .member__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .member-card:not(.member-card--featured) {
    padding-top: 0;
  }

  .member-card__en {
    font-size: 26px;
    letter-spacing: 3px;
  }

  /* CTA */
  .cta {
    padding: 70px 0 60px;
  }

  .cta__resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta__title {
    font-size: clamp(22px, 6vw, 28px);
    letter-spacing: 1px;
  }

  .cta__lead {
    font-size: 15px;
  }

  .cta__sub {
    font-size: 13px;
    margin-bottom: 32px;
  }

  .cta__button {
    padding: 16px 48px;
    font-size: 15px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-sizing: border-box;
  }

  /* Contact */
  .contact__head {
    margin-bottom: 56px;
  }

  .contact__title {
    font-size: clamp(20px, 5.5vw, 26px);
  }

  .contact__lead {
    font-size: 15px;
  }

  .contact__lead br {
    display: none;
  }

  .contact__form {
    gap: 28px;
  }

  /* Footer */
  .site-footer {
    padding: 32px 0;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

}
