﻿:root {
  /* Palette */
  --navy: #000050;
  /* = color of お見積書の作成について  */
  --accent-gold: #B58B2A;

  --text-main: #2D3436;
  --text-sub: #636E72;
  --bg-body: #F9FBFC;
  --bg-surface: #FFFFFF;
  --line-color: #E2E8F0;

  --shadow-sm: 0 4px 6px rgba(0, 0, 80, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 80, 0.08);

  --radius: 16px;
  --max-w: 1000px;

  /* Hover border color for step cards */
  --step-hover-border: var(--navy);
  --step-hover-ring: 0 0 0 3px rgba(0, 0, 80, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

#M_wrapper {
  background: #F9FBFC !important;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* === HERO SECTION === */
.hero {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--accent-gold));
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-align: center;
}

.hero p {
  margin: 0 auto;
  max-width: 700px;
  font-size: 16px;
  color: var(--text-sub);
}

/* === SECTION GENERAL === */
.section {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
  margin: 0;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* === POINTS (3 COLUMNS) === */
.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.point-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  padding: 0px 24px 28px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.point-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

/* Use your POINT icon images */
.point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-icon img {
  width: 170px;
  height: auto;
  display: block;
  transform: translateY(-50%);
}

.point-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  color: var(--text-main);
  text-align: center;
}

/* === STEPS (Z-PATTERN) === */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--line-color);
  padding: 40px;
  border-radius: var(--radius);

  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.step-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* ? NEW: Hover step -> border becomes navy (same as title) */
.step-item:hover {
  border-color: var(--step-hover-border);
  box-shadow: var(--shadow-md), var(--step-hover-ring);
}

.step-text {
  flex: 1;
}

.step-number {
  display: inline-block;
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Subtle per-step color (optional) */
.step-item[data-step="1"] .step-number {
  color: var(--accent-gold);
}

.step-item[data-step="2"] .step-number {
  color: var(--accent-gold);
}

.step-item[data-step="3"] .step-number {
  color: var(--accent-gold);
}

.step-item[data-step="4"] .step-number {
  color: var(--accent-gold);
}

.step-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-main);
}

.step-text p {
  color: var(--text-sub);
  font-size: 15px;
  margin: 0;
}

.step-media {
  flex: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line-color);
  background: #fff;
}

.step-media img {
  width: 100%;
  display: block;

  transition: none !important;
  transform: none !important;
}

.step-item:hover .step-media img {
  transform: none !important;
}

/* === BUTTONS === */
.cta-area {
  margin-top: 24px;
}

.botan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: var(--navy);
  color: #fff;

  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;

  border: 2px solid var(--navy);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.botan:hover {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 0, 80, 0.15);
  transform: none;
}


/* === NOTICE BOX === */
.notice-box {
  background: #fff;
  padding: 40px;
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.notice-list {
  margin: 0;
  padding-left: 20px;
}

.notice-list li {
  margin-bottom: 12px;
  font-size: 15px;
}

.notice-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-color);
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
  white-space: pre-line;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 80, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  padding: 20px;
}

.modal-overlay[active="true"] {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius);
  overflow: hidden;
  animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 16px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--line-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--navy);
}

.botan-close {
  background: var(--line-color);
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.modal-body {
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-body img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-color);
  display: block;
}


.biztext {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 12px;
  margin-left: 10px;
  text-align: left;
  color: #0000EE !important;
}

/* レスポンシブ */

/* POINT: iPad/SPでは中央に揃える */
@media (max-width: 1024px) {
  .points-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .point-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) 124px;
    align-items: center;
    column-gap: 184px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 20px;
    text-align: center;
    
    grid-template-columns: 92px minmax(0, 1fr) 92px;
  }

  .point-card::after {
    content: "";
    display: block;
    width: 124px;
  }

  .point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    min-width: 124px;
  }

  .point-icon img {
    width: min(100%, 118px);
    height: auto;
    display: block;
    transform: translateX(4px);
  }

  .point-card h3 {
    min-width: 0;
    margin: 0;
    position: static;
    top: auto;
    font-size: clamp(14px, 2.2vw, 18px);
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .point-card h3 br {
    display: none;
  }
}

/* タブレット以下 */
@media (max-width: 900px) {
  .step-item,
  .step-item:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 30px;
  }

  .step-text,
  .step-media {
    width: 100%;
    flex: 0 0 auto;
  }

  .hero {
    padding: 40px 20px;
  }
}

/* 文章だけ左寄せ */
@media (max-width: 768px) {
  .hero p {
    text-align: left;
  }
}

/* タッチ端末ではホバーを無効化 */
@media (hover: none) {
  .point-card:hover,
  .step-item:hover {
    transform: none;
  }
}

/* スマホ */
@media (max-width: 460px) {
 

  .section-header h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .cta-area {
    display: flex;
    justify-content: center;
  }

  .botan {
    padding: 12px 24px;
    font-size: 13px;
  }

  .biztext {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
    text-align: center;
  }

  .step-text h3 {
    font-size: 18px;
  }

  .step-number {
    font-size: 24px;
    font-weight: 700;
  }

  .point-card {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    column-gap: 26px;
    padding: 14px 14px;
  }

  .point-card::after {
    width: 92px;
  }

  .point-icon {
    width: 92px;
    min-width: 92px;
    
  }

  .point-icon img {
  width: min(100%, 118px);
    height: auto;
    display: block;
    transform: translateX(3px);
  }

  .point-card h3 {
    font-size: clamp(10px, 3vw, 12px);
    letter-spacing: -0.02em;
  }

  .step-item,
  .step-item:nth-child(even) {
    gap: 20px;
    padding: 24px 18px;
  }

  .notice-box {
    padding: 28px 18px;
  }

  .step-media,
  .notice-title,
  .notice-list,
  .notice-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}