/* =================================================
   1) Design Tokens（編集はここ中心）
   ================================================= */
:root {
  /* Font size (4段階) */
  --fs-2: 16px; /* ナビ・ボタン・小さめ */
  --fs-3: 16px; /* 本文 */
  --fs-4: 24px; /* 見出し */

  /* Spacing（6pxスケール） */
  --sp-1: 0px;
  --sp-2: 12px;
  --sp-3: 18px;
  --sp-4: 24px;
  --sp-5: 30px;
  --sp-6: 36px;

  /* Colors */
  --c-text: #333;
  --c-muted: #555;
  --c-border: #e5e5e5;
  --c-accent: #FF5757;

  --bg-white: #ffffff;
  --bg-lightblue: #DBEAF8;
  --bg-blue: #2260AD;
  --bg-gray: #f5f5f5;
  --bg-black: #333333;

  /* Radius / Shadow */
  --r-1: 6px;
  --r-2: 8px;

  --shadow-1: 0 6px 16px rgba(0, 0, 0, 0.06);

  /* Layout */
  --content-w: 1000px;

  /* stickyヘッダーの高さ（だいたいでOK。後で微調整） */
  --header-h: 40px;
}

/* Mobile：サイズだけここで調整（運用がラク） */
@media (max-width: 600px) {
  :root {
    --fs-2: 13px;
    --fs-3: 15px;
    --fs-4: 22px;

    --sp-4: 28px;
    --sp-5: 40px;
    --sp-6: 56px;
  }
}

/* =================================================
   2) Base / Reset
   ================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
}

/* ページ内リンクをスムーズに */
html{
  scroll-behavior: smooth;
  /* #id に飛ぶ時、ヘッダーに隠れないように余白を確保 */
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--c-text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =================================================
   3) Layout（section / container）
   ================================================= */
.section {
  width: 100%;
  padding: 0;
  scroll-margin-top: var(--header-h);
}

.section-white { background: var(--bg-white); }
.section-lightblue { background: var(--bg-lightblue); }
.section-blue { background: var(--bg-blue); color: #fff; }
.section-gray { background: var(--bg-gray); }
.section-black { background: var(--bg-black); color: #fff; }

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 4%;
  border: 0px solid #ccc;
}

/* 「見出しを中央」「見出し上下の間隔」をコンテナ共通に寄せる */
.container h2 {
  padding: var(--sp-4) 0;
  text-align: center;
}

/* =================================================
   4) Typography（4段階に統一）
   ================================================= */
   
h1 {
  font-size: var(--fs-4);
}

h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-4);
}

h3 {
  font-size: var(--fs-3);
  margin: var(--sp-3) 0 var(--sp-1);
  font-weight: 600;
}

p, li, label, input, select, textarea {
  font-size: var(--fs-3);
}

strong { font-weight: 600; }

/* 小さめテキスト用途（運用で増やしてOK） */
.cta-sub,
.site-subtitle,
.pricing-subtitle {
  font-size: var(--fs-2);
  line-height:1;
  margin:0;
}

/* =================================================
   5) “型”で統合（ボタン / カード）
   ================================================= */

/* ---------- Button Base（既存クラスをボタン型に寄せる） ---------- */
.btn-free,
.plan-action,
.form-action button {
  /* ここを“共通ボタン”の核にする */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 14px 28px;
  border-radius: var(--r-1);
  border: 1px solid transparent;

  font-size: var(--btn-fs, var(--fs-2));
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;

  background: var(--btn-bg, #f3f4f6);
  border-color: var(--btn-border, #d1d5db);
  color: var(--btn-color, #1f2937);

  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-free:hover,
.plan-action:hover,
.form-action button:hover {
  text-decoration: none;
  background: var(--btn-bg-hover, #e5e7eb);
}

/* btn-free（既存見た目を維持しつつ型に寄せる） */
.btn-free {
  --btn-bg: #f3f4f6;
  --btn-bg-hover: #e5e7eb;
  --btn-border: #d1d5db;
  --btn-color: #1f2937;
  --btn-fs: var(--fs-2);

  margin: 0 auto var(--sp-3);
}

/* plan-action（カード内のCTA） */
.plan-action {
  --btn-bg: #f2f2f2;
  --btn-bg-hover: #e6e6e6;
  --btn-border: transparent;
  --btn-color: var(--c-text);
  --btn-fs: var(--fs-3);

  width: 100%;
  padding: 12px;
}

/* フォーム送信ボタン（濃色） */
.form-action button {
  --btn-bg: #333333;
  --btn-bg-hover: #000000;
  --btn-border: transparent;
  --btn-color: #ffffff;
  --btn-fs: var(--fs-2);

  border: none; /* buttonはborder不要 */
}

/* セクション内CTAの整列（共通） */
.section-cta {
  padding: var(--sp-4) 0 var(--sp-5);
  text-align: center;
}

.section-cta .btn-free {
  width: 100%;
  max-width: 560px;
}

/* ---------- Card Base（pricing-card と design-block を統合） ---------- */
.pricing-card,
.design-block {
  background: var(--card-bg, #fff);
  border-radius: var(--r-1);
  padding: var(--card-pad, 24px);
  box-shadow: var(--card-shadow, var(--shadow-1));
  border: var(--card-border, 1px solid transparent);
}

/* pricing-card は“強めの影” */
.pricing-card {
  --card-pad: 32px 24px;
  --card-shadow: var(--shadow-1);
  --card-border: 1px solid transparent;

  display: flex;
  flex-direction: column;
}

/* featured は枠を出す */
.pricing-card.featured {
  --card-border: 1px solid #d6d6d6;
}

/* design-block は“枠あり＆控えめ影” */
.design-block {
  --card-pad: 24px;
  --card-shadow: var(--shadow-1);
  --card-border: 1px solid #dddddd;

  text-align: left;
}

/* =================================================
   6) Header
   ================================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.site-brand { min-width: 180px; }

.site-title {
  font-size: var(--fs-3);
  font-weight: 700;
  color: #1f2937;
}

.site-subtitle {
  color: #6b7280;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
  
}

.nav-list a {
  font-size: var(--fs-2);
  color: #374151;
}

.nav-login {
  font-size: var(--fs-2);
  color: #6b7280;
  padding-left: 15px;
  border-left: 1px solid #e5e7eb;
}

/* =================================================
   7) HERO / PROBLEM / SOLUTION（未定義だった領域も統合）
   ================================================= */
.hero-image {
  padding: 0;
  display: flex;
  justify-content: center;
}




/* =================================================
   8) Features
   ================================================= */
.features {
  max-width: 700px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: var(--sp-5);
}

.feature-badge {
  width: 80px;
  height: 80px;
  background: var(--c-accent);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-badge span {
  font-size: var(--fs-3);
  line-height: 1;
}

.feature-badge strong {
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 1.2;
}

.feature-content h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-4);
}

.feature-content p {
  margin: 0;
  line-height: 1.5;
  color: var(--c-muted);
}

/* =================================================
   9) Sample（#sample img の断片を統合）
   ================================================= */


#sample img {
  border-radius: var(--r-2);
  margin: 0 auto var(--sp-5);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

/* =================================================
   10) System Design
   ================================================= */
.system-design {
  padding: var(--sp-5) 0 var(--sp-1);
}

.design-lead {
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.design-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom:var(--sp-3);
  gap: var(--sp-3);
}

.design-block {
  width:90%;
}

.design-block h3 {
  font-size: var(--fs-3);
  margin: 0 0 var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid #cccccc;
}

.design-block ul {
  margin: 0;
  padding-left: 18px;
}

.design-block li {
  margin: var(--sp-3);
  color: #444;
}

.design-arrow {
  font-size: var(--fs-4);
  color: #888;
  line-height: 1;
}

.design-block.server {
  background: #f5f5f5;
}

/* =================================================
   11) Pricing（Cards / Table）
   ================================================= */
.plan-overview {
  padding-bottom: var(--sp-3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: var(--sp-5);
}

.pricing-grid h3 {
  font-size: var(--fs-3);
  margin: 0 0 var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid #cccccc;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-3);
}

.plan-list li {
  margin-bottom: var(--sp-1);
  color: var(--c-muted);
}

.plan-price {
  margin-bottom: var(--sp-3);
}

/* Table */
.table-wrap { overflow-x: auto; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-3);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 12px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #cccccc;
}

.pricing-table thead th {
  font-weight: 600;
  background: #f3f4f6;
}

.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
  background: #fafafa;
  width: 180px;
}

.pricing-note {
  margin-top: var(--sp-2);
  color: #666;
  line-height: 1.7;
}

/* =================================================
   12) FAQ
   ================================================= */

.faq-list {
  border-top: 1px solid var(--c-border);
  padding-bottom: var(--sp-5);
}

.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 0px 30px;
}

.faq-item[open] {
  background: #fafafa;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 20px 48px 20px 0;
  font-weight: 400;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-4);
  color: #A9A6A4;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "▼";
  color: var(--c-accent);
  font-size: var(--fs-2);
}

.faq-answer {
  padding: 0 0 20px;
  margin: 0;
  line-height: 1.8;
  color: var(--c-accent);
}

/* =================================================
   13) Contact（フォーム）
   ================================================= */
.contact-form {
  padding: var(--sp-4) 0;
}

.form-group {
  margin-bottom: var(--sp-3);
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--c-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-1);
  border: 1px solid #cccccc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #999999;
}

.required {
  color: #c00;
  margin-left: 4px;
  font-size: var(--fs-3);
}

.contact-note {
  color: #666;
  line-height: 1.7;
  margin: var(--sp-2) 0 var(--sp-3);
}

.form-action {
  text-align: center;
}

/* =================================================
   14) Footer（foote のタイポも拾う）
   ================================================= */
.foote {
  padding: var(--sp-4) 0;
  text-align: center;
  font-size: var(--fs-2);
}

.foote a {
  color: #fff;
  text-decoration: none;
}

.foote a:hover {
  text-decoration: underline;
}

/* =================================================
   15) Responsive（散らさず末尾に集約）
   ================================================= */


/* アニメ苦手な人への配慮 */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: var(--sp-2);
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .feature-item { gap: 16px; }
  .feature-badge { width: 72px; height: 72px; }
  .feature-content h3 { font-size: var(--fs-3); }

  .design-block { padding: 20px; }

  .faq-item { padding: 0 16px; }
  .faq-question { padding-right: 36px; }
}

/* =================================================
   お問合せへの送信後メッセージの表示
   ================================================= */

.thanks-message {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-lightblue);
  text-align: center;
}

.thanks-message h3 {
  margin-bottom: 12px;
  font-size: var(--fs-3);
  color: #1f2937;
}

.thanks-message p {
  font-size: var(--fs-3);
  color: #4b5563;
}
