@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

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

:root {
  --black:    #333333;
  --white:    #f8f8f6;
  --gray-100: #f0efed;
  --gray-200: #e8e7e5;
  --gray-300: #c8c7c3;
  --gray-500: #888884;
  --gray-700: #444444;
  --accent:   #36b1a7;
  --accent-dark: #2a9990;
  --accent-middle: #8fd7d2;
  --accent-light: #e8f7f6;
  --font-jp: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-en: 'Noto Sans JP', sans-serif;
  --max-w: 1100px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 15px;
  letter-spacing: 0.05rem;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(248, 248, 246, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

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

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  padding: 24px 40px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  text-decoration: none;
}

/* ─────────────────────────────────────────
   SECTION COMMON
───────────────────────────────────────── */
section { padding: 104px 40px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.1em;
  margin-bottom: 52px;
  color: var(--black);
}

/* ─────────────────────────────────────────
   CONTACT（共通）
───────────────────────────────────────── */
#contact {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 80px 40px;
}

#contact .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 52px;
  line-height: 2;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
  text-decoration: none;
  padding: 16px 40px;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out, gap 0.2s;
}

.contact-btn:hover {
  background: var(--white);
  color: var(--accent);
  gap: 22px;
  transition: .4s;
}

/* ─────────────────────────────────────────
   FOOTER（共通）
───────────────────────────────────────── */
footer {
  background: var(--accent);
  border-top: 1px solid var(--white);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
}

.footer-logo span { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   FADE-IN
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }


/* ═════════════════════════════════════════
   INDEX ページ固有
═════════════════════════════════════════ */

/* NAV CTA */
.nav-cta-btn {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta-btn:hover { 
  background: var(--accent-dark);
  transition: .4s;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background:
    linear-gradient(rgba(54, 177, 167, 0.48), rgba(54, 177, 167, 0.48)),
    url('img/img-fv.jpg') center / cover no-repeat;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 80px) 40px 100px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(52px, 3.5vw, 108px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.15em;
  margin-bottom: 36px;
  color: var(--white);
}

.hero-title em {
  font-style: italic;
  color: var(--white);
  opacity: 0.85;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 2;
  margin-bottom: 52px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s, gap 0.2s;
}

.hero-cta:hover {
  gap: 22px;
  border-color: var(--white);
  transition: .4s;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  right: 40px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

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

/* ABOUT */
#about { background: var(--accent-light); }

.about-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-header .section-title { margin-bottom: 0; }

.about-lead {
  margin-top: 8px;
  margin-bottom: 40px;
}

.about-intro {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2.1;
  color: var(--gray-700);
  padding-top: 32px;
}

/* WORKS */
#works { background: var(--white); }

.works-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card { display: flex; flex-direction: column; }

.work-card--hidden { display: none; }

.work-card-img {
  aspect-ratio: 4/3;
  background: var(--gray-200);
  margin-bottom: 16px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px 8px;
}

.work-card-body { display: flex; flex-direction: column; gap: 8px; }

.work-card-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-card-title {
  font-size: 15px;
  color: var(--black);
  font-weight: 500;
  line-height: 1.5;
}

.works-more-wrap {
  text-align: center;
  margin-top: 48px;
}

.works-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--black);
  background: none;
  border: 1px solid var(--gray-300);
  padding: 14px 40px;
  cursor: pointer;
  font-family: var(--font-jp);
  transition: border-color 0.2s, color 0.2s, gap 0.2s;
}

.works-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  gap: 18px;
}

.works-more-btn svg,
.contact-btn svg {
  transition: transform 0.2s;
}

.works-more-btn:hover svg,
.contact-btn:hover svg {
  transform: translateX(4px);
}

/* Works card as link */
a.work-card {
  text-decoration: none;
  color: inherit;
}

a.work-card .work-card-img img {
  transition: transform 0.4s ease;
}

a.work-card:hover .work-card-img img {
  transform: scale(1.04);
}

a.works-more-btn { text-decoration: none; }

/* SERVICES */
#services { background: var(--gray-100); }

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

.service-card {
  background: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.28s;
  text-decoration: none;
  color: inherit;
}

a.service-card:hover { background: var(--accent); }

a.service-card:hover .service-icon { color: rgba(255,255,255,0.6); }
a.service-card:hover .service-num  { color: rgba(255,255,255,0.6); }
a.service-card:hover .service-name { color: var(--white); }
a.service-card:hover .service-desc { color: rgba(255,255,255,0.75); }
a.service-card:hover .service-arrow { color: var(--white); transform: translateX(6px); }

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 4px;
  transition: color 0.28s;
}

.service-num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  transition: color 0.28s;
}

.service-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
  line-height: 1.4;
  transition: color 0.28s;
}

.service-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 2;
  flex: 1;
  transition: color 0.28s;
}

.service-arrow {
  align-self: flex-start;
  font-size: 18px;
  color: var(--gray-300);
  transition: transform 0.22s, color 0.22s;
}

/* TESTIMONIALS */
#testimonials { background: var(--accent-light); }

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

.testimonial-card {
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-stars {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 2;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.testimonial-role {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* PROFILE */
#profile { background: var(--white); }
#profile .section-title { margin-bottom: 26px; }

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

.profile-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}

.profile-title{
  font-size: 20px;
  font-weight: bold;
  padding: 0 0 16px 0;
}

.profile-lead {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 2;
}

/* FOOTER NAV */
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }


/* ═════════════════════════════════════════
   BRANDING ページ固有
═════════════════════════════════════════ */

/* BREADCRUMB */
.breadcrumb {
  padding: calc(var(--nav-h) + 24px) 40px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}

.breadcrumb-list a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-list a:hover { color: var(--accent); }

.breadcrumb-list .sep { color: var(--gray-300); }

/* PAGE HERO */
#page-hero {
  padding: 60px 40px 40px;
  max-width: 100%;
  background:var(--accent)
}

#page-hero > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-en);
  font-size: clamp(40px, 7vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--white);
}

.page-title em {
  font-style: italic;
  color: var(--white);
  opacity: 0.85;
}

.page-lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 2;
}

/* BRANDING: section共通上書き */
.page-branding section { padding: 100px 40px; }


/* CONCEPT */
#concept {
  background: var(--accent-light);
  color: var(--black);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.concept-left { display: flex; flex-direction: column; }

.concept-placeholder {
  width: 100%;
}

.concept-logo {
  max-width: 400px;
  width: 100%;
  display: block;
  margin-bottom: 32px;
}

.concept-img {
  width: 100%;
  display: block;
}

.concept-lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 2.1;
  color: var(--gray-700);
}

.concept-lead strong {
  color: var(--black);
  font-weight: 400;
}

/* PROCESS */
#process { background: var(--gray-100); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.process-step {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-step-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent-middle);
  line-height: 1;
  letter-spacing: -0.02em;
}

.process-step-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
}

.process-step-desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.9;
}

/* DELIVERABLES */
#deliverables { background: var(--white); }

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

.deliverable-item {
  background: var(--gray-100);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deliverable-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.deliverable-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
}

.deliverable-desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.9;
}


/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-top: 48px;
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
  color: var(--white);
  gap: 14px;
}


/* ═════════════════════════════════════════
   WORKS 詳細ページ固有
═════════════════════════════════════════ */

.work-detail-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-200);
  overflow: hidden;
  margin-bottom: 52px;
}

.work-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
}

.work-detail-body { max-width: 680px; }

.work-detail-desc {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-700);
  margin-bottom: 52px;
}

.work-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.work-back-link::before {
  content: '←';
}

.work-back-link:hover {
  color: var(--accent);
  gap: 12px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 72px 20px; }

  /* index */
  .nav-cta-btn { display: none; }

  .hero-inner { padding: calc(var(--nav-h) + 60px) 20px 80px; }
  .hero-scroll { display: none; }

  .about-header { grid-template-columns: 1fr; gap: 32px; }
  .about-header .section-title { margin-bottom: 0; }
  .about-intro { padding-top: 0; }

  .works-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }

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

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

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

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 20px;
  }

  .footer-nav { flex-wrap: wrap; gap: 16px; }

  #contact { padding: 80px 20px; }

  /* branding */
  .breadcrumb { padding: calc(var(--nav-h) + 16px) 20px 0; }
  #page-hero { padding: 40px 20px 72px; }
  .concept-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .deliverables-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .works-cards { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
