:root {
  --bg: #f7fbfd;
  --paper: #ffffff;
  --ink: #101b24;
  --navy: #172b3a;
  --muted: #647783;
  --blue: #d9eff7;
  --blue2: #edf8fc;
  --accent: #8bc8dd;
  --line: #bfd7e0;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}


/* =========================
   COMMON
========================= */

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.section:nth-child(even) {
  background: var(--bg);
}

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #428ca8;
  border-left: 2px solid var(--accent);
  padding: 3px 0 3px 12px;
  margin-bottom: 20px;
}

.title {
  font-size: clamp(50px, 8vw, 102px);
  font-weight: 700;
  line-height: 0.88;
  margin: 0 0 50px;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  color: var(--navy);
}

.center {
  text-align: center;
}

.copy {
  font-size: 15px;
  line-height: 2.05;
  color: #4f626d;
  max-width: 720px;
}


/* =========================
   BUTTON
========================= */

.actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.center .actions,
.status .actions {
  justify-content: center;
}

.btn {
  display: inline-block;
  border: 1px solid var(--navy);
  padding: 15px 28px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}

.btn:hover {
  background: #2c5269;
}

.btn.ghost {
  background: #fff;
  color: var(--navy);
  border-color: #9fc5d4;
}

.btn.ghost:hover {
  background: var(--blue2);
  border-color: #6eacc3;
}


/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

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

.nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
  transition: 0.18s;
}

.nav a:hover,
.nav a.active {
  color: #3e93b2;
}

.nav a.active {
  border-bottom: 1px solid #3e93b2;
  padding-bottom: 8px;
}

.mobile-toggle {
  display: none;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 9px 11px;
  font-weight: 700;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eaf7fb;
}

.hero-bg {
  position: absolute;
  inset: 30px;
  background:
    linear-gradient(
      135deg,
      #f9fdff 0%,
      #d9f0f8 55%,
      #c7e6f1 100%
    );
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #7894a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(63, 143, 174, 0.18);
  border-radius: 50%;
  right: -15vw;
  top: -20vw;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 49.8%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 50.2%
    );
  opacity: 0.5;
}

.hero-placeholder {
  position: relative;
  z-index: 1;
}

.hero-logo {
  position: relative;
  z-index: 1;
  font-size: clamp(110px, 22vw, 290px);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.75;
  color: var(--navy);
}


/* =========================
   ABOUT
========================= */

.about {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 8vw;
  align-items: center;
}

.placeholder {
  background:
    linear-gradient(
      145deg,
      #eef9fc,
      #d6edf5
    );
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #7894a0;
  font-weight: 600;
}

.portrait {
  aspect-ratio: 4 / 5;
  box-shadow: 18px 18px 0 #e8f5f9;
}

.about h2 {
  color: var(--navy);
  font-size: 32px;
  margin-top: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.social-link {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 17px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: 0.18s;
  color: var(--navy);
}

.social-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}


/* =========================
   REQUEST STATUS
========================= */

.status {
  max-width: 840px;
  margin: auto;
  padding: 54px;
  border: 1px solid var(--line);
  background: #f4fbfd;
  text-align: center;
  position: relative;
}

.status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #a8ccd9;
  background: white;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  font-weight: 700;
  color: var(--navy);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c9f7a;
}


/* =========================
   WORKS PAGE HEADER
========================= */

.page-head {
  padding: 115px 0 55px;
  border-bottom: 1px solid var(--line);
}

.page-head .title {
  margin-bottom: 20px;
}


/* =========================
   WORKS FILTER
========================= */

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 11px 17px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.18s;
}

.filter:hover,
.filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}


/* =========================
   WORKS GRID
========================= */

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


/* =========================
   WORK CARD
========================= */

.work-card {
  transition: 0.2s;
}

.work-card:hover {
  transform: translateY(-3px);
}

.work-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5f4f9;
  border: 1px solid var(--line);
}

.work-thumbnail,
.work-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.work-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.work-preview.is-active {
  opacity: 1;
}

.work-thumbnail.is-hidden {
  opacity: 0;
}

.work-card-content {
  padding-top: 18px;
}

.work-categories {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.work-categories span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #397f9a;
  border: 1px solid var(--line);
  padding: 5px 8px;
}

.work-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--navy);
}

.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.external {
  display: inline-block;
  margin-top: 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #397f9a;
  border-bottom: 1px solid #91c2d3;
  padding-bottom: 3px;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 54px 0;
  background: #132631;
  color: #f5fbfd;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.smalllinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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


/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

  .wrap {
    width: min(100% - 30px, var(--max));
  }

  .header .wrap {
    height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    padding: 24px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a.active {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero {
    min-height: 66vh;
  }

  .hero-bg {
    inset: 14px;
  }

  .hero-logo {
    font-size: clamp(100px, 38vw, 180px);
  }

  .section {
    padding: 76px 0;
  }

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

  .portrait {
    max-width: 300px;
  }

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

  .title {
    margin-bottom: 32px;
  }

  .status {
    padding: 34px 25px;
  }

  .page-head {
    padding: 80px 0 45px;
  }

  .filters {
    margin-bottom: 36px;
  }

  .footer-row {
    flex-direction: column;
  }
}

/* =========================
   SERVICE
========================= */

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 40px;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #428ca8;
  padding-top: 7px;
}

.service-content {
  max-width: 800px;
}

.service-content .eyebrow {
  margin-bottom: 14px;
}

.service-content h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.service-content p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.service-content ul {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.service-content li {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
}


/* =========================
   REQUEST FLOW
========================= */

.flow-list {
  border-top: 1px solid var(--line);
}

.flow-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 35px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.flow-number {
  font-size: 11px;
  font-weight: 700;
  color: #428ca8;
  letter-spacing: 0.12em;
  padding-top: 5px;
}

.flow-item h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.flow-item p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}


/* =========================
   SERVICE MOBILE
========================= */

@media (max-width: 760px) {

  .service-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 40px 0;
  }

  .service-number {
    padding-top: 0;
  }

  .service-content h2 {
    line-height: 1.05;
  }

  .flow-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }

}

/* =========================
   PRICE
========================= */

.price-list {
  margin-top: 55px;
  border-top: 1px solid var(--line);
}

.price-group {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.price-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 25px;
  align-items: start;
  margin-bottom: 28px;
}

.price-number {
  font-size: 11px;
  font-weight: 700;
  color: #428ca8;
  letter-spacing: 0.12em;
  padding-top: 5px;
}

.price-category {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #428ca8;
  margin-bottom: 9px;
}

.price-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid #dceaf0;
  color: var(--navy);
  font-size: 14px;
}

.price-row strong {
  font-size: 13px;
  color: #397f9a;
  text-align: right;
}

.price-note {
  margin-top: 25px;
  padding: 22px 25px;
  background: var(--blue2);
  border: 1px solid var(--line);
}

.price-note p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}


/* =========================
   PRICE MOBILE
========================= */

@media (max-width: 760px) {

  .price-heading {
    grid-template-columns: 45px 1fr;
    gap: 15px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .price-row strong {
    text-align: left;
  }

  .price-note {
    padding: 18px;
  }

}

/* =========================
   SERVICE TABS
========================= */

.service-tabs {
  width: 100%;
}


/* =========================
   TAB BUTTONS
========================= */

.service-tab-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 0;
}

.service-tab-button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 20px 15px;
  min-height: 68px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.service-tab-button:hover {
  background: var(--blue2);
}

.service-tab-button.active {
  background: var(--navy);
  color: #fff;
}


/* =========================
   TAB PANEL
========================= */

.service-panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 60px 0 20px;
}

.service-panel[hidden] {
  display: none;
}

.service-panel-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #428ca8;
  padding-top: 7px;
}

.service-panel-content {
  max-width: 850px;
}

.service-panel-content .eyebrow {
  margin-bottom: 15px;
}

.service-panel-content h2 {
  margin: 0 0 25px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.service-description {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}


/* =========================
   SERVICE DETAIL
========================= */

.service-detail {
  margin-top: 45px;
}

.service-detail h3,
.service-price h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.service-detail ul {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 700;
}


/* =========================
   SERVICE PRICE
========================= */

.service-price {
  margin-top: 45px;
}

.service-price-list {
  border-top: 1px solid var(--line);
}

.service-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
}

.service-price-row strong {
  color: #397f9a;
  font-size: 13px;
  text-align: right;
}


/* =========================
   SERVICE NOTE
========================= */

.service-note {
  margin-top: 22px;
  padding: 17px 20px;
  background: var(--blue2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}


/* =========================
   SERVICE MOBILE
========================= */

@media (max-width: 760px) {

  .service-tab-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-tab-button {
    min-height: 58px;
    padding: 15px 8px;
    font-size: 10px;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 40px 0 10px;
  }

  .service-panel-number {
    padding-top: 0;
  }

  .service-panel-content h2 {
    line-height: 1.05;
  }

  .service-price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .service-price-row strong {
    text-align: left;
  }

  .service-note {
    padding: 15px 17px;
  }

}

/* =========================
   REQUEST FLOW DIAGRAM
========================= */

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin-top: 55px;
}

.flow-step {
  min-width: 0;
  padding: 28px 25px;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}

.flow-step-number {
  margin-bottom: 18px;
  color: #428ca8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.flow-step-content h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.flow-step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78b4c9;
  font-size: 24px;
  font-weight: 300;
}


/* =========================
   REQUEST FLOW MOBILE
========================= */

@media (max-width: 760px) {

  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  .flow-step {
    padding: 25px 22px;
  }

  .flow-arrow {
    height: 38px;
    font-size: 22px;
    transform: rotate(90deg);
  }

}

/* =========================
   CONTACT
========================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 90px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 120px;
}

.contact-intro h2 {
  margin: 15px 0 25px;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-intro p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}


/* =========================
   CONTACT FORM
========================= */

.contact-form-wrap {
  width: 100%;
}

#contact-form {
  border-top: 1px solid var(--line);
}

.contact-field {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.contact-field label {
  display: block;
  margin-bottom: 11px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-field label span {
  margin-left: 4px;
  color: #428ca8;
  font-size: 10px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease;
}

.contact-field input,
.contact-field select {
  height: 48px;
  padding: 0 14px;
}

.contact-field textarea {
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  line-height: 1.8;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a8b7bd;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #428ca8;
}


/* =========================
   CONTACT SUBMIT
========================= */

.contact-submit {
  display: flex;
  justify-content: flex-end;
  padding-top: 30px;
}

.contact-submit .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 180px;
}

.contact-result {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}


/* =========================
   CONTACT MOBILE
========================= */

@media (max-width: 760px) {

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-intro {
    position: static;
  }

  .contact-intro h2 {
    font-size: 42px;
  }

  .contact-field {
    padding: 21px 0;
  }

  .contact-field textarea {
    min-height: 180px;
  }

  .contact-submit {
    justify-content: stretch;
  }

  .contact-submit .btn {
    width: 100%;
  }

}

/* =========================
   CONTACT VALIDATION
========================= */

.contact-field input.is-error,
.contact-field select.is-error,
.contact-field textarea.is-error {
  border-color: #c94b4b;
}

.field-error {
  margin: 8px 0 0;
  color: #c94b4b;
  font-size: 11px;
  line-height: 1.6;
}

.contact-field input.is-error:focus,
.contact-field select.is-error:focus,
.contact-field textarea.is-error:focus {
  border-color: #c94b4b;
}

/* =========================
   HERO BACKGROUND VIDEO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 動画の上に表示 */
.hero-logo {
  position: relative;
  z-index: 2;
}

/* 動画を少し落ち着かせるオーバーレイ */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 32, 0.12);
  pointer-events: none;
}

/* =========================
   TOP IMAGE SIZE
========================= */

/* HERO中央ロゴ */
/* HERO LOGO POSITION */
.hero-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-logo img {
  display: block;
  width: min(500px, 75vw);
  height: auto;
  object-fit: contain;
}

/* ABOUT プロフィール画像 */
.about .portrait {
  overflow: hidden;
}

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

/* HEADER LOGO IMAGE */
.header-logo-image {
  display: block;
  width: auto;
  height: 160px;
  object-fit: contain;
}

/* REQUEST TEXT */
.request-copy {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =========================
   SERVICE FLOW - 5 STEPS
========================= */

.flow-diagram {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.flow-step {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.flow-step-content {
  min-width: 0;
}

.flow-step-content p {
  overflow-wrap: anywhere;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* MOBILE */
@media (max-width: 768px) {

  .flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .flow-step {
    width: 100%;
  }

  .flow-arrow {
    padding: 14px 0;
    transform: rotate(90deg);
  }

}

@media (max-width: 768px) {
  .header-logo-image {
    transform: translateX(-30px);
  }
}

/* Turnstile */
.cf-turnstile {
  margin-top: 16px;
}

/* =========================
   INST
========================= */

.inst-section {
  padding-top: 40px;
}

.inst-section .title {
  margin-bottom: 16px;
}

.inst-section .copy {
  margin-bottom: 40px;
}


/* INST CARD */

.inst-card {
  display: block;
  width: 100%;
  padding: 40px;
  border: 1px solid rgba(15, 30, 45, 0.16);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.inst-card-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.inst-card-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.inst-card-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.inst-card-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.7;
}

.inst-card-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}


/* HOVER */

@media (hover: hover) {

  .inst-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 30, 45, 0.32);
    box-shadow: 0 12px 30px rgba(15, 30, 45, 0.08);
  }

}


/* MOBILE */

@media (max-width: 768px) {

  .inst-section {
    padding-top: 20px;
  }

  .inst-section .copy {
    margin-bottom: 28px;
  }

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

  .inst-card-content {
    display: block;
  }

  .inst-card-title {
    font-size: 24px;
  }

  .inst-card-link {
    margin-top: 28px;
  }

}