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

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: #1A1A1A;
  background-color: #FAFAF8;
  line-height: 2;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

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


/* ========================================
   UTILITY
========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

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


/* ========================================
   SHARED COMPONENTS
========================================= */

/* Section Labels */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 20px;
}

/* Section Headings */
.section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}

/* Photo Frame */
.photo-frame {
  overflow: hidden;
  background-color: #EDEDEB;
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-frame:hover img {
  transform: scale(1.03);
}

.photo-frame-wide {
  width: 100%;
  aspect-ratio: 21 / 9;
}

/* Dividers */
.divider-short {
  border: none;
  border-top: 1px solid #DADADA;
  width: 60px;
  margin: 48px 0;
}

.divider-center {
  border: none;
  border-top: 1px solid #DADADA;
  width: 60px;
  margin: 56px auto;
}

.divider-light {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #6A6A6A;
  background-color: #F0EFED;
  padding: 4px 14px;
  border-radius: 2px;
  margin: 4px 4px 4px 0;
}


/* ========================================
   LAYOUT
========================================= */
.section {
  padding: 160px 40px;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: 600px;
  margin: 0 auto;
}

.section-inner-wide {
  max-width: 1040px;
  margin: 0 auto;
}


/* ========================================
   HEADER
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.header-logo-img {
  height: 20px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 40px;
}

.header-nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
}


/* ========================================
   SECTION 01 : FIRST VIEW
========================================= */
.section-firstview {
  padding: 0 !important;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #1A1A1A;
}

/* PC用：動画 */
.firstview-video-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.firstview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* スマホ用：静止画 */
.firstview-img-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.firstview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* オーバーレイ */
.firstview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 248, 0.65)  0%,
    rgba(250, 250, 248, 0.85) 50%,
    rgba(250, 250, 248, 0.95) 100%
  );
  z-index: 1;
}

/* コンテンツ */
.firstview-content {
  position: relative;
  z-index: 2;
}

.firstview-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 32px;
}

.firstview-tagline {
  font-family: 'Jost', 'Inter', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.firstview-mission {
  margin-top: 28px;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #6A6A6A;
}

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

.scroll-text {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #AAAAAA;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background-color: #DADADA;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  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; }
}


/* ========================================
   SECTION 02 : INTRODUCTION
========================================= */
.section-intro {
  padding: 160px 40px;
}

.intro-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.intro-question p {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 8px;
}

.intro-answer {
  margin-top: 40px;
}

.intro-answer p,
.intro-definition p {
  font-size: 15px;
  line-height: 2.2;
  margin-bottom: 20px;
  color: #3A3A3A;
}

.intro-photo {
  position: sticky;
  top: 120px;
  align-self: start;
}

.intro-photo .photo-frame {
  aspect-ratio: 4 / 5;
}


/* ========================================
   SECTION 03 : 3-LAYER MODEL（横並び）
========================================= */
.section-layers {
  background-color: #F5F4F0;
}

.layers-diagram {
  max-width: 960px;
  margin: 0 auto 80px;
  display: flex;
  align-items: stretch;
}

.diagram-layer {
  flex: 1;
  border: 1px solid #D0CFC8;
  background-color: #FAFAF8;
  padding: 40px;
  text-align: center;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.diagram-layer:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.diagram-layer-philosophy {
  border-color: #1A1A1A;
}

.diagram-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 12px;
}

.diagram-name-en {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.diagram-name-ja {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #6A6A6A;
}

.diagram-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 2;
  color: #4A4A4A;
}

/* Connector（横向き） */
.diagram-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #CCCCCC;
  flex-shrink: 0;
}

.connector-line {
  display: block;
  width: 20px;
  height: 1px;
  background-color: #CCCCCC;
}

.connector-arrow {
  font-size: 14px;
  margin-left: 4px;
  transform: rotate(-90deg);
}

/* 鉄則 */
.layers-principle {
  text-align: center;
}

.principle-en {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-style: italic;
}

.principle-ja {
  margin-top: 12px;
  font-size: 14px;
  color: #6A6A6A;
  letter-spacing: 0.06em;
}


/* ========================================
   SECTION 04 : SERVICES
========================================= */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

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

.service-card-reverse {
  direction: rtl;
}

.service-card-reverse > * {
  direction: ltr;
}

.service-card-photo .photo-frame {
  aspect-ratio: 3 / 2;
}

.phase-number {
  display: block;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #E0DFDC;
}

.phase-title-en {
  margin-top: 12px;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.phase-title-ja {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #6A6A6A;
  letter-spacing: 0.08em;
}

.phase-lead {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.phase-body {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 2.2;
  color: #4A4A4A;
}

.phase-deliverables {
  margin-top: 28px;
}

.deliverables-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}

.deliverables-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* ========================================
   SECTION 05 : OUR STRUCTURE
========================================= */
.structure-lead {
  max-width: 640px;
  margin: 0 auto 64px;
  font-size: 15px;
  line-height: 2.2;
  color: #4A4A4A;
}

.structure-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.structure-card {
  border: 1px solid #E0DFDC;
  padding: 40px;
  background-color: #FAFAF8;
}

.structure-card-primary {
  border-color: #1A1A1A;
}

.structure-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.structure-card-icon {
  font-size: 12px;
  color: #1A1A1A;
}

.structure-card-header h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.structure-card-list {
  list-style: none;
}

.structure-card-list li {
  padding: 14px 0;
  border-top: 1px solid #F0EFED;
}

.structure-card-list li:last-child {
  padding-bottom: 0;
}

.list-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.list-desc {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: #6A6A6A;
}

.structure-message {
  text-align: center;
}

.structure-message p {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
}


/* ========================================
   SECTION 06 : VALUE
   背景 : #F5F4F0（グレー系）
========================================= */
.section-value {
  background-color: #F5F4F0;
}

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

.value-card {
  background-color: #FAFAF8;
  border: 1px solid #E0DFDC;
  padding: 40px 32px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.value-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.value-card-number {
  font-size: 36px;
  font-weight: 200;
  color: #DADADA;
  line-height: 1;
  margin-bottom: 20px;
}

.value-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.value-card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.2;
  color: #4A4A4A;
}


/* ========================================
   SECTION 07 : TARGET CLIENT
   背景 : #FAFAF8（白系）→ Valueとの境目を明確に
========================================= */
.section-target {
  background-color: #FAFAF8;
}

.target-declaration p {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 4px;
  text-align: center;
}

.target-declaration-main {
  margin-top: 20px;
  font-weight: 400;
}

.target-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.target-card {
  background-color: #F5F4F0;
  border: 1px solid #E8E7E4;
  padding: 40px 28px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.target-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.target-card-number {
  display: block;
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #DADADA;
  margin-bottom: 20px;
  line-height: 1;
}

.target-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.2;
  color: #3A3A3A;
}

.target-note {
  text-align: center;
}

.target-note p {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.2;
  color: #6A6A6A;
}


/* ========================================
   SECTION 08 : WHAT WE BELIEVE
========================================= */
.section-believe {
  padding: 0;
}

.believe-photo {
  margin-bottom: 100px;
}

.section-believe .section-inner-narrow {
  padding: 0 40px 160px;
}

.believe-block {
  margin-bottom: 48px;
}

.believe-block p {
  font-size: 15px;
  line-height: 2.4;
  margin-bottom: 12px;
  color: #3A3A3A;
}

.believe-highlight {
  margin: 72px 0;
  padding: 40px;
  border-left: 2px solid #1A1A1A;
  background-color: #F5F4F0;
}

.believe-highlight p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.6;
}

.believe-closing {
  margin-top: 72px;
  text-align: center;
}

.believe-closing p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: #1A1A1A;
}


/* ========================================
   SECTION 09a : CLOSING
========================================= */
.section-closing {
  position: relative;
  padding: 200px 40px;
  text-align: center;
  color: #FAFAF8;
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.closing-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.82);
}

.closing-content {
  position: relative;
  z-index: 1;
}

.closing-line {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 300;
  line-height: 2;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.closing-brand {
  margin-top: 56px;
}

.closing-logo {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.closing-logo-img {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

.closing-tagline {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 248, 0.6);
}


/* ========================================
   SECTION 09b : COMPANY INFO + MAP
========================================= */
.section-company {
  background-color: #F5F4F0;
}

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

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #E0DFDC;
}

.info-table th,
.info-table td {
  padding: 20px 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 120px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #1A1A1A;
  white-space: nowrap;
  padding-right: 24px;
}

.info-table td {
  color: #3A3A3A;
}

.info-table td a {
  color: #3A3A3A;
  border-bottom: 1px solid #DADADA;
  padding-bottom: 1px;
  transition: border-color 0.3s;
}

.info-table td a:hover {
  border-color: #1A1A1A;
  opacity: 1;
}

.company-map {
  position: sticky;
  top: 120px;
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #EDEDEB;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(100%) contrast(0.95);
  transition: filter 0.4s;
}

.map-frame:hover iframe {
  filter: grayscale(0%) contrast(1);
}


/* ========================================
   FOOTER
========================================= */
.footer {
  text-align: center;
  padding: 40px;
  background-color: #1A1A1A;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #666;
}


/* ========================================
   RESPONSIVE : Tablet (max-width: 900px)
========================================= */
@media screen and (max-width: 900px) {

  .section {
    padding: 120px 28px;
  }

  .header-inner {
    padding: 16px 28px;
  }

  .header-nav {
    gap: 24px;
  }

  /* Intro */
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .intro-photo {
    position: relative;
    top: auto;
    order: -1;
  }

  /* 3-layer : 縦積み */
  .layers-diagram {
    flex-direction: column;
    max-width: 480px;
  }

  .diagram-connector {
    padding: 12px 0;
    flex-direction: column;
  }

  .connector-line {
    width: 1px;
    height: 20px;
  }

  .connector-arrow {
    transform: rotate(0deg);
    margin-left: 0;
    margin-top: 4px;
  }

  /* Service */
  .service-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-card-reverse {
    direction: ltr;
  }

  /* Structure */
  .structure-cards {
    grid-template-columns: 1fr;
  }

  /* Value */
  .value-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Target */
  .target-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Company */
  .company-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .company-map {
    position: relative;
    top: auto;
  }

  .map-frame {
    aspect-ratio: 16 / 9;
  }

  /* Closing */
  .section-closing {
    padding: 160px 28px;
  }
}


/* ========================================
   RESPONSIVE : Mobile (max-width: 480px)
========================================= */
@media screen and (max-width: 480px) {

  .section {
    padding: 80px 20px;
  }

  .header-inner {
    padding: 14px 20px;
  }

  .header-logo {
    font-size: 16px;
  }

  .header-logo-img {
    height: 16px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav-link {
    font-size: 11px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .diagram-layer {
    padding: 28px 20px;
  }

  .service-card {
    gap: 28px;
    margin-bottom: 72px;
  }

  .structure-card {
    padding: 28px 20px;
  }

  .value-card {
    padding: 28px 20px;
  }

  .believe-highlight {
    padding: 28px 20px;
  }

  .section-believe .section-inner-narrow {
    padding: 0 20px 100px;
  }

  .section-closing {
    padding: 120px 20px;
  }

  .photo-frame-wide {
    aspect-ratio: 16 / 9;
  }

  .info-table th {
    width: 100px;
    font-size: 12px;
    padding-right: 16px;
  }

  .info-table th,
  .info-table td {
    padding: 16px 0;
    font-size: 13px;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
  }
}