/* 育脳寺子屋 天六校 - 案1（現デザイン踏襲＋スマホ最適化） */
* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN","Meiryo",sans-serif; color:#333; font-size:15px; line-height:1.8; background:#fff; }
img { max-width:100%; height:auto; }
a { text-decoration:none; color:#1A48A3; }
main a:hover { text-decoration:underline; }
ul { list-style:none; }
.inner-w { max-width:1030px; margin:0 auto; padding:0 15px; }

/* ===== ヘッダー ===== */
.site-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 15px; max-width:960px; margin:0 auto; flex-wrap:wrap; }
.site-header .logo img { width:299px; height:auto; }
.head-right { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.head-copy { font-size:12px; color:#666; }
.head-tel { font-size:24px; font-weight:bold; color:#BA3639; line-height:1.2; }
.tel-icon { height:1.5em; width:auto; vertical-align:-0.33em; }
.head-tel a { color:#BA3639; }
.head-tel small { display:block; font-size:11px; color:#666; font-weight:normal; }
.trial-btn { background:#F29500; color:#fff !important; font-weight:bold; padding:12px 20px; border-radius:6px; box-shadow:0 3px 0 #c67a00; font-size:14px; text-align:center; }
.trial-btn:hover { opacity:.9; text-decoration:none; }

/* ===== グローバルナビ（元サイトのカラフルなパステル配色） ===== */
.site-nav { background:transparent; position:relative; }
.nav-toggle { display:none; background:#EE6E79; color:#fff; border:0; font-size:15px; font-weight:bold; padding:10px 20px; font-family:inherit; cursor:pointer; }
.nav-overlay { display:none; }
.nav-close-li { display:none; }
.site-nav > ul { display:flex; max-width:1030px; margin:0 auto; }
.site-nav > ul > li { position:relative; flex:1 1 0; min-width:0; }
.site-nav a, .site-nav .nav-head { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; min-height:74px; color:#fff; font-size:15px; font-weight:bold; padding:13px 8px; text-align:center; line-height:1.3; cursor:pointer; }
.site-nav a small, .site-nav .nav-head small { font-size:9px; font-weight:normal; letter-spacing:.06em; opacity:.85; margin-top:3px; white-space:nowrap; }
.site-nav li:hover > a, .site-nav li:hover > .nav-head { filter:brightness(.93); text-decoration:none; }
/* メニュー配色: 虹のグラデーション順（暖色→黄→緑→青→紫→ピンク→赤CTA） */
.nc1 > a { background:#EE6E79; }
.nc2 > .nav-head { background:#F58A5B; }
.nc3 > a { background:#F6AD52; }
.nc4 > a { background:#F2C94C; }
.nc5 > .nav-head { background:#9CCB80; }
.nc6 > a { background:#7FC7BD; }
.nc7 > .nav-head { background:#8ED0E4; }
.nc8 > a { background:#93B8E3; }
.nc9 > a { background:#AF9BD3; }
.nc10 > a { background:#93B8E3; } /* PC: 水色→青で締める（ブログ・強み非表示のため） */
.nc-trial > a { background:#E94347; }
.site-nav .sub { display:none; position:absolute; top:100%; left:0; background:#fff; min-width:240px; z-index:20; box-shadow:0 6px 16px rgba(0,0,0,.18); }
.site-nav li:hover > .sub { display:block; }
.site-nav .sub a { display:block; min-height:0; color:#444; font-size:13.5px; padding:13px 15px; text-align:left; border-top:1px solid #eee; }
.site-nav .sub a:hover { background:#f6f6f6; }

/* ===== メインビジュアル ===== */
.promo { background:#FAD4CE url(/images/106robot/home/promo_bg.png) no-repeat center center; text-align:center; }
.promo img { width:auto; max-width:100%; display:inline-block; vertical-align:bottom; }

/* ===== 見出し・リード ===== */
.lead { text-align:center; padding:36px 15px 10px; }
.lead-circles { display:flex; justify-content:center; gap:18px; margin-bottom:44px; flex-wrap:wrap; }
.lead-circles img { width:170px; height:170px; border-radius:50%; object-fit:cover; }
.lead h2 { color:#BA3639; font-size:24px; margin-bottom:8px; line-height:1.5; }
.lead h3 { color:#1A48A3; font-size:19px; margin-bottom:16px; }
.lead p { margin-bottom:4px; }
.btn-outline { display:inline-block; margin-top:20px; border:3px solid #BA3639; color:#BA3639; font-weight:bold; padding:12px 34px; border-radius:6px; }
.btn-outline:hover { background:#BA3639; color:#fff; text-decoration:none; }

h2.band, h3.band { background:#BA3639; color:#fff; font-size:19px; font-weight:bold; padding:10px 18px; margin:40px 0 20px; }
main h2:not(.band):not(.access-h) { color:#BA3639; font-size:22px; margin:36px 0 14px; border-bottom:3px solid #BA3639; padding-bottom:6px; }
main h3:not(.band):not(.heading) { color:#1A48A3; font-size:18px; margin:26px 0 10px; }
main p { margin-bottom:12px; }
main ul:not(.check-list):not(.blog-list):not(.course-links) { list-style:disc; padding-left:1.6em; margin-bottom:14px; }

/* ===== チェックリスト ===== */
.check-list { display:grid; grid-template-columns:1fr 1fr; gap:6px 24px; margin-bottom:14px; }
.check-list li { padding-left:1.5em; position:relative; }
.check-list li::before { content:"✔"; color:#BA3639; position:absolute; left:0; font-weight:bold; }

/* ===== 2カラム ===== */
.column02 { margin-bottom:20px; }


/* ===== コースカード ===== */
.courses { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:30px; }
.course { border:1px solid #ddd; display:flex; flex-direction:column; }
.course .ph img { width:100%; height:130px; object-fit:cover; display:block; }
.course h3, .course h4 { color:#1A48A3; font-size:15px; padding:10px 12px 4px; margin:0 !important; border:0 !important; }
.course p { font-size:12px; color:#555; padding:0 12px; line-height:1.6; flex:1; margin:0; }
.course .more { display:block; background:#BA3639; color:#fff; text-align:center; font-size:13px; font-weight:bold; padding:9px; margin:12px; border-radius:4px; }
.course .more:hover { opacity:.9; text-decoration:none; }

/* ===== ブログ・お知らせ ===== */
.news-wrap { display:flex; gap:28px; margin-top:44px; }
.news-wrap .blog-box { flex:1.2; min-width:0; }
.blog-box h2 { color:#BA3639; border-bottom:3px solid #BA3639; padding-bottom:6px; margin-bottom:12px; font-size:18px; }
.blog-list li { border-bottom:1px dotted #ccc; padding:8px 0; font-size:14px; }
.blog-list .date { color:#888; font-size:12px; margin-right:12px; white-space:nowrap; }
.josei-box { flex:1; background:#FFF7E0; border:2px solid #FAA838; padding:18px; font-size:13px; }
.josei-box h2 { color:#BA3639; font-size:17px; margin-bottom:10px; border:0; }
.josei-box .more { display:inline-block; background:#F29500; color:#fff; font-weight:bold; padding:10px 18px; border-radius:4px; margin-top:12px; font-size:13px; }

/* ===== ブログ記事ページ ===== */
.article-meta { color:#888; font-size:13px; margin-bottom:18px; }
.article-body img { margin:10px 0; }
.article-nav { display:flex; justify-content:space-between; margin-top:30px; gap:10px; font-size:14px; }
.breadcrumb { font-size:12px; color:#888; padding:10px 0; }
.breadcrumb a { color:#888; }

/* ===== アクセス ===== */
.access { text-align:center; padding:40px 15px 30px; background:#F6F6F6; margin-top:44px; }
.access .logo-s { width:220px; margin:0 auto; }
.access .map { max-width:640px; margin:16px auto; }
.access .map iframe { width:100%; height:300px; border:0; }
.stars { color:#FFBB29; font-size:20px; letter-spacing:2px; }

/* ===== フッター ===== */
.site-footer { background:#BA3639; color:#fff; text-align:center; padding:34px 15px 20px; }
.site-footer h2 { font-size:22px; margin-bottom:14px; }
.footer-tel { font-size:30px; font-weight:bold; }
.footer-tel a { color:#fff; }
.footer-tel small { display:block; font-size:12px; font-weight:normal; }
.footer-btn { display:inline-block; background:#F29500; color:#fff; font-weight:bold; padding:14px 30px; border-radius:6px; margin:16px 0 26px; }
.footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 18px; font-size:12px; opacity:.9; max-width:820px; margin:0 auto 20px; }
.footer-links a { color:#fff; }
.copyright { font-size:11px; opacity:.7; }

/* ===== フローティングボタン（スマホのみ） ===== */
.fab { position:fixed; right:12px; bottom:26px; display:none; flex-direction:column; gap:10px; z-index:50; }
.fab a { width:56px; height:56px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff !important; font-weight:bold; box-shadow:0 4px 14px rgba(0,0,0,.35); }
.fab .line { background:#06C755; font-size:12px; }
.fab .line span { font-size:17px; line-height:1; margin-bottom:2px; }
.fab .tel { background:#BA3639; font-size:21px; }
.fab .tel small { font-size:9px; font-weight:bold; margin-top:1px; }

/* ===== スマホ ===== */
@media (max-width:768px) {
  .site-header { justify-content:center; text-align:center; }
  /* 右上固定「☰ メニュー」ボタン＋右スライドのドロワーメニュー */
  .site-header .logo { margin-right:64px; }
  .nav-toggle { display:flex; position:fixed; top:8px; right:8px; z-index:105; flex-direction:column; align-items:center; justify-content:center; gap:2px; width:56px; height:56px; border-radius:50%; margin:0; padding:0; font-size:10px; box-shadow:0 3px 10px rgba(0,0,0,.3); }
  .nav-bars { font-size:20px; line-height:1; }
  .site-nav > ul { display:block; position:fixed; top:0; right:0; left:auto; bottom:0; width:290px; max-width:82vw; background:#fff; z-index:120; overflow-y:auto; -webkit-overflow-scrolling:touch; transform:translateX(105%); transition:transform .28s ease; box-shadow:-4px 0 18px rgba(0,0,0,.25); margin:0; padding:0 0 30px; text-align:left; }
  body.nav-open .site-nav > ul { transform:translateX(0); }
  .nav-overlay { display:block; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.45); z-index:110; opacity:0; pointer-events:none; transition:opacity .28s ease; }
  body.nav-open .nav-overlay { opacity:1; pointer-events:auto; }
  body.nav-open { overflow:hidden; }
  .nav-close-li { display:block; }
  .nav-close { display:block; width:100%; text-align:right; background:#fff; color:#888; border:0; border-bottom:1px solid #eee; font-size:14px; font-weight:bold; padding:14px 16px; font-family:inherit; cursor:pointer; }
  .site-nav a, .site-nav .nav-head { min-height:0; padding:13px 16px; border-bottom:1px solid rgba(255,255,255,.4); flex-direction:row; justify-content:flex-start; gap:8px; text-align:left; font-size:14.5px; }
  .site-nav a small, .site-nav .nav-head small { display:none; }
  .site-nav li > .sub { display:none; position:static; box-shadow:none; min-width:0; }
  .site-nav li:hover > .sub { display:none; }
  .site-nav li.sub-open > .sub { display:block; }
  .site-nav .nav-head::after { content:"▼"; font-size:10px; margin-left:auto; opacity:.9; }
  .site-nav li.sub-open > .nav-head::after { content:"▲"; }
  .site-nav .sub a { padding-left:2.5em; background:#fff; }
  .nc10 > a { background:#F4B3D0; } /* スマホ: 紫→ピンク→赤CTAの流れ */
  .lead-circles { gap:10px; }
  .lead-circles img { width:120px; height:120px; }
  .lead h2 { font-size:19px; }
  .check-list { grid-template-columns:1fr; }
  .column02 { flex-direction:column; }
  .courses { grid-template-columns:1fr; }
  .news-wrap { flex-direction:column; }
  .fab { display:flex; }
}

/* ===== フォーム ===== */
.form-table { width:100%; border-collapse:collapse; margin:20px 0; }
.form-table th, .form-table td { border:1px solid #ddd; padding:12px; text-align:left; vertical-align:top; }
.form-table th { background:#F6F6F6; width:34%; font-size:14px; }
.form-table th em { color:#BA3639; font-size:11px; font-style:normal; display:block; }
.form-table input, .form-table select, .form-table textarea { width:100%; padding:9px; border:1px solid #ccc; border-radius:4px; font-family:inherit; font-size:15px; }
.form-table input[type="radio"] { width:auto; padding:0; margin:0 6px 0 0; vertical-align:middle; }
.form-table td label { white-space:nowrap; cursor:pointer; }
.form-error { color:#BA3639; font-weight:bold; text-align:center; }
.form-submit { border:0; font-size:16px; padding:14px 44px; cursor:pointer; font-family:inherit; }
@media (max-width:768px) {
  .form-table, .form-table tr, .form-table th, .form-table td { display:block; width:100%; border:0; }
  .form-table th { background:none; padding:10px 0 4px; }
  .form-table td { padding:0 0 10px; }
}

/* ===== 生徒用ログイン ===== */
.login-btn { background:#1A48A3; color:#fff !important; font-weight:bold; padding:14px 22px; border-radius:6px; box-shadow:0 3px 0 #123577; font-size:14px; text-align:center; }
.login-btn:hover { opacity:.9; text-decoration:none; }
.login-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:26px 0 40px; }
.login-card { border:2px solid #1A48A3; border-radius:8px; padding:24px; text-align:center; }
.login-card h3 { margin:0 0 16px !important; }
.login-go { display:inline-block; background:#1A48A3; color:#fff !important; font-weight:bold; padding:12px 34px; border-radius:6px; }
.login-go:hover { opacity:.9; text-decoration:none; }
.sp-only { display:none; }
@media (max-width:768px) {
  .pc-only { display:none; }
  .sp-only { display:block; }
  .login-grid { grid-template-columns:1fr; }
}


/* ===== ページ末尾CTA ===== */
.cta-bottom { text-align:center; padding:38px 15px 46px; }
.cta-btn { display:inline-block; background:#F29500; color:#fff !important; font-weight:bold; font-size:17px; padding:16px 48px; }
.cta-btn:hover { opacity:.9; text-decoration:none; }

/* ===== 全ボタン共通: 角なし（丸型）＋影 ===== */
.trial-btn, .login-btn, .btn-outline, .course .more, .josei-box .more,
.footer-btn, .login-go, .form-submit, .cta-btn {
  border-radius:999px; box-shadow:0 4px 12px rgba(0,0,0,.22);
}

/* ===== Googleクチコミ表示 ===== */
.greview { max-width:340px; margin:30px auto 0; background:#fff; border:2px solid #E0C169; border-radius:16px; box-shadow:0 4px 14px rgba(0,0,0,.12); padding:24px 20px; text-align:center; }
.gr-head { font-weight:bold; color:#555; font-size:14px; margin:0 0 6px; }
.gr-score { font-size:44px; font-weight:bold; color:#333; line-height:1.1; margin:0; }
.gr-score .gr-max { font-size:16px; color:#999; font-weight:normal; margin-left:4px; }
.gr-stars { font-size:24px; margin:2px 0 4px; }
.gr-count { font-size:13px; color:#777; margin:0 0 14px; }
.gr-link { display:inline-block; background:#439ED8; color:#fff !important; font-weight:bold; font-size:14px; padding:11px 26px; border-radius:999px; box-shadow:0 4px 12px rgba(0,0,0,.22); }
.gr-link:hover { opacity:.9; text-decoration:none; }

/* ===== 元サイトと同じ背景帯 ===== */
.promo { position:relative; }
.promo::before { content:""; position:absolute; top:0; left:0; right:0; bottom:0; background:url(/images/106robot/common/pattern.png) repeat center top; opacity:.2; }
.promo img { position:relative; }
.lead { position:relative; background:#F8DDC2; padding-bottom:40px; }
.lead::before { content:""; position:absolute; top:0; left:0; right:0; bottom:0; background:url(/images/106robot/common/pattern.png) repeat center top; opacity:.2; }
.lead > * { position:relative; }
.sec-reco { background:url(/images/106robot/home/graph.png) repeat center top; padding:6px 0 34px; }
.sec-courses { background:#97CBFF; padding:6px 0 60px; margin-top:40px; }
.sec-courses .band { margin-top:34px; }
.access { background:url(/images/106robot/common/dot.png) repeat center top; }
.site-footer { background:#F59797; }

/* ===== Googleクチコミ一覧（元サイトのウィジェット風） ===== */
.grw { max-width:880px; margin:34px auto 0; text-align:left; }
.grw-head { background:#4994F8; color:#fff; text-align:center; border-radius:10px 10px 0 0; padding:16px 12px; font-size:15px; line-height:1.7; }
.grw-head .grw-stars-w { color:#FFBB29; letter-spacing:2px; }
.grw-list { background:#fff; border:1px solid #dde5f0; border-top:0; border-radius:0 0 10px 10px; padding:10px 18px; }
.grw-card { border-bottom:1px solid #eee; padding:16px 4px; }
.grw-card:last-child { border-bottom:0; }
.grw-who { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.grw-avatar { width:42px; height:42px; border-radius:50%; color:#fff; font-weight:bold; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.grw-stars { color:#FFBB29; letter-spacing:1px; }
.grw-date { color:#999; font-size:12px; margin-left:8px; }
.grw-text { font-size:14px; line-height:1.8; margin:0; color:#444; }

/* 旧テンプレのletter-spacingハック対策（.innerが無い子要素でも文字が重ならないように） */
.column02 > *, .column03 > * { letter-spacing: normal; }

/* column03を確実に3列組みに（旧inline-blockレイアウトのflex化） */
.column03 { display:flex; flex-wrap:wrap; align-items:stretch; }

/* itemid-317の柄オーバーレイをセクション内に封じ込め */
.itemid-317 { position:relative; }
.itemid-317 > * { position:relative; z-index:1; }

/* 当教室の強みボタン（トップ）を強調 */
.btn-strength { display:inline-block; margin-top:24px; background:#BA3639; color:#fff !important; font-weight:bold; font-size:17px; padding:16px 40px; border-radius:999px; box-shadow:0 4px 12px rgba(0,0,0,.22); }
.btn-strength:hover { opacity:.9; text-decoration:none; }

/* スマホ: クチコミは3件＋もっと見る、塾代助成を上へ・強調 */
.grw-more { display:none; border:0; background:#fff; color:#4994F8; font-weight:bold; font-size:14px; padding:12px; width:100%; cursor:pointer; font-family:inherit; }
@media (max-width:768px) {
  .grw-list:not(.open) .grw-card:nth-child(n+4) { display:none; }
  .grw-list:not(.open) .grw-more { display:block; }
  .news-wrap .josei-box { order:-1; border-width:3px; }
  .josei-box h2 { font-size:19px; }
}

/* ===== 下層ページタイトル帯（元サイトのオレンジ柄帯を再現） ===== */
.page-band { background:#FAA838; position:relative; padding:48px 15px; }
.page-band::before { content:""; position:absolute; top:0; left:0; right:0; bottom:0; background:url(/images/106robot/common/pattern.png) repeat center top; opacity:.2; }
.page-band h2 { position:relative; z-index:1; color:#fff; font-size:38px; font-weight:bold; text-align:center; line-height:1.25; margin:0; }
@media (max-width:768px) {
  .page-band { padding:30px 12px; }
  .page-band h2 { font-size:23px; }
}

/* ===== お客様の声（テキスト版） ===== */
.voice-box { border:3px solid #E5326E; border-radius:14px; background:#fff; padding:26px 28px; margin:50px 0; }
.voice-title { text-align:center; color:#E60033; font-size:21px; font-weight:bold; margin:0 0 20px !important; }
.voice-grid { display:flex; flex-wrap:wrap; gap:22px 34px; }
.voice-item { width:calc(50% - 17px); display:flex; gap:12px; align-items:flex-start; }
.voice-item .vavatar { flex-shrink:0; width:46px; height:46px; border-radius:50%; color:#fff; font-weight:bold; display:flex; align-items:center; justify-content:center; font-size:18px; }
.voice-item p { font-size:13.5px; line-height:1.9; margin:0 !important; }
.voice-item .vwho { color:#888; font-size:12.5px; }
@media (max-width:768px) { .voice-item { width:100%; } .voice-box { padding:20px 16px; } }
.voice-item img.vavatar { width:64px; height:auto; border-radius:0; background:none; }
.josei-strong { font-weight:bold; color:#BA3639; font-size:15.5px; background:linear-gradient(transparent 62%, #FFE9A0 62%); align-self:flex-start; }

/* 料金表（column02.price）は中央寄せ */
.column02.price { justify-content:center; }
.column02.price .inner { width:auto; min-width:340px; }
.column02.price table { margin:0 auto; }

/* 親御さんの感想の書き起こし */
.kansou-text { max-width:600px; margin:12px auto 34px; background:#FCF9F0; border:1px dashed #C9A96B; border-radius:10px; padding:16px 22px; }
.kansou-text p { font-size:13.5px; line-height:1.9; margin:0 0 12px !important; }
.kansou-text p:last-child { margin-bottom:0 !important; }
.kansou-label { color:#96824F; font-size:12px !important; font-weight:bold; }
.kansou-pair { margin-bottom:36px; }
.kansou-pair .kansou-text { margin-top:8px; }
.login-imgbtn img { width:175px; height:auto; display:block; border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,.22); }
.login-imgbtn:hover img { opacity:.85; }

/* メインビジュアル: 吹き出し画像のみ（問題集アートなし・中央配置） */
.promo-in { background:none; height:auto; text-align:center; }
.promo-in img { position:static; display:inline-block; width:auto; max-width:100%; height:auto; }
.promo { background-image:none; }
.promo { background:#FAD4CE; }
.promo::before { display:block; }
/* 柄レイヤー(::before)は絶対配置のため、通常フローの画像より前面に描画される。
   イラストを柄より前面に固定する（284行の position:static が200行の対策を打ち消すため必須） */
.promo-in { position:relative; z-index:1; }

/* 口コミ数1位バッジ（旧サイトの掲載を復元・リンク先も旧サイトと同一） */
.badge-rank { margin:30px 0 14px; }
.badge-rank img { width:500px; max-width:90%; height:auto; }
