/*
Theme Name: 関西発達臨床研究所
Description: 西尾さんがWix Studioで作ったデザインを、WordPressで組み直したテーマ（寄せ文）。
Version: 0.1.0
Author: YOSEBUMI（寄せ文）
Text Domain: kdcl
*/

:root {
  --green: #007a46;
  --green-btn: #138a4d;
  --line-green: #06c755;
  --text: #333333;
  --text-2: #373a37;
  --orange: #f65f39;
  --gray-bg: #f3f6f4;
  --gray-bg-2: #f5f5f5;
  --white: #ffffff;
  --wrap: 1162px;
  --font-ja: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-noto: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-en: "Kumbh Sans", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sp-only { display: none; }

/* ---------- 小見出し（緑の縦線つき） ---------- */
.label {
  display: inline-block;
  padding-left: 10px;
  border-left: 4px solid var(--green);
  color: var(--green);
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1.3;
}
.sec-title {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green-btn);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
  font-family: var(--font-noto);
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green); transform: translateY(-1px); }
.arrow::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-noto); font-size: 15px; color: var(--text);
}
.more::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--green); border-right: 1.5px solid var(--green); transform: rotate(45deg); }

/* ---------- ヘッダー ---------- */
.site-header { position: relative; z-index: 20; background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 90px; max-width: 1220px; }
.site-logo img { width: 266px; }
.gnav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.gnav a { font-family: var(--font-noto); font-size: 16px; color: var(--text); }
.gnav a:hover, .gnav .current-menu-item > a, .gnav .is-current > a { color: var(--green); }
.gnav .is-current > a { text-decoration: underline; text-underline-offset: 4px; }
.header-contact { padding: 14px 24px; font-size: 16px; border-radius: 4px; justify-content: center; }
.menu-toggle { display: none; }

/* ---------- ファーストビュー ---------- */
.hero { position: relative; padding: 40px 0 150px; }
.hero .wrap { max-width: 1060px; display: grid; grid-template-columns: 1fr 340px; align-items: center; column-gap: 40px; }
.hero h1 {
  font-size: clamp(36px, 3.8vw, 54.5px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--text);
}
.hero-illust img { width: 340px; }
.hero-news { grid-column: 1 / 2; margin-top: 70px; max-width: 610px; }
.hero-news-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.hero-news-head .ttl { color: var(--green); font-size: 16px; }
.news-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--gray-bg); border-radius: 8px; padding: 10px 16px;
}
.news-card .tag { color: var(--orange); font-family: var(--font-noto); font-size: 16px; padding-right: 12px; border-right: 1px solid #c8cfcb; }
.news-card .date { font-family: var(--font-en); font-size: 12px; }
.news-card .ttl { font-size: 15px; line-height: 1.6; }
.news-card:hover .ttl { color: var(--green); }

/* ---------- 緑の帯（思い） ---------- */
.mission {
  position: relative;
  color: var(--white);
  background: url("assets/img/green-bg.jpg") center / cover no-repeat;
  padding: 210px 0 230px;
}
.mission::before, .mission::after {
  content: ""; position: absolute; left: 0; right: 0; height: 80px;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.mission::before { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V0C1100 0 500 20 0 55Z' fill='%23fff'/%3E%3C/svg%3E"); }
.mission::after { bottom: -1px; height: 90px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 15C250 70 450 75 720 60S1200 0 1440 20V90H0Z' fill='%23fff'/%3E%3C/svg%3E"); }
.mission .wrap { position: relative; max-width: 1060px; }
.mission-body { margin-left: 255px; max-width: 560px; }
.mission h2 { font-size: clamp(28px, 2.8vw, 40.4px); font-weight: 400; line-height: 1.3; }
.mission p { margin-top: 40px; font-size: 17px; line-height: 2.4; letter-spacing: .2em; font-family: var(--font-noto); font-weight: 400; }
.mission p + p { margin-top: 41px; }
.mission .blob { position: absolute; overflow: hidden; background: var(--white); }
.mission .blob img { width: 100%; height: 100%; object-fit: cover; }
.blob-running { width: 232px; height: 226px; right: 0; top: 260px; border-radius: 48% 52% 50% 50% / 54% 50% 50% 46%; }
.blob-bubbles { width: 385px; height: 401px; left: -250px; top: 560px; border-radius: 40% 60% 55% 45% / 45% 50% 50% 55%; }
.blob-kame { width: 116px; height: 113px; right: -30px; top: 700px; border-radius: 50%; }

/* ---------- ビジョンと4つの事業 ---------- */
.vision { padding: 70px 0 90px; }
.vision .lead { margin-top: 36px; font-size: 16px; line-height: 2; }
.biz-box { margin-top: 16px; background: var(--gray-bg); border-radius: 12px; padding: 60px 100px; }
.biz-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.biz-list a {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: var(--white); border-radius: 8px; padding: 36px 10px 34px;
  transition: box-shadow .2s, transform .2s;
}
.biz-list a:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.biz-list img { width: 90px; height: 90px; }
.biz-list span { color: var(--green); font-size: 32px; font-weight: 400; line-height: 1.3; }
.vision .center { margin-top: 48px; text-align: center; }
.vision .btn { padding: 18px 30px; min-width: 350px; font-size: 16px; font-weight: 400; }

/* ---------- 研修会情報 ---------- */
.topics { background: var(--gray-bg-2); padding: 150px 0 90px; }
.topics-head { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.topics-head .links { display: flex; gap: 36px; padding-bottom: 6px; }
.seminar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.seminar-list a { display: block; height: 100%; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.seminar-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.seminar-list .body { padding: 14px 16px 18px; }
.seminar-list .ttl { color: var(--green); font-size: clamp(18px, 1.6vw, 22.2px); font-weight: 400; line-height: 1.3; }
.seminar-list .date { margin-top: 10px; color: var(--green); font-size: 13px; font-weight: 500; }
.seminar-list a:hover .ttl { text-decoration: underline; }

/* ---------- 公式LINE ---------- */
.line-cta { display: grid; grid-template-columns: auto 180px; justify-content: center; align-items: center; column-gap: 70px; padding-top: 70px; }
.line-cta p { font-family: var(--font-noto); font-weight: 300; font-size: 16px; line-height: 1.6; text-align: center; }
.line-cta .btn {
  margin-top: 40px; padding: 14px 40px; gap: 14px; justify-content: center;
  background: var(--line-green); font-size: 17px; line-height: 1.3; text-align: left; font-weight: 300;
}
.line-cta .btn:hover { background: #05b04b; }
.line-cta .btn svg { flex: none; width: 34px; height: 34px; }
.line-cta .kame img { width: 140px; }
.line-cta.is-white { padding: 50px 0 100px; }
.line-cta.is-white p { font-weight: 400; }

/* ---------- ごあいさつ ---------- */
.message { padding: 100px 0 0; }
.message-box { border: 1px solid var(--green); border-radius: 4px; padding: 100px 120px 100px 100px; display: grid; grid-template-columns: 1fr 282px; column-gap: 46px; }
.message-text p { margin-top: 18px; font-size: 16.2px; line-height: 1.6; }
.message-text .sec-title { margin-top: 8px; }
.signature { margin-top: 30px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; text-align: right; }
.signature .role { font-size: 16px; }
.signature .name { font-family: var(--font-noto); font-weight: 600; font-size: 19.2px; letter-spacing: .1em; }
.signature img { width: 52px; border: 1px solid #ccc; }
.message-photo img { width: 282px; height: 351px; object-fit: cover; border-radius: 12px; margin-top: 50px; }

/* ---------- 研究所について（カード） ---------- */
.about-links { background: var(--gray-bg); padding: 70px 0; border-bottom: 1px solid #e3e6e4; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.about-cards a { display: grid; grid-template-columns: 79px 1fr; height: 100%; min-height: 303px; background: var(--white); border: 1px solid var(--green); border-radius: 8px; overflow: hidden; }
.about-cards img { width: 79px; height: 100%; object-fit: cover; }
.about-cards .body { padding: 40px 30px 28px 40px; display: flex; flex-direction: column; }
.about-cards h3 { font-family: var(--font-noto); font-weight: 600; font-size: 20.2px; line-height: 1.3; }
.about-cards p { margin-top: 18px; font-size: 16px; line-height: 1.5; }
.about-cards .more { margin-top: auto; padding-top: 24px; justify-content: space-between; width: 100%; padding-left: 16px; padding-right: 8px; }
.about-cards a:hover h3 { color: var(--green); }
.sub-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.sub-links a { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px; background: var(--white); border: 1px solid var(--green); border-radius: 8px; font-size: 16px; }
.sub-links a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--green); border-right: 1.5px solid var(--green); transform: rotate(45deg); }
.sub-links a:hover { color: var(--green); }

/* ---------- お問い合わせ ---------- */
.contact { padding: 110px 0 120px; }
.contact-box { max-width: 914px; margin: 0 auto; background: var(--gray-bg-2); padding: 44px 52px 44px; }
.contact-box p { margin-top: 26px; font-size: 16.2px; }
.contact-box .center { margin-top: 18px; padding: 0 40px; }
.contact-box .btn { width: 100%; justify-content: center; padding: 16px; font-size: 20px; letter-spacing: .08em; font-weight: 300; }

/* ---------- フッター ---------- */
.site-footer .wrap { max-width: 1300px; display: grid; grid-template-columns: 1fr auto auto; gap: 56px; padding-top: 0; padding-bottom: 130px; }
.footer-brand { display: flex; align-items: flex-start; gap: 20px; }
.footer-brand .mark { width: 179px; }
.footer-brand .text { width: 233px; margin-top: 4px; }
.footer-nav { margin: 0; padding: 0; list-style: none; font-family: var(--font-noto); font-size: 14px; color: var(--green); }
.footer-nav li { margin-bottom: 22px; }
.footer-nav ul { margin: 6px 0 0; padding-left: 18px; list-style: none; }
.footer-nav ul li { margin-bottom: 6px; }
.footer-nav ul li::before { content: "・"; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { background: var(--green-btn); color: var(--white); text-align: center; font-family: var(--font-noto); font-weight: 300; font-size: 14px; padding: 14px 16px; }

/* ---------- 投稿・固定ページ（仮） ---------- */
.page-main { padding: 60px 0 120px; }
.page-main .wrap { max-width: 860px; }
.page-main h1 { font-size: 32px; font-weight: 500; margin-bottom: 30px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content p { line-height: 1.9; }

/* ==========================================================
   下層ページ
   ========================================================== */
.breadcrumb { font-family: var(--font-noto); font-size: 13px; color: #666; }
.breadcrumb .wrap { max-width: 1300px; padding-top: 4px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: #999; }
.breadcrumb .current { text-decoration: underline; text-underline-offset: 3px; }
.page-band {
  background: linear-gradient(90deg, #f3f6f4 0%, #ffffff 38%, #c9eed8 58%, #2fbf6a 82%, #10a34f 100%);
  padding: 58px 0 54px;
}
.page-band .wrap { max-width: 960px; }
.page-band h1 { font-size: 36px; font-weight: 400; line-height: 1.4; color: var(--text-2); }
.page-band .lead { margin-top: 14px; font-family: var(--font-noto); font-size: 14px; }
.entry-wrap { max-width: 960px; padding-top: 40px; padding-bottom: 80px; }

/* 本文：見出しの上の緑の線・文章 */
.entry-content { font-family: var(--font-noto); font-size: 15px; line-height: 1.9; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  position: relative; margin-top: 70px; padding-top: 34px;
  font-family: var(--font-ja); font-size: 26px; font-weight: 400; line-height: 1.5; color: var(--text-2);
}
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green) 0 50px, #e8ebe9 50px 100%); }
.entry-content h2 + * { margin-top: 30px; }
.entry-content h3 { font-size: 18px; font-weight: 500; color: var(--text-2); }
.entry-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--green); }
.entry-content ul { padding-left: 0; list-style: none; }
.entry-content ul li::before { content: "・"; }
.entry-content ul li + li { margin-top: .6em; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: 4px; }
.entry-content .wp-block-columns { display: flex; gap: 40px; align-items: flex-start; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.entry-content .wp-block-column > h2:first-child { margin-top: 0; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .signature-name { font-family: var(--font-ja); font-size: 22px; letter-spacing: .1em; margin-top: 0; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.entry-content .wp-block-gallery figure { margin: 0; }
.entry-content .wp-block-gallery img { width: 100%; aspect-ratio: 173 / 135; object-fit: cover; border-radius: 6px; }

/* 沿革の表と概要の表 */
.entry-content .wp-block-table table, .entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 0; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; margin: 0; }
.entry-content .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.entry-content .wp-block-table td { vertical-align: middle; }
.entry-content .kd-history td { background: var(--gray-bg); padding: 26px 22px; font-size: 14px; line-height: 1.8; }
.entry-content .kd-history td:first-child { width: 110px; color: #555; position: relative; }
.entry-content .kd-history td:first-child::after { content: ""; position: absolute; right: 0; top: 50%; height: 18px; margin-top: -9px; border-right: 1px solid #c9cfcb; }
.entry-content .kd-gaiyou table { border-spacing: 0; }
.entry-content .kd-gaiyou td { padding: 12px 18px; border-bottom: 1px solid #d5d9d6; font-size: 14px; vertical-align: top; }
.entry-content .kd-gaiyou td:first-child { width: 190px; color: #555; }

/* ほかの事業へのリンク */
.sibling-links { display: flex; justify-content: center; gap: 56px; margin: 10px 0 0; padding: 0 0 90px; list-style: none; }
.sibling-links a { display: flex; justify-content: space-between; align-items: center; min-width: 196px; padding: 14px 18px; border: 1px solid var(--green); border-radius: 6px; font-family: var(--font-noto); font-size: 14px; }
.sibling-links a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--green); border-right: 1.5px solid var(--green); transform: rotate(45deg); }
.sibling-links a:hover { color: var(--green); background: #f6faf8; }
.line-band { background: var(--gray-bg-2); padding: 10px 0 80px; border-bottom: 1px solid #e3e6e4; }
.sub-page > .wrap > .line-cta.is-white { padding-bottom: 80px; }

/* 白抜きの角丸ボタン */
.btn-outline {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 30px;
  min-width: 210px; padding: 12px 18px; border: 1px solid var(--green); border-radius: 999px;
  background: var(--white); color: var(--text); font-family: var(--font-noto); font-size: 14px; font-weight: 500;
}
.btn-outline::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--green); border-right: 1.5px solid var(--green); transform: rotate(45deg); }
.btn-outline:hover { background: #f6faf8; color: var(--green); }
.btn-outline.is-wide { width: 100%; justify-content: center; cursor: pointer; }
.btn-outline.is-wide::after { display: none; }
.btn.is-outline { background: var(--white); color: var(--green); border: 1px solid var(--green); }
.btn.is-outline:hover { background: #f6faf8; }

/* 研究所について */
.about-welcome { padding: 40px 0 80px; }
.about-welcome .wrap { max-width: 960px; }
.welcome-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.welcome-head h1 { font-size: 36px; font-weight: 400; line-height: 1.4; }
.welcome-head p { margin-top: 18px; font-family: var(--font-noto); font-size: 14px; line-height: 1.8; }
.welcome-head img { width: 140px; }
.green-rule { margin: 50px 0 60px; height: 3px; background: linear-gradient(90deg, var(--green) 0 100px, #e8ebe9 100px 100%); }
.welcome-message { display: grid; grid-template-columns: 1fr 346px; gap: 40px; align-items: start; padding: 0 0 0 0; }
.welcome-message h2 { font-size: 26px; font-weight: 400; line-height: 1.5; }
.welcome-message p { margin-top: 18px; font-family: var(--font-noto); font-size: 14px; line-height: 1.8; }
.welcome-message .btn-outline { margin-top: 60px; min-width: 300px; }
.welcome-message .photo { width: 346px; height: 253px; object-fit: cover; object-position: center 30%; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.about-rows { background: var(--gray-bg); padding: 100px 0 70px; }
.about-row { position: relative; display: grid; grid-template-columns: 84% 16%; margin-bottom: 90px; }
.about-row .photo img { width: 100%; height: 556px; object-fit: cover; }
.about-row .card {
  position: absolute; right: 4.5%; bottom: -36px; width: 420px; background: var(--white);
  padding: 46px 36px 40px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.about-row .card h2 { color: var(--green); font-size: 26px; font-weight: 400; line-height: 1.4; }
.about-row .card p { margin-top: 16px; font-family: var(--font-noto); font-size: 13px; line-height: 1.8; }
.about-row .card .btn-outline { margin-top: 30px; border-radius: 6px; min-width: 0; width: 100%; padding: 16px 20px; }
.about-row.is-reverse { grid-template-columns: 16% 84%; }
.about-row.is-reverse .photo { grid-column: 2; }
.about-row.is-reverse .card { right: auto; left: 4.5%; }
.about-rows .sub-links { margin-top: 40px; }

/* 事業の紹介 */
.jigyou { padding: 40px 0 80px; }
.jigyou .wrap { max-width: 1020px; }
.jigyou h1 { font-size: 36px; font-weight: 400; }
.jigyou .lead { margin-top: 10px; font-family: var(--font-noto); font-size: 14px; line-height: 1.8; }
.jigyou-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: stretch; }
.jigyou-grid > :nth-child(1) { grid-column: 1 / 3; }
.jigyou-grid > :nth-child(2) { grid-column: 3 / 5; }
.jigyou-grid > :nth-child(3) { grid-column: 5 / 7; }
.jigyou-grid > :nth-child(4) { grid-column: 2 / 4; }
.jigyou-grid > :nth-child(5) { grid-column: 4 / 6; }
.jigyou-card { display: flex; flex-direction: column; padding: 40px 34px 30px; background: var(--white); border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); min-height: 250px; transition: box-shadow .2s, transform .2s; }
.jigyou-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.jigyou-card .head { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.jigyou-card h2 { color: var(--green); font-size: 32px; font-weight: 400; padding-bottom: 6px; border-bottom: 2px solid var(--green); }
.jigyou-card .head img { width: 80px; height: 80px; object-fit: contain; }
.jigyou-card p { margin-top: 18px; font-family: var(--font-noto); font-size: 14px; line-height: 1.7; }
.jigyou-card .more { margin-top: auto; padding-top: 24px; justify-content: center; font-size: 14px; }
.jigyou-photo { width: 100%; max-width: 282px; border-radius: 4px; justify-self: center; align-self: center; }
.sub-page .contact { padding-top: 40px; }

/* お問い合わせ */
.contact-intro { max-width: 1160px; padding: 46px 0 20px; font-family: var(--font-noto); font-size: 14px; line-height: 1.9; }
.form-box { max-width: 820px; margin: 0 auto 90px; border: 1px solid var(--green); border-radius: 8px; padding: 30px 40px 40px; }
.form-box h2 { font-size: 26px; font-weight: 400; }
.kd-form { margin-top: 16px; background: var(--gray-bg); border-radius: 8px; padding: 26px 34px 30px; font-family: var(--font-noto); font-size: 14px; }
.kd-form p, .kd-form fieldset { margin: 0 0 18px; }
.kd-form label { display: block; margin-bottom: 6px; }
.kd-form input[type=text], .kd-form input[type=email], .kd-form input[type=tel], .kd-form select, .kd-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b7c4bc; border-radius: 6px; background: var(--white); font: inherit; color: var(--text);
}
.kd-form input:focus, .kd-form select:focus, .kd-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.kd-form fieldset { border: 0; padding: 0; }
.kd-form legend { margin-bottom: 8px; padding: 0; }
.kd-form .check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.kd-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 16px 20px; border-radius: 6px; font-family: var(--font-noto); font-size: 14px; }
.form-msg.is-ok { background: #e8f5ee; color: var(--green); }
.form-msg.is-ng { background: #fdecea; color: #b3261e; }

/* 研修会情報・お知らせ */
.news-page .entry-wrap { max-width: var(--wrap); }
.news-page .seminar-list { margin-top: 0; }
.post-date { color: var(--green); font-size: 13px; }
.post-title { margin-top: 10px !important; padding-top: 0 !important; }
.post-title::before { display: none; }
.post-thumb img { width: 100%; border-radius: 6px; }
.news-page .back { margin-top: 50px; text-align: center; }
.nav-links { margin-top: 40px; display: flex; justify-content: center; gap: 10px; font-family: var(--font-noto); }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid #ccd3cf; border-radius: 4px; }
.nav-links .current { background: var(--green); color: var(--white); border-color: var(--green); }

/* ==========================================================
   タブレット（〜1024px）
   ========================================================== */
@media (max-width: 1024px) {
  .gnav ul { gap: 18px; }
  .gnav a { font-size: 14px; }
  .site-logo img { width: 220px; }
  .mission-body { margin-left: 0; }
  .blob-bubbles { display: none; }
  .biz-box { padding: 40px; }
  .biz-list span { font-size: 24px; }
  .message-box { padding: 60px; }
  .about-cards, .sub-links { gap: 16px; }
  .about-cards .body { padding: 28px 18px; }
}

/* ==========================================================
   スマホ（〜767px）
   ========================================================== */
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .wrap { padding: 0 16px; }

  /* ヘッダー：ロゴ＋メニューボタン＋お問い合わせ */
  .site-header .wrap { height: 64px; gap: 10px; padding-right: 0; }
  .site-logo { flex: 1; min-width: 0; }
  .site-logo img { width: 100%; max-width: 230px; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 10px; background: var(--white);
    border: 1px solid #555; border-radius: 3px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1px; background: #333; transition: transform .2s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-contact { padding: 0 14px; height: 64px; border-radius: 0; font-size: 14px; box-shadow: none; }
  .gnav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-top: 1px solid #e3e6e4; box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
  }
  .menu-open .gnav { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav li a { display: block; padding: 16px 20px; border-bottom: 1px solid #eef0ef; font-size: 16px; }

  /* ファーストビュー：見出しを縦書きに */
  .hero { padding: 30px 0 90px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; column-gap: 0; align-items: end; }
  .hero h1 {
    writing-mode: vertical-rl;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.55;
    height: 480px;
    margin-left: auto;
    margin-right: 18%;
  }
  .hero-illust { margin-right: -16px; }
  .hero-illust img { width: 100%; }
  .hero-news { grid-column: 1 / -1; margin-top: 50px; }
  .news-card { padding: 10px 12px; }
  .news-card .ttl { font-size: 14px; }

  /* 緑の帯 */
  .mission { padding: 110px 0 120px; }
  .mission::before { height: 40px; }
  .mission::after { height: 40px; }
  .mission h2 { font-size: 26px; line-height: 1.5; }
  .mission p { margin-top: 26px; font-size: 15px; line-height: 2.2; letter-spacing: .06em; }
  .mission p + p { margin-top: 26px; }
  .mission .blob { position: static; display: block; }
  .mission-photos { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; }
  .blob-bubbles { display: block; width: 46%; height: auto; aspect-ratio: 385 / 401; }
  .blob-running { width: 34%; height: auto; aspect-ratio: 1; }
  .mission .blob-kame { width: 22%; height: auto; aspect-ratio: 1; }

  /* ビジョン */
  .vision { padding: 60px 0 70px; }
  .sec-title { font-size: 22px; line-height: 1.5; }
  .vision .lead { font-size: 15px; line-height: 1.9; }
  .biz-box { padding: 24px 16px; margin-left: -4px; margin-right: -4px; }
  .biz-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .biz-list a { padding: 22px 6px; gap: 10px; }
  .biz-list img { width: 64px; height: 64px; }
  .biz-list span { font-size: 20px; }
  .vision .btn { min-width: 0; width: 100%; max-width: 340px; }

  /* 研修会情報 */
  .topics { padding: 70px 0 60px; }
  .topics-head { gap: 14px 24px; }
  .topics-head .links { gap: 24px; }
  .seminar-list { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
  .seminar-list .ttl { font-size: 18px; }

  /* 公式LINE */
  .line-cta { grid-template-columns: 1fr; padding-top: 50px; text-align: center; }
  .line-cta .kame { order: -1; margin-bottom: 16px; }
  .line-cta .kame img { width: 110px; margin: 0 auto; }
  .line-cta p { font-size: 14px; }
  .line-cta .btn { margin-top: 26px; padding: 12px 22px; font-size: 15px; }
  .line-cta.is-white { padding: 40px 0 70px; }

  /* ごあいさつ */
  .message { padding-top: 60px; }
  .message-box { grid-template-columns: 1fr; padding: 40px 20px; }
  .message-photo { order: -1; }
  .message-photo img { width: 70%; height: auto; aspect-ratio: 282 / 351; margin: 0 auto 30px; }
  .message-text p { font-size: 15px; line-height: 1.8; }

  /* 研究所について */
  .about-links { padding: 50px 0; }
  .about-cards, .sub-links { grid-template-columns: 1fr; gap: 14px; }
  .about-cards a { min-height: 0; grid-template-columns: 90px 1fr; }
  .about-cards img { width: 90px; }
  .about-cards .body { padding: 22px 16px 18px 20px; }
  .about-cards h3 { font-size: 18px; }
  .about-cards p { font-size: 14px; margin-top: 10px; }
  .about-cards .more { padding-top: 14px; padding-left: 0; }
  .sub-links { margin-top: 14px; }
  .sub-links a { padding: 20px; }

  /* お問い合わせ */
  .contact { padding: 60px 0 70px; }
  .contact-box { padding: 30px 20px; }
  .contact-box p { font-size: 15px; }
  .contact-box .center { padding: 0; }
  .contact-box .btn { font-size: 16px; letter-spacing: .04em; }

  /* 下層ページ */
  .page-band { padding: 40px 0 36px; background: linear-gradient(90deg, #f3f6f4 0%, #ffffff 30%, #b9e8cc 65%, #10a34f 100%); }
  .page-band h1 { font-size: 26px; }
  .entry-wrap { padding-top: 30px; padding-bottom: 50px; }
  .entry-content { font-size: 14.5px; }
  .entry-content h2 { margin-top: 50px; padding-top: 26px; font-size: 21px; }
  .entry-content h2 + * { margin-top: 20px; }
  .entry-content .wp-block-columns { flex-direction: column; gap: 24px; }
  .entry-content .wp-block-column { flex-basis: auto !important; width: 100%; }
  .entry-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
  .entry-content .kd-history td { padding: 16px 12px; font-size: 13px; }
  .entry-content .kd-history td:first-child { width: 72px; }
  .entry-content .kd-gaiyou td { padding: 10px 8px; font-size: 13px; }
  .entry-content .kd-gaiyou td:first-child { width: 86px; }
  .sibling-links { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 50px; }
  .line-band { padding: 0 0 50px; }
  .welcome-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .welcome-head h1 { font-size: 24px; }
  .welcome-head img { width: 100px; align-self: flex-end; }
  .green-rule { margin: 30px 0 36px; }
  .welcome-message { grid-template-columns: 1fr; gap: 26px; }
  .welcome-message h2 { font-size: 21px; }
  .welcome-message .photo { width: 100%; height: auto; aspect-ratio: 346 / 253; }
  .welcome-message .btn-outline { margin-top: 30px; min-width: 0; width: 100%; }
  .about-rows { padding: 50px 0 40px; }
  .about-row, .about-row.is-reverse { grid-template-columns: 1fr; margin-bottom: 40px; }
  .about-row.is-reverse .photo { grid-column: auto; }
  .about-row .photo img { height: 240px; }
  .about-row .card, .about-row.is-reverse .card { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -40px 16px 0; padding: 28px 22px 26px; }
  .about-row .card h2 { font-size: 21px; }
  .jigyou h1 { font-size: 26px; }
  .jigyou-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .jigyou-grid > * { grid-column: auto !important; }
  .jigyou-photo { order: 9; max-width: 100%; }
  .jigyou-card { min-height: 0; padding: 28px 20px 22px; }
  .jigyou-card h2 { font-size: 26px; }
  .jigyou-card .head img { width: 64px; height: 64px; }
  .contact-intro { padding-top: 30px; }
  .form-box { padding: 22px 14px 18px; margin-bottom: 50px; }
  .form-box h2 { font-size: 21px; }
  .kd-form { padding: 20px 14px; }

  /* フッター */
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 30px 16px; padding-bottom: 50px; }
  .footer-brand { grid-column: 1 / -1; align-items: center; }
  .footer-brand .mark { width: 100px; }
  .footer-brand .text { width: 200px; }
  .copyright { font-size: 11px; }
}
