/* Shared editorial layout for the public site. */
:root {
  --journal-ink: #1c3b43;
  --journal-muted: #48646b;
  --journal-accent: #086e7d;
  --journal-wash: #edf7f5;
  --journal-paper: #f8fbf8;
  --journal-line: #cbdfd9;
  --journal-margin: max(5vw, calc((100vw - 1360px) / 2));
  --journal-ease: cubic-bezier(.21,.72,.21,1);
}
.journal-page, .journal-reader {
  margin: 0;
  background: #fff;
  color: var(--journal-ink);
  font: 400 16px/1.85 "DM Sans","Noto Sans JP","Yu Gothic",Meiryo,sans-serif;
  --ink: var(--journal-ink);
  --muted: var(--journal-muted);
  --green: var(--journal-accent);
  --green-dark: #123b4a;
  --cream: var(--journal-paper);
  --line: var(--journal-line);
}
.journal-page :where([id]), .journal-reader :where([id]) { scroll-margin-top: 88px; }
.journal-header, .journal-footer, .j-reader-title, .j-other-stories { font-family: "DM Sans","Noto Sans JP","Yu Gothic",sans-serif; }
.journal-header {
  position: sticky; z-index: 50; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 var(--journal-margin); background: rgba(248,252,250,.96);
  border-bottom: 1px solid var(--journal-line); backdrop-filter: blur(12px);
}
.j-brand { display: inline-flex; flex: none; }
.j-brand img { width: 133px; height: auto; display: block; }
.j-nav { display: flex; align-items: center; gap: clamp(16px,2vw,30px); }
.j-nav a, .journal-footer a, .j-reader-title a, .j-other-stories a { color: inherit; text-decoration: none; }
.j-nav a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.j-nav a:hover, .j-nav a[aria-current="page"]:not(.j-nav-cta), .journal-footer a:hover { color: var(--journal-accent); text-decoration: underline; text-underline-offset: 6px; }
.j-nav .j-nav-cta, .j-action {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px 18px 3px 3px; color: white; background: #123b4a;
  padding: 12px 22px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.j-action { width: fit-content; margin-top: 19px; background: #0b7383; }
.j-nav .j-nav-cta:hover, .j-action:hover { color: white; background: #075968; text-decoration: none; }
.j-toggle { display: none; }
.journal-footer { padding: clamp(34px,5vw,64px) var(--journal-margin); background: #dfede8; color: var(--journal-ink); }
.j-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.j-identity { display: grid; gap: 3px; align-items: start; }
.j-identity img { display: block; width: 133px; height: auto; margin-bottom: 8px; }
.j-identity strong { font-size: 15px; }
.j-identity span { font-size: 13px; color: var(--journal-muted); }
.journal-footer nav { display: grid; grid-template-columns: repeat(4,max-content); gap: 12px 26px; font-size: 14px; }
.j-hero {
  background: linear-gradient(112deg,#eef8f4 0%,#e5f3ef 62%,#d5eaeb 100%);
  padding: clamp(24px,3.4vw,52px) var(--journal-margin) clamp(32px,4.3vw,66px);
}
.j-hero-inner { display: grid; grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr); align-items: center; gap: clamp(22px,4.4vw,76px); max-width: 1360px; margin: auto; }
.j-hero-copy { min-width: 0; padding-block: 8px; }
.j-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 clamp(22px,3vw,42px); color: var(--journal-muted); font-size: 12px; line-height: 1.6; }
.j-crumb :is(a,span):not(:last-child)::after { content: "/"; margin-left: 8px; color: #829e9d; }
.j-crumb a { color: inherit; text-decoration: none; }
.j-crumb a:hover { text-decoration: underline; }
.j-hero .eyebrow { color: var(--journal-accent); margin: 0 0 14px; font: 650 12px/1.6 "DM Sans",sans-serif; letter-spacing: .16em; }
.j-hero h1, .j-reader-title h1 {
  margin: 0 0 16px; color: var(--journal-ink);
  font: 550 clamp(30px,3.35vw,50px)/1.45 "Noto Sans JP","Yu Gothic",sans-serif;
  letter-spacing: .005em; text-wrap: balance; line-break: strict; overflow-wrap: anywhere;
}
.j-hero-copy > p:not(.eyebrow) { max-width: 39em; margin: 0; color: var(--journal-muted); font-size: clamp(15px,1.2vw,17px); }
.j-hero-copy > p.product-tagline { color: var(--journal-accent); font-weight: 600; margin-bottom: .55em; }
.j-photo { margin: 0; overflow: hidden; border-radius: 3px clamp(44px,6vw,94px) 3px 3px; background: #c5deda; }
.j-photo img { display: block; width: 100%; height: clamp(290px,29vw,430px); object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .j-photo img { animation: journal-photo-in 1.55s var(--journal-ease) both; }
  .j-hero-copy { animation: journal-type-in .7s var(--journal-ease) both; }
  @keyframes journal-photo-in { from { transform: scale(1.045); } to { transform: scale(1); } }
  @keyframes journal-type-in { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.j-contents { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; padding: 12px var(--journal-margin); border-bottom: 1px solid var(--journal-line); background: #f8fbf9; }
.j-contents a { padding: 6px 0; color: var(--journal-accent); font-size: 14px; font-weight: 600; text-underline-offset: 5px; }
.journal-page .section-pad { padding-block: clamp(48px,7.6vw,108px); }
.journal-page :is(.company-story,.company-values,.greeting,.service-page-grid,.product-content,.product-benefits,.partner-types,.partner-values,.flow-page,.faq-page,.contact-page) { color: var(--journal-ink); }
.journal-page :is(.greeting,.partner-types,.product-benefits,.solar-flow,.ecocute-cost,.battery-types,.subsidy-search-page) { background: var(--journal-wash); }
.journal-page :is(.product-content,.company-story,.partner-intro,.inquiry-panel) { background: white; }
.journal-page :is(.product-content,.company-story,.greeting,.mission,.strengths,.flow-page,.service-detail,.contact-page,.partner-types,.company-values) p:not(.eyebrow,.greeting-sign) { font-size: clamp(15px,1.1vw,17px); line-height: 1.95; }
.journal-page :is(.product-points,.benefit-grid article,.company-value-grid article,.partner-type-card,.faq-visual,.contact-office) { border-radius: 3px 34px 3px 3px; }
.journal-page :is(.product-points,.faq-visual,.contact-office) { background: #eef6f0; }
.journal-page .company-story-photo, .journal-page .partner-type-card { border-radius: 3px 54px 3px 3px; overflow: hidden; }
.journal-page .service-page-grid { gap: clamp(22px,3vw,44px); }
.journal-page .service-detail { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 3px 48px 3px 3px; background: var(--journal-paper); border: 1px solid var(--journal-line); }
.journal-page .service-detail > img { width: 100%; min-height: 0; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.journal-page .service-detail > div { flex: 1; padding: clamp(20px,3vw,36px); }
.journal-page .service-detail h2 { font-size: clamp(22px,2.1vw,31px); }
.journal-page .service-detail .eyebrow { color: var(--journal-accent); font-size: 12px; }
.journal-page .service-detail .text-link { font-size: 15px; }
.journal-page .benefit-grid { gap: clamp(12px,2vw,26px); }
.journal-page .benefit-grid article { border: 1px solid var(--journal-line); }
.journal-page .flow-page { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.journal-page .flow-page-intro { align-self: start; position: sticky; top: 108px; }
.journal-page .flow-page-steps { grid-template-columns: 1fr; gap: 0; }
.journal-page .flow-page-steps article { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: start; padding: 23px 2px; border: 0; border-top: 1px solid var(--journal-line); min-height: 0; background: transparent; }
.journal-page .flow-page-steps article::after { display: none; }
.journal-page .flow-page-steps article > span { position: relative; display: inline-grid; place-items: center; margin: 0; padding: 4px; min-height: 30px; background: #e2f3ed; color: #146778; border-radius: 30px; }
.journal-page .flow-page-steps article:not(:last-child) > span::after { content: "↓"; position: absolute; top: calc(100% + 5px); color: #458a87; }
.journal-page :is(.inquiry-form,.subsidy-search-form) :is(input,select,textarea) { font-size: 16px; }
.journal-page .inquiry-form { background: var(--journal-paper); border-top: 3px solid #6ea59e; padding: clamp(17px,3.2vw,44px); }
.journal-page .contact { color: #fff; background: linear-gradient(115deg,#134653,#126778); }
.journal-page .contact h2, .journal-page .contact p { color: inherit; }
.journal-page :is(.button,.text-link):focus-visible, .journal-reader :focus-visible, .journal-header :focus-visible, .j-hero :focus-visible { outline: 3px solid #9c6200; outline-offset: 4px; }
.journal-reader { background: var(--journal-paper); }
.journal-reader main { padding-top: 0; }
.j-reader-title { padding: clamp(24px,4vw,52px) 4px clamp(18px,2vw,32px); }
.j-reader-title .j-crumb { margin-bottom: 14px; }
.j-reader-title h1 { font-size: clamp(25px,3vw,40px); margin: 0; }
.journal-reader :is(.page,.comic-page,.story-sheet) { border-color: var(--journal-line); }
.journal-reader .consult-link { background: var(--journal-accent); color: #fff; border-radius: 3px 18px 3px 3px; }
.j-other-stories { border-top: 1px solid var(--journal-line); padding: 20px 4px 0; }
.j-other-stories strong { display: block; margin-bottom: 10px; font-weight: 600; }
.j-other-stories div { display: flex; flex-wrap: wrap; gap: 8px; }
.j-other-stories a { padding: 7px 12px; border: 1px solid var(--journal-line); background: white; border-radius: 8px; font-size: 14px; }
.j-other-stories a:hover { color: var(--journal-accent); border-color: var(--journal-accent); }
.concept-related-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media(max-width:1050px) {
  .journal-header { height: 66px; }
  .j-toggle { display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .j-toggle span { width: 25px; height: 2px; background: var(--journal-ink); }
  .j-nav { position: absolute; top: 100%; inset-inline: 0; display: none; align-items: stretch; gap: 0; max-height: calc(100dvh - 66px); overflow-y: auto; padding: 12px var(--journal-margin) 20px; background: #f7fbf9; border-bottom: 1px solid var(--journal-line); }
  .j-toggle[aria-expanded="true"] + .j-nav { display: grid; }
  .j-nav a { padding: 10px 8px; }
  .j-footer-inner { align-items: start; }
  .journal-footer nav { grid-template-columns: repeat(2,max-content); }
  .concept-production .concept-menu { display: block; }
  .concept-production .concept-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 5vw 20px; color: #1c3b43; background: #f7fbf9; max-height: calc(100dvh - 82px); overflow: auto; }
  .concept-production .concept-nav.is-open { display: flex; }
}
@media(max-width:760px) {
  .j-hero { padding: 16px 18px 24px; }
  .j-hero-inner { grid-template-columns: 1fr; gap: 17px; }
  .j-hero-copy { padding: 0; }
  .j-crumb { margin-bottom: 18px; }
  .j-hero-copy > .eyebrow { margin-bottom: 8px; }
  .j-hero h1 { margin-bottom: 9px; font-size: clamp(27px,6.8vw,38px); }
  .j-action { margin-top: 12px; }
  .j-photo img { height: auto; aspect-ratio: 2.05; }
  .j-contents { padding: 10px 18px; gap: 3px 16px; }
  .journal-page .flow-page { display: block; }
  .journal-page .flow-page-intro { position: static; }
  .journal-page .flow-page-steps article { grid-template-columns: 66px 1fr; gap: 13px; }
  .j-footer-inner { display: grid; }
  .j-brand img { width: 115px; }
  .j-footer-inner nav { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) {
  .journal-page *, .journal-reader * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Keep dialogue with its illustration at every reading width. */
.journal-reader :is(.page,.comic-page,.story-grid) { direction: rtl; }
.journal-reader :is(.panel,.sheet-panel) { direction: ltr; }
.journal-reader .panel > .speech { position: relative; inset: auto; display: block; width: fit-content; max-width: calc(100% - 20px); margin: 10px auto 12px; }
.journal-reader .panel > .speech::after { top: -8px; bottom: auto; transform: rotate(225deg); }
.journal-reader .panel > img.art { height: auto; aspect-ratio: auto; object-fit: contain; }
.j-hero-copy h1 .j-phrase { display: inline-block; max-width: 100%; }
@media(max-width:680px) {
  .journal-reader :is(.page,.comic-page,.story-grid) { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .journal-reader :is(.page,.comic-page,.story-grid) > :is(.panel,.sheet-panel) { grid-column: 1 / -1; }
  .journal-reader :is(.panel > .speech,.sheet-bubble) { font-size: 15px; }
}

@media (max-width: 760px) {
  .concept-production .concept-flow-map { min-width: 0; overflow: hidden; }
  .concept-production .concept-flow-map text { font-size: 42px; }
  .concept-production .concept-comic:last-child { display: block; }
  .concept-production .concept-subsidy, .concept-production .concept-contact { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .concept-production .concept-values { grid-template-columns: minmax(0,1fr); }
  .concept-production .concept-values-visual { width: 100%; min-height: 0; }
}