/* ============================================
   AIA Web Studio — style.css
   ============================================ */

:root {
  --color-text: #1a2233;
  --color-text-soft: #5a6478;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-accent: #2f5cff;
  --color-accent-dark: #1e3fd0;
  --color-line: #e3e7ee;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(26, 34, 51, 0.08);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.pc-only { display: inline; }
@media (max-width: 768px) { .pc-only { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(47, 92, 255, 0.35);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(47, 92, 255, 0.4);
}
.btn--ghost {
  border: 1.5px solid var(--color-line);
  color: var(--color-text);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--wide { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s ease;
}
.header.is-scrolled { border-color: var(--color-line); }
.header__inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.header__logo span { color: var(--color-accent); margin-left: 4px; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.header__nav a:not(.header__cta):hover { color: var(--color-accent); }
.header__cta {
  background: var(--color-accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease;
}
.header__cta:hover { background: var(--color-accent-dark); }
.header__burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 24px 120px;
  overflow: hidden;
}
.hero__inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.hero__label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 68%, rgba(47, 92, 255, 0.22) 68%);
}
.hero__lead {
  font-size: 16px;
  color: var(--color-text-soft);
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__bg {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 92, 255, 0.1) 0%, rgba(47, 92, 255, 0) 65%);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 96px 24px; }
.section--alt { background: var(--color-bg-alt); }
.section__inner { max-width: 1120px; margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }
.section__label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 48px;
}
.section__note { font-size: 13px; color: var(--color-text-soft); margin-top: 28px; }

/* ---------- Cards (強み) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.card p { font-size: 14px; color: var(--color-text-soft); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-accent);
}
.service h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service p { font-size: 14px; color: var(--color-text-soft); }

/* ---------- Works ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.work__thumb span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
}
.work__thumb--a { background: linear-gradient(135deg, #3b6bff, #6e9bff); }
.work__thumb--b { background: linear-gradient(135deg, #1a2a55, #3b5bbf); }
.work__thumb--c { background: linear-gradient(135deg, #6478a8, #9fb2d8); }
.work h3 { font-size: 15px; font-weight: 700; }
.work figcaption p { font-size: 13px; color: var(--color-text-soft); }

/* ---------- Flow ---------- */
.flow {
  counter-reset: flow;
  display: grid;
  gap: 0;
  max-width: 760px;
}
.flow li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 36px 76px;
}
.flow li::before {
  content: "0" counter(flow);
  position: absolute;
  left: 0;
  top: -2px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 56px;
  bottom: 6px;
  width: 2px;
  background: var(--color-line);
}
.flow strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.flow span { font-size: 14px; color: var(--color-text-soft); }

/* ---------- Price ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.plan--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow);
}
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.plan__price {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
}
.plan__price span { font-size: 13px; color: var(--color-text-soft); font-family: var(--font-jp); font-weight: 500; }
.plan__for { font-size: 13px; color: var(--color-text-soft); margin: 10px 0 22px; }
.plan ul {
  text-align: left;
  font-size: 14px;
  display: grid;
  gap: 10px;
}
.plan ul li { padding-left: 24px; position: relative; }
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- Profile ---------- */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.profile__photo {
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6bff, #1a2a55);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.profile__photo span {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.92);
}
.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.profile__name {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 20px;
}
.profile__name span {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
  margin-left: 14px;
}
.profile__text p {
  font-size: 15px;
  color: var(--color-text-soft);
}
.profile__text p + p { margin-top: 14px; }
.profile__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.profile__skills li {
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  padding: 20px 32px 20px 34px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-weight: 800;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  font-size: 14px;
  color: var(--color-text-soft);
  padding: 0 0 22px 34px;
}

/* ---------- Contact ---------- */
.contact__lead { color: var(--color-text-soft); margin-bottom: 40px; }
.contact__form { display: grid; gap: 22px; }
.contact__form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.req {
  display: inline-block;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}
.contact__form input,
.contact__form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__status { display: none; font-size: 14px; font-weight: 700; }
.contact__status.is-error { display: block; color: #d4380d; }
.contact__done {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.contact__done strong { display: block; font-size: 18px; margin-bottom: 10px; }
.contact__done p { font-size: 14px; color: var(--color-text-soft); }

/* ---------- Footer ---------- */
.footer {
  background: #10182b;
  color: #fff;
  padding: 48px 24px;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo { font-family: var(--font-en); font-weight: 800; font-size: 18px; }
.footer__logo span { color: #6e9bff; margin-left: 4px; }
.footer__copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .works, .plans { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile__photo { width: 180px; margin: 0 auto; }
  .profile__photo span { font-size: 56px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 20px; }
  .hero { padding: calc(var(--header-h) + 56px) 20px 80px; }

  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
  }
  .header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    padding: 8px 0 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .header__nav a {
    padding: 14px 24px;
    font-size: 15px;
  }
  .header__cta {
    margin: 10px 24px 0;
    text-align: center;
    border-radius: 999px;
  }
}
