/* ===== Hero ===== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center/cover no-repeat;
  animation: heroKenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.hero-bg::after {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 60px 0;
  width: 100%;
}
.hero-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: start;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.15em;
  line-height: 2;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-vertical-text .char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  animation: heroCharIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroCharIn {
  0% { opacity: 0; filter: blur(8px); transform: translateY(20px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.hero-line {
  display: block;
}
/* Stagger: line1 starts at 1s, line2 at 1.8s */
.hero-line:nth-child(1) .char:nth-child(1) { animation-delay: 1.0s; }
.hero-line:nth-child(1) .char:nth-child(2) { animation-delay: 1.08s; }
.hero-line:nth-child(1) .char:nth-child(3) { animation-delay: 1.16s; }
.hero-line:nth-child(1) .char:nth-child(4) { animation-delay: 1.24s; }
.hero-line:nth-child(1) .char:nth-child(5) { animation-delay: 1.32s; }
.hero-line:nth-child(2) .char:nth-child(1) { animation-delay: 1.8s; }
.hero-line:nth-child(2) .char:nth-child(2) { animation-delay: 1.88s; }
.hero-line:nth-child(2) .char:nth-child(3) { animation-delay: 1.96s; }
.hero-line:nth-child(2) .char:nth-child(4) { animation-delay: 2.04s; }
.hero-line:nth-child(2) .char:nth-child(5) { animation-delay: 2.12s; }
.hero-line:nth-child(2) .char:nth-child(6) { animation-delay: 2.20s; }
.hero-line:nth-child(2) .char:nth-child(7) { animation-delay: 2.28s; }

@keyframes heroTextIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Scroll Indicator ===== */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: heroTextIn 0.8s ease 2.4s forwards;
}
.hero-scroll-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 1px;
  height: 50px;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50px; }
  100% { top: 50px; }
}

/* ===== YouTube Section ===== */
.youtube-section {
  background: #0a0a0a;
  padding: 100px 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.youtube-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0,10,30,0.7) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.youtube-inner {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.youtube-header {
  text-align: center;
  margin-bottom: 50px;
}
.youtube-header .section-num {
  color: rgba(255,255,255,0.4);
}
.youtube-header .section-title-en {
  color: #fff;
  font-size: 2rem;
}
.youtube-header .section-title-ja {
  color: rgba(255,255,255,0.6);
}
/* YouTube rise-up animation */
.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.youtube-wrapper.reveal {
  opacity: 0;
  transform: translateY(120px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.youtube-wrapper.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== About ===== */
.about {
  background: var(--white);
}
.about .inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.about-left { flex: 0 0 280px; }
.about-right { flex: 1; position: relative; }
.about-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  line-height: 2.0;
  max-width: 700px;
  margin-bottom: 30px;
}
.about-catch {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 10px;
}
.about-vertical {
  display: none;
}

/* ===== Service ===== */
.service { background: var(--off-white); }
.service .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
}
.service-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.15em;
}
.service .inner {
  display: flex;
  flex-direction: column;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 35px 30px 40px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  border: 1px solid rgba(0,104,183,0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(0,104,183,0.12);
}
.service-card-illustration {
  width: 100%;
  height: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-illustration svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card-icon .material-icons {
  font-size: 36px;
  color: var(--blue);
}
.service-card h2,
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.9;
}

/* ===== Flow ===== */
.flow { background: var(--white); }
.flow .inner {
  position: relative;
  padding-left: 100px;
}
.flow-vertical-text {
  writing-mode: vertical-rl;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  position: absolute;
  left: 0;
  top: 0;
}
.flow-steps {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.flow-step {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  position: relative;
  padding-left: 0;
}
.flow-step::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 80px;
  width: 60px;
  height: 80px;
  border: 3px solid var(--blue-light);
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 60px;
}
.flow-step:last-child::before {
  display: none;
}
.flow-step-illustration {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step-illustration svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.flow-step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step-icon .material-icons {
  font-size: 32px;
  color: #fff;
}
.flow-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 50px;
  padding: 8px 16px;
  white-space: nowrap;
  margin-bottom: 8px;
}
.flow-step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.flow-step-content p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.9;
}

/* ===== Company ===== */
.company { background: var(--white); }
.company .inner { position: relative; }
.company-greeting {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}
.company-photo {
  flex-shrink: 0;
  text-align: center;
}
.company-photo img {
  width: 220px;
  height: 280px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--blue-light);
  margin-bottom: 16px;
}
.company-photo-name {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 4px;
}
.company-photo-fullname {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.company-message {
  flex: 1;
}
.company-message-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-light);
}
.company-message p {
  font-size: 0.95rem;
  color: #444;
  line-height: 2;
  margin-bottom: 16px;
}
.company-info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,104,183,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.company-info-item {
  padding: 35px 30px;
  border-right: 1px solid rgba(0,104,183,0.08);
}
.company-info-item:last-child { border-right: none; }
.company-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}
.company-info-value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ===== Access ===== */
.access {
  background: #0a0a0a;
  padding: 100px 40px;
}
.access .section-line { background: rgba(255,255,255,0.2); }
.access .section-num { color: rgba(255,255,255,0.4); }
.access .section-title-en { color: #fff; }
.access .section-title-ja { color: rgba(255,255,255,0.6); }
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.access-map {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  position: relative;
}
.access-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.access-info {
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.access-info-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.access-info-address {
  font-size: 0.95rem;
  line-height: 2;
  color: rgba(255,255,255,0.7);
}
.access-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.access-info-row .material-icons {
  font-size: 1.2rem;
  color: var(--blue);
}
.access-info-row a {
  color: var(--blue);
  font-weight: 600;
  transition: opacity 0.3s;
}
.access-info-row a:hover { opacity: 0.7; }
.access-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  width: fit-content;
}
.access-directions-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

/* ===== SP Responsive ===== */
@media (max-width: 900px) {
  .hero-content { padding: 80px 20px 0; }
  .hero-vertical-text { font-size: 1.6rem; line-height: 1.8; }
  .hero-scroll { bottom: 20px; }

  .youtube-section { padding: 60px 20px; }
  .youtube-header { margin-bottom: 30px; }
  .youtube-header .section-title-en { font-size: 1.5rem; }

  .about .inner { flex-direction: column; gap: 24px; }
  .about-left { flex: auto; }
  .about-text { font-size: 1rem; margin-bottom: 24px; line-height: 1.9; }
  .about-catch { font-size: 1.2rem; }

  .service-cards { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px 32px; }

  .flow .inner { padding-left: 0; }
  .flow-vertical-text { display: none; }
  .flow-steps { margin-left: 0; gap: 40px; }
  .flow-step { gap: 16px; }
  .flow-step::before { left: 25px; top: 58px; width: 40px; height: 50px; border-radius: 0 0 0 40px; }
  .flow-step-icon { width: 50px; height: 50px; }
  .flow-step-icon .material-icons { font-size: 24px; }

  .company-greeting { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
  .company-photo img { width: 180px; height: 230px; }
  .company-info-bar { grid-template-columns: 1fr; }
  .company-info-item { border-right: none; border-bottom: 1px solid rgba(0,104,183,0.08); }
  .company-info-item:last-child { border-bottom: none; }

  .access { padding: 60px 20px; }
  .access-inner { grid-template-columns: 1fr; gap: 30px; }
  .access-map { aspect-ratio: 16 / 9; }
  .access-info-name { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero-vertical-text { font-size: 1.3rem; }
  .service-card-icon { width: 60px; height: 60px; border-radius: 16px; }
  .service-card-icon .material-icons { font-size: 28px; }
  .flow-step-content h3 { font-size: 1.05rem; }
  .company-message-title { font-size: 1.1rem; }
  .access-directions-btn { padding: 12px 24px; font-size: 0.8rem; }
}
