@charset "UTF-8";

/* ==========================================================================
   Variables & Theme Defaults
   ========================================================================== */
:root {
  /* Colors */
  --c-primary: #26453d; /* 鉄 (日本伝統色) */
  --c-text: #1a1a1a;
  --c-text-light: #555555;
  --c-bg: #fdfdfc; /* 和紙のようなごくわずかに温かみのある白 */
  --c-white: #ffffff;
  --c-accent: #c49a45; /* アクセントとしての金茶色 */

  /* Typography */
  --font-logo: 'Noto Sans JP', sans-serif;
  --font-base: 'Zen Kaku Gothic New', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  
  /* Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Components
   ========================================================================== */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--c-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(253, 253, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 69, 61, 0.1);
  transition: transform 0.4s var(--ease-out-expo), background-color 0.4s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.header__logo img {
  height: 40px;
  display: block;
}

.header__nav ul {
  display: flex;
  gap: 40px;
}

.header__nav a {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--c-primary);
  transition: width 0.3s ease;
}

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

.header__menu-btn {
  display: none;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 10vw;
  overflow: hidden;
  background-color: var(--c-primary);
  color: var(--c-white);
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background-color: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  font-size: 1.7rem; /* Increased from 1.5rem */
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

/* 暗い背景（Recruitセクションなど）用の白枠スタイル */
.recruit .btn-primary {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.recruit .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--c-white);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at right center, rgba(38, 69, 61, 0.7) 0%, rgba(20, 36, 32, 0.95) 100%),
    url('../images/hero_bg.png') center/cover no-repeat;
  z-index: 1;
}

/* 悟りの窓 */
.window-enlightenment {
  position: absolute;
  top: 50%;
  right: 12vw; /* Adjusted from 15vw to move slightly right */
  transform: translateY(-50%);
  width: 35vw; /* Reduced from 45vw */
  max-width: 480px; /* Reduced from 600px */
  min-width: 280px;
  aspect-ratio: 1 / 1;
  z-index: 2; /* background=1, content=auto/2 */
}

.window-enlightenment__frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 15px solid #1a1a1a; /* 枠の木材色 */
  box-shadow: 
    inset 0 0 40px rgba(0,0,0,0.8), /* 内側の深い影 */
    0 20px 50px rgba(0,0,0,0.6);    /* 外側の影で浮き出させる */
  overflow: hidden;
  position: relative;
  background-color: #000;
  opacity: 0; /* GSAPでフェードインさせるため初期値0 */
}

.window-enlightenment__scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 2s ease, filter 2s ease;
  filter: brightness(1) sepia(0); 
}

/* 時間帯ごとのオーバーレイ */
.window-enlightenment__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  transition: background 2s ease;
  mix-blend-mode: multiply;
}

.hero__content {
  position: relative;
  z-index: 3;
}

.hero__title {
  font-size: 6vw;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.hero__subtitle {
  font-size: 2.0rem; /* Increased from 1.8rem */
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(20px);
}

.hero__scroll {
  position: absolute;
  bottom: 0;
  right: 10vw;
  height: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll span {
  font-size: 1.3rem; /* Increased from 1.2rem */
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  margin-bottom: 10px;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 1px;
  height: 60px;
  background-color: var(--c-white);
  transform: translateX(-50%) translateY(-100%);
  animation: scrollLine 2s infinite ease-in-out;
  z-index: 1;
}

@keyframes scrollLine {
  0% { transform: translateX(-50%) translateY(-100%); }
  50% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(100%); }
}

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy {
  padding: 120px 0;
  background-color: var(--c-white);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  margin-bottom: 100px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.philosophy__card {
  opacity: 0;
  transform: translateY(40px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy__card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.philosophy__type {
  font-size: 2.6rem; /* Increased from 2.4rem */
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.philosophy__ja {
  font-size: 1.3rem; /* Increased from 1.2rem */
  color: var(--c-text-light);
  margin-bottom: 32px;
  letter-spacing: 0.2em;
}

.btn-more {
  display: inline-block;
  font-size: 1.7rem; /* Increased from 1.5rem */
  font-weight: 500;
  color: var(--c-primary);
  position: relative;
  padding-right: 28px;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--c-primary), var(--c-primary));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}

.btn-more:hover {
  background-size: calc(100% - 28px) 1px;
}

.btn-more::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background-color: var(--c-primary);
  transition: transform 0.3s ease, width 0.3s ease;
}

.btn-more::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 1px;
  background-color: var(--c-primary);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.btn-more:hover::after {
  transform: translateY(-50%) translateX(4px);
  width: 16px;
}

.btn-more:hover::before {
  transform: translateY(-50%) translateX(4px) rotate(45deg);
}

.philosophy__lead {
  font-size: 2.6rem; /* Increased from 2.4rem */
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.6;
}

.philosophy__text {
  color: var(--c-text-light);
  font-size: 1.7rem; /* Increased from 1.6rem */
}

.values {
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(40px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.values__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.values__item {
  display: flex;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.values__num {
  font-size: 3.4rem; /* Increased from 3.2rem */
  font-weight: 300;
  color: var(--c-accent);
  line-height: 1;
  font-family: var(--font-logo);
}

.values__content h4 {
  font-size: 1.9rem; /* Increased from 1.8rem */
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.about__text {
  font-size: 1.7rem; /* Increased from 1.6rem */
  color: var(--c-text-light);
  font-weight: 400;
}

.values__sub {
  font-size: 1.4rem; /* Increased from 1.3rem */
  color: var(--c-text-light);
  font-weight: 400;
}

.values__content p {
  font-size: 1.7rem; /* Increased from 1.6rem */
  color: var(--c-text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: 60px 40px;
  text-align: center;
}

.footer__logo {
  margin-bottom: 24px;
}

.footer__copyright {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {
  .section-container {
    padding: 0 20px;
  }

  .header__inner {
    padding: 0 20px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(253, 253, 252, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .header__nav.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .header__nav a {
    font-size: 2rem;
  }

  .header__menu-btn {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
  }

  .header__menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-primary);
    transition: transform 0.3s ease, top 0.3s ease;
  }

  .header__menu-btn span:nth-child(1) { top: 0; }
  .header__menu-btn span:nth-child(2) { top: 12px; }

  .header__menu-btn.is-active span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }

  .header__menu-btn.is-active span:nth-child(2) {
    top: 6px;
    transform: rotate(-45deg);
  }

  .hero__title {
    font-size: 3.2rem;
  }

  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .values__item {
    flex-direction: column;
    gap: 16px;
  }
}
