/*
Theme Name: KTG Corporate
Theme URI: https://ktg.co.jp/
Author: 株式会社KTG
Description: 株式会社KTG コーポレートサイト用オリジナルテーマ(放課後等デイサービス・児童発達支援・EC事業)
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ktg-corporate
*/

/* =====================================================
   デザイントークン(色・フォントはここを変えるだけで全体に反映)
   ===================================================== */
:root{
  --green:      #2E6B4F;   /* メイン:深緑(安心・成長) */
  --green-dark: #1F4A37;
  --green-pale: #EAF3ED;   /* 淡い緑の背景 */
  --yellow:     #F5B82E;   /* アクセント:イエロー(子ども・エネルギー) */
  --coral:      #E4785C;   /* ブロック用サブカラー */
  --sky:        #6FA8CB;   /* ブロック用サブカラー */
  --ink:        #26332D;   /* 本文の文字色 */
  --ink-soft:   #5C6B63;
  --bg:         #FFFFFF;

  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body:    "Noto Sans JP", sans-serif;

  --radius: 18px;
  --maxw: 1080px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:80px; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--green); }

/* ===== つみきモチーフ ===== */
.blocks{ display:inline-flex; gap:5px; vertical-align:middle; }
.blocks i{ width:12px; height:12px; border-radius:3px; display:block; }
.blocks i:nth-child(1){ background:var(--green); }
.blocks i:nth-child(2){ background:var(--yellow); }
.blocks i:nth-child(3){ background:var(--coral); }

/* ===== ヘッダー ===== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid #EDEFEA;
}
.header-inner{
  max-width:var(--maxw); margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.logo{
  font-family:var(--font-display); font-weight:900; font-size:1.3rem;
  color:var(--green-dark); text-decoration:none; display:flex; align-items:center; gap:10px;
}
.site-header nav ul{ display:flex; gap:26px; list-style:none; }
.site-header nav a{
  text-decoration:none; color:var(--ink); font-size:.92rem; font-weight:500;
  padding:6px 2px; border-bottom:2px solid transparent; transition:.2s;
}
.site-header nav a:hover{ color:var(--green); border-bottom-color:var(--yellow); }
.nav-toggle{ display:none; background:none; border:none; font-size:1.6rem; color:var(--green-dark); cursor:pointer; }

/* ===== ヒーロー ===== */
.hero{
  background:linear-gradient(180deg, var(--green-pale) 0%, #FFFFFF 100%);
  overflow:hidden;
}
.hero-inner{
  max-width:var(--maxw); margin:0 auto; padding:90px 20px 100px;
  display:grid; grid-template-columns:1.2fr .8fr; gap:40px; align-items:center;
}
.hero h1{
  font-family:var(--font-display); font-weight:900;
  font-size:clamp(1.9rem, 4.2vw, 3rem); line-height:1.5; color:var(--green-dark);
}
.hero h1 .marker{ background:linear-gradient(transparent 62%, rgba(245,184,46,.55) 62%); }
.hero p{ margin-top:22px; color:var(--ink-soft); max-width:34em; }
.hero-cta{ margin-top:34px; display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  font-family:var(--font-display); font-weight:700; text-decoration:none;
  padding:13px 30px; border-radius:999px; font-size:.95rem; transition:.2s;
  display:inline-block;
}
.btn-primary{ background:var(--green); color:#fff; }
.btn-primary:hover{ background:var(--green-dark); transform:translateY(-2px); }
.btn-ghost{ border:2px solid var(--green); color:var(--green); }
.btn-ghost:hover{ background:var(--green); color:#fff; }

/* ヒーローのつみきイラスト */
.hero-art{ position:relative; height:280px; }
.hero-art .b{ position:absolute; border-radius:14px; animation:float 5s ease-in-out infinite; }
.hero-art .b1{ width:90px; height:90px; background:var(--green); left:20%; bottom:0; }
.hero-art .b2{ width:70px; height:70px; background:var(--yellow); left:20%; bottom:100px; animation-delay:.6s; }
.hero-art .b3{ width:54px; height:54px; background:var(--coral); left:23%; bottom:182px; animation-delay:1.2s; }
.hero-art .b4{ width:64px; height:64px; background:var(--sky); left:55%; bottom:30px; animation-delay:.3s; }
.hero-art .b5{ width:44px; height:44px; background:var(--yellow); left:62%; bottom:110px; animation-delay:.9s; }
@keyframes float{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-8px);} }
@media (prefers-reduced-motion:reduce){ .hero-art .b{ animation:none; } }

/* ===== セクション共通 ===== */
.section{ padding:90px 20px; }
.inner{ max-width:var(--maxw); margin:0 auto; }
.eyebrow{
  font-family:var(--font-display); font-weight:700; color:var(--green);
  font-size:.85rem; letter-spacing:.12em; display:flex; align-items:center; gap:10px;
}
.section h2{
  font-family:var(--font-display); font-weight:900; color:var(--green-dark);
  font-size:clamp(1.5rem, 3vw, 2.1rem); margin:10px 0 40px;
}

/* ===== 事業紹介 ===== */
.services{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card{
  background:#fff; border:1px solid #E6EBE6; border-radius:var(--radius);
  padding:34px 28px; transition:.25s;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 12px 30px rgba(46,107,79,.12); }
.card .tag{
  display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.08em;
  padding:4px 12px; border-radius:999px; margin-bottom:16px;
}
.tag-green{ background:var(--green-pale); color:var(--green-dark); }
.tag-yellow{ background:#FCF0D4; color:#8A6410; }
.card h3{
  font-family:var(--font-display); font-weight:700; font-size:1.2rem;
  color:var(--green-dark); margin-bottom:12px;
}
.card p{ font-size:.93rem; color:var(--ink-soft); }
.card .more{ margin-top:16px; font-size:.88rem; font-weight:700; text-decoration:none; display:inline-block; }

/* ===== 使命 ===== */
.mission{ background:var(--green); color:#fff; }
.mission .eyebrow{ color:var(--yellow); }
.mission h2{ color:#fff; }
.mission p{ max-width:42em; margin-bottom:1.2em; color:#E9F2EC; }
.mission strong{ color:var(--yellow); }

/* ===== 価値観 ===== */
.values{ background:var(--green-pale); }
.values-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.value{
  background:#fff; border-radius:var(--radius); padding:24px 26px;
  display:flex; gap:16px; align-items:flex-start;
}
.value .cube{ flex:0 0 34px; height:34px; border-radius:9px; margin-top:4px; }
.value:nth-child(1) .cube{ background:var(--green); }
.value:nth-child(2) .cube{ background:var(--yellow); }
.value:nth-child(3) .cube{ background:var(--coral); }
.value:nth-child(4) .cube{ background:var(--sky); }
.value:nth-child(5) .cube{ background:var(--green-dark); }
.value h3{ font-family:var(--font-display); font-size:1.02rem; color:var(--green-dark); }
.value p{ font-size:.9rem; color:var(--ink-soft); }

/* ===== 事業所 ===== */
.places{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.place{ border:1px solid #E6EBE6; border-radius:var(--radius); padding:30px; }
.place h3{ font-family:var(--font-display); color:var(--green-dark); margin-bottom:10px; }
.place dl{ font-size:.92rem; }
.place dt{ font-weight:700; color:var(--green); margin-top:12px; }
.place dd{ color:var(--ink-soft); }

/* ===== お知らせ ===== */
.news-list{ list-style:none; }
.news-list li{ border-bottom:1px solid #E6EBE6; }
.news-list a{
  display:flex; gap:24px; padding:18px 6px; text-decoration:none; color:var(--ink);
  align-items:baseline; transition:.2s;
}
.news-list a:hover{ background:var(--green-pale); }
.news-list time{ flex:0 0 110px; font-size:.85rem; color:var(--green); font-weight:700; }
.news-more{ margin-top:24px; }

/* ===== 会社概要 ===== */
.company table{ width:100%; border-collapse:collapse; font-size:.95rem; }
.company th, .company td{
  text-align:left; padding:16px 12px; border-bottom:1px solid #E6EBE6; vertical-align:top;
}
.company th{ width:200px; color:var(--green-dark); font-family:var(--font-display); font-weight:700; }

/* ===== お問い合わせ ===== */
.contact{ background:var(--green-pale); text-align:center; }
.contact p{ max-width:36em; margin:0 auto 30px; color:var(--ink-soft); }

/* ===== 投稿・固定ページ(ブログ)用 ===== */
.post-content{ max-width:760px; margin:0 auto; padding:70px 20px; }
.post-content h1{
  font-family:var(--font-display); font-weight:900; color:var(--green-dark);
  font-size:clamp(1.5rem,3vw,2rem); margin-bottom:8px; line-height:1.5;
}
.post-content .post-date{ color:var(--green); font-weight:700; font-size:.9rem; margin-bottom:34px; display:block; }
.post-content .entry h2{ font-family:var(--font-display); color:var(--green-dark); margin:1.6em 0 .6em; }
.post-content .entry h3{ font-family:var(--font-display); color:var(--green-dark); margin:1.4em 0 .5em; }
.post-content .entry p{ margin-bottom:1.2em; }
.post-content .entry ul, .post-content .entry ol{ margin:0 0 1.2em 1.4em; }
.archive-list{ max-width:760px; margin:0 auto; padding:70px 20px; }
.archive-list h1{ font-family:var(--font-display); font-weight:900; color:var(--green-dark); margin-bottom:30px; }

/* ===== フッター ===== */
.site-footer{
  background:var(--green-dark); color:#CFE0D6; text-align:center;
  padding:34px 20px; font-size:.85rem;
}

/* ===== レスポンシブ ===== */
@media (max-width:860px){
  .hero-inner{ grid-template-columns:1fr; padding:60px 20px 70px; }
  .hero-art{ height:200px; margin-top:10px; }
  .services{ grid-template-columns:1fr; }
  .places{ grid-template-columns:1fr; }
  .site-header nav ul{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:#fff; flex-direction:column; gap:0; border-bottom:1px solid #E6EBE6;
  }
  .site-header nav ul.open{ display:flex; }
  .site-header nav li{ border-top:1px solid #F0F2EE; }
  .site-header nav a{ display:block; padding:15px 24px; }
  .nav-toggle{ display:block; }
  .company th{ width:120px; }
  .section{ padding:64px 20px; }
  .news-list a{ flex-direction:column; gap:2px; }
}
