@charset "utf-8";

/* =========================================================
   販売管理システム（社内振替）LP 専用スタイル
========================================================= */

:root{
  --navy:#10345f;
  --blue:#1769aa;
  --sky:#eaf5ff;
  --light:#f6f9fc;
  --green:#159a84;
  --orange:#f08c42;
  --text:#263747;
  --muted:#607285;
  --line:#dce7f1;
  --white:#fff;
  --shadow:0 14px 40px rgba(18,57,92,.10);
  --radius:18px;
}

/* LP用のコンテナ・共通スタイル */
#main .container {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
#main .section-title {
  margin: 0 0 95px 0;
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.4;
  letter-spacing: .02em;
}
#main .marker-orange {
  background: linear-gradient(transparent 74%, rgb(112 240 66 / 40%) 60%);
}
#main .text-orange {
  color: var(--orange);
}
#main .text-problem-highlight {
  color: #f06d42;
}
#main .section-lead {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}
#main .section-head {
  text-align: center;
  margin-bottom: 50px;
}
#main .section {
  padding: 92px 0;
}

/* LP用ボタン */
#main .btn {
  display: inline-flex;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 58px;
  padding: 5px 15px;
  border-radius: 10px;
  font-weight: 700;
  transition: .25s;
  box-shadow: 0 8px 18px rgba(12, 52, 95, .14);
  text-decoration: none;
}
#main .btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
#main .btn-primary { background: var(--orange); color: #fff; }
#main .btn-secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }

/* ヒーローエリア */
#main .hero {
  position: relative;
  overflow: hidden;
  padding: 39px 0 74px;
}
/* 背景画像のスタイル */
#main .hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
#main .hero::before {
  content: "";
  position: absolute; right: -130px; bottom: -210px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(21,154,132,.08);
  z-index: 0;
}
#main .hero-grid {
  position: relative; 
  z-index: 1; 
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 33px;
  align-items: center;
}
#main .hero h1 {
  margin: 20px 0 18px;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.28;
  letter-spacing: .015em;
}
#main .hero h1 .accent {
  position: relative;
  color: var(--blue);
  white-space: nowrap;
}
#main .hero h1 .accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 7px;
  border-radius: 4px; background: rgba(240,140,66,.36);
}
#main .hero-copy {
  margin: 0;
  color: #40566b;
  font-size: 19px;
  font-weight: 600;
}
#main .hero-buttons {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 24px;
}

/* メリット3点（グリッド下部に全幅配置） */
#main .hero-points {
  grid-column: 1 / -1; 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main .hero-points li {
  background: #ffffff80;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 12px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 6px 16px rgba(16, 52, 95, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; 
}
#main .hero-points .point-icon {
  width: 50%; 
  height: auto;
}

/* システム図解モックアップ */
#main .system-visual {
  position: relative;
  min-height: 430px;
  display: flex; align-items: center; justify-content: center;
}
#main .screen {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(16,52,95,.20);
  border: 1px solid rgba(16,52,95,.10);
  transform: rotate(1deg);
}
#main .screen-top { display: flex; gap: 7px; padding: 0 0 12px; border-bottom: 1px solid #edf1f5; }
#main .dot { width: 9px; height: 9px; border-radius: 50%; background: #dbe5ee; }
#main .dashboard { display: grid; grid-template-columns: 110px 1fr; min-height: 330px; }
#main .sidebar { background: #123a68; border-radius: 0 0 0 12px; padding: 20px 12px; }
#main .side-item { height: 10px; border-radius: 5px; background: rgba(255,255,255,.22); margin-bottom: 17px; }
#main .side-item:nth-child(2) { background: rgba(255,255,255,.85); }
#main .main-panel { padding: 24px; background: #f7fafd; border-radius: 0 0 12px 0; }
#main .panel-title { width: 46%; height: 16px; background: #b9cbe0; border-radius: 8px; margin-bottom: 22px; }
#main .flow {
  display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 8px;
  margin-bottom: 22px;
}
#main .warehouse {
  padding: 17px 12px; border: 1px solid #d5e2ed; border-radius: 12px; background: #fff; text-align: center;
}
#main .warehouse strong { display: block; color: var(--navy); font-size: 14px; }
#main .warehouse span { font-size: 12px; color: var(--muted); }
#main .flow-arrow { font-size: 28px; color: var(--orange); text-align: center; font-weight: bold; }

/* フローティングバッジ */
#main .floating-badge {
  position: absolute;
  left: -37px;
  bottom: 47px;
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 5;
}
#main .floating-badge small { display: block; font-weight: 500; opacity: .9; }

/* 全体図（モックアップ）に重ねる画像用 */
#main .hero-overlay-img {
  position: absolute;
  right: -13px;
  bottom: -15px;
  width: 85%;
  height: auto;
  z-index: 10;
}

/* イントロ */
#main .intro { padding: 80px 0; background: #006d78; color: #fff; }
#main .intro-inner { max-width: 920px; margin: auto; text-align: center; }
#main .intro h2 { margin: 0 0 30px; font-size: 30px; line-height: 1.5; color: #fff; }
#main .limit-highlight { color: #ffe600; font-size: 38px; }
#main .intro p { margin: 0; color: #e5eef7; font-size: 17px; }
#main .intro p+p { margin-top: 12px; }

/* 課題 */
#main .problems { background: #fff; }
#main .cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
#main .problem-card {
  position: relative;
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(22,61,96,.07);
}
#main .problem-card::before {
  content: attr(data-no);
  font-size: 32px;
  position: absolute; top: -49px; left: 4px;
  display: grid; place-items: center;
  width: 80px; height: 80px; border-radius: 25px;
  background: linear-gradient(145deg, var(--blue), #2a8bc880);
  color: #fff; font-weight: 900;
}
#main .problem-icon {
  width: 250px; 
  max-width: 100%; 
  height: auto; 
  margin: 12px auto 22px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}
#main .problem-icon img {
  width: 100%;
  height: auto;
  display: block;
}
#main .problem-card h3 { text-align: center; color: var(--navy); font-size: 20px; line-height: 1.5; margin-top: 0; }
#main .problem-card p { margin: 15px 0 0; color: var(--muted); font-size: 15px; }

/* ブリッジ */
#main .bridge {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #eef7ff 100%);
}
#main .bridge-arrow { 
  margin-bottom: 20px; 
}
#main .bridge-arrow img {
  width: 60px; 
  height: auto;
  display: block;
  margin: 0 auto;
}
#main .bridge strong { 
  display: block; 
  color: var(--navy); 
  font-size: 24px; 
}

/* 解決策 */
#main .solutions { background: var(--sky); }
#main .solution-list { display: grid; gap: 28px; }
#main .solution-card {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 28px; align-items: center;
  padding: 34px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
#main .solution-no {
  width: 100px; height: 100px; border-radius: 25px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(145deg, var(--blue), #2a8bc880);
}
#main .solution-no strong { font-size: 32px; line-height: 1; }
#main .solution-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 25px; }
#main .solution-card p { margin: 0; color: var(--muted); }

/* メリットタグのレイアウト */
#main .solution-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: 20px; 
  padding-top: 16px; 
  border-top: 1px dashed var(--line);
  align-items: center; 
}
#main .solution-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#main .solution-tags-head {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid #f08c42;
  background-color: #f08c42;
  border-radius: 12px;
  width: 98px;
  height: 21px;
}
#main .solution-tag {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
#main .solution-tag .icon-check-img {
  width: 25px;
  height: auto;
  flex-shrink: 0; 
  margin-right: 6px;
  display: block;
}

/* ワークフロー */
#main .workflow { background: #fff; }
#main .workflow .section-title {
  position: relative;
  padding-bottom: 24px;
}
#main .workflow .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 2px;
}
#main .workflow-box {
  padding: 45px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f6faff, #eef8f6);
  border: 1px solid #dce9ef;
}
#main .workflow-grid {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr;
  gap: 10px; align-items: center;
}
#main .step {
  min-height: 220px; 
  padding: 20px 20px; 
  background: #fff; 
  border-radius: 16px; 
  border: 1px solid #dbe6ee; 
  text-align: center;
}
#main .step-num { display: inline-block; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
#main .step-icon { 
  width: 125px; 
  max-width: 100%;
  height: auto;
  margin: 15px auto; 
  display: block; 
}
#main .step h3 { margin: 0; color: var(--navy); font-size: 18px; }
#main .step-line {
  width: 70%;
  height: 1px;
  background-color: var(--line);
  border: none;
  margin: 12px auto;
}
#main .step p { margin: 0; color: var(--muted); font-size: 14px; } 
#main .arrow { text-align: center; color: var(--orange); font-size: 38px; font-weight: 900; }

/* ベネフィット（画像スタイル） */
#main .benefits { background: var(--light); }
#main .benefits .section-title {
  position: relative;
  padding-bottom: 24px;
}
#main .benefits .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 2px;
}
#main .benefit-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
}
#main .benefit-card {
  padding: 0; 
  border-radius: 0; 
  background: transparent; 
  border-top: none;
  box-shadow: none; 
  position: relative; 
  z-index: 1;
}
#main .benefit-card h3 { 
  margin: 0 0 16px; 
  color: var(--navy); 
  font-size: 21px; 
  position: relative; 
  padding-top: 45px; 
  text-align: center;
  z-index: 2; 
}
#main .benefit-card h3::after {
  content: ""; 
  display: block; 
  width: 40px; 
  height: 3px; 
  background: var(--orange); 
  margin: 15px auto 0;
  border-radius: 2px;
}
#main .benefit-card .benefit-img {
  width: 50%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 20px auto;
}
#main .benefit-card p { 
  margin: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA */
#main .cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  /* background: linear-gradient(130deg, #4a9da5, #729fce); 背景画像を敷くためコメントアウト */
  color: var(--navy); /* テキストカラーを #10345f に変更 */
  text-align: center;
}
/* CTA背景画像のスタイル */
#main .cta-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
#main .cta::before, #main .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
  z-index: 0;
}
#main .cta::before { width: 340px; height: 340px; left: -150px; top: -180px; }
#main .cta::after { width: 450px; height: 450px; right: -190px; bottom: -280px; }
#main .cta-inner { position: relative; z-index: 1; }
#main .cta h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); color: var(--navy); } /* テキストカラーを変更 */
#main .cta p { margin: 18px auto 30px; max-width: 700px; color: var(--navy); } /* テキストカラーを変更 */
#main .cta .btn-secondary { border-color: var(--blue); color: var(--blue); background: transparent; }
#main .cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
#main .cta-note { margin-top: 15px; font-size: 13px; opacity: .85; }

/* FAQ */
#main .faq { background: #fff; }
#main details {
  max-width: 900px; margin: 0 auto 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
}
#main summary {
  cursor: pointer; list-style: none; padding: 22px 54px 22px 24px;
  color: var(--navy); font-weight: 800; position: relative;
}
#main summary::-webkit-details-marker { display: none; }
#main summary::after { content: "＋"; position: absolute; right: 22px; color: var(--blue); font-size: 22px; }
#main details[open] summary::after { content: "−"; }
#main details p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* =========================================================
   レスポンシブ（900px以下：タブレット・スマホ向け）
========================================================= */
@media(max-width: 900px) {
  #main .hero-grid { 
    grid-template-columns: 1fr; 
  }
  
  /* FVの並び順変更（画像 → テキスト → ポイントの順） */
  #main .hero-grid > div:first-child {
    order: 2;
  }
  #main .system-visual { 
    order: 1;
    min-height: auto; 
    margin-bottom: 20px;
  }
  #main .hero-points {
    order: 3;
  }
  
  #main .cards-3, #main .benefit-grid { grid-template-columns: 1fr; }
  #main .workflow-grid { grid-template-columns: 1fr; }
  #main .arrow { transform: rotate(90deg); }
  #main .solution-card { grid-template-columns: 90px 1fr; }
  #main .solution-no { width: 82px; height: 82px; }
}

/* =========================================================
   レスポンシブ（640px以下：スマホ特化向け）
========================================================= */
@media(max-width: 640px) {
  #main .container { width: min(100% - 28px, 1120px); }
  #main .section { padding: 68px 0; }
  #main .hero { padding: 58px 0; }
  
  /* 共通セクションタイトルのスマホ用余白調整 */
  #main .section-title {
    margin: 0 0 63px 0;
  }
  
  /* スマホ用FVテキストの調整 */
  #main .hero h1 { 
    font-size: 37px; 
    text-align: center;
  }
  #main .hero-copy { 
    font-size: 17px; 
    text-align: center;
  }
  #main .hero-buttons .btn { 
    border-radius: 35px;
    width: 80%;
    margin: auto;
  }
  
  /* 図解部分（モックアップ＋バッジ＋画像）を崩さずに丸ごと縮小 */
  #main .system-visual {
    width: 500px;
    max-width: none;
    margin: 0 auto 20px;
    zoom: 0.6;
  }

  /* 重ねる画像のスマホ用位置調整 */
  #main .hero-overlay-img {
    right: 17px;
    bottom: -17px;
    width: 81%;
    height: auto;
    z-index: 10;
  }

  /* モックアップ内のテキストサイズ変更 */
  #main .warehouse strong {
    font-size: 18px;
  }
  #main .warehouse span {
    font-size: 16px;
  }

  #main .dashboard { grid-template-columns: 70px 1fr; }
  #main .main-panel { padding: 16px; }
  
  /* スマホ用イントロテキストの調整 */
  #main .intro h2 {
    font-size: 21px;
  }
  #main .limit-highlight {
    font-size: 28px;
  }
  #main .intro p {
    font-size: 16px;
  }

  /* 課題セクションのナンバーバッジ調整 */
  #main .problem-card::before {
    content: attr(data-no);
    font-size: 28px;
    position: absolute;
    top: -16px;
    left: 17px;
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    border-radius: 25px;
    background: linear-gradient(145deg, var(--blue), #2a8bc880);
    color: #fff;
    font-weight: 900;
  }

  /* 解決策セクションのスマホ対応 */
  #main .solution-card { 
    grid-template-columns: 1fr; 
    padding: 28px 22px; 
    gap: 10px;
  }
  #main .solution-no { width: 72px; height: 72px; border-radius: 18px; }
  /* スマホ時のみ、タグエリアを縦に並べて改行させる */
  #main .solution-tags {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #main .workflow-box { padding: 25px 16px; }
  
  /* ベネフィットセクションのテキスト中央揃え */
  #main .benefit-card p {
    text-align: center;
  }

  /* CTAボタンのスマホ対応 */
  #main .cta-buttons .btn { 
    border-radius: 35px;
    width: 80%;
  }
  
  /* スマホ時のカードスタイル調整 */
  #main .hero-points {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 30px;
  }
  #main .hero-points li {
    padding: 14px 16px;
  }
}