/* ========== Reset / Normalize-lite ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
input, button, textarea, select { font: inherit; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ========== Theme Tokens ========== */
:root{
  --brand-600:#0F6EEA; --brand-700:#0b5ed7;
  --ink-900:#1f2937;  --ink-700:#374151;  --ink-500:#6b7280;
  --bg:#ffffff;       --muted-100:#f5f7fa; --border:#e5e7eb;
  --radius:12px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px;
  --container:1100px;
  --muted:#6b7280; --soft:#f5f7fa; --accent:#10b981;
  --radius:14px; --shadow:0 10px 24px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial; color:var(--ink); background:var(--bg); line-height:1.6}
a{color:var(--brand); text-decoration:none}
img{max-width:100%; height:auto}
.wrap{max-width:1200px; margin:0 auto; padding:0 20px}
header{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.9); backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid #eee}
.nav{display:flex; align-items:center; justify-content:space-between; height:64px}
.logo{display:flex; align-items:center; gap:12px; font-weight:700}
.logo img{width:36px; height:36px; border-radius:50%}
.menu{display:flex; gap:18px; align-items:center}
.btn{display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:999px; border:1px solid var(--brand); color:#fff; background:var(--brand); box-shadow:var(--shadow)}
.btn--ghost{background:#fff; color:var(--brand)}
.hero{padding:64px 0 40px; background:linear-gradient(180deg,#fff 0%, #f8fbff 100%)}
.hero__grid{display:grid; grid-template-columns:1.1fr .9fr; gap:36px; align-items:center}
.badge{display:inline-block; background:#eef4ff; color:#3256b8; padding:6px 12px; border-radius:999px; font-size:13px; font-weight:600}
h1{font-size:clamp(28px,3.2vw,44px); line-height:1.2; margin:12px 0}
.sub{color:var(--muted); margin:12px 0 20px}
.cta{display:flex; gap:12px; flex-wrap:wrap}
.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px}
.kpi{background:#fff; border:1px solid #eee; border-radius:var(--radius); padding:14px; text-align:center}
section{padding:56px 0}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.card{background:#fff; border:1px solid #eee; border-radius:var(--radius); padding:20px; box-shadow:var(--shadow)}
.card h3{margin:6px 0 8px; font-size:18px}
.tag{display:inline-block; padding:4px 10px; background:#f1f5f9; border-radius:999px; font-size:12px; margin:4px 6px 0 0}
.plans{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.plan .price{font-size:32px; font-weight:800}
.faq details{border:1px solid #e5e7eb; border-radius:12px; padding:12px 16px; background:#fff}
.faq details+details{margin-top:12px}
.cta-bar{background:#0f172a; color:#fff; padding:26px 0}
.cta-bar .btn{background:#fff; color:#0f172a; border-color:#fff}
.contact{display:grid; grid-template-columns:1fr 1fr; gap:20px}
.field{display:flex; flex-direction:column; gap:6px}
.field input,.field select,.field textarea{border:1px solid #e5e7eb; border-radius:10px; padding:12px}
footer{background:#0b1220; color:#c7d2fe}
.foot{display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px; padding:36px 0}
.foot a{color:#e2e8f0}
.copy{border-top:1px solid rgba(255,255,255,.1); padding:14px 0; text-align:center; color:#94a3b8}
@media (max-width:960px){
  .hero__grid{grid-template-columns:1fr}
  .grid-3,.grid-4,.plans,.contact,.foot{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
}


/* ========== Base (Business Taste) ========== */
body{
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
.container{ width: min(100% - 32px, var(--container)); margin-inline:auto; }
.site-main{ padding-block: var(--space-6); }
h1{ font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h2{ font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; margin-top: var(--space-6); }
h3{ font-size: 18px; font-weight: 700; margin-top: var(--space-4); }
p + p{ margin-top: .75em; }

/* Links & Buttons */
a:hover{ color: var(--brand-700); }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:10px;
  background:var(--brand-600); color:#fff; border:1px solid var(--brand-700);
}
.btn:hover{ background:var(--brand-700); }

/* Cards */
.card{
  background:#fff; border:1px solid var(--border); border-radius:14px;
  padding: var(--space-5);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Tables */
table{ border:1px solid var(--border); border-radius:12px; overflow:hidden; }
thead th{ background:var(--muted-100); font-weight:600; text-align:left; padding:12px; }
tbody td{ padding:12px; border-top:1px solid var(--border); }

/* Forms */
label{ font-weight:600; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
textarea, select{
  width:100%; border:1px solid var(--border); border-radius:10px;
  padding:10px 12px; background:#fff;
}
input:focus, textarea:focus, select:focus{
  outline: none; border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(15,110,234,.15);
}

/* ========== Header & Navigation ========== */
.site-header{ background:lightgray; border-bottom:1px solid var(--border); }
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: var(--space-4); padding-block: var(--space-4);
}
.brand{ display:flex; align-items:center; gap: var(--space-3); }

/* ロゴを 80x80 表示 */
.site-logo img, .custom-logo{
  width:80px; height:80px; object-fit:contain; display:block;
}

/* タイトル */
.site-name a{ color: var(--ink-900); }
.site-name a:hover{ color: var(--brand-700); }

/* ナビ */
.primary-nav .nav-list{
  list-style:none; display:flex; gap: var(--space-4);
}
.primary-nav .nav-list a{
  padding:8px 12px; border-radius:8px; color: var(--ink-700);
}
.primary-nav .nav-list a:hover{
  background:var(--muted-100); color: var(--brand-700);
}

/* ========== Footer ========== */
.site-footer{
  border-top:1px solid var(--border); background-color:lightgray;
  color:var(--ink-700); padding-block: var(--space-6); text-align:center;
}

/* ========== Utilities ========== */
.visually-hidden{
  position:absolute!important; height:1px;width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 520px){
  .site-logo img{ width:56px; height:56px; }
  .primary-nav .nav-list{ gap: var(--space-2); }
}

.blogcard {
  padding:8px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.blog-card {
  padding:12px;
  width: calc(33.333% - 16px); /* 3列ベース、隙間調整 */
  box-sizing: border-box;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-thumb img {
  width: 300px;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0 auto;
}

  
  /* テキスト部分 */
  .card-body {
    padding: 16px;
  }
  .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    font-weight: bold;
  }
  .card-excerpt {
    font-size: 0.95rem;
    color: var(--ink-700, #555);
    margin-bottom: 1em;
  }
  .card-more {
    font-size: 0.9rem;
    color: var(--brand-600, #0F6EEA);
    font-weight: bold;
  }

  .bloglist_container {
    padding:32px;
  }

  .blogdate {
    text-align:right;
    margin-right:48px;
  }

  .blogcontent {
    margin:32px;
  }

  /* カテゴリー全体エリア */
.post-categories {
  background-color: #f1f9ff;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-left: 5px solid #69c;
  border-radius: 6px;
}

/* タグ全体エリア */
.post-tags {
  background-color: #fff8ec;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-left: 5px solid #e4a03d;
  border-radius: 6px;
}

/* 各カテゴリーラベル */
.category-label {
  display: inline-block;
  background-color: #d6ecff;
  color: #004080;
  padding: 4px 10px;
  margin: 3px 6px 3px 0;
  border-radius: 12px;
  font-size: 0.9em;
}

/* 各タグラベル */
.tag-label {
  display: inline-block;
  background-color: #ffeecb;
  color: #8a5800;
  padding: 4px 10px;
  margin: 3px 6px 3px 0;
  border-radius: 12px;
  font-size: 0.9em;
}

/* サムネイル画像 */
.post-thumbnail img {
  display:block;
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ========== Tokens ========== */
:root{
  --chat-max: 980px;
  --ink-900:#1f2937;
  --ink-700:#374151;
  --ink-500:#6b7280;

  --bg:#ffffff;
  --panel:#f7fafc;           /* セクション背景（淡い水色に近いグレー） */
  --border:#e5e7eb;          /* 薄い境界線 */
  --ring:#dbeafe;            /* アイコンのリング色（淡い水色） */

  --bubble:#ffffff;          /* 吹き出しのベースは白 */
  --shadow: 0 4px 14px rgba(0,0,0,.06);

  --radius-xl: 16px;
  --radius-2xl: 22px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
}

/* ========== Wrapper ========== */
.container{
  max-width: var(--chat-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.chat-qa{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(16px, 2.5vw, 28px);
}

.chat-qa__title {
  text-align: center;
}
/* 行の左右配置 */
.chat-row{
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  margin-block: var(--space-4);
}

/* 女性＝右寄せ（アバター右、吹き出し左に隣接） */
.chat-row--female{
  justify-content: flex-end;
  flex-direction: row-reverse; /* 右にアバター */
}

/* 男性＝左寄せ（アバター左） */
.chat-row--male{
  justify-content: flex-start;
  flex-direction: row;
}

/* ========== Avatar ========== */
.avatar{
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 64px;
}

.avatar img{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #eaf4ff;               /* アイコン背景となじむ淡い水色 */
  border: 3px solid var(--ring);     /* 優しいリング */
  box-shadow: 0 2px 10px rgba(13, 61, 131, .08);
}

.avatar__label{
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1;
}

/* ========== Bubble ========== */
.chat-bubble{
  position: relative;
  max-width: min(72ch, 620px);  /* 200文字程度を想定した幅 */
  background: var(--bubble);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--ink-900);
  line-height: 1.7;
  word-break: break-word;
}

/* バブルの矢印（女性＝右側） */
.chat-row--female .chat-bubble::after{
  content: "";
  position: absolute;
  right: -8px;
  bottom: 10px;
  width: 14px; height: 14px;
  background: var(--bubble);
  border: 1px solid var(--border);
  border-left: none; border-top: none;
  transform: rotate(-45deg);
  box-shadow: 3px 3px 8px rgba(0,0,0,.04);
}

/* バブルの矢印（男性＝左側） */
.chat-row--male .chat-bubble::after{
  content: "";
  position: absolute;
  left: -8px;
  bottom: 10px;
  width: 14px; height: 14px;
  background: var(--bubble);
  border: 1px solid var(--border);
  border-right: none; border-top: none;
  transform: rotate(45deg);
  box-shadow: -3px 3px 8px rgba(0,0,0,.04);
}

/* テキスト */
.chat-bubble p{
  margin: 0;
  font-size: clamp(14px, 1.4vw, 15.5px);
  color: var(--ink-700);
}

/* ========== 細かなアクセント（任意） ========== */
/* 女性バブルの軽い強調（右寄せなので視認性UP） */
.chat-row--female .chat-bubble{
  border-color: #dbeafe;
}

/* 男性はわずかにグレー寄りで差別化 */
.chat-row--male .chat-bubble{
  border-color: var(--border);
}

/* ========== Responsive ========== */
@media (max-width: 640px){
  .container{ padding-inline: 16px; }
  .avatar{ min-width: 56px; }
  .avatar img{ width: 56px; height: 56px; }
  .chat-bubble{ padding: 10px 12px; }
}
/* 女性行：右寄せ + 左→右の順（吹き出し → アイコン） */
.chat-row--female{
  justify-content: flex-end;
  flex-direction: row; /* ← ここを row にする（row-reverse を上書き） */
}

/* 矢印は右側に出す（必要なら） */
.chat-row--female .chat-bubble::after{
  right: -8px;
  left: auto;
  transform: rotate(-45deg);
}

/* 並びの余白が詰まる場合の微調整（任意） */
.chat-row--female .chat-bubble{ margin-right: 4px; }
.chat-row--female .avatar{ margin-left: 0; }

.cv_container {
  margin:32px;
  display:flex;
  flex-direction: column;
  justify-content: center;
}
.contact-fixed-btn {
  position: fixed;
  right: 18px;   /* 右から18px */
  bottom: 24px;  /* 下から24px */
  background: #0F6EEA;   /* ボタン色 */
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;  /* 丸み */
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  z-index: 999;  /* ヘッダーや他要素の上に表示 */
  transition: background 0.3s ease;
}
.contact-fixed-btn:hover {
  background: #0b5ed7;
}
