/*
Theme Name: Heitora Evolved Theme V2
Theme URI: https://example.com/heitora-theme-evolved-v2
Author: Genspark
Description: 株式会社丙寅（HEITORA）向けの安全寄り進化版 WordPress ブロックテーマ。明るさと信頼感を両立した企業サイト向けデザイン。
Version: 1.3.5
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heitora-theme-evolved-v2
Tags: block-theme, full-site-editing, custom-colors, custom-typography, wide-blocks
*/

:root {
  --ht-forest: #6c7f57;
  --ht-green: #7f9470;
  --ht-sage: #dfe7d2;
  --ht-gold: #d9a15a;
  --ht-gold-soft: #efcb94;
  --ht-sun: #fbe5c1;
  --ht-cream: #fcfaf2;
  --ht-white: #ffffff;
  --ht-text: #3a362d;
  --ht-muted: #756d5e;
  --ht-border: rgba(122, 137, 99, .18);
  --ht-shadow: 0 14px 40px rgba(82, 96, 66, .10);
  --ht-shadow-soft: 0 10px 26px rgba(82, 96, 66, .08);
  --ht-radius-sm: 10px;
  --ht-radius-md: 18px;
  --ht-radius-lg: 28px;
  --wp--style--global--content-size: 720px;
  --wp--style--global--wide-size: 1120px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ht-cream);
  color: var(--ht-text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.85;
}

h1, h2, h3, h4, h5, h6,
.wp-block-site-title {
  font-family: "Noto Serif JP", serif;
  color: var(--ht-text);
  letter-spacing: .02em;
  line-height: 1.34;
  text-wrap: balance;
}

p {
  font-size: 1.02rem;
  text-wrap: pretty;
}
a { color: var(--ht-forest); text-underline-offset: .18em; }
a:hover { color: #5c6c47; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252,250,242,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,137,99,.12);
}
.site-header__inner,
.site-footer__inner,
.page-shell,
.front-shell,
.hero-shell,
.page-hero__inner,
.ht-page-hero,
.ht-page-section,
.ht-page-cta {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header__inner { padding-top: 16px; padding-bottom: 16px; }
.site-title-block { gap: 6px; }
.wp-block-site-title {
  font-size: clamp(1.45rem, 1.2rem + .55vw, 1.9rem);
  line-height: 1.08;
}
.site-tagline {
  color: var(--ht-forest);
  font-size: .74rem;
  letter-spacing: .10em;
}
.wp-block-navigation { gap: 8px 22px; }
.wp-block-navigation .wp-block-navigation-item__content {
  color: var(--ht-text);
  font-size: .95rem;
}

.hero-wrap { padding: 48px 24px 28px; }
.hero-panel {
  max-width: 960px;
  margin: 0 auto;
  background:
    radial-gradient(circle at top right, rgba(217,161,90,.40), transparent 27%),
    radial-gradient(circle at top left, rgba(251,229,193,.88), transparent 40%),
    linear-gradient(135deg, #fbf1dc 0%, #f3dfbc 44%, #e8f0dc 100%);
  border: 1px solid rgba(122,137,99,.14);
  border-radius: var(--ht-radius-lg);
  padding: 56px 40px;
  box-shadow: var(--ht-shadow);
}
.hero-kicker,
.section-label,
.page-eyebrow,
.ht-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(217,161,90,.20);
  color: #855f29;
  border: 1px solid rgba(217,161,90,.28);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-main-copy { margin: 0 0 18px; }
.hero-main-copy .hero-break { display: block; }
.hero-panel .wp-block-buttons { margin-top: 26px; }
.hero-lead {
  max-width: 700px;
  color: var(--ht-muted);
  font-size: 1.08rem;
}
.hero-lead-sub {
  margin-top: 12px;
  color: #655d51;
  font-size: 1rem;
}
.hero-service-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.hero-service-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(251,245,233,.74));
  border: 1px solid rgba(154,129,79,.14);
  color: #5d5548;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.hero-service-labels span:first-child,
.hero-service-labels span:last-child {
  background: linear-gradient(180deg, rgba(250,231,199,.92), rgba(244,216,165,.78));
  border-color: rgba(217,161,90,.22);
  color: #734f22;
}
.hero-mini-grid,
.info-card-grid,
.consult-grid,
.value-grid,
.ht-card-grid,
.ht-flow-grid {
  gap: 22px;
}
.hero-mini-card,
.info-card,
.consult-card,
.value-card,
.company-box,
.soft-band,
.flow-card,
.ht-card,
.ht-band,
.ht-flow-card,
.ht-profile,
.ht-intro-card,
.ht-contact-card,
.cta-band {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-md);
  box-shadow: var(--ht-shadow-soft);
  padding: 24px;
}
.soft-band,
.ht-band {
  background: linear-gradient(180deg, rgba(255,243,214,.78), rgba(223,231,210,.72));
  border-color: rgba(122,137,99,.22);
}
.ht-note-card {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(122,137,99,.14);
  border-radius: 16px;
}
.ht-note-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
}

.name-origin-mark {
  padding: 38px 24px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.95), transparent 33%),
    radial-gradient(circle at 50% 0%, rgba(217,161,90,.28), transparent 40%),
    linear-gradient(180deg, rgba(251,232,202,.96), rgba(223,231,210,.84));
  border: 1px solid rgba(122,137,99,.18);
  box-shadow: 0 18px 42px rgba(82,96,66,.10);
}
.name-origin-mark::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,161,90,.82), transparent);
  transform: translateX(-50%);
}
.name-origin-mark::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px solid rgba(217,161,90,.30);
  pointer-events: none;
}
.name-origin-kicker {
  margin: 0 0 10px;
  color: #89724a;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
}
.name-origin-title {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 4vw, 3.45rem);
  letter-spacing: .12em;
  color: #2f2a22;
}
.name-origin-subline {
  margin: 0 0 14px;
  color: #6b614f;
  font-size: .95rem;
  letter-spacing: .06em;
}
.name-origin-pairs {
  gap: 8px;
}
.name-origin-chip {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(122,137,99,.14);
  color: #6c614d;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.service-option-card {
  margin-top: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(250,247,238,.78));
  border: 1px solid rgba(122,137,99,.12);
  box-shadow: 0 8px 20px rgba(82,96,66,.06);
}
.service-option-card::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(229,201,108,.74), rgba(127,148,112,.42));
}
.service-option-label {
  margin: 0 0 8px;
  color: #7b6b4a;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.service-option-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
}
.service-option-card p:last-child {
  color: #6e6558;
}
.ht-faq-stack {
  display: grid;
  gap: 16px;
}
.ht-faq-stack .ht-card h3 {
  white-space: normal;
  font-size: clamp(1rem, 1.08vw, 1.1rem);
}
.ht-policy-card {
  padding: 26px 24px;
}
.ht-policy-item + .ht-policy-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(122,137,99,.14);
}
.ht-policy-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.ht-policy-head .icon-chip {
  margin: 0;
  flex: 0 0 52px;
}
.ht-policy-head .section-heading-accent {
  margin: 7px 0 0;
}
.ht-policy-card .section-heading-accent {
  font-size: clamp(1.15rem, 1.34vw, 1.3rem);
  margin-bottom: .28rem;
}
.ht-policy-card .section-heading-accent::before {
  top: .22em;
  width: 5px;
  height: 1.05em;
}
.ht-policy-card ul {
  margin-top: 0;
}

.front-shell,
.page-shell { padding-top: 30px; padding-bottom: 88px; }
.front-shell .section-block.alignwide,
.front-shell .cta-band.alignwide {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.front-shell .section-block.alignwide .alignwide,
.front-shell .cta-band.alignwide .alignwide {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.front-shell > * + *,
.page-shell > * + * { margin-top: 1.8rem; }

h1, .has-hero-font-size { font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.18; }
h2 { font-size: clamp(1.78rem, 2.7vw, 2.32rem); margin-top: 0; margin-bottom: .78rem; color: #342f28; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 0; margin-bottom: .7rem; }
.ht-page-hero h1 { font-size: clamp(2rem, 3.3vw, 2.9rem); }
.ht-page-hero p { max-width: 760px; color: var(--ht-muted); }

.section-intro,
.ht-section-intro {
  max-width: 760px;
  color: #6e6558;
  margin-bottom: 0;
}
.section-block {
  padding-top: 10px;
  padding-bottom: 10px;
}
.section-block + .section-block { margin-top: 34px; }
.section-heading-accent {
  position: relative;
  padding-left: 16px;
}
.section-heading-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 6px;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ht-gold), #dcb85a);
}

.wp-block-button__link,
.wp-element-button {
  background: var(--ht-gold);
  color: var(--ht-text);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 22px rgba(90,80,40,.10);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(90,80,40,.12);
  filter: brightness(1.02);
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.is-style-outline.wp-block-button__link {
  background: transparent;
  color: var(--ht-forest);
  border: 1px solid rgba(108,127,87,.55);
  box-shadow: none;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,231,199,.96), rgba(238,203,148,.62));
  border: 1px solid rgba(122,137,99,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  color: #655731;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 0;
}
.icon-chip svg,
.ht-flow-step svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ht-flow-step svg {
  width: 20px;
  height: 20px;
}

.page-hero { padding: 36px 0 8px; }
.page-hero__panel,
.ht-page-hero__panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(251,231,199,.62), rgba(252,250,242,.98));
  border: 1px solid var(--ht-border);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--ht-shadow-soft);
}
.ht-page-hero {
  padding-top: 34px;
  padding-bottom: 18px;
}
.ht-page-section {
  padding-top: 18px;
  padding-bottom: 18px;
}
.ht-page-section + .ht-page-section { margin-top: 8px; }
.ht-page-section__inner,
.ht-page-section .alignwide,
.ht-page-section .wp-block-group.alignwide,
.ht-page-section .wp-block-columns.alignwide,
.ht-page-section .wp-block-table.alignwide,
.ht-page-cta__inner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ht-card-grid .wp-block-column,
.info-card-grid .wp-block-column,
.value-grid .wp-block-column,
.consult-grid .wp-block-column {
  display: flex;
  min-width: 0;
}
.ht-card,
.info-card,
.value-card,
.consult-card,
.ht-flow-card,
.ht-profile,
.ht-contact-card { width: 100%; }
.ht-card-grid.is-3 { gap: 20px; }
.ht-card-grid.is-3 .wp-block-column { min-width: 0; }
.ht-card-grid.is-3 h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  white-space: nowrap;
}
.ht-note-list li,
.ht-card ul li,
.info-card ul li,
.ht-profile ul li { margin-bottom: .35em; }
.ht-flow-grid { margin-top: 18px; }
.ht-flow-card {
  background: rgba(255,255,255,.76);
  padding: 22px 20px;
}
.ht-flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(229,201,108,.8), rgba(242,223,170,.95));
  color: var(--ht-text);
  font-weight: 700;
  line-height: 0;
  margin-bottom: 12px;
}
.ht-profile-meta {
  color: var(--ht-muted);
  font-size: .95rem;
}
.ht-inline-link { font-weight: 700; }
.ht-company-table table { border-radius: 18px; overflow: hidden; }
.company-table table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ht-white);
}
.company-table th,
.company-table td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--ht-border);
  padding: 14px 16px;
  vertical-align: top;
}
.company-table th,
.wp-block-table th {
  width: 19%;
  background: rgba(223,231,210,.66);
  text-align: left;
}

.cta-band,
.ht-page-cta__panel {
  background: linear-gradient(135deg, rgba(245,224,189,.96), rgba(223,231,210,.94));
  border: 1px solid var(--ht-border);
  border-radius: 28px;
  padding: 42px 32px;
  box-shadow: var(--ht-shadow);
  text-align: center;
}
.cta-band {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.no-wrap-desktop {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}
.ht-compact-copy {
  font-size: .96rem;
}
.ht-compact-heading {
  font-size: clamp(.96rem, 1.16vw, 1.08rem);
}
.ht-faq-grid h3 {
  white-space: normal;
  font-size: clamp(1rem, 1.12vw, 1.12rem);
}
.cta-band h2,
.ht-page-cta__panel h2 {
  margin-bottom: 12px;
  text-align: center;
}
.cta-band .no-wrap-desktop {
  display: block;
  width: 100%;
  font-size: clamp(1.68rem, 2.2vw, 2.18rem);
  letter-spacing: -.01em;
}
.cta-band p,
.ht-page-cta__panel p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.cta-band .wp-block-buttons,
.ht-page-cta__panel .wp-block-buttons {
  justify-content: center;
}

.info-card,
.consult-card,
.value-card,
.ht-card,
.ht-flow-card,
.ht-note-card,
.ht-contact-card,
.ht-profile,
.soft-band,
.ht-band,
.cta-band,
.ht-page-hero__panel,
.ht-page-cta__panel {
  position: relative;
  overflow: hidden;
}
.info-card::before,
.consult-card::before,
.value-card::before,
.ht-card::before,
.ht-flow-card::before,
.ht-note-card::before,
.ht-contact-card::before,
.ht-profile::before,
.soft-band::before,
.ht-band::before,
.cta-band::before,
.ht-page-hero__panel::before,
.ht-page-cta__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(217,161,90,.92), rgba(127,148,112,.66));
}
.hero-panel p,
.soft-band p,
.ht-band p,
.ht-card p,
.ht-flow-card p,
.ht-profile p,
.value-card p,
.consult-card p,
.info-card p,
.wp-block-table td,
.wp-block-table th {
  overflow-wrap: anywhere;
}

.site-footer {
  background: linear-gradient(180deg, #7e9170 0%, #6d805d 100%);
  color: rgba(255,255,255,.92);
}
.site-footer a,
.site-footer .wp-block-site-title a,
.site-footer .wp-block-heading { color: #fff; }
.site-footer__inner { padding-top: 52px; padding-bottom: 32px; }
.footer-note { font-size: .95rem; opacity: .92; }
.footer-copy { font-size: .8rem; opacity: .78; }
.footer-cta .wp-block-button__link {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: none;
}

.hero-panel,
.info-card,
.consult-card,
.value-card,
.flow-card,
.company-box,
.soft-band,
.cta-band,
.ht-card,
.ht-band,
.ht-flow-card,
.ht-profile,
.ht-contact-card,
.ht-page-hero__panel {
  animation: htFadeUp .7s ease both;
}
.info-card:hover,
.consult-card:hover,
.value-card:hover,
.flow-card:hover,
.company-box:hover,
.ht-card:hover,
.ht-flow-card:hover,
.ht-profile:hover {
  transform: translateY(-3px);
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 14px 34px rgba(82,96,66,.12);
}
.outcome-card.is-emphasis {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,244,229,.88));
  border-color: rgba(217,161,90,.20);
  box-shadow: 0 14px 32px rgba(126, 98, 52, .10);
}
.outcome-card.is-emphasis::before {
  background: linear-gradient(90deg, rgba(217,161,90,.96), rgba(244,216,165,.86));
}
@keyframes htFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .no-wrap-desktop { white-space: normal; }
  .hero-main-copy .hero-break { display: block; }
  .hero-service-labels { gap: 8px; }
  .ht-card-grid.is-3 h3 { white-space: normal; }
  .cta-band p,
  .ht-page-cta__panel p {
    max-width: 100%;
  }
  .ht-page-section__inner,
  .ht-page-section .alignwide,
  .ht-page-section .wp-block-group.alignwide,
  .ht-page-section .wp-block-columns.alignwide,
  .ht-page-section .wp-block-table.alignwide,
  .ht-page-cta__inner { max-width: 100%; }
}

@media (max-width: 781px) {
  .site-header__inner,
  .site-footer__inner,
  .page-shell,
  .front-shell,
  .hero-shell,
  .page-hero__inner,
  .hero-wrap,
  .ht-page-hero,
  .ht-page-section,
  .ht-page-cta {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-panel { max-width: 100%; padding: 34px 20px; border-radius: 22px; }
  .ht-note-card { padding: 18px 16px; }
  .hero-mini-card,
  .info-card,
  .consult-card,
  .value-card,
  .company-box,
  .soft-band,
  .flow-card,
  .page-hero__panel,
  .cta-band,
  .ht-card,
  .ht-band,
  .ht-flow-card,
  .ht-profile,
  .ht-contact-card,
  .ht-page-hero__panel,
  .ht-page-cta__panel { padding: 20px 18px; }
  .front-shell, .page-shell { padding-top: 22px; padding-bottom: 68px; }
  .section-block + .section-block { margin-top: 18px; }
  .wp-block-site-title { font-size: 1.28rem; }
}