/* TOMOSHIBI visual refinements — 2026-11-18
   Loaded after the existing page styles. The latest page content is preserved. */
:root { --tm-card-radius: 18px; --tm-small-radius: 14px; --tm-ink: #342a25; }
html,body { max-width: 100%; overflow-x: clip; }

/* All previously square cards, across the site. Keep navigation pills and
   the naturally circular Venn geometry unchanged. */
:is(.delivery-card,.program-card,.plan-card,.facility-card,.facility-panel,
    .strength-card,.voice-card,.member-card,.info-card,.method-card,.method-col,
    .feature-card,.feature-tile,.intro-card,.service-card,.safety-card,
    .materials-card,.workshop-card,.content-card,.detail-cta,.detail-info,
    .tab-panel,.pdetail-method-card,.pdetail-topic,.facility-tab-panel,
    .contact-card,.form-shell,.form-card,.form-dialog,.detail-photo,
    .pdetail-card,.usecase-card,.steps-program>li,.flow-steps>li) {
  border-radius: var(--tm-card-radius) !important;
  background-clip: padding-box;
}
:is(.delivery-card,.program-card,.plan-card,.facility-card,.strength-card,
    .voice-card,.member-card,.info-card,.method-card,.method-col,
    .usecase-card,.feature-card,.detail-photo) {
  overflow: hidden;
}
:is(.curriculum-list li,.detail-anchors a,.manual-sample,.form-control,
    .feature-chip,.facility-tab,.form-dialog input,.form-dialog textarea) {
  border-radius: var(--tm-small-radius) !important;
}
.delivery-card { border-radius: 18px !important; }

/* Less dramatic section-divider arcs — a flatter, calmer curve. */
.section-arc { --arc-height: clamp(32px, 4.3vw, 68px) !important; }
.section-arc--minor { --arc-height: clamp(24px, 3.4vw, 46px) !important; }
.section-arc svg { width: 100%; height: var(--arc-height) !important; }

/* Strengths title was white on a pale background in mobile Safari. */
#strengths,
#strengths.strengths { background-color: #efe8de; color: var(--tm-ink); }
#strengths :is(.section-heading,#strengthsTitle,.section-subhead,.strength-lead),
.strengths :is(.section-heading,.strength-head h2) {
  color: var(--tm-ink) !important; text-shadow: none !important;
}
#strengths .showcase-chip { color: #8b372e !important; }
#strengths .section-number { color: #97867d !important; }
#strengths .strength-card { background-color:#fffaf5; }
#strengths::before { opacity: .12; }

/* Harmonize ordinary headings without changing their content. */
.section-heading,.detail-heading { text-wrap: balance; }

@media (max-width: 760px) {
  /* HERO — keep the complete Japanese title within iPhone width. */
  .hero .hero-inner {
    box-sizing: border-box;
    width: calc(100% - 44px) !important;
    max-width: 100%;
    padding: 148px 0 86px !important;
  }
  .hero .hero-text { width: 100%; max-width: 100%; min-width: 0; }
  .hero .hero-title {
    width: 100%; max-width: 100%;
    font-size: clamp(23px, 7vw, 34px) !important;
    line-height: 1.42 !important;
    letter-spacing: -.015em !important;
    margin: 25px 0 18px !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero .hero-title .piece {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    word-break: normal;
  }
  .hero .hero-tag {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px;
    font-size: clamp(10px, 2.6vw, 12px) !important;
    line-height: 1.7;
    letter-spacing: .045em;
  }
  .hero .hero-tag .tag-rule { flex: 0 0 17px; width: 17px; }
  .hero .hero-summary {
    max-width: 100%;
    font-size: clamp(12px, 3.2vw, 14px) !important;
    line-height: 1.9; padding-left: 13px;
    overflow-wrap: anywhere;
  }
  .hero .hero-summary br { display:none; }
  .hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
  }
  .hero .hero-buttons .cta {
    box-sizing: border-box;
    flex: 1 1 155px;
    min-width: 0 !important;
    padding: 15px 12px;
    font-size: clamp(11px,2.9vw,13px) !important;
    letter-spacing: 0;
    white-space: nowrap;
    justify-content: space-between;
  }
  .hero .hero-buttons .cta svg { flex-shrink: 0; width:16px; height:16px; }

  /* Educational Venn — restore breathing room around the three circles;
     avoid stretching SVG or clipping labels at small widths. */
  #value .section-heading {
    font-size: clamp(27px, 7vw, 36px) !important;
    line-height: 1.5 !important;
  }
  #value .venn-board {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    margin: 18px auto 0;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    column-gap: 16px;
    row-gap: 18px;
  }
  #value .venn-graphic--desktop { display: none !important; }
  #value .venn-graphic--mobile {
    display: block !important;
    width: min(100%, 340px) !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto 2px !important;
    overflow: visible;
    justify-self:center;
    grid-column: 1 / -1;
  }
  #value .venn-graphic--mobile .venn-inner-label {
    font-size: 30px !important;
    letter-spacing: 0;
  }
  #value .venn-graphic--mobile .venn-center-main {
    font-size: 25px !important;
  }
  #value .venn-note {
    min-width: 0; max-width: 100%;
    padding-top: 14px;
    overflow-wrap: anywhere;
  }
  #value .venn-note--one { grid-column: 1 / -1; }
  #value .venn-note--three { grid-column: 1; }
  #value .venn-note--two { grid-column: 2; }
  #value .venn-note h3 { line-height: 1.5; }
  #value .venn-note p { line-height: 1.85; }

  /* Section title contrast on all pages. */
  #strengths .section-heading { font-size: clamp(28px, 7.3vw, 39px) !important; }
  .detail-hero h1,.pdetail-hero h1,.page-contact-hero h1 {
    font-size: clamp(29px,7.3vw,42px) !important;
    overflow-wrap:anywhere;
  }
}
@media (max-width: 370px) {
  .hero .hero-inner { width: calc(100% - 34px) !important; }
  .hero .hero-title { font-size: clamp(22px,6.8vw,25px) !important; }
  .hero .hero-buttons .cta { flex-basis: 130px; }
  #value .venn-board { column-gap: 11px; }
  #value .venn-graphic--mobile { width: min(100%, 305px) !important; }
  #value .venn-note h3 { font-size: 14px !important; }
}


/* 2026-11-18: branding and homepage mobile-hero refinement.
   Keep all content, carousel, and existing page structure intact. */

/* Flamemark containing the 燈 glyph + consistent wordmark across pages. */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.site-header .brand .brand-mark {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  overflow: visible;
  filter: drop-shadow(0 3px 5px rgba(110,51,39,.10));
}
.site-header .brand .brand-wordmark {
  display: inline-block;
  color: #342922;
  font-family: 'Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 850;
  white-space: nowrap;
}
.site-footer .footer-wordmark {
  font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.025em;
}

/* Sharper, daylight action photograph rather than the small night image. */
#top.hero {
  background-color: #293025 !important;
  background-image: url('assets/hero-children.webp') !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
#top.hero::before {
  content: "";
  position: absolute;
  z-index: 0 !important;
  inset: 0;
  background:
    linear-gradient(90deg,rgba(22,20,18,.68) 0%,rgba(22,20,18,.55) 30%,rgba(22,20,18,.22) 73%,rgba(22,20,18,.08) 100%),
    linear-gradient(0deg,rgba(19,19,14,.38) 0%,transparent 37%);
  pointer-events: none;
}
#top.hero .hero-inner,#top.hero .hero-text {
  position: relative;
  z-index: 1;
}
#top.hero .hero-title,
#top.hero .hero-tag,
#top.hero .hero-summary {
  text-shadow: 0 2px 13px rgba(0,0,0,.18);
}

/* Compact phone hero: visually keep header, headline, description and CTAs
   together instead of centering them in a full-height empty canvas. */
@media (max-width: 760px) {
  .site-header .brand { gap: 9px; }
  .site-header .brand .brand-mark { width: 41px; height: 41px; flex-basis: 41px; }
  .site-header .brand .brand-wordmark { font-size: clamp(19px,5.3vw,23px); }
  .site-header.is-compact .brand .brand-wordmark { font-size: 19px; }
  #top.hero {
    min-height: clamp(600px, 76svh, 715px) !important;
    height: auto !important;
    align-items: flex-start !important;
    background-position: 62% 50% !important;
  }
  #top.hero::before {
    background:
      linear-gradient(90deg,rgba(20,20,18,.75) 0%,rgba(20,20,18,.52) 43%,rgba(20,20,18,.28) 100%),
      linear-gradient(0deg,rgba(20,20,18,.38),transparent 35%) !important;
  }
  #top.hero .hero-inner {
    width: calc(100% - 44px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: clamp(174px,23svh,205px) 0 60px !important;
  }
  #top.hero .hero-text { max-width: 100%; }
  #top.hero .hero-title {
    font-size: clamp(25px,7.2vw,35px) !important;
    line-height: 1.37 !important;
    letter-spacing: -.015em !important;
    margin: 26px 0 17px !important;
    text-wrap: pretty;
  }
  #top.hero .hero-title .piece { white-space: normal !important; }
  #top.hero .hero-tag {
    font-size: clamp(10px,2.7vw,12px) !important;
    line-height: 1.5 !important;
    letter-spacing: .025em;
  }
  #top.hero .hero-summary {
    font-size: clamp(12px,3.2vw,14px) !important;
    line-height: 1.83 !important;
    max-width: 100%;
  }
  #top.hero .hero-buttons {
    margin-top: 25px !important;
    gap: 10px !important;
  }
  #top.hero .hero-buttons .cta {
    min-height: 55px;
    padding: 15px 12px !important;
  }
  #top.hero .scroll-indicator { display: none !important; }
}
@media (max-width: 370px) {
  #top.hero { min-height: 595px !important; background-position: 60% center !important; }
  #top.hero .hero-inner { width: calc(100% - 34px) !important; padding-top: 166px !important; padding-bottom: 52px !important; }
  #top.hero .hero-title { font-size: clamp(23px,6.8vw,27px) !important; }
  .site-header .brand .brand-wordmark { font-size: 19px; }
}


/* 2026-11-18 19:xx correction: restore ORIGINAL dusk/firemaking image.
   The previous day photo was not the intended hero. Keep news / Venn unchanged. */
#top.hero {
  background-image: url('/assets/hero-firemaking-enhanced.webp') !important;
  background-position: 50% 55% !important;
  background-size: cover !important;
  background-color: #241b1c !important;
}
#top.hero::before {
  background:
    linear-gradient(90deg,rgba(24,16,15,.65) 0%,rgba(24,16,15,.44) 38%,rgba(24,16,15,.08) 100%),
    linear-gradient(0deg,rgba(24,16,15,.29),transparent 42%) !important;
}

/* The CONCEPT section's top padding exaggerated the blank area below hero. */
#concept.concept {
  padding-top: clamp(54px, 6.3vw, 100px) !important;
}

@media(max-width:760px) {
  #top.hero {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    background-position: 52% 53% !important;
  }
  #top.hero .hero-inner {
    display: block;
    width: calc(100% - 44px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    margin: 0 auto !important;
    padding: clamp(136px, 17.6svh, 156px) 0 39px !important;
  }
  #top.hero .hero-title {
    font-size: clamp(25px, 7.2vw, 35px) !important;
    line-height: 1.34 !important;
    margin: 19px 0 14px !important;
  }
  #top.hero .hero-summary {line-height: 1.8 !important;}
  #top.hero .hero-buttons {
    margin-top: 19px !important;
    margin-bottom: 0 !important;
    gap: 10px !important;
  }
  #top.hero .scroll-indicator { display: none !important; }
  #concept.concept {
    min-height: 0 !important;
    padding-top: 46px !important;
    padding-bottom: 72px !important;
  }
  #concept .concept-eyebrow {margin-top: 0 !important;}
}
@media(max-width:370px) {
  #top.hero .hero-inner {
    width: calc(100% - 34px) !important;
    padding-top: 132px !important;
    padding-bottom: 35px !important;
  }
  #top.hero .hero-title{font-size:clamp(23px,6.8vw,27px) !important;}
  #concept.concept { padding-top: 39px !important; }
}
