@charset "UTF-8";

/* =========================================
   1. ベース設定
========================================= */
:root {
  --main-color: #00a452; /* QACグリーン */
  --accent-color: #0056b3; /* 信頼のブルー */
  --cta-color: #ff3b00; /* 申し込みボタンのオレンジレッド */
  --bg-color: #f7f9fa;
  --text-color: #333;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* =========================================
   2. ヘッダー ＆ ナビゲーション (PCベース)
========================================= */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo a {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--main-color);
}

.global-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.global-nav a {
  font-size: 0.9rem;
  font-weight: bold;
  color: #555;
}

.global-nav a:hover {
  color: var(--main-color);
}

/* =========================================
   3. メインコンテンツ・セクション枠
========================================= */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.section {
  padding: 40px 0;
  border-bottom: 1px dotted #ccc;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main-color);
}

/* =========================================
   4. 各パーツの装飾（トップページ等）
========================================= */
/* ヒーロー（一番上） */
.hero-catch {
  font-size: clamp(16px, 4vw, 22px);
  color: #555;
  font-weight: bold;
  background: #f4fdf8;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border-left: 5px solid var(--main-color);
  margin-bottom: 20px;
}

/* 理由ボックス */
.reason-box {
  background: #fdfdfd;
  border-left: 4px solid var(--main-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reason-box h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.1rem;
}

/* CTA（申し込みボタンエリア） */
.cta-area {
  text-align: center;
  margin: 40px 0;
  padding: 30px 20px;
  background: #fff5e5;
  border-radius: 8px;
}

.cta-btn {
  display: inline-block;
  background: var(--cta-color);
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(255, 59, 0, 0.3);
  transition: transform 0.2s;
}

.cta-btn:hover {
  transform: translateY(-3px);
}

/* SEO隠しテキスト（画面上は見せずGoogleだけに読ませる） */
.seo-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
}

/* FAQ（アコーディオン） */
details {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
}
summary {
  padding: 18px 20px 18px 50px;
  background-color: #f8f9fa;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "Q."; position: absolute; left: 18px; color: var(--accent-color); font-size: 1.2em;
}
.faq-content {
  padding: 20px 20px 20px 50px;
  border-top: 1px solid #ddd;
  position: relative;
}
.faq-content::before {
  content: "A."; position: absolute; left: 18px; top: 20px; color: #d9534f; font-weight: bold; font-size: 1.2em;
}

/* ご契約者の皆様・サポートエリア */
.support-area {
  background: #fdfdfd;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}
.support-box {
  flex: 1;
  min-width: 250px;
}

/* =========================================
   5. 会社概要ページ用スタイル
========================================= */
.profile-list {
  border-top: 1px solid #ddd;
  margin-bottom: 40px;
}
.profile-row {
  display: flex;
  border-bottom: 1px solid #ddd;
}
.profile-dt {
  width: 30%;
  padding: 15px;
  background-color: #f4fdf8;
  font-weight: bold;
  color: var(--main-color);
  box-sizing: border-box;
}
.profile-dd {
  width: 70%;
  padding: 15px;
  box-sizing: border-box;
}

/* =========================================
   6. フッター
========================================= */
.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 40px 20px 30px;
  margin-top: 50px;
}
.footer-info {
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 0.95rem;
}
/* リンクを綺麗に並べる */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}
.footer-links a {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}
.copy {
  margin-top: 30px;
  font-size: 0.8rem;
  color: #aaa;
}

/* =========================================
   7. ページトップへ戻る透明（半透明）ボタン
========================================= */
#page-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 164, 82, 0.6);
  color: #fff;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#page-top-btn:hover {
  background-color: rgba(0, 164, 82, 0.9);
  transform: translateY(-3px);
}

#page-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   8. スマホ用調整（レスポンシブ）
========================================= */
@media screen and (max-width: 768px) {
  /* メニューの横スワイプ化 */
  .header-inner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }
  .global-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .global-nav::-webkit-scrollbar {
    display: none;
  }
  .global-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 15px;
    width: max-content;
  }
  .global-nav a {
    font-size: 0.9rem;
    white-space: nowrap;
    padding-bottom: 5px;
  }

  /* メインコンテンツの余白 */
  .section { padding: 30px 0; }
  main { padding: 10px; }
  
  /* 会社概要の1カラム化 */
  .profile-row { flex-direction: column; }
  .profile-dt, .profile-dd { width: 100%; }
  .profile-dt { padding-bottom: 5px; border-bottom: 1px dashed #ddd; }
  .profile-dd { padding-top: 10px; }

  /* フッターの微調整 */
  .footer-info { font-size: 0.85rem; line-height: 2; }
  .footer-links { gap: 15px; }
  .footer-links a { font-size: 0.85rem; }
}