/* ===== Taketa NoCode School — common stylesheet =====
   ロゴの竹グリーン (#9CB535) を基調にした柔らかい和モダンデザイン
*/

:root {
  --bamboo: #9CB535;        /* ロゴの竹色 */
  --bamboo-dark: #6F8625;
  --bamboo-light: #D4E08A;
  --bamboo-50: #F5F8E8;
  --ink: #2A2E1F;           /* 文字（深い墨に少し緑を混ぜた色） */
  --ink-soft: #5B6150;
  --paper: #FBFAF4;         /* 紙のような背景 */
  --line: #E4E2D3;
  --accent: #C75B39;        /* 朱（差し色） */
  --shadow: 0 6px 24px rgba(40, 50, 20, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--bamboo-dark);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--accent); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.site-logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--bamboo);
  transition: width .25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.nav .cta {
  background: var(--bamboo);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .cta:hover { background: var(--bamboo-dark); color: #fff; }
.nav .cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .3s ease;
    gap: 18px;
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 16px; }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 10vw, 120px);
  background:
    radial-gradient(1200px 600px at 110% -20%, var(--bamboo-light), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--bamboo-50), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  /* 竹のシルエット（薄く） */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0 38%, var(--bamboo-light) 38% 39%, transparent 39% 60%, var(--bamboo-light) 60% 61%, transparent 61% 100%);
  opacity: .15;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; gap: 32px; } }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--bamboo-dark);
  background: #fff;
  border: 1px solid var(--bamboo-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1.hero-title {
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
h1.hero-title em {
  font-style: normal;
  color: var(--bamboo-dark);
  background: linear-gradient(transparent 62%, var(--bamboo-light) 62%);
  padding: 0 .15em;
}

.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bamboo); color: #fff; }
.btn-primary:hover { background: var(--bamboo-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  background:
    radial-gradient(closest-side, #fff 0 60%, transparent 62%),
    repeating-linear-gradient(120deg, var(--bamboo-light) 0 14px, transparent 14px 36px),
    var(--bamboo-50);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 32px;
}
.hero-visual img { width: 78%; }

/* ============== Section ============== */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section.alt { background: #FFFFFE; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .label {
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--bamboo-dark);
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: .02em;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ============== Cards / grids ============== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  display: inline-flex;
  width: 48px; height: 48px;
  background: var(--bamboo-50);
  border-radius: 12px;
  align-items: center; justify-content: center;
  color: var(--bamboo-dark);
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* News list */
.news-list { display: grid; gap: 18px; }
.news-item {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.news-item:last-child { border-bottom: 0; }
.news-item time { color: var(--ink-soft); font-size: 14px; }
.news-item .tag {
  display: inline-block;
  background: var(--bamboo-50);
  color: var(--bamboo-dark);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.news-item a { color: var(--ink); font-weight: 500; }
.news-item a:hover { color: var(--bamboo-dark); }
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}

/* Work / portfolio */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-thumb {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--bamboo-light), var(--bamboo-50));
  display: grid; place-items: center;
  color: var(--bamboo-dark);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: .1em;
}
.work-body { padding: 18px 20px 22px; }
.work-body h3 { font-size: 16px; margin-bottom: 6px; }
.work-body p { color: var(--ink-soft); font-size: 13px; }
.work-tools { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.work-tools span {
  font-size: 11px;
  background: var(--bamboo-50);
  color: var(--bamboo-dark);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ============== Form ============== */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field label .req { color: var(--accent); margin-left: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #FBFBF7;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bamboo);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-actions { margin-top: 8px; text-align: center; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bamboo-50);
  border: 1px solid var(--bamboo-light);
  border-radius: var(--radius-sm);
  color: var(--bamboo-dark);
  font-weight: 600;
  text-align: center;
}
.form-success.show { display: block; }

/* ============== Page header (lower pages) ============== */
.page-head {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(800px 400px at 100% 0%, var(--bamboo-light), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head .label {
  font-size: 12px; letter-spacing: .25em; font-weight: 700;
  color: var(--bamboo-dark);
}
.page-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: .02em;
}
.page-head p { color: var(--ink-soft); margin-top: 12px; max-width: 640px; margin-inline: auto; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 {
  font-size: 22px; font-weight: 800; margin: 40px 0 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--bamboo-light);
}
.article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--bamboo-dark); }
.article p { margin-bottom: 16px; color: var(--ink); }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 6px; }
.article blockquote {
  border-left: 4px solid var(--bamboo);
  background: var(--bamboo-50);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.article .callout {
  background: #fff;
  border: 1px solid var(--bamboo-light);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}
.article .callout strong { color: var(--bamboo-dark); }

/* ============== Footer ============== */
.site-footer {
  background: var(--ink);
  color: #C9CDB8;
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(1.6); }
.footer-brand p { font-size: 13px; line-height: 1.7; opacity: .8; }
.footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 14px; letter-spacing: .1em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #C9CDB8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.copyright {
  padding-top: 22px;
  font-size: 12px;
  opacity: .6;
  text-align: center;
}

/* ============== Utility ============== */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
