/* ==========================================================================
   カスタムプロパティ（CSS変数）
   ========================================================================== */
:root {
  /* 色 - 仕様書通り */
  --color-primary: #2D5016;      /* 深い森のグリーン */
  --color-secondary: #8B6F47;    /* アースブラウン */
  --color-accent: #1E3A5F;       /* 信頼のブルー */
  --color-background: #FAF8F3;   /* オフホワイト */
  --color-text-primary: #1A1A1A; /* ダークグレー */
  --color-text-secondary: #5A5A5A; /* ミディアムグレー */
  --color-white: #FFFFFF;
  --color-success: #4CAF50;
  --color-error: #E53935;

  /* タイポグラフィ */
  --font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.8;

  /* スペーシング（8pxグリッド） */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --spacing-xxxl: 96px;

  /* その他 */
  --header-height: 72px;
  --header-height-mobile: 64px;
  --container-width: 1200px;
  --transition: 0.3s ease;
}

/* ==========================================================================
   リセット・ベース
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   共通コンポーネント
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: var(--spacing-xxxl) 0;
}

.section__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--color-primary);
}

.section__title--white {
  color: var(--color-white);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #244212;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.header__nav {
  display: none;
}

.header__menu {
  display: flex;
  gap: var(--spacing-lg);
}

.header__menu a {
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.header__menu a:hover {
  color: var(--color-primary);
}

.header__hamburger {
  display: block;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  position: relative;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.header__hamburger span:nth-child(1) { top: 10px; }
.header__hamburger span:nth-child(2) { top: 19px; }
.header__hamburger span:nth-child(3) { top: 28px; }

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  background-image: url('../images/background_hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(250, 248, 243, 0.85) 0%, rgba(240, 233, 224, 0.85) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero__cta {
  margin-top: var(--spacing-md);
}

/* ==========================================================================
   ミッションセクション
   ========================================================================== */
.mission {
  background-image: url('../images/background_ourmission.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.mission > .container {
  position: relative;
  z-index: 2;
}

.mission__text {
  text-align: center;
}

.mission__text p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: var(--spacing-md);
}

.mission__text p:last-child {
  margin-bottom: 0;
}

/* Mission Philosophy Styles */
.mission__philosophy {
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.03) 0%, rgba(30, 58, 95, 0.03) 100%);
  border-radius: 16px;
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.mission__philosophy-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-style: italic;
}

.mission__philosophy-content {
  max-width: 600px;
  margin: 0 auto;
}

.mission__philosophy-verse {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.mission__philosophy-verse p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
}

.mission__philosophy-verse--emphasis {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(45, 80, 22, 0.2);
}

.mission__philosophy-verse--emphasis p {
  font-weight: 600;
  font-style: normal;
  color: var(--color-primary);
  font-size: 18px;
}

/* ==========================================================================
   バリューセクション
   ========================================================================== */
.values {
  background-color: var(--color-white);
}

.values__lead {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto var(--spacing-xxl);
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.value-card {
  background-color: var(--color-background);
  padding: var(--spacing-xxl);
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: 16px;
  color: var(--color-white);
}

.value-card__icon svg {
  width: 32px;
  height: 32px;
}

.value-card__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.value-card__description {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* ==========================================================================
   プロダクトセクション
   ========================================================================== */
.products {
  background-color: var(--color-white);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-card__image {
  height: 200px;
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__placeholder {
  font-size: 64px;
}

.product-card__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: var(--color-white);
  border-radius: 24px;
  padding: var(--spacing-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-card__content {
  padding: var(--spacing-lg);
}

.product-card__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.product-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.product-card__status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.product-card__status--available {
  background-color: var(--color-success);
  color: var(--color-white);
}

.product-card__status--coming {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.product-card__link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
}

/* Message Card Styles */
.product-card--message {
  background: linear-gradient(135deg, #FAF8F3 0%, #F0EDE5 100%);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-card--message:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(45, 80, 22, 0.2);
}

.product-card__content--centered {
  text-align: center;
  padding: var(--spacing-xl);
}

.product-card__title--message {
  font-size: 32px;
  margin-bottom: var(--spacing-xl);
  color: var(--color-primary);
}

.product-card__poem {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
}

.product-card__poem p {
  margin-bottom: var(--spacing-lg);
}

.product-card__poem p:last-child {
  margin-bottom: 0;
  font-style: normal;
}

/* ==========================================================================
   CTAセクション
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, #2D5016 0%, #1E3A5F 100%);
  color: var(--color-white);
  text-align: center;
}

.cta__description {
  font-size: 18px;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.cta__input {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 16px;
}

.cta__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta__privacy {
  margin-top: var(--spacing-md);
  font-size: 14px;
}

.cta__privacy a {
  color: var(--color-white);
  text-decoration: underline;
  opacity: 0.8;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  background-color: #1A1A1A;
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.footer__logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.footer__tagline {
  font-size: 14px;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__links a {
  color: var(--color-white);
  opacity: 0.8;
  transition: var(--transition);
}

.footer__links a:hover {
  opacity: 1;
}


.footer__copyright {
  text-align: center;
  font-size: 14px;
  opacity: 0.5;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   利用規約・プライバシーポリシーページ
   ========================================================================== */
.terms-content,
.privacy-content {
  text-align: left;
  color: var(--color-text-primary);
  line-height: 1.8;
}

/* ==========================================================================
   CSAEポリシーページ
   ========================================================================== */
.policy-content {
  text-align: left;
  color: var(--color-text-primary);
  line-height: 1.8;
}

.policy-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

.policy-list {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  list-style: disc;
}

.policy-list li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.policy-update-date {
  text-align: right;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xxl);
  font-weight: 600;
}

.terms-intro,
.privacy-intro {
  font-size: 16px;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: var(--color-background);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.terms-section-title,
.privacy-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

.terms-list,
.privacy-list {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  list-style-type: decimal;
}

.terms-list li,
.privacy-list li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.terms-list--definition {
  counter-reset: definition-counter;
  list-style: none;
  padding-left: 0;
}

.terms-list--definition li {
  padding-left: var(--spacing-xl);
  position: relative;
  margin-bottom: var(--spacing-md);
}

.terms-list--definition li::before {
  content: "(" counter(definition-counter) ")";
  counter-increment: definition-counter;
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--color-primary);
}

.terms-update-date,
.privacy-update-date {
  text-align: right;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xxl);
  font-weight: 600;
}

.privacy-section {
  margin-bottom: var(--spacing-lg);
}

.privacy-section p {
  margin-bottom: var(--spacing-md);
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   採用情報ページ
   ========================================================================== */
.careers-content {
  text-align: center;
}

.careers-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xxl);
}

.careers-message {
  margin-bottom: var(--spacing-xxl);
}

.careers-subtitle {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xl);
}

.careers-no-openings {
  background-color: var(--color-background);
  padding: var(--spacing-xxl);
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.careers-icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.careers-status {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.careers-description {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.careers-values {
  margin-bottom: var(--spacing-xxl);
}

.careers-values-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
}

.careers-values-list li {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: var(--color-white);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.careers-values-list strong {
  color: var(--color-primary);
  font-size: 18px;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.careers-contact {
  margin-bottom: var(--spacing-xl);
}

.careers-contact p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.careers-contact a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.careers-contact a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
/* タブレット以上 */
@media (min-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .section__title {
    font-size: 48px;
  }

  .header__nav {
    display: block;
  }

  .header__hamburger {
    display: none;
  }

  .hero__title {
    font-size: 72px;
  }

  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta__form {
    flex-direction: row;
  }

  .cta__input {
    flex: 1;
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer__links {
    flex-direction: row;
    gap: var(--spacing-lg);
  }
}

/* モバイル専用スタイル */
@media (max-width: 767px) {
  body {
    padding-top: var(--header-height-mobile);
  }

  .header {
    height: var(--header-height-mobile);
  }

  .hero__title {
    font-size: 32px;
  }

  .section__title {
    font-size: 28px;
  }

  .value-card__title,
  .product-card__title {
    font-size: 20px;
  }
}

/* ==========================================================================
   モバイルメニュー
   ========================================================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary);
  padding: var(--spacing-xxl) var(--spacing-md);
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav.is-active {
  right: 0;
}

.mobile-nav .header__menu {
  flex-direction: column;
  gap: var(--spacing-lg);
  text-align: center;
}

.mobile-nav .header__menu a {
  color: var(--color-white);
  font-size: 24px;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 19px;
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 19px;
}

body.menu-open {
  overflow: hidden;
}

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

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