/* ============================================================
   内部ページ共通スタイル
   ============================================================ */

/* ---------- Inner page body ---------- */
.inner-page {
  padding-top: 7.2rem; /* header height */
}

/* ---------- Inner page header — always white ---------- */
.inner-page #site-header {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 20px rgba(41,182,232,0.15);
  backdrop-filter: blur(8px);
}
.inner-page #site-header .header-logo-text {
  color: var(--text) !important;
}
/* 内部ページは常に白背景なのでカラーロゴをそのまま表示 */
.inner-page #site-header .header-logo img.logo-img-full {
  filter: none !important;
}
.inner-page #site-header .header-nav a {
  color: var(--text-sub) !important;
}
.inner-page #site-header .header-nav a:hover,
.inner-page #site-header .header-nav a.active {
  color: var(--blue) !important;
}
.inner-page #site-header .header-contact {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}
.inner-page #site-header .header-contact:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
}
.inner-page #site-header .hamburger span {
  background: var(--text) !important;
}

/* ---------- Content section ---------- */
.content-section {
  padding: 8rem 0;
}
/* ② SERVICE余白修正: 連続するcontent-sectionの詰まりを解消 */
.content-section + .content-section {
  padding-top: 4rem;
}

/* ---------- Text content ---------- */
.prose h2 {
  font-family: var(--font-ja);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 4rem 0 1.6rem;
  padding-left: 1.6rem;
  border-left: 4px solid;
  border-image: var(--grad) 1;
  line-height: 1.4;
}
.prose h3 {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 3.2rem 0 1.2rem;
}
.prose p {
  font-size: 1.6rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 1.6rem;
}
.prose ul {
  list-style: disc;
  padding-left: 2.4rem;
  margin-bottom: 1.6rem;
}
.prose ul li {
  font-size: 1.6rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 0.8rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.4rem;
  font-size: 1.5rem;
}
.prose table th {
  background: var(--bg-light);
  padding: 1.2rem 1.6rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.prose table td {
  padding: 1.2rem 1.6rem;
  color: var(--text-sub);
  border: 1px solid var(--border);
  line-height: 1.8;
}
.prose table tr:nth-child(even) td {
  background: rgba(244,248,251,0.5);
}

/* ---------- Service page ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  margin-bottom: 8rem;
}
.service-detail-grid.reverse {
  direction: rtl;
}
.service-detail-grid.reverse > * {
  direction: ltr;
}
.service-detail-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 32rem;
}
.service-detail-visual-inner {
  width: 100%;
  height: 100%;
}
.service-detail-label {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.service-detail-title {
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1.6rem;
}
.service-detail-body {
  font-size: 1.5rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 2.4rem;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.service-feature {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
}
.service-feature--retail {
  background: var(--bg-light);
}
.service-feature-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 1.4rem;
}
.service-feature-text {
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.7;
}
.service-detail-single {
  max-width: 80rem;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
  .service-detail-grid.reverse { direction: ltr; }
  .service-detail-visual { height: 24rem; }
}

/* ---------- About page ---------- */
/* ③ ABOUTページのビジョンセクション: グラデーション背景で視認性改善 */
.about-vision {
  background: var(--bg-dark);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}
.about-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,182,232,0.22) 0%, rgba(77,212,236,0.16) 55%, rgba(160,237,216,0.10) 100%);
}
.about-vision::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}
.about-vision-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  text-align: left;
}
.about-vision-quote {
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 2.4rem;
  text-align: center;
}
.about-vision-body {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.88);
  line-height: 2;
  text-align: left;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin-top: 6.4rem;
}
.about-value-card {
  padding: 3.2rem 2.4rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-value-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.6rem;
}
.about-value-title {
  font-family: var(--font-ja);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.about-value-body {
  font-size: 1.4rem;
  color: var(--text-sub);
  line-height: 1.8;
}
@media (max-width: 768px) {
  .about-values { grid-template-columns: 1fr; }
}

/* ---------- Company page ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
}
.company-table th {
  width: 14rem;
  padding: 1.6rem 2rem;
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--border);
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  padding: 1.6rem 2rem;
  color: var(--text-sub);
  border: 1px solid var(--border);
  line-height: 1.8;
}
.company-map {
  width: 100%;
  height: 40rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
@media (max-width: 768px) {
  .company-table th { width: 8rem; font-size: 1.3rem; padding: 1.2rem 1rem; }
  .company-table td { font-size: 1.4rem; padding: 1.2rem 1rem; }
}

/* ---------- Topics page ---------- */
/* カード型レイアウト（PC: 2列 / SP: 1列縦積み） */
.topics-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.topic-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  flex-shrink: 0;
}
.topic-card-thumb-inner {
  width: 100%;
  height: 100%;
}
.topic-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem 2.4rem 2.4rem;
  flex: 1;
}
.topic-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topic-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0.4rem;
}
.topic-card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.topic-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 10rem;
  transition: background var(--transition), transform var(--transition);
}
.topic-card-link::after {
  content: '→';
  font-family: var(--font-en);
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.topic-card:hover .topic-card-link {
  background: var(--teal);
}
.topic-card:hover .topic-card-link::after {
  transform: translateX(3px);
}
@media (max-width: 768px) {
  .topics-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- CTA Section（内部ページ共通） ---------- */
.cta-section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg {
  position: absolute;
  inset: 0;
  /* ベース：深いネイビー→ティール系グラデ */
  background:
    radial-gradient(ellipse 80% 70% at 80% 15%, rgba(41,182,232,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 15% 85%, rgba(46,196,224,0.18) 0%, transparent 55%),
    linear-gradient(150deg, #082d44 0%, #0e5a80 50%, #082d44 100%);
}
.cta-grad {
  position: absolute;
  inset: 0;
  /* 波紋状の同心円 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Ccircle cx='400' cy='400' r='100' fill='none' stroke='rgba(77,212,236,0.06)' stroke-width='1'/%3E%3Ccircle cx='400' cy='400' r='190' fill='none' stroke='rgba(77,212,236,0.05)' stroke-width='1'/%3E%3Ccircle cx='400' cy='400' r='280' fill='none' stroke='rgba(77,212,236,0.04)' stroke-width='1'/%3E%3Ccircle cx='400' cy='400' r='370' fill='none' stroke='rgba(77,212,236,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}
.cta-section .container {
  position: relative;
  z-index: 3;
}
.cta-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: left;
}
.cta-title {
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 1.6rem;
  text-align: left;
}
.cta-desc {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  margin-bottom: 3.2rem;
  text-align: left;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6.4rem;
  align-items: start;
}
.contact-info-title {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.contact-info-body {
  font-size: 1.5rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 3.2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-info-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
}
.contact-info-label {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 2.4rem;
}
.form-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.form-label .required {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  border-radius: 4px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ja);
  font-size: 1.5rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,182,232,0.20);
}
.form-textarea {
  min-height: 16rem;
  resize: vertical;
}
.form-submit {
  width: 100%;
  padding: 1.6rem;
  border-radius: 100vw;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 1.6rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(41,182,232,0.35);
}
.form-submit:hover {
  background: var(--grad-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(41,182,232,0.45);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .contact-form { padding: 2.4rem; }
}

/* ---------- Terms page ---------- */
.terms-nav {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  margin-bottom: 4rem;
}
.terms-nav-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.terms-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.terms-nav-list a {
  font-size: 1.4rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.terms-nav-list a::before {
  content: '→';
  font-family: var(--font-en);
  font-size: 1.2rem;
}
.terms-nav-list a:hover { text-decoration: underline; }
.terms-doc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
  transition: box-shadow var(--transition);
}
.terms-doc-card:hover { box-shadow: var(--shadow); }
@media (max-width: 600px) {
  .terms-doc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }
  .terms-doc-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
.terms-doc-info {}
.terms-doc-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.terms-doc-meta {
  font-size: 1.3rem;
  color: var(--text-sub);
}

/* ---------- Article (Topics detail) page ---------- */
.article-wrap {
  max-width: 80rem;
  margin: 0 auto;
}

/* Article header */
.article-header {
  margin-bottom: 4rem;
  padding-bottom: 3.2rem;
  border-bottom: 1px solid var(--border);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.article-date {
  font-size: 1.4rem;
  color: var(--text-sub);
  font-family: var(--font-en);
}
.article-title {
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

/* Eyecatch */
.article-eyecatch {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  margin-bottom: 4.8rem;
  min-height: 24rem;
}
.article-eyecatch--photo {
  padding: 0;
  overflow: hidden;
  background: #000;
}
.article-eyecatch-logo {
  max-width: 32rem;
  width: 100%;
  height: auto;
}
.article-eyecatch-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 52rem;
  object-fit: cover;
}

/* Article body */
.article-body {
  margin-bottom: 6.4rem;
}

/* Article navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
.article-nav-prev,
.article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 2.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.article-nav-prev:hover,
.article-nav-next:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(5,115,202,0.15);
  transform: translateY(-2px);
}
.article-nav-next {
  text-align: right;
}
.article-nav-label {
  font-size: 1.1rem;
  color: var(--blue);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-nav-title {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  align-self: center;
}
.article-nav-list::before {
  content: '≡';
  font-size: 1.6rem;
  line-height: 1;
}
.article-nav-list:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

@media (max-width: 768px) {
  /* SP本文テキスト左寄せ */
  .about-vision-body,
  .cta-desc,
  .cta-body {
    text-align: left;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav-next {
    text-align: left;
  }
  .article-nav-list {
    order: -1;
    justify-content: center;
  }
  .article-eyecatch {
    padding: 2.4rem;
    min-height: 16rem;
  }
}

/* ===== Flow grid (導入の流れ) responsive ===== */
div.flow-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 900px) { div.flow-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px) { div.flow-grid { grid-template-columns: 1fr !important; } }

/* ===== Roadmap grid (供給拡大ロードマップ) responsive ===== */
@media (max-width: 600px) { .roadmap-grid { grid-template-columns: 1fr !important; } }
