/* =============================================
   CSS Variables / Design Tokens
   ============================================= */
:root {
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Work Sans', sans-serif;
  --background: #FAFAF8;
  --foreground: #0A0A0A;
  --accent: #E76F51;
  --accent-foreground: #FAFAF8;
  --border: rgba(10, 10, 10, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* =============================================
   Utility
   ============================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* =============================================
   Intersection Observer Reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-left  { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* =============================================
   Navigation
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeInDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .nav-inner { padding: 1rem 3rem; }
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links button {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
  transition: color 0.3s;
}

.nav-links button:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  animation: fadeInUp 0.3s ease;
}

.mobile-menu.open { display: block; }

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1.125rem;
  padding: 0.625rem 0;
  color: var(--foreground);
  transition: color 0.3s;
  font-family: var(--font-body);
}

.mobile-menu button:hover { color: var(--accent); }

/* =============================================
   Hero Section
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
}

@media (min-width: 1024px) {
  #hero { padding: 5rem 3rem 2rem; }
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  animation: fadeInLeft 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title .accent { color: var(--accent); }

.hero-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.70);
  max-width: 38rem;
  margin-bottom: 2rem;
  animation: fadeInLeft 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 1024px) {
  .hero-lead { font-size: 1.25rem; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  animation: fadeInUp 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-primary:hover  { background: rgba(231, 111, 81, 0.90); transform: scale(1.05); }
.btn-primary:active { transform: scale(0.95); }

.btn-primary svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Hero graphic */
.hero-graphic {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(231,111,81,0.20) 0%, rgba(231,111,81,0.10) 50%, transparent 100%);
  border: 1px solid rgba(231,111,81,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  animation: scaleIn 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-graphic-text { text-align: center; }

.hero-graphic-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(6rem, 15vw, 9rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-graphic-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.60);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 1s 1s both;
}

.scroll-wheel {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(10,10,10,0.30);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-dot {
  width: 4px; height: 8px;
  background: rgba(10,10,10,0.30);
  border-radius: 9999px;
}

/* =============================================
   Services Section
   ============================================= */
#services {
  padding: 8rem 1.5rem;
  background: var(--foreground);
  color: var(--background);
}

@media (min-width: 1024px) {
  #services { padding: 8rem 3rem; }
}

.section-header { margin-bottom: 5rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 1.5rem;
}

.section-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  max-width: 40rem;
}

.section-lead-muted { color: rgba(250,250,248,0.70); }

.services-grid { display: grid; gap: 2rem; }

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

.service-card {
  padding: 2rem;
  border: 1px solid rgba(250,250,248,0.20);
  border-radius: 1rem;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.service-card:hover {
  border-color: rgba(231,111,81,0.50);
  transform: translateY(-8px);
}

.service-icon {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: rgba(231,111,81,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}

.service-card:hover .service-icon { background: rgba(231,111,81,0.30); }

.service-icon-dot {
  width: 1.5rem; height: 1.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250,250,248,0.70);
}

/* =============================================
   About Section
   ============================================= */
#about { padding: 8rem 1.5rem; }

@media (min-width: 1024px) { #about { padding: 8rem 3rem; } }

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 2fr 3fr; }
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 2rem;
}

.accent-bar {
  width: 5rem; height: 4px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.about-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(10,10,10,0.70);
}

/* Company info table */
.company-info { display: flex; flex-direction: column; }

.info-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .info-row { flex-direction: row; align-items: baseline; gap: 2rem; }
}

.info-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.60);
  min-width: 8rem;
  margin-bottom: 0.375rem;
}

@media (min-width: 640px) { .info-label { margin-bottom: 0; } }

.info-value {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* Mission box */
.mission-box {
  margin-top: 5rem;
  padding: 3rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(231,111,81,0.10) 0%, rgba(231,111,81,0.05) 50%, transparent 100%);
  border: 1px solid rgba(231,111,81,0.20);
}

.mission-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

.mission-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.9;
  color: rgba(10,10,10,0.80);
  max-width: 48rem;
}

/* =============================================
   Contact Section
   ============================================= */
#contact {
  padding: 8rem 1.5rem;
  background: var(--foreground);
  color: var(--background);
}

@media (min-width: 1024px) { #contact { padding: 8rem 3rem; } }

.contact-inner { max-width: 56rem; margin: 0 auto; }

.contact-header { text-align: center; margin-bottom: 4rem; }

.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 1.5rem;
}

.contact-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  color: rgba(250,250,248,0.70);
}

/* Contact info cards */
.contact-info-grid { display: grid; gap: 2rem; margin-bottom: 4rem; }

@media (min-width: 768px) { .contact-info-grid { grid-template-columns: 1fr 1fr; } }

.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: rgba(231,111,81,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px; height: 20px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.contact-info-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-info-text {
  font-family: var(--font-body);
  color: rgba(250,250,248,0.70);
  line-height: 1.6;
  font-size: 0.9rem;
}

.contact-info-link { color: rgba(250,250,248,0.70); transition: color 0.3s; }
.contact-info-link:hover { color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
/* hidden 属性を効かせる(display: flex を打ち消す) */
.contact-form[hidden] { display: none; }

.form-row { display: grid; gap: 1.5rem; }

@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(250,250,248,0.80);
}

.form-label .required { color: var(--accent); }

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(250,250,248,0.10);
  border: 1px solid rgba(250,250,248,0.20);
  border-radius: 0.5rem;
  color: var(--background);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(250,250,248,0.40); }

.form-input:focus,
.form-textarea:focus { border-color: var(--accent); }

.form-textarea { resize: none; min-height: 10rem; }

.form-error { font-size: 0.875rem; color: var(--accent); display: none; }
.form-error.visible { display: block; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--background);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.btn-submit svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.btn-submit:hover  { background: rgba(231,111,81,0.90); transform: scale(1.02); }
.btn-submit:active { transform: scale(0.98); }

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Thanks(送信完了画面) */
.contact-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 3rem 1.5rem;
  border: 1px solid rgba(250,250,248,0.15);
  border-radius: 1rem;
  background: rgba(250,250,248,0.03);
}

/* hidden 属性を効かせる(.contact-thanks の display: flex を打ち消す) */
.contact-thanks[hidden] { display: none; }

.contact-thanks-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-thanks-icon svg {
  width: 28px; height: 28px;
  stroke: var(--background); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.contact-thanks-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--background);
}

.contact-thanks-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(250,250,248,0.70);
}

.btn-resend {
  margin-top: 0.5rem;
  background: transparent;
  color: var(--background);
  border: 1px solid rgba(250,250,248,0.30);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.btn-resend:hover  { background: rgba(250,250,248,0.08); border-color: var(--accent); }
.btn-resend:active { transform: scale(0.98); }

/* =============================================
   Footer
   ============================================= */
footer {
  padding: 3rem 1.5rem;
  background: var(--foreground);
  color: var(--background);
  border-top: 1px solid rgba(250,250,248,0.10);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(250,250,248,0.60);
}

/* =============================================
   Toast
   ============================================= */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  opacity: 0;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.toast.toast-success {
  background: var(--foreground);
  color: var(--background);
}

.toast.toast-error {
  background: #b91c1c;
  color: #fff;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
