:root {
  --ink: #242334;
  --muted: #6f6b7d;
  --accent: #7660b5;
  --accent-deep: #654ca9;
  --line: #e9e6ef;
  --soft: #faf8fd;
  --soft-2: #f6f2fb;
  --white: #fff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.8;
}

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

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

.inner {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}


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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(118, 96, 181, 0.12);
  box-shadow: 0 4px 18px rgba(36, 35, 52, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.global-nav {
  display: flex;
  gap: 46px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.global-nav a {
  position: relative;
  padding: 27px 0;
}

.global-nav a:hover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.menu-button {
  display: none;
}


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

.hero {
  padding: 70px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.hero h1 span {
  color: var(--accent-deep);
}

.hero-text {
  margin: 30px 0 28px;
  font-size: 15px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 50%;
  height: auto;
  margin: 0 auto;
}


/* ========================================
   RESULTS
======================================== */

.results {
  background: linear-gradient(180deg, #fbf9fd, #f8f5fb);
  border-top: 1px solid #f2edf7;
  border-bottom: 1px solid #f2edf7;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.result-item {
  min-height: 170px;
  padding: 28px 20px 24px;
  text-align: center;
  border-right: 1px solid #e8e2ef;
  border-bottom: 1px solid #e8e2ef;
}

.result-item:nth-child(3n) {
  border-right: 0;
}

.result-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.result-icon {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 27px;
  line-height: 1;
}

.result-item strong {
  display: block;
  color: var(--accent-deep);
  font-size: 26px;
  line-height: 1.2;
}

.result-item span {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 11px;
}

.result-item p {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.results-link {
  padding: 18px 0 22px;
  text-align: right;
}

.results-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.results-link a:hover {
  opacity: 0.7;
}


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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.section-title > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.section-title small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}


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

.about-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 18px 0 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 60px;
}

.about-copy {
  font-size: 14px;
}

.about-copy p {
  margin: 0 0 10px;
}

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

.about-meta > div {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.about-meta h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.about-meta ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}

.about-qualification {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #e2e5e9;
  color: #68717a;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.about-qualification-title {
  color: #2f353b;
  font-weight: 600;
}

.about-qualification span:not(:first-child) {
  position: relative;
}

.about-qualification span:not(:first-child):not(:nth-child(2))::before {
  content: "/";
  margin-right: 24px;
  color: #b0b6bc;
}


/* ========================================
   STRENGTHS
======================================== */

.strength-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.strength-icon {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.strength-grid h3 {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.strength-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}


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

.works-section {
  background: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.case-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.case-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.case-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding-top: 5px;
  background: var(--soft-2);
}

.case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

.case-body {
  padding: 18px 16px 16px;
}

.case-no {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.case-body h3 {
  margin: 8px 0 12px;
  font-size: 15px;
  line-height: 1.55;
}

.case-body p {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.case-card-link .case-more {
  display: inline-block;
  color: #654ca9 !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

@media (hover: hover) {
  .case-card-link:hover .case-card {
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(39, 34, 53, 0.08);
    transform: translateY(-2px);
  }

  .case-card-link:hover h3 {
    color: var(--accent-deep);
  }

  .case-card-link:hover .case-image img {
    transform: scale(1.015);
    opacity: 0.95;
  }

  .case-card-link:hover .case-more {
    color: #7660b5 !important;
    transform: translateX(4px);
  }
}

.case-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* ========================================
   CASE 04 / BEFORE AFTER
======================================== */

.case-result-primary {
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-result-primary small {
  margin-right: 0.08em;
  font-size: 0.48em;
  font-weight: inherit;
  vertical-align: top;
}

.case-ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.case-ba-column {
  min-width: 0;
  padding: 32px;
  border: 1px solid rgba(74, 52, 96, 0.14);
  border-radius: 18px;
  background: #fff;
}

.case-ba-before {
  background: #f7f5f8;
}

.case-ba-after {
  background: #f4eff8;
  border-color: rgba(116, 82, 145, 0.22);
}

.case-ba-heading {
  margin: 0 0 28px;
  color: #72568b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.case-ba-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.case-ba-item {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid rgba(74, 52, 96, 0.12);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.case-ba-item > span {
  display: block;
  margin-bottom: 8px;
  color: #8d77a2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.case-ba-item strong {
  display: block;
  color: #2c2730;
  font-size: 18px;
  line-height: 1.5;
}

.case-ba-item p {
  margin: 10px 0 0;
  color: #6d6670;
  font-size: 13px;
  line-height: 1.8;
}

.case-ba-arrow {
  display: block;
  margin: 8px 0;
  color: #9d89ae;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.case-ba-change {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-ba-change span {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #76558e;
  box-shadow: 0 8px 24px rgba(75, 48, 96, 0.18);
  color: #fff;
  font-size: 24px;
}

.case-ba-result {
  border-color: rgba(116, 82, 145, 0.34);
  background: #76558e;
}

.case-ba-result > span,
.case-ba-result strong,
.case-ba-result p {
  color: #fff;
}

.case-ba-result strong {
  font-size: 21px;
}


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

.contact {
  background: linear-gradient(180deg, #fff, #fbf9fd);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 50px;
}

.contact-inner p {
  margin: -12px 0 0;
  font-size: 13px;
}

.contact-box {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--soft-2);
  color: var(--ink);
}

.contact-icon {
  color: var(--accent);
  font-size: 30px;
}

.contact-box span {
  font-size: 12px;
}

.contact-box strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-deep);
  font-size: 20px;
}


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

.site-footer {
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-inner > div strong {
  font-size: 14px;
}

.footer-inner > div span {
  color: var(--muted);
  font-size: 9px;
}

.footer-inner nav {
  display: flex;
  gap: 30px;
  font-size: 9px;
}

.footer-inner small {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}


/* ========================================
   CASE DETAIL
======================================== */

/* CASE HERO */

.case-detail-hero {
  padding: 52px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fff 68%,
      var(--soft) 100%
    );
}

.case-back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

.case-back-link:hover {
  opacity: 0.6;
}

.case-detail-no {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.case-detail-title {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.case-detail-title > span {
  display: block;
}

.case-detail-lead {
  max-width: 760px;
  margin: 28px 0 44px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.case-detail-mainvisual {
  width: 80%;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--soft-2);
}

.case-detail-mainvisual img {
  width: 100%;
  height: auto;
}


/* CASE SECTION COMMON */

.case-detail-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.case-detail-soft {
  background: var(--soft);
}

.case-section-intro {
  max-width: 760px;
  margin: -8px 0 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.case-text-block {
  max-width: 880px;
  font-size: 14px;
  line-height: 2.1;
}

.case-text-block p {
  margin: 0 0 20px;
}

.case-text-block p:last-child {
  margin-bottom: 0;
}

.case-text-block-narrow {
  max-width: 760px;
  margin-top: 42px;
}


/* PROJECT OVERVIEW */

.case-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 52px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-overview-item {
  min-height: 140px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.case-overview-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-overview-item strong {
  display: block;
  color: var(--accent-deep);
  font-size: 24px;
  line-height: 1.4;
}

.case-overview-detail {
  max-width: 980px;
}

.case-overview-detail dl {
  margin: 0;
}

.case-overview-detail dl > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.case-overview-detail dl > div:last-child {
  border-bottom: 1px solid var(--line);
}

.case-overview-detail dt {
  font-size: 12px;
  font-weight: 700;
}

.case-overview-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}


/* SITE RESTRUCTURING */

.site-structure {
  margin-top: 48px;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--soft);
  text-align: center;
}

.site-structure-label {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-structure-before {
  max-width: 420px;
  margin: 0 auto;
}

.site-structure-box,
.site-structure-top {
  padding: 22px 20px;
  border: 1px solid #ddd6e8;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.site-structure-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 26px 0;
}

.site-structure-arrow span {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.site-structure-arrow small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.site-structure-after {
  max-width: 900px;
  margin: 0 auto;
}

.site-structure-top {
  max-width: 440px;
  margin: 0 auto;
  border-color: var(--accent);
  color: var(--accent-deep);
}

.site-structure-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.site-structure-branches .site-structure-box {
  position: relative;
}

.site-structure-common {
  background: #f8f4fc;
}

.site-structure-common small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}


/* MY ROLE / PROCESS */

.case-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-process-item {
  min-height: 220px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.case-process-item > span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-process-item h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.case-process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}


/* DIFFICULTIES & SOLUTIONS */

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

.case-challenge-card {
  padding: 34px 32px;
  border: 1px solid var(--line);
  background: #fff;
}

.case-challenge-no {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-challenge-card h3 {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.6;
}

.case-challenge-label {
  margin: 22px 0 7px !important;
  color: var(--accent-deep) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-challenge-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}


/* RESULT */

.case-detail-result {
  background: linear-gradient(180deg, #fbf9fd, #f7f3fb);
}

.case-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e4ddec;
  border-left: 1px solid #e4ddec;
}

.case-result-item {
  min-height: 190px;
  padding: 32px 22px;
  text-align: center;
  border-right: 1px solid #e4ddec;
  border-bottom: 1px solid #e4ddec;
  background: rgba(255, 255, 255, 0.55);
}

.case-result-item strong {
  display: block;
  color: var(--accent-deep);
  font-size: 30px;
  line-height: 1.3;
}

.case-result-item span {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-result-item p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}


/* VISUALS */

.case-visual-grid {
  width: 100%;
  max-width: 1100px;
  margin: 42px auto 0;
}

.case-visual-grid figure {
  margin: 0;
}

.case-visual-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--soft);
}

.case-visual-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}


/* CASE NAVIGATION */

.case-navigation {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.case-navigation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.case-navigation-back,
.case-navigation-next {
  min-height: 150px;
  padding: 34px 0;
}

.case-navigation-back {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.case-navigation-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

.case-navigation-next span {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-navigation-next strong {
  font-size: 15px;
  line-height: 1.7;
}

.case-navigation-back:hover,
.case-navigation-next:hover {
  opacity: 0.65;
}


/* ========================================
   SITE STRUCTURE - PC
======================================== */

@media (min-width: 901px) {
  .site-structure-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 52px;
    overflow: visible;
  }

  .site-structure-branches::before {
    content: "";
    position: absolute;
    top: -27px;
    right: 16.666%;
    left: 16.666%;
    height: 1px;
    background: #d9d2e4;
  }

  .site-structure-branches::after {
    content: "";
    position: absolute;
    top: -52px;
    left: 50%;
    width: 1px;
    height: 26px;
    background: #d9d2e4;
    transform: translateX(-50%);
  }

  .site-structure-branches .site-structure-box {
    position: relative;
    min-height: 82px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .site-structure-branches .site-structure-box::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 27px;
    background: #d9d2e4;
    transform: translateX(-50%);
    pointer-events: none;
  }
}


/* ========================================
   TABLET / SMARTPHONE
======================================== */

@media (max-width: 900px) {
  .inner {
    width: min(calc(100% - 36px), 680px);
  }


  /* HEADER */

  .header-inner {
    min-height: 68px;
  }

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

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
  }

  .menu-button {
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    width: 22px;
    height: 1px;
    display: block;
    background: var(--ink);
  }


  /* HERO */

  .hero {
    padding: 42px 0 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 0;
  }

  .hero-image {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 13px;
  }

  .outline-button {
    display: none;
  }


  /* RESULTS */

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .result-item {
    min-height: 158px;
    padding: 22px 10px 18px;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    background: #fff;
  }

  .result-item strong {
    font-size: 23px;
  }

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


  /* SECTION */

  .section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 24px;
    font-size: 18px;
  }


  /* ABOUT */

  .about-summary {
    display: grid;
    gap: 6px;
    margin: 14px 0 24px;
    font-size: 14px;
  }

  .about-summary span + span::before {
    content: none;
  }

  .about-qualification {
    display: grid;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .about-qualification-title {
    margin-bottom: 2px;
  }

  .about-qualification span:not(:first-child):not(:nth-child(2))::before {
    content: none;
  }


  /* STRENGTHS */

  .strength-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .strength-grid > div {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
  }

  .strength-grid > div:first-child {
    padding-top: 12px;
  }

  .strength-icon {
    margin-bottom: 20px;
    font-size: 36px;
  }

  .strength-grid h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
  }

  .strength-grid p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
  }


  /* WORKS */

  .case-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-card {
    width: 100%;
    display: block;
  }

  .case-image {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
  }

  .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .case-body {
    padding: 22px 20px 24px;
  }

  .case-body h3 {
    margin: 8px 0 12px;
    font-size: 18px;
    line-height: 1.6;
  }

  .case-body p {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.8;
  }


  /* CONTACT */

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-box {
    min-height: 90px;
  }

  .contact-box strong {
    font-size: 16px;
  }


  /* FOOTER */

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-inner > div {
    align-items: center;
  }

  .footer-inner nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-inner small {
    text-align: center;
  }


  /* CASE DETAIL */

  .case-detail-hero {
    padding: 30px 0 46px;
  }

  .case-back-link {
    margin-bottom: 30px;
  }

  .case-detail-no {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .case-detail-title {
    max-width: none;
    font-size: 28px;
    line-height: 1.5;
  }

  .case-detail-title > span {
    display: inline;
  }

  .case-detail-title > span:first-child::after {
    content: " ";
  }

  .case-detail-lead {
    margin: 22px 0 30px;
    font-size: 13px;
    line-height: 1.9;
  }

  .case-detail-mainvisual {
    width: 100%;
    max-width: none;
    padding: 4px;
  }

  .case-detail-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .case-section-intro {
    margin: -4px 0 30px;
    font-size: 13px;
  }

  .case-text-block {
    font-size: 13px;
    line-height: 2;
  }

  .case-text-block-narrow {
    margin-top: 30px;
  }


  /* OVERVIEW */

  .case-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 36px;
  }

  .case-overview-item {
    min-height: 118px;
    padding: 22px 18px;
  }

  .case-overview-item span {
    font-size: 12px;
  }

  .case-overview-item strong {
    font-size: 20px;
  }

  .case-overview-detail dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px 0;
  }

  .case-overview-detail dt {
    font-size: 11px;
  }

  .case-overview-detail dd {
    font-size: 12px;
  }


  /* SITE STRUCTURE */

  .site-structure {
    margin-top: 32px;
    padding: 30px 18px;
  }

  .site-structure-label {
    font-size: 13px;
  }

  .site-structure-box,
  .site-structure-top {
    min-height: 112px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1.6;
  }

  .site-structure-arrow small {
    font-size: 10px;
  }

  .site-structure-branches {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 46px;
    padding-left: 26px;
  }

  .site-structure-branches::before {
    content: "";
    position: absolute;
    top: -46px;
    left: 13px;
    width: calc(50% - 13px);
    height: 1px;
    background: #d9d2e4;
  }

  .site-structure-branches::after {
    content: "";
    position: absolute;
    top: -46px;
    left: 13px;
    width: 1px;
    height: 102px;
    background: #d9d2e4;
  }

  .site-structure-branches .site-structure-box {
    position: relative;
  }

  .site-structure-branches .site-structure-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -26px;
    width: 26px;
    height: 1px;
    background: #d9d2e4;
  }

  .site-structure-branches .site-structure-box:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -26px;
    width: 1px;
    height: 124px;
    background: #d9d2e4;
  }

  .site-structure-common small {
    margin-top: 4px;
    font-size: 11px;
  }


  /* PROCESS */

  .case-process {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .case-process-item {
    min-height: 0;
    padding: 24px 22px;
  }

  .case-process-item > span {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .case-process-item h3 {
    font-size: 16px;
  }


  /* DIFFICULTIES */

  .case-challenge-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-challenge-card {
    padding: 28px 22px;
  }

  .case-challenge-no {
    font-size: 13px;
  }

  .case-challenge-card h3 {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .case-challenge-label {
    font-size: 12px !important;
  }


  /* RESULT */

  .case-result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-result-item {
    min-height: 155px;
    padding: 26px 14px;
  }

  .case-result-item strong {
    font-size: 24px;
  }

  .case-result-item span {
    font-size: 12px;
  }

  .case-result-item p {
    margin-top: 14px;
    font-size: 10px;
  }


  /* VISUALS */

  .case-visual-grid {
    width: 100%;
    margin-top: 30px;
  }


  /* CASE NAVIGATION */

  .case-navigation-inner {
    grid-template-columns: 1fr;
  }

  .case-navigation-back,
  .case-navigation-next {
    min-height: 110px;
    padding: 28px 0;
  }

  .case-navigation-next {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-navigation-next span {
    font-size: 12px;
  }
}


/* ========================================
   CASE 04 / BEFORE AFTER SP
======================================== */

@media (max-width: 900px) {
  .case-ba {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }

  .case-ba-column {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .case-ba-heading {
    margin-bottom: 22px;
  }

  .case-ba-change {
    min-height: 42px;
  }

  .case-ba-change span {
    width: 44px;
    height: 44px;
    font-size: 0;
    transform: rotate(90deg);
  }

  .case-ba-change span::before {
    content: "→";
    font-size: 20px;
  }

  .case-ba-item {
    padding: 20px 16px 18px;
  }

  .case-ba-item strong {
    font-size: 17px;
  }

  .case-ba-item p {
    font-size: 12px;
  }

  .case-ba-result strong {
    font-size: 20px;
  }
}


/* ========================================
   SMALL SMARTPHONE
======================================== */

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .about-meta > div {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}


/* ========================================
   CASE 05
======================================== */

/* BACKGROUND：PROJECT GOALを1カラム表示 */

#background .case-challenge-grid {
  grid-template-columns: 1fr;
}


/* UPDATE TIMELINE */

.case-update-timeline {
  position: relative;
  max-width: 920px;
  margin: 44px auto 0;
}

.case-update-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25px;
  width: 1px;
  background: var(--line);
}

.case-update-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 26px;
}

.case-update-item:last-child {
  padding-bottom: 0;
}

.case-update-no {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--white);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.case-update-content {
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.case-update-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-update-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.6;
}

.case-update-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}


/* RESULT：CASE05のみ3項目 */

.case-result-grid.case-result-grid--three {
  grid-template-columns: repeat(3, 1fr);
}


/* VISUALS：画像全体をリンク化 */

.case-visual-link {
  display: block;
}

.case-visual-pc {
  margin: 0;
}

.case-visual-link img {
  transition:
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.case-visual-link:hover img {
  opacity: 0.9;
  box-shadow: 0 10px 28px rgba(36, 35, 52, 0.1);
}

.case-visual-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* ========================================
   CASE 05 - TABLET / SMARTPHONE
======================================== */

@media (max-width: 900px) {
  .case-update-timeline {
    margin-top: 30px;
  }

  .case-update-timeline::before {
    left: 19px;
  }

  .case-update-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 18px;
  }

  .case-update-no {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .case-update-content {
    padding: 20px 18px;
  }

  .case-update-label {
    font-size: 10px;
  }

  .case-update-content h3 {
    font-size: 15px;
  }

  .case-update-content p {
    font-size: 12px;
    line-height: 1.8;
  }

  .case-result-grid.case-result-grid--three {
    grid-template-columns: 1fr;
  }

  .case-result-grid--three .case-result-item {
    min-height: 0;
  }
}