/* ========================================
   STORIES コーポレートサイト スタイルシート
   ======================================== */

:root {
  --color-navy: #0a0f1c;
  --color-navy-deep: #060911;
  --color-teal: #2ec4b6;
  --color-teal-light: #4dd9cb;
  --color-white: #ffffff;
  --color-text-sub: #b8c0cc;
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-white);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.arrow {
  display: inline-block;
  margin-left: 4px;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  /* background: linear-gradient(135deg, #009c8c 0%, var(--color-teal) 45%, #1a9885 100%); */
  background: linear-gradient(135deg, #009c8c 0%, #12c4b3 45%, #4cd5c0 100%);
  /* color: var(--color-navy); */
  color: #fff;
  font-size: 20px;
}

.btn-primary:hover {
  /* background: linear-gradient(135deg, #6ef3df 0%, var(--color-teal) 55%, #009c8c 100%); */
  opacity: 0.7;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-small {
  padding: 10px 20px;
  font-size: 13px;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

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

.global-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav ul a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  opacity: 0.9;
}

.global-nav ul a:hover {
  opacity: 1;
  color: var(--color-teal-light);
}

/* ========================================
   ヒーロー
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  background-color: var(--color-navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  animation: videoFadeIn 1.2s ease forwards;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 9, 17, 0.95) 0%,
    rgba(6, 9, 17, 0.75) 35%,
    rgba(6, 9, 17, 0.2) 65%,
    rgba(6, 9, 17, 0.05) 100%
  );
}

.hero-vertical-text {
  position: absolute;
  left: 16px;
  bottom: 40px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  z-index: 2;
  padding-bottom: 34px;
}

.hero-vertical-text::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 26px;
  background-color: currentColor;
  transform: translateX(-50%);
}

.hero-vertical-text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 1px;
  background-color: currentColor;
  transform-origin: 0 50%;
  transform: rotate(-42deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 180px 40px 100px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 28px;
}

.hero-title-line1 .char {
  display: inline-block;
  opacity: 0;
  animation: charFadeInRise 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-title-line2 {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: lineSlideUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 3.1s;
}

@keyframes charFadeInRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lineSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  font-size: 16px;
  color: var(--color-text-sub);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  animation: leadFadeIn 0.7s ease forwards;
}

@keyframes leadFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.hero-tags li {
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--color-white);
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* ========================================
   実績数値バー
   ======================================== */
.stats {
  background-color: var(--color-white);
}

.stats-list {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-family: var(--font-serif);
}

.stats-item {
  padding: 56px 24px;
  text-align: center;
  border-left: 1px solid #e5e8ec;
}

.stats-item:first-child {
  border-left: none;
}

.stats-number {
  font-size: 60px;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 16px;
}

.stats-unit {
  font-size: 24px;
}

.stats-affix {
  font-size: 20px;
  font-weight: 500;
}

.stats-label-ja {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* ========================================
   セクション共通
   ======================================== */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px;
}

.section-inner.fadeIn{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-tag {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-teal);
  text-align: center;
  margin-bottom: 0px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #1a202c;
  margin-bottom: 56px;
}

.section-title-light {
  color: var(--color-white);
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-head-row .section-title {
  margin-bottom: 0;
  text-align: left;
}

.section-head-row .section-tag {
  text-align: left;
}

/* ========================================
   選ばれる理由
   ======================================== */
.reasons {
  background-color: #f3f5f7;
}

.reasons-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20, 30, 45, 0.06);
  overflow: hidden;
}

.reason-item {
  text-align: center;
  padding: 40px 28px;
  border-left: 1px solid #e7eaee;
}

.reason-item:first-child {
  border-left: none;
}

.reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--color-teal);
  margin-bottom: 22px;
}

.reason-icon svg {
  width: 30px;
  height: 30px;
}

.reason-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.5;
  margin-bottom: 14px;
}

.reason-text {
  font-size: 14px;
  color: #6b7684;
  line-height: 1.9;
}

/* ========================================
   サービス
   ======================================== */
.service {
  background-color: var(--color-navy);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 182, 0.6);
}

.service-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 9, 17, 0.95) 0%, rgba(6, 9, 17, 0.55) 45%, rgba(6, 9, 17, 0.1) 100%);
}

.service-item-body {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
}

.service-number {
  font-size: 30px;
  color: var(--color-teal-light);
  margin-bottom: 6px;
}

.service-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 13px;
  color: var(--color-text-sub);
}

.service-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 12px;
}

/* サービス詳細ポップアップ */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 9, 17, 0.75);
}

.service-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  background-color: var(--color-white);
  color: #1a202c;
  border-radius: 8px;
  padding: 48px 40px;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.service-modal.is-open .service-modal-panel {
  transform: translateY(0);
}

.service-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #f3f5f7;
  border-radius: 50%;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
}

.service-modal-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.service-modal-heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-modal-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 28px;
}

.service-modal-sub {
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e8ec;
}

.service-modal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-bottom: 32px;
}

.service-modal-list li {
  font-size: 13px;
  color: #4a5568;
  padding-left: 16px;
  position: relative;
}

.service-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-teal);
}

.service-modal-cta {
  padding: 24px;
  background-color: var(--color-navy);
  border-radius: 6px;
  text-align: center;
}

.service-modal-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.service-modal-cta-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}

/* ========================================
   実績事例
   ======================================== */
.case-study {
  background-color: var(--color-white);
}

.case-study .section-inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.case-study .section-head-row {
  display: block;
  text-align: center;
}

.case-study .section-head-row .section-tag,
.case-study .section-head-row .section-title {
  text-align: center;
}

.case-study .section-head-row .section-title {
  margin-bottom: 20px;
}

.case-slider {
  overflow: hidden;
}

.case-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-item {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  padding: 24px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef1f4 0%, #dde3e8 100%);
}

.case-item.has-photo {
  padding: 0;
}

.case-item.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgb(161 162 168 / 0%) 0%, rgb(255 255 255 / 90%) 60%, rgb(255 255 255 / 90%) 100%);
}

.case-item-body {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.case-item.has-photo .case-title,
.case-item.has-photo .case-desc {
  /* display: inline-block; */
  /* background-color: rgb(0 174 158 / 80%); */
  /* background: linear-gradient(to right, rgba(0, 174, 158, 1) 0%, rgba(0, 174, 158, 1) 60%, rgba(0, 174, 158, 0) 100%); */
  background: linear-gradient(to right, rgb(8 179 163) 0%, rgb(21 158 146) 60%, rgb(12 136 124) 100%);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 4px;
}

.case-item.has-photo .case-metric-label {
  color: #333;
}

.case-tag {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
  background-color: #37424f;
}

.case-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.case-desc {
  font-size: 15px;
  color: #6b7684;
  line-height: 1.2;
  margin-bottom: 24px;
}

.case-metric-label {
  font-size: 20px;
  font-weight: bold;
  color: #6b7684;
  margin-bottom: 16px;
  margin-right: 15px;
  line-height: 1;
}

.case-metric-flex{
  display: flex;
  /* justify-content: left; */
  justify-content: center;
  align-items: end;
}

.case-metric {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  /* color: var(--color-teal); */
  color: #00ae9e;
}

.case-metric span {
  font-size: 42px;
  display: inline-block;
  padding: 0 5px;
}

.case-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.case-arrow-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5dae0;
  border-radius: 50%;
  background-color: var(--color-white);
  color: #1a202c;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.case-arrow-btn:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.case-arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.case-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.case-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d5dae0;
  cursor: pointer;
}

.case-dots .dot.is-active {
  background-color: var(--color-teal);
}

/* ========================================
   自社メディア
   ======================================== */
.media {
  background-color: #f9fafb;
}

.media-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.media-item {
  display: flex;
  gap: 30px;
  padding: 35px;
  background-color: var(--color-white);
  border: 1px solid #e5e8ec;
  border-radius: 4px;
}

.media-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.media-item img {
  width: 200px;
  /* height: 94px; */
  /* object-fit: cover; */
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 3px 3px 5px 2px #ddd;
}

.media-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1;
}

.media-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}

.media-detail {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.7;
  margin-bottom: 8px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 5px;
}

.media-source {
  font-size: 13px;
  color: #333;
  margin-bottom: 12px;
}

.media-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-teal);
  text-align: right;
  display: block;
  margin-top: auto;
  padding-top: 12px;
}

/* ========================================
   企業情報
   ======================================== */
.company {
  position: relative;
  background-color: var(--color-navy-deep);
  overflow: hidden;
}

.company-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  min-width: 380px;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.company-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 17, 0.97) 0%, rgba(6, 9, 17, 0.95) 55%, rgba(6, 9, 17, 0.55) 75%, rgba(6, 9, 17, 0.35) 100%);
}

.company-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 80px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.company-lead .section-tag,
.company-lead .section-title {
  text-align: left;
}

.company-lead .section-title {
  margin-bottom: 20px;
  color: #fff;
}

.company-copy {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 28px;
}

.company-table {
  flex: 1;
  align-self: center;
}

.company-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
}

.company-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.company-row dt {
  color: var(--color-text-sub);
}

.company-row dd {
  line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */
.cta {
  background:
    radial-gradient(circle at 80% 30%, rgba(46, 196, 182, 0.25) 0%, rgba(46, 196, 182, 0) 55%),
    var(--color-navy);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
}

.cta-right {
  text-align: right;
}

.cta-message {
  font-family: var(--font-serif);
  font-size: 24px;
  color: #fff;
  /* color: var(--color-text-sub); */
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
  background-color: var(--color-navy-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--color-text-sub);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-copyright {
  font-size: 12px;
  color: #6b7684;
}

/* ========================================
   サブページ共通（ヒーローを持たないページ）
   ======================================== */
body.is-subpage .site-header {
  position: relative;
  background-color: var(--color-navy);
}

.page-hero {
  background-color: var(--color-navy);
  padding-top: 40px;
}

.page-hero .section-inner {
  padding-top: 0px;
  padding-bottom: 56px;
}

.page-hero .section-tag {
  color: var(--color-teal-light);
}

.page-hero .section-title {
  margin-bottom: 0;
  color: var(--color-white);
}

/* ========================================
   プライバシーポリシー本文
   ======================================== */
.legal {
  background-color: var(--color-white);
}

.legal .section-inner {
  max-width: 840px;
  padding-top: 80px;
  padding-bottom: 100px;
}

.legal-intro {
  font-size: 15px;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-teal);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  margin: 44px 0 16px;
}

.legal-content h3:first-of-type {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 16px;
}

.legal-content p strong {
  color: #1a202c;
}

.legal-content ul {
  margin: 0 0 16px;
  padding: 20px 24px;
  background-color: #f7f9fa;
  border-radius: 6px;
}

.legal-content ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: #4a5568;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-teal);
}

.legal-content ul li strong {
  color: #1a202c;
}

.legal-date {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #e5e8ec;
  font-size: 14px;
  line-height: 1.9;
  color: #6b7684;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }

  .reasons-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
  }
  .reason-item{
    padding: 15px 15px;
  }

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

  .case-item {
    flex: 0 0 calc((100% - 24px) / 2);
  }

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

  .company-inner {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 16px 20px;
  }

  .logo-img {
    height: 34px;
  }

  .global-nav ul {
    display: none;
  }

  .hero-inner {
    padding: 140px 20px 80px;
  }

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

  .br-pc {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
  .hero-buttons .btn{
    width: 80%;
    margin: 0 auto;
  }

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

  .stats-item {
    padding: 28px 12px;
  }

  .stats-number {
    font-size: 30px;
    margin-bottom: 8px;
  }

  .stats-unit {
    font-size: 16px;
  }

  .stats-affix {
    font-size: 13px;
  }

  .stats-label-ja {
    font-size: 12px;
    line-height: 1.4;
  }

  .stats-item:nth-child(2) {
    border-left: none;
  }

  .stats-item:nth-child(3) {
    border-top: 1px solid #e5e8ec;
  }

  .stats-item:nth-child(4) {
    border-top: 1px solid #e5e8ec;
  }

  .section-inner {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

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

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

  .case-item {
    flex: 0 0 100%;
  }

  .reason-item {
    border-left: none;
    border-top: 1px solid #e7eaee;
  }

  .reason-item:first-child {
    border-top: none;
  }

  .service-modal-panel {
    padding: 36px 24px;
  }

  .service-modal-list {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .media-item {
    flex-direction: column;
  }

  .media-item img {
    width: 100%;
    /* height: 160px; */
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 28px;
  }

  .cta-right {
    text-align: left;
  }

  .cta-title {
    font-size: 28px;
  }

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

  .legal .section-inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .legal-content h2 {
    font-size: 20px;
  }

  .legal-content h3 {
    font-size: 16px;
    margin-top: 36px;
  }
}

/* 幅の狭いスマートフォン向け微調整（見出しの段落ちや画像・アイコンとの衝突を防止） */
@media (max-width: 400px) {
  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 22px;
  }

  .case-title {
    font-size: 18px;
  }

  .case-metric-label {
    font-size: 15px;
    margin-bottom: 0;
  }

  .case-metric {
    font-size: 15px;
  }

  .case-metric span {
    font-size: 26px;
    padding: 0 3px;
  }

  .case-metric-flex {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .media-title {
    font-size: 18px;
  }

  .service-name {
    font-size: 13px;
  }

  .service-item-body {
    right: 30px;
  }

  .cta-title {
    font-size: 24px;
  }
}
