/* =========================================================
   Healing / Sound-spirit style site (reference layout clone)
   - Original design, placeholder content
   ========================================================= */

:root {
  --bg: #faf7f0;
  --bg-alt: #f1ebe0;
  --surface: #ffffff;
  --text: #2b2622;
  --text-muted: #8a8175;
  --accent: #b5793f;        /* warm gold / terracotta */
  --accent-dark: #94612f;
  --accent-2: #6b7a5e;      /* sage green */
  --border: #e7ded2;
  --shadow-sm: 0 1px 3px rgba(60, 45, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(60, 45, 30, 0.10);
  --radius: 14px;
  --max: 1080px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .serif {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand .name { font-family: "Shippori Mincho", serif; font-size: 1.25rem; font-weight: 600; }
.brand .sub { font-size: .68rem; color: var(--text-muted); letter-spacing: .18em; }

.gnav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.gnav a {
  color: var(--text);
  font-size: .92rem;
  position: relative;
  padding: 4px 0;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .25s ease;
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { width: 100%; }

.btn-contact {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .85rem;
}
.btn-contact:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--text); transition: .3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  transition: all .25s ease;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--accent); color: var(--accent-dark) !important; }
.btn-ghost:hover { background: var(--accent); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 400px at 80% -10%, #f6ecdc 0%, transparent 60%),
    linear-gradient(180deg, #f4ede1 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  margin: 0 0 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero p { max-width: 560px; color: #57504642; color: var(--text-muted); font-size: 1.02rem; }
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero with main visual image (blended, full-bleed) */
.hero--image {
  padding: 0 0 64px;
  background: var(--bg);
}
.hero-visual {
  position: relative;
  width: 100%;
  line-height: 0;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  /* fade the bottom and side edges into the page background */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 68%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, #000 68%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* soft color wash so the image melts into the cream background */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
.hero--image .container { display: flex; flex-direction: column; align-items: center; }
.hero--image .actions { margin-top: 8px; justify-content: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Section ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .en {
  display: block;
  font-size: .72rem;
  letter-spacing: .35em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0; }
.lead { text-align: center; max-width: 640px; margin: 0 auto; color: var(--text-muted); }

/* ---------- Grid cards ---------- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 18px;
  font-family: "Shippori Mincho", serif;
}
.card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.profile .photo {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e9ddc9, #d8c4a3);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #fff9; font-family: "Shippori Mincho", serif;
  overflow: hidden;
}
.profile .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Voice / testimonials ---------- */
.voice-card { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
.voice-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.voice-card .who { margin-top: 16px; font-size: .85rem; color: var(--text-muted); }

/* ---------- Blog list ---------- */
.post-list { display: grid; gap: 4px; }
.post-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.post-item time { color: var(--text-muted); font-size: .85rem; }
.post-item .cat {
  display: inline-block; font-size: .7rem;
  background: var(--bg-alt); color: var(--accent-dark);
  padding: 2px 10px; border-radius: 999px; margin-right: 10px;
}
.post-item h3 { font-size: 1.05rem; margin: 6px 0 0; font-family: "Noto Sans JP", sans-serif; font-weight: 600; }

/* ---------- Blog cards ---------- */
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .cat {
  align-self: flex-start;
  font-size: .68rem; letter-spacing: .08em;
  background: var(--bg-alt); color: var(--accent-dark);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 16px;
}
.blog-card h3 {
  font-size: 1.18rem; margin: 0 0 12px; line-height: 1.5;
  font-family: "Shippori Mincho", serif;
}
.blog-card p { color: var(--text-muted); font-size: .92rem; margin: 0 0 20px; line-height: 1.85; }
.blog-card .readmore { margin-top: auto; color: var(--accent); font-size: .9rem; font-weight: 600; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 14px 0 24px; }
.article h2 { font-size: 1.4rem; margin: 48px 0 16px; padding-left: 14px; border-left: 4px solid var(--accent); }
.article p { margin: 0 0 20px; }
.article .meta { color: var(--text-muted); font-size: .85rem; display: flex; gap: 14px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Contact form ---------- */
.form { max-width: 600px; margin-inline: auto; display: grid; gap: 20px; }
.form label { font-size: .9rem; font-weight: 600; display: block; margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: var(--surface); color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form .req { color: var(--accent); font-size: .75rem; margin-left: 4px; }

.contact-form { display: grid; gap: 22px; }
.contact-form .form-field { display: grid; }
.contact-form label { font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: var(--surface); color: var(--text);
  box-sizing: border-box;
}
.contact-form textarea { resize: vertical; line-height: 1.7; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}
.contact-form .req {
  color: var(--accent); font-size: .7rem; margin-left: 8px;
  background: var(--bg-alt); padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .8rem; color: var(--text-muted); padding: 18px 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--bg-alt); padding: 64px 0; text-align: center; }
.page-hero .en { display:block; font-size:.72rem; letter-spacing:.35em; color: var(--accent); margin-bottom:10px; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; text-align: center; padding: 72px 0;
}
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 16px; }
.cta p { color: #fff; opacity: .92; max-width: 520px; margin: 0 auto 28px; }
.cta .btn-primary { background: #fff; color: var(--accent-dark) !important; }
.cta .btn-primary:hover { background: #fff8ef; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2622; color: #d8cfc2; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #d8cfc2; font-size: .88rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #443d35; padding-top: 22px; text-align: center; font-size: .78rem; color: #9a9082; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }

/* ---------- Mobile menu ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .gnav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
  }
  .gnav.open { transform: translateY(0); }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .gnav li { border-bottom: 1px solid var(--border); }
  .gnav li:last-child { border: 0; }
  .gnav a { display: block; padding: 16px 24px; }
  .gnav a::after { display: none; }
  .btn-contact { margin: 12px 24px; text-align: center; }

  .profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-item { grid-template-columns: 1fr; gap: 6px; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== カタカムナ方程式ページ ===== */
.kata-center {
  margin: 8px auto 36px;
  text-align: center;
  max-width: 560px;
}
.kata-center img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  animation: kata-rotate 60s linear infinite;
}
.kata-center figcaption {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.8;
}
/* 3図象を横並びで回転 */
.kata-center--triple .kata-symbols {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.kata-center--triple .kata-symbols img {
  width: 120px;
  height: 120px;
  margin: 0;
  object-fit: contain;
  animation: kata-rotate 60s linear infinite;
}
@keyframes kata-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .kata-center img,
  .kata-center--triple .kata-symbols img { animation: none; }
}

/* 本文中に並ぶ6つの基本システム */
.kata-words {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}
.kata-words li {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .06em;
  color: var(--accent-dark);
}
/* 本文中に埋め込むカタカムナ図象 */
.kata-inline {
  display: inline-block;
  width: auto;
  height: 1.5em;
  vertical-align: -0.35em;
  margin: 0 .1em;
}
@media (max-width: 640px) {
  .kata-center img { width: 170px; }
  .kata-center--triple .kata-symbols { gap: 12px; }
  .kata-center--triple .kata-symbols img { width: 88px; height: 88px; }
}

/* ===== Manifesto（トップ ヒーロー直下） ===== */
.manifesto {
  background: var(--accent);
  color: #fff;
  padding: 72px 0;
  position: relative;
}
.manifesto .container { max-width: 820px; }
.manifesto .en {
  display: block;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 12px;
}
.manifesto h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.9rem;
  line-height: 1.5;
  margin: 0 0 28px;
  color: #fff;
}
.manifesto-body p {
  font-size: 1.04rem;
  line-height: 2.05;
  margin: 0 0 18px;
  color: rgba(255,255,255,.95);
}
.manifesto-body strong {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid rgba(255,255,255,.45);
  padding-bottom: 1px;
}
.manifesto-cta { margin: 30px 0 0; }
.manifesto-cta .btn-ghost {
  border-color: #fff;
  color: #fff !important;
}
.manifesto-cta .btn-ghost:hover {
  background: #fff;
  color: var(--accent-dark) !important;
}
@media (max-width: 640px) {
  .manifesto { padding: 52px 0; }
  .manifesto h2 { font-size: 1.5rem; }
  .manifesto-body p { font-size: .98rem; line-height: 1.95; }
}
