/* CSS Document */
:root {
  --primary-color: #333333;
  --secondary-color: #999999;
  --accent-color: #666666;
  --bg-color: #ffffff;
  --border-color: #eeeeee;
  --header-height: 100px;
  --font-elegant: 'Cormorant Garamond', serif;
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--primary-color);
  background-color: var(--bg-color); }

body {
  margin: 0;
  padding: 0;
  line-height: 1.6; }

section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto; }
  @media (max-width: 768px) {
    section {
      padding: 60px 20px; } }
  section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    text-align: center; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); }
  .site-header .logo {
    font-weight: bold;
    font-size: 1.2rem; }
  .site-header .logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.3s; }
    @media (max-width: 768px) {
      .site-header .logo img {
        height: 40px; } }

  .site-header .nav-menu {
    display: flex;
    gap: 20px; }
    @media (max-width: 768px) {
      .site-header .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 20px rgba(0,0,0,0.05);
        z-index: 99; }
      .site-header .nav-menu.active {
        right: 0; } }

    .site-header .nav-menu a {
      text-decoration: none;
      color: var(--primary-color);
      font-size: 0.9rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      transition: opacity 0.3s;
      @media (max-width: 768px) {
        font-size: 1.2rem;
        padding: 15px 0; } }
      .site-header .nav-menu a:hover {
        opacity: 0.6; }

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
  padding: 10px; }
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex; } }
  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s; }

/* Animation for Hamburger */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero-section {
  padding: 0;
  max-width: 100%;
  margin-top: var(--header-height); }
  .hero-section .main-visual {
    width: 100%;
    height: 70vh; /* 少し高さを出して迫力を出します */
    position: relative;
    overflow: hidden; }
    .hero-section .main-visual .kv-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 1.5s ease-in-out; }
    .hero-section .main-visual .kv-slide.active {
      opacity: 1; }
.hero-text-overlay {
  position: absolute;
  top: 60%; /* PCでの圧迫感を抑えるため、位置をわずかに調整 */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.hero-line {
  overflow: hidden; /* カットイン効果のためのマスク */
  margin: 0; /* 行間設定を活かすためマージンをリセット */
}

.hero-line span {
  display: block;
  font-family: var(--font-elegant);
  font-size: 5vw; /* PCでの上品さを保つため、さらにサイズを最適化 */
  font-weight: 300; /* より細身に設定 */
  font-style: italic; /* エレガンスを強調 */
  color: #ffffff;
  line-height: 1.5; /* 行間を1.5倍に設定 */
  letter-spacing: 0.3em; /* 初期状態は広く */
  transform: translateY(120%) skewY(5deg); /* 斜めに隠すことでアーティスティックに */
  opacity: 0;
  filter: blur(15px); /* 初期はぼかす */
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 1.5s ease-out,
              letter-spacing 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s ease-out;
}

@media (max-width: 768px) {
  .hero-line span { font-size: 12vw; }
}

/* アクティブ時にカットイン */
.hero-text-overlay.is-active .hero-line:nth-child(1) span { transition-delay: 0.2s; }
.hero-text-overlay.is-active .hero-line:nth-child(2) span { transition-delay: 0.5s; }
.hero-text-overlay.is-active .hero-line:nth-child(3) span { transition-delay: 0.8s; }

.hero-text-overlay.is-active .hero-line span {
  transform: translateY(0) skewY(0);
  opacity: 1;
  letter-spacing: 0.05em; /* 優雅な間隔に収束 */
  filter: blur(0);
}

.about-section {
  text-align: center; }
  .about-section p {
    line-height: 2.2; /* コンセプト文の行間を広げて読みやすく */
    letter-spacing: 0.05em;
    overflow: hidden; /* 文字が下から出てくるのを隠す */
  }

/* テキストエフェクト用のスタイル */
.char {
  display: inline-block;
  transform: translateY(1.2em); /* 初期位置を下に */
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible .char {
  transform: translateY(0); /* 定位置へ移動 */
  opacity: 1;
}

.access-container {
  display: flex;
  gap: 60px;
  align-items: flex-start; }
  @media (max-width: 960px) {
    .access-container {
      flex-direction: column;
      gap: 40px; } }

.access-map {
  flex: 1.5;
  width: 100%;
  line-height: 0; /* 下部の隙間を排除 */
  filter: grayscale(100%);
  transition: filter 0.5s; }
  .access-map:hover {
    filter: grayscale(0%); }
  .access-map iframe {
    aspect-ratio: 16 / 9; /* 地図の比率を維持 */
    height: auto; }

.access-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px; }

.info-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  letter-spacing: 0.1em; }

.info-text {
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.8; }

.map-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: underline;
  margin-top: 10px; }

.company-section {
  background-color: #fafafa; /* 少し背景色を変えてセクションを区切ります */
}
.company-container {
  max-width: 800px;
  margin: 0 auto;
}
.company-info-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--border-color);
  margin: 0;
}
.company-info-list dt, .company-info-list dd {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}
.company-info-list dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--secondary-color);
  letter-spacing: 0.1em;
}
.company-info-list dd {
  font-size: 1rem;
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .company-info-list {
    grid-template-columns: 1fr;
  }
  .company-info-list dt {
    padding-bottom: 5px;
    border-bottom: none;
  }
  .company-info-list dd {
    padding-top: 0;
  }
}

.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.8rem;
  color: var(--secondary-color);
  letter-spacing: 0.05em;
}
.floor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .floor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.floor-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.floor-panel-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f0f0f0;
}

.floor-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floor-panel-label {
  padding: 20px 0;
  text-align: left;
}

.floor-panel-label h3 {
  font-family: var(--font-elegant);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: 0.05em;
}

.floor-panel:hover .floor-panel-img img {
  transform: scale(1.05);
}

.floor-panel:hover {
  opacity: 0.8;
}

@keyframes marquee {
  0% {
    transform: translateX(0%); }
  100% {
    transform: translateX(-100%); } }
