@charset "UTF-8";
/**
 * RR-Gate リデザイン用スタイルシート
 *
 * 【設計方針】
 * - 1920px基準のvwスケーリングで全画面幅に対応（html font-size: clamp）
 * - すべてのサイズ指定はrem単位（1rem = 10px @1920px幅）
 * - CSS変数でカラー・シャドウを一元管理
 * - 768px以下でスマホ用レイアウトに切替
 */
/* Noto Sans JP（源ノ角ゴシック互換）Webフォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800;900&display=swap');

/* ======== 基準サイズ・変数定義 ======== */
html {
  /* 1920px基準: 画面幅に連動してrem単位を自動スケーリング */
  font-size: clamp(4.0px, calc(100vw / 192), 10px);
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* 全要素にbox-sizingを継承（横スクロール防止） */
*,
*::before,
*::after {
  box-sizing: inherit;
}

:root {
  /* カラーパレット */
  --primary-color: #e65000;
  --primary-hover: #ff6b1a;
  --secondary-color: #fff5eb;
  --text-main: #222;
  --text-muted: #555;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --border-color: #eaeaea;
  /* シャドウ */
  --shadow-sm: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.05);
  --shadow-md: 0 0.8rem 2.4rem rgba(230, 80, 0, 0.08);
  --shadow-lg: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.08);
  --shadow-orange: 0 0.8rem 2.4rem rgba(230, 80, 0, 0.2);
  /* FAQ用カラー */
  --faq-color: #cb5517;
}

/* ======== リセット・共通設定 ======== */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.6rem;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* メディア要素リセット */
img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  display: block;
}

/* 長い英単語・URLでのレイアウト崩れ防止 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* フォーム部品のフォント継承 */
input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ======== 共通コンポーネント ======== */
/* セクションアイコン（各セクション見出し上のピンアイコン） */
.section-icon {
  display: block;
  margin: 0 auto 1.6rem;
  padding-left: 4.0rem;
  width: 100%;
  max-width: 11.0rem;
  height: auto;
}

/* 共通見出し（下線付き中央配置） */
.section-title {
  text-align: center;
  margin: 0 0 6.0rem;
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
  letter-spacing: 0.08em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2.0rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.0rem;
  height: 0.4rem;
  background-color: var(--primary-color);
  border-radius: 0.2rem;
}

/* セクション共通パディング */
.section-pad {
  padding: 10.0rem 2.0rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 120.0rem;
  margin: 0 auto;
}

/* 背景色調整用ユーティリティ */
.bg-light {
  background-color: var(--bg-light) !important;
}

/* 単語途中の改行防止用インラインブロック */
.ib {
  display: inline-block;
}

/* ======== ボタン ======== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 10.2rem;
  border-radius: 5.0rem;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
  cursor: pointer;
  gap: 0.8rem;
}

.btn-icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  box-shadow: var(--shadow-orange);
  border: none;
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary-color);
  border: 0.2rem solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.2rem 2.8rem rgba(230, 80, 0, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-0.4rem);
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 2.0rem 5.6rem;
  font-size: 2.0rem;
}

/* ======== ヘッダー ======== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3.0rem 5.0rem;
  background-color: transparent;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 100;
}

.header-logo {
  margin: 0;
  padding-top: 1.0rem;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 6.8rem;
  /* 不透明の白い縁取りを複数重ねて太くする */
  filter:
    drop-shadow(0.1rem 0.1rem 0 #fff) drop-shadow(-0.1rem -0.1rem 0 #fff) drop-shadow(0.1rem -0.1rem 0 #fff) drop-shadow(-0.1rem 0.1rem 0 #fff) drop-shadow(0 0.2rem 0 #fff) drop-shadow(0 -0.2rem 0 #fff);
}

/* ======== ファーストビュー（Hero） ======== */
.hero {
  background-image: url('../img/top_bg_hero.webp');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  /* 背景画像のアスペクト比を維持 */
  aspect-ratio: 2880 / 1840;
  display: flex;
  align-items: flex-start;
  /* 1536px〜1920pxで padding-top が10rem→12.5remへスケール */
  padding: clamp(10.0rem, 6.51vw, 12.5rem) 2.0rem 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hero-inner {
  width: 100%;
  /* 1536px〜1920pxでコンテナ幅が110rem→137.5remへスケール */
  max-width: clamp(110.0rem, 71.61vw, 137.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

/* ファーストビューのコピー画像 */
.hero-catch-img {
  width: auto;
  max-height: clamp(8.0rem, 5.21vw, 10.0rem);
  margin-left: 10rem;
}

.hero-sub-img {
  width: auto;
  max-height: clamp(8.0rem, 5.21vw, 10.0rem);
  margin-left: 10rem;
  margin-bottom: clamp(2.4rem, 1.56vw, 3.0rem);
  filter: drop-shadow(0 0 1.0rem #fff) drop-shadow(0 0 1.5rem #fff);
}

.hero-title {
  margin: 0 0 2.0rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.6rem, 1.04vw, 2.0rem);
}

.hero-system-img {
  width: auto;
  /* 共通img { max-width: 100% } をクラス優先度で解除 */
  max-width: none;
  max-height: clamp(10.0rem, 6.51vw, 12.5rem);
  box-sizing: content-box;
  /* 画像の半透明白フィルターに合わせ、左側へ帯を延長 */
  border-left: 100vw solid rgba(255, 255, 255, 0.85);
  margin-left: -100vw;
}

.hero-logo {
  display: block;
  max-width: clamp(64.0rem, 41.67vw, 80.0rem);
  width: 100%;
  height: auto;
  padding-left: clamp(8.0rem, 5.21vw, 10.0rem);
}

.hero-buttons {
  display: flex;
  gap: clamp(2.4rem, 1.56vw, 3.0rem);
  padding-left: clamp(13.0rem, 8.46vw, 16.2rem);
}

/* ======== お悩み解決セクション ======== */
.problems {
  background-color: #fff;
}

/* 上パディングを0にしてHeroセクションと密着 */
.problems.section-pad {
  padding: 0 2.0rem 10.0rem;
}

.problems .container {
  max-width: 104.0rem;
}

.problems-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  letter-spacing: 0.06em;
  gap: 1.0rem;
  font-size: 4.6rem;
  color: #222;
}

.problems-logo {
  width: auto;
  max-width: 36.0rem;
  height: auto;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
  width: 100%;
  margin: 0 auto;
}

.problem-item {
  position: relative;
  padding: 2.4rem 2.4rem 2.4rem 3.2rem;
  background-color: #fff;
  border: none;
  border-radius: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 2.6rem;
  line-height: 1.6;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* 左端のオレンジグラデーション帯 */
.problem-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.8rem;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
  transition: width 0.3s ease;
}

.problem-item:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0 1.6rem 3.2rem rgba(230, 80, 0, 0.15);
}

.problem-item:hover::after {
  width: 1.2rem;
}

/* チェックマークアイコン */
.problem-item::before {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.0rem;
  height: 4.0rem;
  background-color: rgba(230, 80, 0, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 1.6rem;
  font-size: 1.6rem;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.problem-item:hover::before {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0.8rem 1.6rem rgba(230, 80, 0, 0.3);
}

/* ======== RR-Gateとは？（About） ======== */
.about-title {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1.0rem;
  padding-top: 8.0rem;
  font-size: 4.8rem;
}

.about-logo {
  width: auto;
  max-width: 40.8rem;
  height: auto;
}

.about {
  background-image: url('../img/about.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  text-align: center;
  width: 100%;
  /* 背景画像のアスペクト比 */
  aspect-ratio: 5760 / 5044;
}

.about-text {
  max-width: 120.0rem;
  margin: 0 auto 3.0rem;
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1.6;
  color: var(--primary-color);
}

.about-desc {
  max-width: 120.0rem;
  margin: 0 auto 6.0rem;
  font-size: 1.6rem;
  line-height: 2.0;
  color: var(--text-main);
}

.about-desc-bold {
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 2.0rem;
  line-height: 1.8;
}

.about-desc-bold span {
  color: var(--primary-hover);
}

.about-desc-normal {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0;
}

/* ターゲットユーザーボックス */
.target-box {
  padding-top: 10.0rem;
  max-width: 88.0rem;
  margin: 0 auto;
  font-family: "Noto Sans JP", "Source Han Sans", "Source Han Sans JP", sans-serif;
  font-weight: 800;
}

.target-title {
  margin: 0;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--bg-color);
}

.target-bracket-img {
  width: 100%;
  max-width: 40.0rem;
  margin: 0 auto 3.2rem;
}

.target-list {
  text-align: left;
  font-size: 2.2rem;
  line-height: 2.0;
  color: var(--bg-color);
  display: table;
  margin: 0 auto;
}

.target-list li {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.2rem;
}

.target-list li::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 2.0rem;
  height: 2.0rem;
  background-image: url('../img/icon_check.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border-radius: 0;
}

/* ======== 機能的な特長セクション ======== */
.features {
  background-color: #fff;
}

.features .container {
  max-width: 140.0rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5.0rem 4.0rem;
}

.feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 4.0rem;
  filter: drop-shadow(0 0.8rem 2.0rem rgba(230, 80, 0, 0.15));
  z-index: 1;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-0.4rem);
}

/* カード背景（疑似要素で3分割し個別に角丸設定） */
.feature-item-bg {
  position: absolute;
  top: 0;
  left: 10.0rem;
  width: calc(100% - 10.0rem);
  height: 100%;
  background-image: linear-gradient(#fff, #fff);
  border-radius: 1.6rem 1.6rem 1.6rem 0;
  z-index: -1;
}

/* 左下の白ブロック */
.feature-item-bg::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -10.0rem;
  width: 10.0rem;
  height: calc(100% - 8.0rem);
  background-image: linear-gradient(#fff, #fff);
  border-radius: 1.6rem 0 0 1.6rem;
}

/* 左上の斜めカットブロック */
.feature-item-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -10.0rem;
  width: 10.0rem;
  height: 10.0rem;
  background-image: linear-gradient(115deg, transparent 9.5rem, #fff 9.05rem);
  border-radius: 1.6rem 0 0 0;
}

/* オレンジ番号タブ背景 */
.feature-badge-bg {
  position: absolute;
  top: 1.0rem;
  left: 1.0rem;
  width: 9.0rem;
  height: 7.0rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-top-left-radius: 1.6rem;
  z-index: -2;
}

.feature-badge-text {
  position: absolute;
  top: 2.4rem;
  left: 2.4rem;
  color: #fff;
  font-size: 3.4rem;
  font-family: Arial, sans-serif;
  font-weight: 900;
  line-height: 1;
  z-index: 1;
}

.feature-header {
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  padding-left: 8.0rem;
}

.feature-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0;
}

.feature-body {
  display: flex;
  gap: 4.0rem;
  padding: 0 1.0rem;
  align-items: center;
}

.feature-desc {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0;
}

.feature-image {
  flex: 1;
}

.dummy-img {
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22.0rem;
  height: 100%;
  color: #999;
  border-radius: 0.8rem;
  border: 0.1rem solid var(--border-color);
  overflow: hidden;
}

.dummy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======== 導入メリット ＆ 機器紹介 ラッパー ======== */
.merit-equipment-wrapper {
  background-image: url('../img/bg_merit.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  /* 背景画像のアスペクト比（トリミング後のサイズに合わせて調整） */
  aspect-ratio: 1440 / 3300;
}

/* ======== 導入メリット（テキストセクション） ======== */
.text-section {
  background-color: transparent;
}

.text-content {
  background-color: #fff;
  padding: 5.0rem;
  border-radius: 1.6rem;
  margin-bottom: 4.0rem;
  box-shadow: var(--shadow-sm);
}

/* メリットリード画像 */
.merit-lead-img {
  display: block;
  margin: 0 auto 4.8rem;
  max-width: 100rem;
  width: 100%;
}

.merit-box-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: auto;
}

/* メリットテキスト */
.merit-title-top {
  margin-bottom: 2.4rem;
}

.merit-subtitle {
  text-align: center;
  color: var(--primary-color);
  font-size: 4.0rem;
  font-weight: 800;
  margin-bottom: 3.2rem;
}

.merit-box-title {
  text-align: center;
  font-size: 4.0rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 3.2rem;
}

.merit-box-title span {
  padding: 0 2rem;
  font-size: 2.8rem;
}

/* ======== 対話型コンテンツ（チャット風） ======== */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  max-width: 88.0rem;
  margin: 0 auto;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 2.0rem;
}

.chat-row.left {
  flex-direction: row;
}

.chat-row.right {
  flex-direction: row-reverse;
}

.chat-icon {
  width: 10.0rem;
  height: auto;
  margin-top: 1.0rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* 吹き出し本体 */
.chat-bubble {
  position: relative;
  max-width: 75%;
  padding: 2.0rem 2.4rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.8;
  margin: 1.2rem;
  background-color: #ffffff;
}

.chat-bubble p {
  margin: 0;
  font-weight: 700;
  position: relative;
  z-index: 3;
}

/* 吹き出し枠線の一部を切り取る白ブロック */
.chat-bubble p::before,
.chat-bubble p::after {
  content: "";
  position: absolute;
  background-color: #ffffff;
  height: 0.8rem;
  z-index: 2;
}

/* 左側（回答・青枠）のスリット位置 */
.chat-row.left .chat-bubble p::before {
  top: -2.6rem;
  right: 4.0rem;
  left: auto;
  width: 4.8rem;
}

.chat-row.left .chat-bubble p::after {
  bottom: -2.6rem;
  left: 3.2rem;
  right: auto;
  width: 3.2rem;
}

/* 右側（質問・オレンジ枠）のスリット位置 */
.chat-row.right .chat-bubble p::before {
  top: -2.6rem;
  left: 4.0rem;
  right: auto;
  width: 4.8rem;
}

.chat-row.right .chat-bubble p::after {
  bottom: -2.6rem;
  right: 3.2rem;
  left: auto;
  width: 3.2rem;
}

/* ======== 左側（回答・青）の吹き出し装飾 ======== */
.chat-row.left .chat-bubble {
  border: 0.4rem solid #0094e7;
  color: var(--text-main);
  box-shadow: 0 0 0 0.8rem #ffffff;
  filter: drop-shadow(0 0.8rem 1.6rem rgba(0, 148, 231, 0.15));
}

/* 左側のしっぽ */
.chat-row.left .chat-bubble::before {
  content: "";
  position: absolute;
  top: 30%;
  left: -1.5rem;
  width: 2.4rem;
  height: 2.6rem;
  margin-top: -3.0rem;
  background-color: #ffffff;
  border-bottom: 0.4rem solid #0094e7;
  border-left: 0.4rem solid #0094e7;
  transform: skewX(-40deg);
  border-bottom-left-radius: 0.4rem;
  box-shadow: -0.6rem 0.4rem 0 0.4rem #ffffff;
  z-index: 2;
}

/* ======== 右側（質問・オレンジ）の吹き出し装飾 ======== */
.chat-row.right .chat-bubble {
  border: 0.4rem solid var(--primary-color);
  color: var(--text-main);
  box-shadow: 0 0 0 0.8rem #ffffff;
  filter: drop-shadow(0 0.8rem 1.6rem rgba(230, 80, 0, 0.15));
}

/* 右側のしっぽ */
.chat-row.right .chat-bubble::before {
  content: "";
  position: absolute;
  top: 30%;
  right: -1.5rem;
  width: 2.4rem;
  height: 2.6rem;
  margin-top: -0.2rem;
  background-color: #ffffff;
  border-bottom: 0.4rem solid var(--primary-color);
  border-right: 0.4rem solid var(--primary-color);
  transform: skewX(40deg);
  border-bottom-right-radius: 0.4rem;
  box-shadow: 0.6rem 0.4rem 0 0.4rem #ffffff;
  z-index: 2;
}

/* ======== 機器紹介セクション ======== */
.equipment {
  padding-top: 0;
  background-color: transparent;
}

.equipment-main-img {
  display: block;
  width: 100%;
  max-width: 80.0rem;
  margin: 0 auto;
}

/* ======== 共通セクション枠組み ======== */
.common-section {
  background-color: #fff;
}

.placeholder-box {
  padding: 8.0rem 2.0rem;
  text-align: center;
  background-color: var(--bg-light);
  border-radius: 1.6rem;
  color: #777777;
  border: 0.2rem dashed var(--border-color);
}

/* ======== 導入の流れセクション ======== */
.flow-section {
  background-image: url('../img/bg_flow.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 3840 / 2472;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  max-width: 80.0rem;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.flow-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  flex-shrink: 0;
  border: 0.2rem solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 3.4rem;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.flow-icon {
  width: 7.2rem;
  height: 7.2rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.8rem;
}

.flow-content {
  flex: 1;
}

.flow-title {
  color: var(--primary-color);
  font-size: 2.0rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}

.flow-desc {
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
}

/* ======== よくある質問セクション ======== */
.faq-list {
  max-width: 80.0rem;
  margin: 0 auto;
  border-top: 0.1rem dashed #333;
}

.faq-item {
  border-bottom: 0.1rem dashed #333;
}

.faq-q {
  display: flex;
  align-items: center;
  padding: 2.4rem 0;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.3s ease;
  list-style: none;
}

/* Safari用デフォルト矢印非表示 */
.faq-q::-webkit-details-marker {
  display: none;
}

/* アコーディオンが開いた状態 */
.faq-item[open] .faq-q {
  color: var(--faq-color);
}

.faq-q-mark {
  color: var(--faq-color);
  font-size: 2.4rem;
  font-family: Arial, sans-serif;
  margin-right: 1.6rem;
  font-weight: 900;
}

.faq-q-text {
  flex: 1;
  padding-right: 2.0rem;
  line-height: 1.5;
}

.faq-icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  color: #777;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--faq-color);
}

.faq-a {
  padding: 0 0 2.4rem 4.0rem;
  font-size: 1.6rem;
  color: var(--text-main);
  line-height: 1.8;
  animation: faq-open 0.4s ease-out forwards;
}

.faq-a p {
  margin: 0;
}

/* FAQ開閉アニメーション */
@keyframes faq-open {
  0% {
    opacity: 0;
    transform: translateY(-1.0rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== 機能一覧テーブル ======== */
.function-table {
  width: 100%;
  max-width: 90.0rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.function-table th,
.function-table td {
  padding: 2.0rem 1.6rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 0.1rem solid #222;
}

/* テーブル上端の太線 */
.function-table tr:first-child th,
.function-table tr:first-child td {
  border-top: 0.2rem solid #222;
}

/* モバイル機能グループ開始行の太線 */
.function-table tr.row-mobile-start th,
.function-table tr.row-mobile-start td {
  border-top: 0.2rem solid #222;
}

/* テーブル下端の太線 */
.function-table tr:last-child th,
.function-table tr:last-child td,
.function-table tr.row-mobile-start th {
  border-bottom: 0.2rem solid #222;
}

/* 各列の幅比率 */
.function-table .col-main {
  width: 35%;
}

.function-table .col-sub {
  width: 25%;
}

.function-table .col-detail {
  width: 40%;
  line-height: 1.8;
}

/* テーブル下のPDFボタン */
.function-btn-wrapper {
  text-align: center;
  margin-top: 4.8rem;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 4.0rem;
  background-color: #555555;
  color: #ffffff;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  gap: 0.8rem;
}

.btn-pdf:hover {
  background-color: #333333;
  color: #ffffff;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
}

.btn-pdf-icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* ======== 万全の標準サポートセクション ======== */
.support {
  background-image: url('../img/bg_support.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}

.support .container {
  position: relative;
  z-index: 1;
}

.support-subtitle {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
  color: var(--primary-color);
  margin-bottom: 4.0rem;
}

.support-list {
  margin: 0 auto;
  font-size: 1.8rem;
  line-height: 2.0;
  color: var(--text-main);
  display: table;
}

.support-list li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 2.0rem;
  font-weight: 700;
}

.support-list li span {
  font-weight: 400;
}

.support-list li:last-child {
  margin-bottom: 0;
}

.support-list li::before {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary-color);
}

/* ======== 中間お問い合わせセクション ======== */
.contact-mid {
  background-image: url('../img/bg_contact_mid.jpg');
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  width: 100%;
  aspect-ratio: 2880 / 578;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-mid .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* オレンジ背景に合わせてタイトル・下線を白に */
.contact-mid .section-title {
  color: #fff;
}

.contact-mid .section-title::after {
  background-color: #fff;
}

.contact-mid-buttons,
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
}

/* オレンジ背景上のボタンカラー調整（中間・最下部共通） */
.contact-mid .btn-primary,
.contact .btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}

.contact-mid .btn-primary:hover,
.contact .btn-primary:hover {
  background: #fff;
  box-shadow: 0 0.8rem 2.0rem rgba(0, 0, 0, 0.25);
}

.contact-mid .btn-secondary,
.contact .btn-secondary {
  background: #ffe3cc;
  color: var(--primary-color);
  border: none;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}

.contact-mid .btn-secondary:hover,
.contact .btn-secondary:hover {
  background: var(--secondary-color);
  box-shadow: 0 0.8rem 2.0rem rgba(0, 0, 0, 0.25);
}

/* ======== お問い合わせセクション（最下部） ======== */
.contact {
  background-image: url('../img/bg_contact_bottom.jpg');
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2880 / 723;
}

/* aspect-ratio使用時のパディング調整（横スクロール防止） */
.contact.section-pad,
.contact-mid.section-pad {
  padding-top: 2.0rem;
  padding-bottom: 2.0rem;
}

.contact .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title-img {
  max-width: 40.0rem;
  width: 100%;
  height: auto;
  margin: 0 auto 3.2rem;
}

.contact-tel-img {
  max-width: 62.0rem;
  width: 100%;
  height: auto;
  margin: 0 auto 4.0rem;
}

.contact .contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  width: 100%;
}

/* ======== フッター ======== */
.footer {
  padding: 6.0rem 2.0rem 2.0rem;
  background-color: #ffffff;
  color: var(--text-main);
}

.footer-blocks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4.0rem;
  gap: 4.0rem;
}

.footer-block {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.footer-logo {
  height: 6.4rem;
  width: auto;
  padding-right: 3rem;
}

/* 右側ロゴを大きくする専用スタイル */
.footer-logo-large {
  height: 10.0rem;
}

.footer-info {
  text-align: left;
}

.footer-company {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
}

.footer-address {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.footer-copyright {
  text-align: center;
  padding-top: 2.4rem;
  border-top: 0.1rem solid var(--border-color);
  color: #999999;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.footer-copyright p {
  margin: 0;
}

/* ======== レスポンシブ対応（768px以下） ======== */
@media (max-width: 768px) {

  /* スマホ表示時は基準サイズを通常の10pxに戻す */
  html {
    font-size: 62.5%;
  }

  /* --- ヘッダー --- */
  .header {
    padding: 2.0rem;
    justify-content: center;
  }

  .header-logo img {
    height: 3.6rem;
  }

  /* --- 共通コンポーネント --- */
  .section-icon {
    max-width: 8.0rem;
    margin-bottom: 1.2rem;
    padding-left: 3.0rem;
  }

  .section-title {
    font-size: 2.8rem;
    margin: 0 0 4.0rem;
  }

  .section-pad {
    padding: 6.0rem 2.0rem;
  }

  /* --- ファーストビュー --- */
  .hero {
    /* スマホではPC画像のアスペクト比を解除し、cover表示に切替 */
    aspect-ratio: auto;
    background-size: cover;
    background-position: center;
    padding: 11.0rem 2.0rem 8.0rem;
  }

  .hero-catch-img {
    max-height: 3.2rem;
    margin-left: 0;
  }

  .hero-sub-img {
    max-height: 4.8rem;
    margin-left: 0;
  }

  .hero-system-img {
    max-height: 4.6rem;
  }

  .hero-logo {
    padding-left: 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1.6rem;
    padding-left: 0;
  }

  .hero-buttons a,
  .contact-mid-buttons a,
  .contact-buttons a {
    width: 100%;
    padding: 2.0rem;
  }

  .contact-mid-buttons,
  .contact-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1.6rem;
  }

  /* --- RR-Gateとは？（About） --- */
  .about {
    background-image: url('../img/about_sp.jpg');
    background-size: cover;
    background-position: center;
    aspect-ratio: 1599 / 1400;
  }

  .about-title {
    gap: 0.8rem;
    font-size: 3.2rem;
  }

  .about-logo {
    width: 24.0rem;
    height: auto;
  }

  .about-desc {
    text-align: left;
  }

  .about-text {
    font-size: 2.0rem;
    margin-bottom: 2.4rem;
    text-align: left;
  }

  .about-desc-bold {
    font-size: 1.8rem;
    line-height: 1.6;
  }

  .about-desc-normal {
    font-size: 1.6rem;
    line-height: 1.6;
  }

  /* --- お悩み解決 --- */
  .problems.section-pad {
    padding: 0 2.0rem 6.0rem;
  }

  .problems-title {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 2.2rem;
  }

  .problems-logo {
    max-width: 24.0rem;
  }

  .problem-list {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .problem-item {
    padding: 2.0rem 1.6rem 2.0rem 2.4rem;
    font-size: 2.0rem;
  }

  .problem-item::before {
    width: 4.0rem;
    height: 4.0rem;
    margin-right: 1.6rem;
    font-size: 1.6rem;
  }

  /* --- 機能的な特長 --- */
  .feature-list {
    grid-template-columns: 1fr;
    gap: 3.0rem;
  }

  .feature-item {
    padding: 2.4rem;
  }

  .feature-item-bg {
    left: 8.0rem;
    width: calc(100% - 8.0rem);
  }

  .feature-item-bg::before {
    left: -8.0rem;
    width: 8.0rem;
    height: calc(100% - 6.0rem);
  }

  .feature-item-bg::after {
    left: -8.0rem;
    width: 8.0rem;
    height: 6.0rem;
    background-image: linear-gradient(127deg, transparent 7.0rem, #fff 7.05rem);
  }

  .feature-badge-bg {
    width: 7.0rem;
    height: 5.0rem;
  }

  .feature-badge-text {
    font-size: 2.4rem;
  }

  .feature-header {
    padding-left: 6.0rem;
    min-height: 2.4rem;
  }

  .feature-title {
    font-size: 2.2rem;
    margin: 0;
  }

  .feature-body {
    flex-direction: column;
    gap: 2.0rem;
    padding: 0;
  }

  /* --- 機器紹介 --- */
  .equipment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .equipment {
    padding-top: 0;
  }

  .equipment-subtitle {
    font-size: 2.0rem;
  }

  .equipment-item {
    width: calc(50% - 1.2rem);
    padding: 2.4rem 1.0rem;
    font-size: 1.4rem;
  }

  .equipment-icon {
    width: 5.6rem;
    height: 5.6rem;
  }

  /* --- お問い合わせ画像 --- */
  .contact-title-img {
    max-width: 48.0rem;
    margin-bottom: 2.4rem;
  }

  .contact-tel-img {
    max-width: 36.0rem;
    margin-bottom: 3.2rem;
  }

  /* --- 機能一覧テーブル --- */
  .function-table {
    font-size: 1.4rem;
  }

  .function-table th,
  .function-table td {
    padding: 1.6rem 1.2rem;
  }

  /* --- 導入の流れ --- */
  .flow-item {
    gap: 1.6rem;
    align-items: flex-start;
  }

  .flow-number {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.8rem;
  }

  .flow-icon {
    width: 5.6rem;
    height: 5.6rem;
  }

  .flow-title {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  .flow-desc {
    font-size: 1.4rem;
  }

  /* --- 背景画像セクションのアスペクト比解除（高さ潰れ防止） --- */
  .about,
  .flow-section,
  .contact-mid,
  .contact,
  .merit-equipment-wrapper {
    aspect-ratio: auto;
    background-size: cover;
    background-position: center;
  }

  /* --- チャット --- */
  .chat-row {
    gap: 1.2rem;
  }

  .chat-icon {
    width: 8.6rem;
    height: auto;
    margin-top: 3.0rem;
  }

  .chat-bubble {
    max-width: 85%;
    padding: 1.6rem;
    font-size: 1.4rem;
  }

  /* スマホ用スリット位置・しっぽ再調整 */
  .chat-row.left .chat-bubble p::before {
    top: -2.2rem;
    right: 3.2rem;
    left: auto;
  }

  .chat-row.left .chat-bubble p::after {
    bottom: -2.2rem;
    left: 2.4rem;
    right: auto;
  }

  .chat-row.right .chat-bubble p::before {
    top: -2.2rem;
    left: 3.2rem;
    right: auto;
  }

  .chat-row.right .chat-bubble p::after {
    bottom: -2.2rem;
    right: 2.4rem;
    left: auto;
  }

  /* --- 導入メリット --- */
  .merit-box-title {
    font-size: 2.2rem;
    margin-bottom: 2.4rem;
  }

  .merit-box-title span {
    font-size: 1.6rem;
  }

  .target-box {
    padding: 0 0 15rem;
  }

  .target-list li {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .target-list li::before {
    top: 0.6rem;
  }

  .about-desc {
    margin-bottom: 3.2rem;
  }

  .text-content {
    padding: 2.4rem;
    margin-bottom: 2.4rem;
  }

  .merit-subtitle {
    font-size: 2.4rem;
  }

  .merit-title-bottom {
    margin-top: 4.0rem;
  }

  /* テーブルの横スクロール対応 */
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2.4rem;
  }

  .function-table {
    min-width: 60.0rem;
  }

  /* --- サポート --- */
  .support {
    aspect-ratio: auto;
    background-size: cover;
    background-position: right center;
  }

  .support-subtitle {
    font-size: 2.0rem;
    margin-bottom: 3.2rem;
  }

  .btn-pdf {
    padding: 1.6rem 3.2rem;
    font-size: 1.6rem;
  }

  /* --- フッター --- */
  .footer-blocks {
    flex-direction: column;
    align-items: flex-start;
    gap: 3.2rem;
  }

  .footer-block {
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .footer-logo {
    height: auto;
    width: 100%;
    max-width: 24.0rem;
    padding: 0;
    flex-shrink: 0;
  }

  .footer-logo img {
    padding: 0;
  }

  .footer-logo-large {
    height: auto;
    width: 100%;
    max-width: 20.0rem;
    padding: 0;
    flex-shrink: 0;
  }

  .footer-info {
    flex: 1;
  }

  .footer-company {
    font-size: 1.6rem;
  }

  .footer-address {
    font-size: 1.2rem;
  }
}