/* ========================================
   Ayame Design & Planning - Stylesheet
   Color: Soft Blue Palette with warmth
   ======================================== */

/* ----- CSS Variables ----- */
:root {
  /* Primary Blue Palette - soft & warm */
  --blue-50: #F0F5FA;
  --blue-100: #DDE8F3;
  --blue-200: #B8CEE5;
  --blue-300: #8DB2D4;
  --blue-400: #6A99C4;
  --blue-500: #4A7FB5;
  --blue-600: #3A6A9A;
  --blue-700: #2D5480;
  --blue-800: #213E63;
  --blue-900: #162A45;

  /* Accent - soft lavender-blue */
  --accent-light: #E8EEF6;
  --accent: #7BA7D0;
  --accent-deep: #5B8CB8;

  /* Warm neutrals */
  --warm-white: #FAFBFD;
  --warm-gray-50: #F7F8FA;
  --warm-gray-100: #EEF0F4;
  --warm-gray-200: #DDE0E7;
  --warm-gray-300: #BCC1CC;
  --warm-gray-400: #969DAD;
  --warm-gray-500: #6E7689;
  --warm-gray-600: #525A6E;
  --warm-gray-700: #3A4155;
  --warm-gray-800: #272D3D;
  --warm-gray-900: #181C28;

  /* Typography */
  --font-body: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-heading: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(74, 127, 181, 0.06);
  --shadow-md: 0 4px 20px rgba(74, 127, 181, 0.08);
  --shadow-lg: 0 8px 40px rgba(74, 127, 181, 0.1);
  --shadow-xl: 0 16px 60px rgba(74, 127, 181, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--warm-gray-700);
  background: var(--warm-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn--primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 127, 181, 0.25);
}

.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 24px rgba(74, 127, 181, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--blue-500);
  border: 1.5px solid var(--blue-300);
}

.btn--outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease-smooth);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 251, 253, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(74, 127, 181, 0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-600);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--blue-600);
  transition: all 0.3s var(--ease-smooth);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--warm-gray-600);
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-400);
  transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--blue-500);
}

.nav-cta {
  background: var(--blue-500) !important;
  color: #fff !important;
  padding: 8px 24px !important;
  border-radius: 50px;
  font-weight: 500 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--blue-600) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 127, 181, 0.25);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, var(--warm-white) 0%, var(--blue-50) 40%, var(--blue-100) 100%);
  overflow: hidden;
}

.hero-iris-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.iris-svg {
  position: absolute;
}

.iris-svg--left {
  left: -10%;
  top: -5%;
  width: 50%;
  max-width: 500px;
  opacity: 1;
  animation: irisFloat 20s ease-in-out infinite;
}

.iris-svg--right {
  right: -8%;
  bottom: -10%;
  width: 40%;
  max-width: 400px;
  opacity: 1;
  animation: irisFloat 25s ease-in-out infinite reverse;
}

@keyframes irisFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(74, 127, 181, 0.08);
  border: 1px solid rgba(74, 127, 181, 0.15);
  border-radius: 50px;
  margin-bottom: 32px;
}

.hero-badge span {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--blue-600);
  letter-spacing: 0.1em;
  font-style: italic;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 28px;
}

.hero-title-line {
  display: block;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--warm-gray-800);
  letter-spacing: 0.08em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--warm-gray-500);
  line-height: 2;
  margin-bottom: 44px;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--warm-gray-400);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue-300), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Section Common ===== */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--blue-400);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--warm-gray-800);
  letter-spacing: 0.06em;
}

.section-divider {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: var(--blue-400);
}

.divider-iris {
  width: 36px;
  height: 18px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--warm-gray-500);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ===== About Section ===== */
.about {
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--warm-gray-100);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
  height: 100%;
}

.about-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
  transform: translateY(-4px);
}

.about-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  color: var(--blue-500);
}

.about-card-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--warm-gray-800);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--warm-gray-500);
  line-height: 1.9;
}

/* ===== Services Section ===== */
.services {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--warm-white) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--warm-gray-100);
  border-radius: 20px;
  padding: 40px 36px;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-300), var(--accent));
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-200);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-number {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 400;
  color: var(--blue-200);
  letter-spacing: 0.02em;
}

.service-tag {
  display: inline-flex;
  padding: 5px 16px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: 1px solid var(--blue-100);
}

.service-tag--coming {
  background: var(--warm-gray-50);
  color: var(--warm-gray-400);
  border-color: var(--warm-gray-200);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--warm-gray-800);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--warm-gray-500);
  line-height: 1.9;
  margin-bottom: 24px;
}

.service-details {
  border-top: 1px solid var(--warm-gray-100);
  padding-top: 20px;
  margin-bottom: 24px;
}

.service-detail-item {
  margin-bottom: 16px;
}

.service-detail-item:last-child {
  margin-bottom: 0;
}

.service-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 6px;
}

.service-detail-label i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.service-detail-item p {
  font-size: 0.85rem;
  color: var(--warm-gray-500);
  line-height: 1.8;
  padding-left: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-500);
  transition: all 0.3s var(--ease-smooth);
}

.service-link i {
  font-size: 0.75rem;
  transition: transform 0.3s var(--ease-smooth);
}

.service-link:hover {
  color: var(--blue-700);
}

.service-link:hover i {
  transform: translateX(4px);
}

.service-note {
  font-size: 0.82rem;
  color: var(--warm-gray-400);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Coming soon card */
.service-card--coming {
  background: var(--warm-gray-50);
  border: 1px dashed var(--warm-gray-200);
}

.service-card--coming::before {
  display: none;
}

.service-card--coming:hover {
  transform: none;
  box-shadow: none;
}

.service-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--warm-gray-100);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--warm-gray-400);
  font-weight: 500;
}

.service-coming-badge i {
  font-size: 0.8rem;
}

/* ===== Profile Section ===== */
.profile {
  background: var(--warm-white);
}

.profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-image-wrap {
  position: relative;
}

.profile-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.profile-image-deco {
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1.5px solid var(--blue-200);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.5;
}

.profile-name-area {
  margin-bottom: 28px;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--warm-gray-800);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.profile-role {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--blue-500);
  letter-spacing: 0.06em;
}

.profile-text {
  margin-bottom: 32px;
}

.profile-lead {
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm-gray-700);
  margin-bottom: 20px;
  line-height: 2;
  padding-left: 16px;
  border-left: 2px solid var(--blue-300);
}

.profile-text p {
  font-size: 0.92rem;
  color: var(--warm-gray-600);
  line-height: 2;
  margin-bottom: 14px;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

.profile-expertise h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-gray-700);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expertise-tag {
  display: inline-flex;
  padding: 8px 18px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--blue-100);
  letter-spacing: 0.02em;
}

/* ===== Contact Section ===== */
.contact {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--blue-50) 100%);
}

.contact-content {
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--warm-gray-100);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--blue-500);
  font-size: 1.4rem;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--warm-gray-800);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--warm-gray-500);
  line-height: 1.9;
  margin-bottom: 28px;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 16px rgba(74, 127, 181, 0.25);
}

.contact-email-btn:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 24px rgba(74, 127, 181, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.contact-email-btn i {
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--warm-gray-800);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
}

.footer-brand-name {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease-smooth);
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 88px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
  }

  .sp-only {
    display: inline;
  }

  /* Nav Mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(250, 251, 253, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 60px 40px;
    transition: right 0.4s var(--ease-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  /* Hero */
  .hero-title-line {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .iris-svg--left {
    width: 70%;
    left: -20%;
  }

  .iris-svg--right {
    width: 60%;
    right: -20%;
  }

  /* Section */
  .section-header {
    margin-bottom: 48px;
  }

  /* Profile */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .profile-content {
    text-align: left;
  }

  /* Service cards */
  .service-card {
    padding: 32px 28px;
  }

  /* Contact */
  .contact-card {
    padding: 40px 28px;
  }

  .contact-email-btn {
    font-size: 0.82rem;
    padding: 14px 28px;
  }

  /* Footer */
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
  }

  .hero-badge {
    margin-bottom: 24px;
  }

  .hero-badge span {
    font-size: 0.75rem;
  }

  .hero-title-line {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 28px 24px;
  }

  .service-number {
    font-size: 1.6rem;
  }

  .about-card {
    padding: 32px 24px;
  }

  .expertise-tags {
    gap: 8px;
  }

  .expertise-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}
