/*
Theme Name: Aizen
Theme URI: https://www.aizenjapan.co.jp
Description: Aizen corporate website theme
Author: Eisuke Ito
Version: 1.1
*/

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

:root {
  --black: #000;
  --white: #fff;
  --ink: #e8e2d8;
  --muted: #cfcfcf;
  --soft: #a8a8a8;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.08);
  --overlay: rgba(0, 0, 0, 0.34);
  --nav-height: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

#section-service,
#service-detail,
#section-story,
#story-detail,
#section-about,
#about-detail,
#section-contact,
.page-hero {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 70%, transparent);
}

nav::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

nav > * {
  position: relative;
  z-index: 1;
}

.nav-logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.08rem;
  letter-spacing: 0.18em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
}

.nav-links a,
.mobile-nav-links a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-links a {
  font-size: 0.88rem;
  opacity: 0.86;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-switcher button {
  background: none;
  border: none;
  color: var(--white);
  opacity: 0.46;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: Georgia, serif;
  padding: 2px 9px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.lang-switcher button:first-child {
  padding-left: 0;
}

.lang-switcher button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.lang-switcher button:hover,
.lang-switcher button.active {
  opacity: 1;
}

.nav-menu-toggle,
.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

.nav-menu-toggle {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-menu-toggle span {
  width: 16px;
  height: 1px;
  background: var(--white);
  display: block;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  width: min(92vw, 360px);
  padding: 84px 24px 28px;
  background: rgba(8, 8, 8, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.mobile-menu-title,
.mobile-menu-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
}

.mobile-menu-close {
  border: none;
  background: none;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li + li {
  margin-top: 6px;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-lang {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-lang-switcher {
  margin-top: 12px;
  gap: 0;
}

.mobile-lang-switcher button {
  font-size: 0.86rem;
  padding: 0 12px;
}

.mobile-lang-switcher button:first-child {
  padding-left: 0;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
}

body.menu-open .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.75rem;
  color: #666;
  background: var(--black);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ========== PAGE HERO ========== */
.page-hero {
  min-height: 24vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 18px) 24px 40px;
  background: var(--black);
}

.page-hero h1 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  font-family: Georgia, serif;
}

/* ========== BUTTONS ========== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ========== FULL SCREEN SECTIONS ========== */
.full-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.full-section .bg,
.full-section .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.full-section .bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.8);
  transition: transform 6s ease;
}

.full-section:hover .bg {
  transform: scale(1.03);
}

.full-section .overlay {
  background: var(--overlay);
}

.full-section .content {
  position: relative;
  z-index: 2;
  width: min(100%, 860px);
  padding: 0 24px;
}

.hero-en {
  font-size: clamp(2.05rem, 4.8vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: clamp(0.92rem, 1.5vw, 1.06rem);
  font-style: italic;
  font-weight: 300;
  opacity: 0.82;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.hero-tagline {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 2;
  opacity: 0.94;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  margin-bottom: 44px;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.hero-services a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.hero-services a:hover,
.hero-services a:focus-visible {
  background: var(--white);
  color: var(--black);
}

.section-title {
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
}

.scroll-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-arrow::after {
  content: "▼";
  font-size: 1rem;
  color: var(--white);
}

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

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.bg-placeholder-2 {
  background-color: #0d1a20;
  background-image: linear-gradient(135deg, #081015, #152030);
}

.bg-placeholder-3 {
  background-color: #1a1a0d;
  background-image: linear-gradient(135deg, #101008, #252510);
}

.bg-placeholder-4 {
  background-color: #100d1a;
  background-image: linear-gradient(135deg, #0a0810, #1a1428);
}

.bg-placeholder-5 {
  background-color: #1a0d0d;
  background-image: linear-gradient(135deg, #100808, #281414);
}

/* ========== HOME DETAIL SECTIONS ========== */
#service-detail,
#story-detail,
#contact-detail {
  background: var(--black);
}

#service-detail {
  padding: 104px 40px 90px;
}

#story-detail {
  padding: 100px 40px 90px;
}

#contact-detail {
  padding: 96px 60px 100px;
}

.service-page,
.story-page,
.contact-page,
.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

.service-page {
  padding: 24px 60px 100px;
}

.story-page {
  max-width: 800px;
  padding: 24px 60px 100px;
}

.contact-page {
  padding: 24px 60px 100px;
  max-width: 1100px;
}

.page-content {
  max-width: 900px;
  padding: 24px 40px 90px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 34px;
}

.service-card .tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d6d6d6;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  margin-bottom: 18px;
  font-family: Georgia, serif;
}

.service-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  word-break: keep-all;
}

.service-lead {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.95;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}

.service-copy {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 2;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.service-copy p + p {
  margin-top: 16px;
}

.service-card .btn-outline {
  margin-top: 30px;
}

/* ========== STORY PAGE ========== */
.story-page p {
  font-size: 1rem;
  line-height: 2.35;
  color: var(--muted);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  margin-bottom: 32px;
}

.story-page .quote {
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  padding-left: 28px;
  margin: 48px 0;
  font-size: 1.08rem;
  line-height: 2;
  color: var(--white);
  font-family: "Yu Mincho", Georgia, serif;
  font-style: italic;
}

.story-page .signature {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8a8a8a;
  font-size: 0.86rem;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 2;
}

/* ========== ABOUT PAGE ========== */
.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-table tr:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-table td {
  padding: 20px 0;
  font-size: 0.84rem;
  vertical-align: top;
}

.about-table td:first-child {
  width: 180px;
  color: #7f7f7f;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  letter-spacing: 0.05em;
}

.about-table td:last-child {
  color: var(--muted);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.95;
}

.back-link {
  display: inline-block;
  margin-top: 60px;
  color: #8b8b8b;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: Georgia, serif;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 2px;
}

/* ========== CONTACT PAGE ========== */
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-group.full {
  grid-column: 1 / -1;
}

.contact-form-group label {
  font-size: 0.85rem;
  color: var(--white);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  letter-spacing: 0.05em;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: var(--white);
  color: #111;
  font-size: 1rem;
  outline: none;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.contact-form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-consent {
  margin: 32px 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.85;
}

.contact-consent input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.contact-privacy {
  margin-bottom: 40px;
  font-size: 0.82rem;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--muted);
}

.contact-privacy a {
  color: var(--white);
  text-decoration: underline;
}

.contact-submit-wrap {
  text-align: center;
}

.contact-submit {
  border: none;
  background: #787878;
  color: var(--white);
  padding: 14px 60px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  transition: background 0.25s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #5b5b5b;
}

/* ========== THANKS PAGE ========== */
.thanks-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.thanks-wrap h1 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.thanks-wrap p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  margin-bottom: 48px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
  nav {
    padding-left: 26px;
    padding-right: 26px;
  }

  nav::after {
    left: 26px;
    right: 26px;
  }

  .nav-right {
    gap: 20px;
  }

  .service-grid {
    gap: 32px;
  }

  #service-detail,
  #story-detail {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 84px;
  }

  nav {
    padding: 16px 18px;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(14px);
  }

  nav::after {
    left: 18px;
    right: 18px;
  }

  .nav-links,
  .nav-right > .lang-switcher {
    display: none;
  }

  .nav-menu-toggle,
  .mobile-menu,
  .mobile-menu-backdrop {
    display: block;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-logo {
    font-size: 1rem;
    letter-spacing: 0.16em;
  }

  .full-section {
    min-height: 100svh;
    padding: calc(var(--nav-height) + 34px) 0 92px;
  }

  .full-section .content {
    width: min(100%, 34rem);
    padding: 0 22px;
  }

  .hero-en {
    font-size: clamp(2.6rem, 11vw, 3.9rem);
    line-height: 1.12;
  }

  .hero-sub {
    margin-bottom: 30px;
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .hero-tagline {
    margin-bottom: 34px;
    font-size: 1rem;
    line-height: 1.9;
  }

  .hero-services {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-services a {
    min-width: 0;
    width: 100%;
  }

  .scroll-arrow {
    bottom: 22px;
  }

  #service-detail,
  #story-detail,
  #contact-detail {
    padding-left: 22px;
    padding-right: 22px;
  }

  #service-detail {
    padding-top: 78px;
    padding-bottom: 74px;
  }

  #story-detail {
    padding-top: 76px;
    padding-bottom: 74px;
  }

  #contact-detail {
    padding-top: 76px;
    padding-bottom: 74px;
  }

  .service-page,
  .story-page,
  .contact-page,
  .page-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .service-page,
  .story-page,
  .contact-page,
  .page-content {
    padding-top: 18px;
    padding-bottom: 74px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-card img {
    aspect-ratio: 1 / 1.08;
  }

  .service-card-body {
    padding: 24px 22px 26px;
  }

  .service-card h2 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    line-height: 1.1;
  }

  .service-lead {
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 16px;
  }

  .service-copy {
    padding-top: 16px;
  }

  .service-copy p {
    font-size: 0.92rem;
    line-height: 1.92;
  }

  .service-card .btn-outline {
    width: 100%;
    margin-top: 24px;
  }

  .page-hero {
    min-height: 22vh;
    padding-top: calc(var(--nav-height) + 8px);
    padding-bottom: 26px;
  }

  .story-page p {
    font-size: 0.96rem;
    line-height: 2.15;
  }

  .story-page .quote {
    margin: 38px 0;
    padding-left: 20px;
    font-size: 1rem;
  }

  .about-table td,
  .about-table td:first-child,
  .about-table td:last-child {
    display: block;
    width: 100%;
  }

  .about-table td {
    padding: 10px 0;
  }

  .about-table td:first-child {
    padding-bottom: 2px;
  }

  .about-table td:last-child {
    padding-top: 0;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-consent,
  .contact-privacy {
    font-size: 0.8rem;
  }

  .contact-submit {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 520px) {
  nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  nav::after {
    left: 14px;
    right: 14px;
  }

  .full-section .content,
  #service-detail,
  #story-detail,
  #contact-detail,
  .service-page,
  .story-page,
  .contact-page,
  .page-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-en {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-tagline {
    font-size: 0.96rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .mobile-menu {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}
