/* =========================================================
   ビシバシ養生 LP
   外部ライブラリ・JavaScriptを使わないシンプルな構成です。
   ========================================================= */

:root {
  --blue: #0755c9;
  --blue-dark: #043b8e;
  --blue-soft: #edf4ff;
  --green: #4a9521;
  --green-dark: #337012;
  --green-soft: #f0f8eb;
  --ink: #15202b;
  --muted: #5d6873;
  --line: #dce3e8;
  --background: #ffffff;
  --background-soft: #f6f8f9;
  --container: 1160px;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(19, 49, 75, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.narrow {
  max-width: 900px;
}

.section {
  padding-block: 112px;
}

.section-tint {
  background: var(--background-soft);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 227, 232, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-logo-header img {
  height: 60px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #33404c;
  font-size: 0.88rem;
  font-weight: 700;
}

.global-nav a {
  position: relative;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
}



/* Header contact
   --------------------------------------------------------- */

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-tel {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: var(--blue-dark);
  line-height: 1.15;
}

.header-tel span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.header-tel strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.header-tel:hover strong,
.header-tel:focus-visible strong {
  color: var(--green-dark);
}

@media (max-width: 1120px) {
  .header-tel {
    display: none;
  }
}

/* Buttons
   --------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 28px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(7, 85, 201, 0.2);
  font-weight: 800;
  line-height: 1.35;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 16px 36px rgba(7, 85, 201, 0.28);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 9px 20px;
  font-size: 0.88rem;
  box-shadow: none;
}

.button-light {
  min-width: 310px;
  border-color: #fff;
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--blue-dark);
  background: var(--green-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.text-link::after {
  content: "↓";
}

/* Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 96px 100px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(237, 244, 255, 0.8), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  align-items: center;
  gap: 68px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2.75rem, 5.6vw, 5.0rem);
  font-weight: 900;
}

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

.hero h1 span.gr{
  color: var(--green);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 38px;
  color: #3e4b57;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 6px 13px;
  border: 1px solid #cbd6df;
  border-radius: 999px;
  color: #37434e;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.logo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e5e9;
  border-radius: 38px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.logo-card::after {
  position: absolute;
  inset: auto -9% -18% 24%;
  height: 42%;
  border-radius: 100%;
  background: rgba(74, 149, 33, 0.08);
  content: "";
  filter: blur(20px);
}

.logo-card img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: contain;
}

.logo-card-photo {
  display: flex;
  min-height: 460px;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.82)
    ),
    url("assets/hero-work-photo.jpg") center / cover no-repeat;
  transform: rotate(1.5deg);
}

.logo-card-photo img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: auto;
  object-fit: contain;
}

.logo-note {
  margin: 18px 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.hero-decoration {
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 72px;
  border-radius: 8px;
  opacity: 0.1;
  transform: rotate(-13deg);
}

.hero-decoration-blue {
  top: 18%;
  right: -130px;
  background: var(--blue);
}

.hero-decoration-green {
  right: 16%;
  bottom: 2%;
  background: var(--green);
}

/* Shared section styles
   --------------------------------------------------------- */

.intro {
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.5rem, 4.5vw, 4rem);
}

.large-text {
  color: #3d4955;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 2;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  color: var(--muted);
}

/* Service cards
   --------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 22px;
}

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

.service-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: rgba(7, 85, 201, 0.32);
  box-shadow: 0 18px 40px rgba(20, 47, 70, 0.08);
  transform: translateY(-4px);
}

.card-number {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-card h3 {
  font-size: 1.28rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Features
   --------------------------------------------------------- */

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

.feature {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 34px;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.feature-index {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.feature h3 {
  margin-bottom: 15px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.feature p {
  max-width: 800px;
  color: var(--muted);
}

/* Story
   --------------------------------------------------------- */

.story-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--blue-dark);
}

.story-section::before,
.story-section::after {
  position: absolute;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  content: "";
  transform: rotate(-12deg);
}

.story-section::before {
  top: 50px;
  right: -100px;
  width: 430px;
  background: rgba(7, 85, 201, 0.5);
}

.story-section::after {
  bottom: 40px;
  left: -120px;
  width: 360px;
  background: rgba(74, 149, 33, 0.24);
}

.story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
}

.story-title {
  position: sticky;
  top: 125px;
  align-self: start;
}

.story-title .section-kicker {
  color: #98c7ff;
}

.story-title h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.story-body {
  font-size: 1.03rem;
}

.story-body p {
  margin-bottom: 27px;
  color: rgba(255, 255, 255, 0.84);
}

/* Flow
   --------------------------------------------------------- */

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.flow-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.flow-list > li > span {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-list h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.flow-list p {
  color: var(--muted);
}

/* FAQ
   --------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1fr);
  gap: 90px;
}

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

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 26px 54px 26px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 25px;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  content: "+";
  font-size: 1.25rem;
  line-height: 28px;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 50px 28px 0;
  color: var(--muted);
}

/* CTA
   --------------------------------------------------------- */

.contact-cta {
  padding-block: 96px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 45%),
    var(--blue);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.5rem);
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.section-kicker-light {
  color: #cbe0ff;
}

.contact-actions {
  display: flex;
  min-width: 340px;
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
}

.contact-phone {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  color: #fff;
  background: rgba(0, 0, 0, 0.08);
  line-height: 1.35;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-phone:hover,
.contact-phone:focus-visible {
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.contact-phone-label {
  margin-bottom: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}

.contact-phone strong {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  letter-spacing: 0.03em;
}

.contact-phone small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
}

.footer-tel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.footer-tel a {
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 900;
}

.footer-tel span {
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-phone,
.contact-phone:link,
.contact-phone:visited {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.header-tel,
.header-tel:link,
.header-tel:visited {
  color: var(--blue-dark);
  -webkit-text-fill-color: var(--blue-dark);
}

.footer-tel a,
.footer-tel a:link,
.footer-tel a:visited {
  color: var(--blue-dark);
  -webkit-text-fill-color: var(--blue-dark);
}



/* Footer
   --------------------------------------------------------- */

.site-footer {
  padding-block: 55px 28px;
  background: #f6f8f9;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-logo img {
  height: 108px;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue);
}

.copyright {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #7a858f;
  font-size: 0.76rem;
}

.mobile-contact {
  display: none;
}

/* Responsive
   --------------------------------------------------------- */

@media (max-width: 960px) {
  .global-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero {
    padding-block: 68px 88px;
  }

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

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    max-width: 620px;
    margin-inline: auto;
  }

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

  .story-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .story-title {
    position: static;
  }

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

  .contact-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-block: 76px;
  }

  .site-header .button-small {
    display: none;
  }

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

  .site-logo-header img {
    height: 50px;
  }

  .footer-logo img {
    height: 92px;
  }

  .hero {
    padding-block: 52px 70px;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 12vw, 3.9rem);
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .hero-points {
    margin-top: 28px;
  }

  .logo-card {
    border-radius: 25px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 38px;
  }

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

  .service-card {
    min-height: auto;
    padding: 25px;
  }

  .card-number {
    margin-bottom: 28px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 30px;
  }

  .flow-list li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }

  .flow-list > li > span {
    width: 44px;
    height: 44px;
  }

  .contact-cta {
    padding-block: 72px;
  }

  .contact-cta br {
    display: none;
  }

  .button-light {
    width: 100%;
    min-width: 0;
  }

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

  .mobile-contact {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 120;
    display: flex;
    overflow: hidden;
    height: 56px;
    align-items: stretch;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(7, 85, 201, 0.34);
    font-weight: 800;
  }

  .mobile-contact > a {
    display: flex;
    width: 50%;
    min-width: 0;
    height: 100%;
    flex: 0 0 50%;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    font-size: 0.94rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
  }

  .mobile-contact > .mobile-contact-tel,
  .mobile-contact > .mobile-contact-tel:link,
  .mobile-contact > .mobile-contact-tel:visited {
    color: var(--blue-dark) !important;
    background-color: #fff !important;
    -webkit-text-fill-color: var(--blue-dark);
  }

  .mobile-contact > .mobile-contact-form,
  .mobile-contact > .mobile-contact-form:link,
  .mobile-contact > .mobile-contact-form:visited {
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    background-color: var(--blue) !important;
    -webkit-text-fill-color: #fff;
  }

  .mobile-contact > a:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* Additional on-site support
   --------------------------------------------------------- */

.support-section {
  background:
    linear-gradient(135deg, rgba(237, 244, 255, 0.75), transparent 42%),
    linear-gradient(315deg, rgba(240, 248, 235, 0.9), transparent 38%),
    #fff;
}

.support-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 48px;
}

.support-lead h2 {
  margin-bottom: 0;
}

.support-lead > p {
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(20, 47, 70, 0.06);
}

.support-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0 56%, var(--green) 56% 100%);
  content: "";
}

.support-card > span {
  display: block;
  margin: 12px 0 40px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.support-card h3 {
  font-size: 1.2rem;
}

.support-card p {
  color: var(--muted);
  font-size: 0.91rem;
}

.support-note {
  margin-top: 22px;
  padding-left: 1em;
  color: #6b747d;
  font-size: 0.77rem;
  text-indent: -1em;
}

@media (max-width: 960px) {
  .support-lead {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    min-height: auto;
  }

  .support-card > span {
    margin-bottom: 26px;
  }
}




/* Budget note
   主サービスの説明を補足する控えめな案内
   --------------------------------------------------------- */

.budget-note {
  max-width: 920px;
  margin: 30px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

@media (max-width: 680px) {
  .budget-note {
    margin-top: 24px;
    padding-left: 14px;
    font-size: 0.88rem;
  }
}


@media (max-width: 960px) {
  .contact-actions {
    width: min(100%, 420px);
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .contact-actions {
    width: 100%;
  }

  .contact-phone {
    min-height: 96px;
  }
}


/* Case studies
   代表2件＋小型4件。高さと余白を抑えたコンパクト表示
   --------------------------------------------------------- */

.case-section {
  padding-block: 82px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fa 100%);
}

.case-heading {
  margin-bottom: 32px;
}

.case-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

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

.case-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  grid-column: span 1;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(20, 47, 70, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.case-card:hover {
  border-color: rgba(7, 85, 201, 0.26);
  box-shadow: 0 14px 30px rgba(20, 47, 70, 0.1);
  transform: translateY(-2px);
}

.case-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  grid-column: span 2;
}

.case-image {
  overflow: hidden;
  margin: 0;
  background: #e9eef1;
}

.case-card:not(.case-card-featured) .case-image {
  height: 242px;
}

.case-card-featured .case-image {
  height: 100%;
  min-height: 210px;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.case-content {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 17px;
}

.case-card-featured .case-content {
  padding: 20px 22px;
}

.case-category {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.45;
}

.case-category-support {
  color: var(--green-dark);
  background: var(--green-soft);
}

.case-card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
  line-height: 1.45;
}

.case-card-featured h3 {
  font-size: 1.22rem;
}

.case-card .case-content > p:not(.case-category):not(.case-work) {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.case-card-featured .case-content > p:not(.case-category):not(.case-work) {
  font-size: 0.83rem;
}

.case-work {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #5b6670;
  font-size: 0.68rem;
  line-height: 1.55;
}

.case-work strong {
  display: inline;
  margin-right: 0.4em;
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.case-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 17px;
  background: var(--blue-soft);
}

.case-cta p {
  max-width: 680px;
  margin: 0;
  color: #3f4d59;
  font-size: 0.88rem;
}

.case-cta .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 20px;
  box-shadow: none;
  font-size: 0.82rem;
}

@media (max-width: 1040px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card,
  .case-card-featured {
    grid-column: span 1;
  }

  .case-card-featured {
    display: flex;
    flex-direction: column;
  }

  .case-card-featured .case-image {
    height: 170px;
    min-height: 0;
  }

  .case-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .case-section {
    padding-block: 66px;
  }

  .case-heading {
    margin-bottom: 24px;
  }

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

  .case-card:not(.case-card-featured) .case-image,
  .case-card-featured .case-image {
    height: 250px;
  }

  .case-content,
  .case-card-featured .case-content {
    padding: 17px;
  }

  .case-card h3,
  .case-card-featured h3 {
    font-size: 1.08rem;
  }

  .case-cta {
    margin-top: 20px;
    padding: 20px;
  }

  .case-cta .button {
    width: 100%;
  }
}
