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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==============================
   DESIGN TOKENS
============================== */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --white: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(59, 130, 246, 0.10);
  --shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --section-padding: 96px 0;
  --transition: 0.25s ease;
}

/* ==============================
   LAYOUT
============================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
}
.btn--primary:hover {
  background-color: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background-color: transparent;
  color: var(--blue-600);
  border-color: var(--blue-500);
}
.btn--outline:hover {
  background-color: var(--blue-50);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* ==============================
   SECTION COMMON
============================== */
.section {
  padding: var(--section-padding);
}

.section--blue {
  background-color: var(--blue-50);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--slate-500);
  max-width: 520px;
  margin: 0 auto;
}

/* ==============================
   HEADER
============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
  transition: box-shadow var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.05em;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: color var(--transition);
}

.header__nav-list a:not(.btn):hover {
  color: var(--blue-500);
}

/* ==============================
   HERO
============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/ajisai-x4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* 画像の上に青みがかった半透明オーバーレイ */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 78, 216, 0.55) 0%,
    rgba(59, 130, 246, 0.45) 60%,
    rgba(15, 40, 100, 0.65) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  text-align: center;
}

.hero__sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-200);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 28px;
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 48px;
}

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

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  margin: 0 auto;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* --- 光のエフェクト コンテナ --- */
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* --- 光の線 --- */
.hero__fx-line {
  position: absolute;
  top: 38%;
  left: -340px;
  width: 320px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 5%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.0) 95%,
    transparent 100%
  );
  filter: blur(1px);
  animation: lightLine 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes lightLine {
  0%   { transform: translateX(0)      translateY(0px);   opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translateX(60vw)   translateY(-18px); opacity: 1; }
  80%  { transform: translateX(110vw)  translateY(6px);   opacity: 0.6; }
  100% { transform: translateX(130vw)  translateY(0px);   opacity: 0; }
}

/* --- 波紋の共通スタイル --- */
.hero__fx-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  width: 60px;
  height: 60px;
  opacity: 0;
  animation: ripple 6s ease-out infinite;
}

.hero__fx-ripple--1 {
  top: 45%;
  left: 28%;
  animation-delay: 1.5s;
}

.hero__fx-ripple--2 {
  top: 35%;
  left: 58%;
  animation-delay: 3.5s;
}

.hero__fx-ripple--3 {
  top: 58%;
  left: 42%;
  animation-delay: 5.2s;
}

@keyframes ripple {
  0%   { transform: scale(0.5); opacity: 0; }
  10%  { opacity: 0.6; }
  70%  { opacity: 0.15; }
  100% { transform: scale(7);   opacity: 0; }
}

/* ==============================
   ABOUT
============================== */
.about__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.about__image-photo {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 4px;
}

.about__name span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--slate-400);
  margin-left: 12px;
}

.about__role {
  font-size: 0.9rem;
  color: var(--blue-500);
  font-weight: 500;
  margin-bottom: 24px;
}

.about__text {
  color: var(--slate-500);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about__tags li {
  background-color: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==============================
   SERVICES
============================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card__image-wrap {
  width: 100%;
  height: 200px;
  margin: 20px 0 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image {
  transform: scale(1.03);
}

#works .service-card__image-wrap {
  height: auto;
}

#works .service-card__image {
  height: auto;
  object-fit: unset;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--blue-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-200);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 14px;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-500);
  transition: color var(--transition);
}

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

/* ==============================
   CONTACT
============================== */
.contact__inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact__form {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group--submit {
  text-align: center;
  margin-top: 8px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.required {
  color: var(--blue-500);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate-700);
  background-color: var(--blue-50);
  transition: border-color var(--transition), background-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue-400);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-400);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==============================
   FOOTER
============================== */
.footer {
  background-color: var(--slate-700);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__nav a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--blue-400);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .header__nav-list {
    gap: 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

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

  .about__image-placeholder {
    max-width: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

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

  .contact__form {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .header__nav-list li:first-child,
  .header__nav-list li:nth-child(2) {
    display: none;
  }

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