/*
Theme Name: 増渕 敦 Portfolio
Author: 増渕 敦
Description: 静的ポートフォリオと同じ見た目のクラシックテーマ。
Version: 1.0.0
Text Domain: masubuchi-portfolio
*/

:root {
  /* ゆうさんの植木屋さん寄り：明るいリーフグリーン */
  /* 上＝白寄り → 下＝Contact直前の緑へ滑らかに */
  --bg: #fcfdfb;
  --bg-soft: #f3f8ef;
  --bg-mid: #dcead1;
  --bg-deep: #b7d4a4;
  --bg-end: #8fbf78;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #333333;
  --brand: #399d26;
  --brand-deep: #2d7a1e;
  --brand-bright: #45be2e;
  --brand-muted: #4f8f3a;
  --line: rgba(57, 157, 38, 0.18);
  --accent-wash: rgba(57, 157, 38, 0.1);
  --shell: 76rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  /* 緑グラデ上：中＝黒、ふち＝背景に馴染む灰緑（ぼかし影なし） */
  --ink-stroke: #d7e4cf;
  --ink-stroke-width: 0.06em;
  --ink-stroke-width-deep: 0.08em;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  color: #111111;
  background: #cfd4d0;
}

::-moz-selection {
  color: #111111;
  background: #cfd4d0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-soft) 22%,
    var(--bg-mid) 52%,
    var(--bg-deep) 78%,
    var(--bg-end) 100%
  );
  line-height: 1.7;
  font-size: 1rem;
}

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

a {
  color: var(--ink);
}

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  max-width: 100%;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-deep);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: none;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.04em;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 0;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem var(--gutter) 1rem;
  z-index: 60;
}

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

.site-nav a {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #fff;
  opacity: 0.8;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 1.15rem;
  height: 0.85rem;
  position: relative;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  gap: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border-bottom: none;
    padding: 0;
  }

  .site-nav a {
    padding: 0.25rem 0;
    border-bottom: none;
  }
}

.hero {
  padding: 1.5rem 0 0;
  border-bottom: none;
}

.hero-box {
  background: #e6f2ea;
  border: 1px solid rgba(57, 157, 38, 0.22);
  border-radius: 0.6rem;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-stage::before {
  content: "";
  grid-area: 1 / 1;
  display: block;
  padding-top: calc(1536 / 2752 * 100%);
  pointer-events: none;
}

.hero-photo {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  align-self: stretch;
  justify-self: stretch;
  z-index: 0;
}

.hero-copy {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  text-align: center;
  padding: 1.75rem 1.25rem 1.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  overflow-wrap: break-word;
  color: #1f3d18;
  -webkit-text-fill-color: #1f3d18;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-copy h1::after {
  content: none;
}

.hero-copy .hero-lead {
  margin: 0 auto;
  max-width: 100%;
  color: #3a4a38;
  -webkit-text-fill-color: #3a4a38;
  -webkit-text-stroke: 0;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 2;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.hero-copy .hero-lead:first-of-type {
  margin-top: 1.25rem;
}

.hero-copy .hero-lead + .hero-lead {
  margin-top: 0.6rem;
}

.hero-copy .hero-lead:last-of-type {
  margin-bottom: 0;
}

.hero-copy .text-keep {
  white-space: normal;
}

.hero-copy .phrase-keep {
  white-space: nowrap;
}

.hero-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-top: 1rem;
  box-sizing: border-box;
  pointer-events: auto;
}

.hero-cta-inner .btn {
  pointer-events: auto;
  min-height: 3.25rem;
  padding: 0.7rem 1.65rem;
  font-size: 1.05rem;
  border-radius: 0.45rem;
}

.hero-stage .btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  color: #1f3d18;
  -webkit-text-fill-color: #1f3d18;
  border-color: rgba(31, 61, 24, 0.32);
}

.hero-stage .btn-ghost:hover {
  background: #fff;
}

@media (max-width: 40rem) {
  .hero-copy .phrase-keep {
    white-space: normal;
  }

  .hero-cta-inner .btn {
    min-height: 2.85rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 48rem) {
  .hero-copy {
    padding: 2.5rem 2rem 2rem;
  }

  .hero-copy h1 {
    font-size: 3.15rem;
  }

  .hero-copy .hero-lead {
    font-size: 1.05rem;
    max-width: 38rem;
  }

  .hero-copy .hero-lead:first-of-type {
    margin-top: 1.35rem;
  }

  .hero-copy .hero-lead + .hero-lead {
    margin-top: 0.85rem;
  }

  .hero-cta-inner {
    margin-top: 0;
    padding-top: 1.25rem;
  }
}

.hero-value-list {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1rem 1.25rem;
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: transparent;
}

.hero-value-list li {
  margin: 0;
  text-align: center;
  padding: 0.35rem 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.hero-value-title {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f3d18;
  -webkit-text-fill-color: #1f3d18;
  -webkit-text-stroke: 0;
  overflow-wrap: anywhere;
}

.hero-value-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.45rem auto 0;
  background: #1f3d18;
}

.hero-value-list p:last-child {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #1f3d18;
  -webkit-text-stroke: 0;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

@media (min-width: 60rem) {
  .hero-value-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 1.75rem 1.25rem 1.35rem;
  }

  .hero-value-list li + li {
    border-left: 1px solid rgba(31, 61, 24, 0.22);
  }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.8vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: #111;
  max-width: none;
}

.hero-lead,
.section-lead,
.contact-band-lead,
.work-item p,
.work-item-copy p,
.case-lead,
.case-block p,
.case-block li,
.case-point-text,
.case-cta,
.shot-note,
.meta-grid dd {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.text-keep {
  white-space: nowrap;
}

.hero-lead {
  margin: 0;
  max-width: 38rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-lead + .hero-lead {
  margin-top: 0.35rem;
}

.hero-lead:last-of-type {
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 4px 12px rgba(57, 157, 38, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--accent-wash);
  transform: translateY(-1px);
}

.case .btn-ghost {
  text-shadow: none;
  -webkit-text-stroke: 0;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(17, 17, 17, 0.28);
}

.case .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary.btn-disabled,
.btn-primary[aria-disabled="true"] {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.btn-ghost.btn-disabled:hover,
.btn-ghost[aria-disabled="true"]:hover {
  background: transparent;
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: none;
}

.about {
  padding-bottom: 1.25rem;
}

.works {
  padding-top: 1.25rem;
}

/* 緑背景に乗る本文・見出し（白カード内は対象外） */
.section > .shell > .section-label,
.section > .shell > h2,
.section > .shell > .profile-name,
.section > .shell > .section-lead,
.case-block h2,
.case-block p,
.case-block li,
.case-point-label,
.case-point-text,
.case-cta,
.case-nav a,
.shot-card figcaption {
  color: #111111;
  -webkit-text-fill-color: #111111;
  -webkit-text-stroke: var(--ink-stroke-width) var(--ink-stroke);
  paint-order: stroke fill;
  text-shadow: none;
  font-weight: 500;
}

.section > .shell > h2,
.section > .shell > .profile-name,
.case-block h2,
.shot-card figcaption,
.section-label,
.case-point-label,
.case-nav a {
  font-weight: 700;
}

.works > .shell > .section-label,
.works > .shell > h2,
.works > .shell > .section-lead,
.case-block h2,
.case-block p,
.case-block li,
.case-point-label,
.case-point-text,
.case-cta,
.case-nav a,
.shot-card figcaption {
  -webkit-text-stroke-width: var(--ink-stroke-width-deep);
}

.crumb a,
.case-nav a {
  color: var(--brand-deep);
  -webkit-text-fill-color: var(--brand-deep);
  -webkit-text-stroke: var(--ink-stroke-width-deep) var(--ink-stroke);
  paint-order: stroke fill;
  text-shadow: none;
}

.crumb a:hover,
.case-nav a:hover {
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  font-weight: 700;
}

.section h2,
.case h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: #111111;
}

.section h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.55rem;
  background: var(--brand-deep);
}

.profile-name {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #111111;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: none;
  color: var(--ink);
}

.case-lead {
  margin: 0;
  max-width: 50rem;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.85;
}

.case-lead + .case-lead {
  margin-top: 0.65rem;
}

.case-lead:last-of-type {
  margin-bottom: 2.5rem;
}

.works .section-lead {
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}

.works .text-keep {
  white-space: normal;
}

.skill-cards {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .skill-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .skill-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.skill-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(57, 157, 38, 0.22);
  border-radius: 0.6rem;
  background: #111;
}

.skill-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.accordion-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.accordion-nested {
  margin-top: 1.25rem;
}

.accordion-nested summary {
  font-size: 1rem;
  padding: 0.95rem 1.15rem;
}

.accordion {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0.6rem;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.accordion::selection,
.accordion *::selection,
.accordion::-moz-selection,
.accordion *::-moz-selection {
  color: #111111;
  background: #cfd4d0;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.accordion summary::-webkit-details-marker,
.accordion summary::marker {
  display: none;
  content: "";
}

.accordion summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.32rem 0 0.32rem 0.48rem;
  border-color: transparent transparent transparent var(--ink);
  transform: translateY(0.02rem);
}

.accordion[open] summary::before {
  border-width: 0.48rem 0.32rem 0 0.32rem;
  border-color: var(--ink) transparent transparent transparent;
}

.accordion-body {
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.offer-lead {
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: offer;
  display: grid;
  gap: 0.85rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 2.5rem;
  }
}

.offer-list li {
  counter-increment: offer;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.45rem;
  background: rgba(247, 251, 244, 0.65);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: normal;
  box-sizing: border-box;
  min-width: 0;
}

.offer-list li::before {
  content: counter(offer);
  flex: 0 0 1.5rem;
  width: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--brand-deep);
  text-align: right;
}

.offer-subhead {
  margin: 1.35rem 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.offer-lead + .offer-subhead {
  margin-top: 0;
}

.price-list {
  margin-bottom: 0.25rem;
}

.price-main {
  margin: 0 0 0.35rem;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid var(--line);
  background: var(--accent-wash);
}

.price-main-amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-deep);
}

.price-main-note {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

.price-main-action {
  margin: 0.85rem 0 0;
}

.price-main-link {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.price-main-link:hover,
.price-main-link:focus-visible {
  background: var(--surface);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.price-main .offer-subhead {
  margin-top: 1.15rem;
}

.price-list-plus {
  counter-reset: offer 3;
}

.price-addon li::before {
  content: "";
  width: 0;
  flex: 0 0 0;
}

.price-item,
.offer-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.price-amount,
.offer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.price-note,
.offer-note {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

.offer-foot {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.offer-foot + .offer-foot {
  margin-top: 0.65rem;
}

.accordion-jumps {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.accordion-jumps a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.faq-list {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.faq-list > div {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-list dt {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.faq-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.75;
}

.faq-list a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.value-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .value-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
  }
}

.value-list li {
  min-width: 0;
  box-sizing: border-box;
  padding: 1rem 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.45rem;
  background: rgba(247, 251, 244, 0.65);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  font-size: 0.95rem;
}

.value-mark {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-weight: 700;
}

.strength-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.strength-list li {
  display: grid;
  gap: 0.25rem;
}

.strength-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.strength-text {
  display: block;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  font-size: 0.95rem;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 60rem) {
  .about-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
  }
}

.about-points li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}


.about-points strong {
  font-family: var(--font-display);
  color: var(--ink);
}

.about-points span {
  color: var(--muted);
}

.note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

@media (min-width: 40rem) {
  .work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .work-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.work-item {
  min-width: 0;
  max-width: 100%;
}

.work-item a,
.work-item-pending {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(57, 157, 38, 0.22);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.22s ease;
}

.work-item a:hover {
  border-color: rgba(57, 157, 38, 0.42);
  box-shadow: 0 8px 24px rgba(57, 157, 38, 0.12);
  transform: translateY(-4px);
}

.work-item a:hover h3 {
  opacity: 0.7;
}

.work-thumb {
  display: block;
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.work-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.25rem;
}

.work-item-feature a {
  padding-top: 0;
  padding-bottom: 0;
}

.work-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.work-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.work-item-copy {
  flex: 1;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.work-item-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.65;
  word-break: normal;
  overflow-wrap: anywhere;
}

.work-item p {
  margin: 0 0 0.75rem;
  color: var(--ink);
  max-width: none;
  flex: 1;
}

.work-item .text-keep {
  white-space: normal;
}

.work-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 2.4rem;
  margin-top: auto;
  padding: 0.4rem 1.1rem;
  border-radius: 0.35rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.work-item a:hover .work-link {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.work-item-muted {
  opacity: 0.72;
}

.contact-band {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: none;
  background: linear-gradient(
    180deg,
    var(--bg-end) 0%,
    var(--brand) 38%,
    var(--brand-deep) 100%
  );
  color: #fff;
}

.contact-band-inner {
  max-width: none;
  text-align: center;
}

.contact-band .section-label {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.contact-band h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: #fff;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.contact-band h2::after {
  content: none;
}

.contact-band-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.75;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.contact-band-lead + .contact-band-lead {
  margin-top: 0.35rem;
}

.contact-band-lead:last-of-type {
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(17, 17, 17, 0.14);
}

.contact-form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-form .req {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 0.35rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(57, 157, 38, 0.45);
  outline-offset: 1px;
  border-color: var(--brand);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-form-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
  line-break: strict;
}

.contact-form-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  background: var(--brand-deep);
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}

.case {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  /* 下の濃い緑を少し浅く（本文が続くため） */
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 50%,
    rgba(243, 248, 239, 0.35) 78%,
    rgba(243, 248, 239, 0.62) 100%
  );
}

.case-intro {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0 0 0;
  padding: 0 0 2.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
}

.case-intro .case-lead {
  max-width: 60rem;
}

.case-intro .meta-grid {
  margin: 2rem 0 1.5rem;
  max-width: 100%;
}

.case-intro .shot-note {
  margin: 0;
  max-width: none;
  text-align: left;
  border-top: none;
  padding-top: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

.case-intro,
.case-intro .crumb,
.case-intro .crumb a,
.case-intro .section-label,
.case-intro h1,
.case-intro .case-lead,
.case-intro .shot-note {
  color: #111111;
  -webkit-text-fill-color: #111111;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.case-intro .crumb a {
  color: var(--brand-deep);
  -webkit-text-fill-color: var(--brand-deep);
}

.case-intro h1::after {
  content: none;
}

.case-zigzag {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin: 0;
  padding: 2.75rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
}

.case-zigzag:last-of-type {
  margin-bottom: 0;
  border-bottom: none;
}

.case-zigzag-copy.case-block {
  margin-bottom: 0;
  max-width: none;
  padding-top: 0;
  min-width: 0;
  overflow: hidden;
}

.case-zigzag-copy,
.case-zigzag-copy p,
.case-zigzag-copy li,
.case-zigzag-copy .case-point-text {
  word-break: normal;
  line-break: auto;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

.case-zigzag-shot {
  margin: 0;
  justify-self: center;
}

.case-zigzag-shot .phone-frame {
  max-width: 16rem;
}

@media (min-width: 48rem) {
  .case-zigzag {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 0;
    row-gap: 0;
    align-items: stretch;
  }

  .case-zigzag-media-first {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .case-zigzag-copy,
  .case-zigzag-shot {
    padding-block: 0.35rem;
  }

  .case-zigzag-text-first .case-zigzag-copy {
    padding-right: 2.25rem;
    border-right: 1px solid rgba(17, 17, 17, 0.28);
  }

  .case-zigzag-text-first .case-zigzag-shot {
    padding-left: 2.25rem;
  }

  .case-zigzag-media-first .case-zigzag-shot {
    padding-right: 2.25rem;
    border-right: 1px solid rgba(17, 17, 17, 0.28);
  }

  .case-zigzag-media-first .case-zigzag-copy {
    padding-left: 2.25rem;
    text-align: left;
  }

  .case-zigzag-media-first .case-block h2::after {
    margin-inline: 0;
  }

  .case-zigzag-shot {
    display: grid;
    align-content: center;
    justify-items: center;
  }
}

@media (max-width: 47.98rem) {
  .case-zigzag-text-first .case-zigzag-shot {
    order: -1;
  }

  .case-zigzag-shot .phone-frame {
    max-width: 15rem;
  }

  .case-zigzag-text-first .case-zigzag-shot,
  .case-zigzag-media-first .case-zigzag-shot {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  }
}

.crumb {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.crumb a {
  text-decoration: none;
}

.meta-grid {
  margin: 0 0 3rem;
  display: grid;
  gap: 0;
  padding: 0.45rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(57, 157, 38, 0.22);
  border-radius: 0.75rem;
  max-width: min(50rem, 100%);
  min-width: 0;
  box-sizing: border-box;
}

.meta-grid > div {
  padding: 1.05rem 0;
  min-width: 0;
}

.meta-grid > div + div {
  border-top: 1px solid rgba(57, 157, 38, 0.18);
}

.meta-grid dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-deep);
  margin: 0 0 0.35rem;
}

.meta-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  word-break: normal;
  overflow-wrap: anywhere;
}

.meta-grid .text-keep {
  white-space: normal;
}

.meta-grid a {
  color: var(--ink);
  font-weight: 700;
}

.meta-grid a:hover {
  color: var(--brand-deep);
}

.shot-placeholder {
  margin: 0 0 2.5rem;
  min-height: 14rem;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(57, 157, 38, 0.05) 10px,
      rgba(57, 157, 38, 0.05) 20px
    ),
    var(--surface);
  border: 1px dashed var(--line);
}

.shot-gallery .shot-placeholder {
  margin: 0;
  min-height: 12rem;
  border-radius: 0.75rem;
}

.shot-gallery .shot-card-feature.shot-placeholder {
  min-height: 14rem;
  max-width: 18rem;
  margin-inline: auto;
  width: 100%;
}

.shot-gallery-pair .shot-placeholder {
  max-width: 14rem;
  margin-inline: auto;
  width: 100%;
}

.shot-placeholder figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.shot-gallery {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 3.25rem;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.case-block .work-links {
  margin: 1rem 0 1.5rem;
}

.shot-note {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 157, 38, 0.22);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.75;
  text-align: center;
}

.shot-note + .shot-note {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
}

.shot-card {
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.phone-frame {
  box-sizing: border-box;
  width: 100%;
  max-width: 15rem;
  margin-inline: auto;
  padding: 0.28rem;
  border-radius: 1.4rem;
  background: #1a1a1a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 14px 32px rgba(31, 40, 64, 0.18);
}

.shot-card-feature .phone-frame {
  max-width: 17rem;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #fff;
  line-height: 0;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.phone-frame-empty .phone-screen {
  aspect-ratio: 9 / 19.5;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(57, 157, 38, 0.06) 10px,
      rgba(57, 157, 38, 0.06) 20px
    ),
    #f4f7f5;
}

.shot-card img.is-zoomable {
  cursor: pointer;
}

.shot-card img.is-zoomable:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  max-height: min(92vh, 56rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-stage {
  overflow: auto;
  min-height: 12rem;
  max-height: calc(92vh - 7rem);
  border-radius: 0.5rem;
  background: #f0f3f1;
  -webkit-overflow-scrolling: touch;
}

.lightbox-canvas {
  box-sizing: border-box;
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  padding: 18vh 18vw;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.lightbox-image {
  display: block;
  max-width: min(100%, 40rem);
  max-height: calc(92vh - 10rem);
  width: auto;
  height: auto;
}

.lightbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox-hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.lightbox-toolbar button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}

.lightbox-zoom-label {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

body.lightbox-open {
  overflow: hidden;
}

.shot-card figcaption {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.shot-card figcaption::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.45rem auto 0;
  background: var(--brand-deep);
}

.shot-click-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

.shot-gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  justify-items: center;
}

@media (max-width: 40rem) {
  .shot-gallery-pair {
    grid-template-columns: 1fr;
  }

  .phone-frame,
  .shot-card-feature .phone-frame {
    max-width: 16rem;
  }
}

.case-block {
  margin-bottom: 3.5rem;
  padding-top: 0.5rem;
  max-width: 50rem;
  font-size: 1.125rem;
  line-height: 1.85;
}

.case-block h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
}

.case-block h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--brand-deep);
}

.case-block p,
.case-block ul,
.case-block ol {
  margin: 0;
  color: var(--ink);
}

.case-block p + p {
  margin-top: 1rem;
}

.case-block ul {
  padding-left: 1.35rem;
}

.case-block li + li {
  margin-top: 0.7rem;
}

.case-points {
  padding-left: 1.45rem;
  display: grid;
  gap: 1.25rem;
}

.case-points li {
  margin: 0;
  padding-left: 0.15rem;
  line-height: 1.8;
}

.case-point-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-weight: 700;
}

.case-point-text {
  color: var(--ink);
}

.case-cta {
  margin: 1.75rem 0 0;
  color: var(--ink);
  line-height: 1.85;
}

.case-block-try {
  max-width: none;
  margin-inline: 0;
  text-align: left;
  font-size: 1.125rem;
}

.case-block-try h2::after {
  margin-inline: 0;
}

.case-block-try .work-links-try {
  justify-content: flex-start;
  margin: 1.35rem 0 2rem;
  gap: 0.75rem 0.85rem;
}

.case-block-try .work-links-try .btn {
  min-height: 3rem;
  padding: 0.65rem 1.35rem;
  font-size: 1.05rem;
}

.case-block-try .case-points {
  max-width: none;
  margin-inline: 0;
  text-align: left;
  padding-left: 1.45rem;
}

.case-block-try .case-cta {
  text-align: left;
}

.case-cta a {
  display: inline;
  padding: 0;
  margin: 0;
  font-weight: 700;
  color: #111111;
  -webkit-text-fill-color: #111111;
  -webkit-text-stroke: 0;
  text-shadow: none;
  text-decoration: underline;
  text-decoration-color: #111111;
  text-underline-offset: 0.18em;
  background: transparent;
  cursor: pointer;
}

.case-cta a:hover {
  color: #111111;
  -webkit-text-fill-color: #111111;
  opacity: 0.75;
}

.case-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #111111;
  font-weight: 700;
}

.case-nav a {
  text-decoration: none;
  cursor: pointer;
}

/* Work card hover: lift effect is handled in the base .work-item a rule above */

/* ============================================================
   Animations（.js クラスがあるときだけ有効 → JS無効時は全部表示）
   ============================================================ */

@keyframes heroFadeUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy {
    animation: heroFadeUp 0.7s 0.08s ease both;
  }
}

/* Contact Form 7 を既存フォームの見た目に合わせる */
.wpcf7 form.wpcf7-form,
.contact-form .wpcf7-form {
  margin: 0;
}

.contact-form .wpcf7-form > p {
  margin: 0;
}

.contact-form .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.contact-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input.wpcf7-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-form .wpcf7-spinner {
  display: none;
}
