/* ========================================
   株式会社OCHTA - Claude CSS
   ======================================== */

/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
  --color-primary: #4a90a4;
  --color-primary-light: #6bb3c9;
  --color-white: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.3);
  --font-family-base: "Noto Serif JP", serif;
}

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

html {
  font-size: 16px;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  z-index: 100;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.header__name {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__title {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5em;
  font-size: clamp(2.5rem, 12vw, 6rem);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero__line:nth-child(1) {
  margin-top: 0;
}

.hero__line:nth-child(2) {
  margin-top: 2em;
}

.hero__line:nth-child(3) {
  margin-top: 4em;
}

.hero__char {
  opacity: 0;
  transform: translateY(-20px);
}

.hero__char.is-visible {
  animation: fadeInChar 0.6s ease forwards;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeInChar {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------
   Floating Menu
   ---------------------------------------- */
.floating-menu {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100;
}

.floating-menu__btn {
  position: fixed;
  top: calc(100dvh - 60px);
  left: calc(100vw - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: whitesmoke;
  border-radius: 50%;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.8s ease;
}

.floating-menu__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-menu__btn svg {
  width: 32px;
  height: 32px;
}

.floating-menu__label {
  position: absolute;
  font-size: 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-menu__btn.header-setting .floating-menu__label {
  font-size: 1.2rem;
  color: #333;
  text-shadow: none;
  right: auto;
  left: calc(100% + 12px);
}

/* 暗い背景セクション用: コンテナ・会社概要は白文字 */
.floating-menu__btn--container.header-setting .floating-menu__label,
.floating-menu__btn--about.header-setting .floating-menu__label {
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ラベル位置: youtube・containerは右、about・casesは左 */
.floating-menu__btn--youtube .floating-menu__label,
.floating-menu__btn--container .floating-menu__label {
  left: calc(100% + 12px);
}

.floating-menu__btn--about .floating-menu__label,
.floating-menu__btn--cases .floating-menu__label {
  right: calc(100% + 12px);
}

/* 右下1/4円弧配置 */
.floating-menu__btn--youtube {
  top: calc(100dvh - 73px);
  left: calc(100vw - 271px);
}

.floating-menu__btn--container {
  top: calc(100dvh - 123px);
  left: calc(100vw - 186px);
}

.floating-menu__btn--about {
  top: calc(100dvh - 194px);
  left: calc(100vw - 116px);
}

.floating-menu__btn--cases {
  top: calc(100dvh - 284px);
  left: calc(100vw - 78px);
}

/* ----------------------------------------
   Sections
   ---------------------------------------- */
.section {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}

.section--youtube {
  background: #f5f5f5;
}

.section--container {
  background: #2a2a2a;
  color: var(--color-white);
}

.section--cases {
  background: #f5f5f5;
}

.section--about {
  background: #1a1a1a;
  color: var(--color-white);
}

.section__inner {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header {
  text-align: center;
  margin-bottom: 32px;
}

.section__title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.section__lead {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: #555;
  line-height: 1.8;
}

/* ----------------------------------------
   YouTube Section
   ---------------------------------------- */
.youtube__featured {
  width: 100%;
  max-width: 800px;
  margin-bottom: 32px;
}

.youtube__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.youtube__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube__channel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  background: #ff0000;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.youtube__channel-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.youtube__channel-link svg {
  transition: transform 0.2s ease;
}

.youtube__channel-link:hover svg {
  transform: translateX(4px);
}

/* YouTube List */
.youtube__list {
  width: 100%;
  max-width: 1000px;
  margin-top: 48px;
}

.youtube__list-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.youtube__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.youtube__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.youtube__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.youtube__thumb {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
}

.youtube__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube__item-title {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* PC: タイル表示 */
@media (min-width: 768px) {
  .youtube__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .youtube__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
  }

  .youtube__item:hover {
    background: transparent;
  }

  .youtube__thumb {
    width: 100%;
  }

  .youtube__thumb:hover {
    opacity: 0.85;
  }

  .youtube__item-title {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .youtube__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
    gap: 0.8em;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 5rem;
  }
}
