/* Theme base styles */

/* Tools
Any animations, or functions used throughout the project.
Note: _macros.css needs to be imported into each stylesheet where macros are used and not included here
*/

/* Generic
This is where reset, normalize & box-sizing styles go.
*/

*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Objects
Non-cosmetic design patterns including grid and layout classes)
*/



/* CSS variables */

:root {
  --column-gap: 2.13%;
  --column-width-multiplier: 8.333;
}

/* Mobile layout */

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width: 100%;
}

/* Desktop layout */

@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  
    .row-fluid .span1 {
      width: calc(var(--column-width-multiplier) * 1% * 1 - var(--column-gap) * (11 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span2 {
      width: calc(var(--column-width-multiplier) * 1% * 2 - var(--column-gap) * (10 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span3 {
      width: calc(var(--column-width-multiplier) * 1% * 3 - var(--column-gap) * (9 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span4 {
      width: calc(var(--column-width-multiplier) * 1% * 4 - var(--column-gap) * (8 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span5 {
      width: calc(var(--column-width-multiplier) * 1% * 5 - var(--column-gap) * (7 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span6 {
      width: calc(var(--column-width-multiplier) * 1% * 6 - var(--column-gap) * (6 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span7 {
      width: calc(var(--column-width-multiplier) * 1% * 7 - var(--column-gap) * (5 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span8 {
      width: calc(var(--column-width-multiplier) * 1% * 8 - var(--column-gap) * (4 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span9 {
      width: calc(var(--column-width-multiplier) * 1% * 9 - var(--column-gap) * (3 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span10 {
      width: calc(var(--column-width-multiplier) * 1% * 10 - var(--column-gap) * (2 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span11 {
      width: calc(var(--column-width-multiplier) * 1% * 11 - var(--column-gap) * (1 * var(--column-width-multiplier) / 100));
    }
  
	 .page-section__inner{
		  max-width: var(--container-w);
		  margin-inline: auto;
	 }
}
.content-wrapper {
  margin: 0 auto;
  padding: 0 1rem;
}

@media screen and (min-width: 1380px) {
  .content-wrapper {
    padding: 0;
  }
}

.dnd-section > .row-fluid {
  margin: 0 auto;
}

.dnd-section .dnd-column {
  padding: 0;
}

@media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
}
/* ==========================================================================
   objects/_page-section.css

   LP の 1 セクション分の器。縦リズム（上下余白）とコンテンツ幅の頭打ちだけを持つ。
   背景色・グリッド・カードは各モジュール CSS の仕事。

   元: zenlink-lp.html L241-251 の `.zl-section`（D-07 / D-07-c で改名）
   `_layout.css`（`.content-wrapper` / `.dnd-*` = HubSpot 由来の器）とは責務が違うので
   別ファイルに分けている（D-07 / D-14）。

   使用例:
     <section class="page-section can-do">
       <div class="page-section__inner">
         <div class="section-heading">…</div>
         <div class="page-section__body">…</div>
       </div>
     </section>

   規約:
   - 縦余白は --section-y のみ（PC 80px / SP 40px。D-04）。--sp-10 / --sp-8 を直接書かない
   - 左右のガターはここが持つ。--container-w* はコンテンツ幅でガターを含まない（D-03）
   - 幅は --container-w が既定。ヘッダー（--container-w-header）と
     ヒーロー（--container-w-hero）はこの器を使わず自分で持つ（D-13）
   - デスクトップファースト。SP は @media (max-width: 767px) で上書きする
     （モジュール側はモバイルファースト。境界 767/768 が同じなので競合しない）
   - text-align は指定しない。中央寄せは .section-heading / .page-section__body が持つ。
     セクション本文が左寄せのモジュール（05 limits / 07 features）を巻き込まないため
   ========================================================================== */

.page-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--section-y) var(--gutter);
}

/* コンテンツ幅の頭打ち。--gutter は親（.page-section）の padding が持つので
   ここは 100% まで伸ばしてよい */
.page-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
}

/* セクション直下のリード文。中央寄せ + 15px。
   margin: 0 は _typography.css の p 既定下マージンの打ち消し（D-07-e）。
   間隔は .page-section__inner の gap で作る。
   richtext を入れる場合、段落間の余白は編集者のために残し、
   最終段落だけモジュール側で `> :last-child { margin-bottom: 0 }` を当てる */
.page-section__body {
  max-width: var(--container-w);
  margin: 0;
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
  text-align: center;
}

/* --- SP --- */

@media (max-width: 767px) {
  .page-section,
  .page-section__inner {
    gap: var(--sp-7);
  }
}
/* ==========================================================================
   components/_section-heading.css

   セクション見出しの塊。teal キッカー → リード → タイトル → 3px teal ルール。
   要素は全部そろっている必要はなく、必要なものだけ並べる（順序は下の例のとおり）。

   元: zenlink-lp.html L218-239 の `.zl-head`（D-07 / D-07-c で改名）

   使用例:
     <div class="section-heading">
       <p class="section-heading__kicker">FEATURES</p>
       <p class="section-heading__lead">海外販売をまとめてサポート</p>
       <h2 class="section-heading__title">ZenLinkの4つの特徴</h2>
       <hr class="section-heading__rule">
     </div>

   規約:
   - タイトルのサイズは --fs-title（PC 24px / SP 20px）。トークン側が
     @media (max-width: 767px) で切り替わるので、ここに -sp トークンは作らない（D-11）
   - 見出し 1 本だけで完結するセクション（11 reasons / 12 faq）は
     .section-heading__title--page を足して一段大きくする
   - margin: 0 / border: 0 は _typography.css の p / h2-h4 / hr 既定の打ち消し（D-07-e）。
     間隔は .section-heading の gap で作る
   - デスクトップファースト。SP は @media (max-width: 767px) で上書きする
   ========================================================================== */

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.section-heading__kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-kicker);
  line-height: var(--lh-title);
  color: var(--text-accent);
  /* キッカーは欧文 1 語（FEATURES / CHANGE …）。_typography.css の
     html[lang^="ja"] body に付く word-break: break-all を解除して単語の途中で折らない */
  word-break: normal;
}

.section-heading__lead {
  margin: 0;
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.section-heading__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
}

/* 見出しがセクションの主役になるとき（PC 40px / SP 24px）。
   SP の 24px は --fs-display の SP 値が未確定（R4）なため --fs-statement で当てている。
   R4 が 24px で確定したら下の @media ブロックは削除できる */
.section-heading__title--page {
  font-size: var(--fs-display);
}

/* 3px の teal ルール。align-self: stretch で .section-heading の幅
   （= 中で最も広い要素 = ふつうはタイトル）に追従する。
   .section-heading 自体は align-items: center の親の中で収縮するので、
   ルールがタイトルより長く伸びることはない */
.section-heading__rule {
  align-self: stretch;
  width: auto;
  height: var(--rule-thick);
  margin: 0;
  border: 0;
  background-color: var(--rule-accent);
}

/* --- SP --- */

@media (max-width: 767px) {
  .section-heading__title--page {
    font-size: var(--fs-statement);
  }
}

/* Elements
Base HTML elements are styled in this section (<body>, <h1>, <a>, <p>, <button> etc.)
*/

/* ==========================================================================
   elements/_typography.css
   ベース要素のタイポグラフィ。トークンは theme-overrides.css の :root を参照。
   ========================================================================== */

html {
  font-size: var(--fs-body);
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--surface-page);
  overflow-wrap: break-word;
}

/* 日本語・中国語・韓国語の改行制御（本文向け） */

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
  line-break: strict;
  overflow-wrap: normal;
  word-break: break-all;
}


/* --- Paragraphs --- */

p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--sp-6);
}


/* --- Anchors --- */

a {
  cursor: pointer;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-base) var(--ease-standard);
}

a:hover,
a:focus,
a:active {
  color: var(--text-accent);
  text-decoration-color: var(--text-accent);
}


/* --- Headings ---
   要素セレクタの既定値。モジュール内の見出しはクラスで個別指定する。
   サイズのマッピングは暫定 — 実案件を1本作った後に見直すこと。 */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-6);
  color: var(--text-primary);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-band);
  line-height: var(--lh-tight);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lead);
  line-height: var(--lh-title);
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
}

h5, .h5 {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-subhead);
  line-height: var(--lh-snug);
}

h6, .h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
}

/* 見出しは word-break: break-all を解除。
   本文と同じ設定だと文節を無視した位置で改行され、見出しが崩れる。 */

html[lang^="ja"] h1,
html[lang^="ja"] h2,
html[lang^="ja"] h3,
html[lang^="ja"] h4,
html[lang^="ja"] h5,
html[lang^="ja"] h6 {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}


/* --- Lists --- */

ul,
ol {
  margin: 0 0 var(--sp-6);
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0;
}

ul.no-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}


/* --- Code blocks --- */

pre {
  overflow: auto;
}

code {
  vertical-align: bottom;
}


/* --- Blockquotes --- */

blockquote {
  border-left: var(--rule-thick) solid var(--rule-accent);
  margin: 0 0 var(--sp-6);
  padding-left: var(--sp-4);
}


/* --- Horizontal rules --- */

hr {
  border: none;
  border-bottom: var(--rule-thin) solid var(--border-hairline);
}


/* --- Image alt text --- */

img {
  font-size: var(--fs-nano);
  word-break: normal;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* ==========================================================================
   elements/_buttons.css

   既定は solid（黒地・白文字）。色は修飾クラスで切り替える。
   サイズは --sm / 既定（lg）の2段階。
   矢印つきCTAは .button--arrow + <span class="button__arrow">。

   使用例:
     <a class="button button--accent" href="#contact">無料相談する</a>
     <a class="button button--accent button--sm button--arrow" href="#contact">
       無料相談する<span class="button__arrow">…svg…</span>
     </a>
   ========================================================================== */

button,
.button,
.hs-button {
  /* 矢印の配色。修飾クラスごとに上書きする */
  --btn-arrow-bg: var(--zl-white);
  --btn-arrow-fg: var(--zl-black);
  --btn-arrow-ring: none;    

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: var(--size-btn-lg);
  padding: 0 var(--sp-8);
  border: none;
  border-radius: var(--radius-pill);
  background-color: var(--action-solid-bg);
  color: var(--action-solid-fg);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  line-height: var(--lh-solid);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition:
    opacity var(--dur-base) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

button:hover,
button:focus,
.button:hover,
.button:focus,
.hs-button:hover,
.hs-button:focus {
  background-color: var(--action-solid-bg);
  color: var(--action-solid-fg);
  opacity: var(--hover-opacity);
}

button:active,
.button:active,
.hs-button:active {
  transform: scale(var(--press-scale));
}

button:disabled,
.button:disabled,
.hs-button:disabled {
  background-color: var(--action-disabled-bg);
  border-color: var(--action-disabled-bg);
  color: var(--action-disabled-fg);
  opacity: 1;
  transform: none;
  cursor: not-allowed;
}

/* --- Color variants --- */

.button--accent,
.hs-button.button--accent {
  --btn-arrow-bg: var(--zl-white);
  --btn-arrow-fg: var(--accent-primary);
  background-color: var(--action-accent-bg);
  color: var(--action-accent-fg);
}

.button--accent:hover,
.button--accent:focus {
  background-color: var(--action-accent-bg);
  color: var(--action-accent-fg);
}

.button--solid {
  --btn-arrow-bg: var(--zl-white);
  --btn-arrow-fg: var(--zl-black);
  background-color: var(--action-solid-bg);
  color: var(--action-solid-fg);
}

.button--solid:hover,
.button--solid:focus {
  background-color: var(--action-solid-bg);
  color: var(--action-solid-fg);
}

.button--alt {
  --btn-arrow-bg: var(--zl-white);
  --btn-arrow-fg: var(--accent-secondary);
  background-color: var(--action-alt-bg);
  color: var(--action-alt-fg);
}

.button--alt:hover,
.button--alt:focus {
  background-color: var(--action-alt-bg);
  color: var(--action-alt-fg);
}

/* リングは持たない（D-07-b）。ゴーストが出るのは CTA バンドの teal 地の上だけで、
   teal 地に teal のリングを引いても見えない。白地でフチが必要になったら
   そのとき .button--outline を足す */
.button--ghost {
  --btn-arrow-bg: var(--zl-white);
  --btn-arrow-fg: var(--zl-black);
  --btn-arrow-ring: var(--ring-dark);
  background-color: var(--action-ghost-bg);
  color: var(--action-ghost-fg);
}

.button--ghost:hover,
.button--ghost:focus {
  background-color: var(--action-ghost-bg);
  color: var(--action-ghost-fg);
}

/* --- Size variants --- */

.button--sm {
  min-height: var(--size-btn-sm);
  padding: 0 var(--sp-6);
  font-size: var(--fs-body-s);
}

.button--block {
  width: 100%;
}

/* --- Arrow ---
   円のサイズと余白は em 基準。ボタンのフォントサイズに追従させるため、
   ここだけはトークンではなく相対値を使う。 */

.button--arrow {
  padding-right: var(--sp-4);
}

.button__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: var(--radius-round);
  background-color: var(--btn-arrow-bg);
  color: var(--btn-arrow-fg);
  box-shadow: var(--btn-arrow-ring);
  transition: transform var(--dur-base) var(--ease-standard);
}

.button__arrow svg {
  display: block;
  width: 0.8em;
  height: 0.8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover .button__arrow,
.button:focus .button__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button__arrow {
    transition: none;
  }
}

/* --- CTA stack ---
   ＼ … ／ キッカーを上に重ねた CTA のラッパー。
   キッカーとボタンを縦に積んで中央揃えにする。 */

.cta-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.cta-stack__kicker {
  font-weight: var(--fw-bold);
  font-size: var(--fs-micro);
  line-height: var(--lh-title);
  color: var(--text-accent);
}

/* teal 地の上に置くとき。キッカーを黒に落とす */
.cta-stack--on-accent .cta-stack__kicker {
  color: var(--text-primary);
}

/* --- No button ---
   ボタン要素からすべての装飾を剥がすユーティリティ。
   上のベース指定を打ち消すため display / min-height の解除も必要。 */

.no-button,
.no-button:hover,
.no-button:focus,
.no-button:active {
  display: inline;
  min-height: 0;
  gap: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: initial;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin-bottom: 0;
  opacity: 1;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transform: none;
  transition: none;
}
/* ==========================================================================
   elements/_forms.css
   HubSpot フォームの構造対応 + ZenLink トークン適用。
   ========================================================================== */

form,
.submitted-message {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background-color: var(--surface-card);
  border: var(--rule-thin) solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
}

@media (max-width: 767px) {
  form,
  .submitted-message { padding: var(--sp-6); }
}


/* --- Fields --- */

.hs-form-field {
  margin-bottom: var(--sp-6);
}


/* --- Form title --- */

.form-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  color: var(--text-primary);
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
}


/* --- Labels --- */

form label {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-2);
}


/* --- Help text --- */

form legend {
  color: var(--text-primary);
  font-size: var(--fs-micro);
  opacity: .7;
}


/* --- Inputs --- */

form input[type=text],
form input[type=search],
form input[type=email],
form input[type=password],
form input[type=tel],
form input[type=number],
form input[type=file],
form select,
form textarea {
  display: inline-block;
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: var(--rule-thin) solid var(--border-hairline);
  border-radius: var(--radius-field);
  background-color: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

form input[type=text]:focus,
form input[type=search]:focus,
form input[type=email]:focus,
form input[type=password]:focus,
form input[type=tel]:focus,
form input[type=number]:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: var(--ring-teal);
}

form textarea {
  resize: vertical;
}

form fieldset {
  max-width: 100% !important;
}

::placeholder {
  color: var(--text-primary);
  opacity: .4;
}


/* --- Inputs: checkbox / radio --- */

form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

form .inputs-list > li {
  display: block;
  margin: var(--sp-3) 0;
}

form .inputs-list input,
form .inputs-list span {
  vertical-align: middle;
}

form input[type=checkbox],
form input[type=radio] {
  cursor: pointer;
  margin-right: var(--sp-2);
  accent-color: var(--accent-primary);
}


/* --- Inputs: date picker --- */

.hs-dateinput {
  position: relative;
}

.hs-dateinput:before {
  content: '\01F4C5';
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  opacity: .4;
}

.fn-date-picker .pika-table thead th {
  color: var(--text-inverse);
}

.fn-date-picker td.is-selected .pika-button {
  background: var(--accent-primary);
  border-radius: 0;
  box-shadow: none;
}

.fn-date-picker td .pika-button:hover,
.fn-date-picker td .pika-button:focus {
  background-color: var(--accent-primary) !important;
  border-radius: 0 !important;
  color: var(--text-inverse);
}

.fn-date-picker td.is-today .pika-button {
  color: var(--accent-primary);
}


/* --- Inputs: file picker --- */

form input[type=file] {
  background-color: transparent;
  border: initial;
  padding: initial;
}


/* --- Headings and text --- */

form .hs-richtext,
form .hs-richtext p {
  font-size: var(--fs-body-s);
  margin: 0 0 var(--sp-6);
}

form .hs-richtext img {
  max-width: 100% !important;
}


/* --- GDPR --- */

.legal-consent-container .hs-form-booleancheckbox-display > span,
.legal-consent-container .hs-form-booleancheckbox-display > span p {
  margin-left: var(--sp-4) !important;
}


/* --- Validation --- */

.hs-form-required {
  color: var(--accent-alert);
}

.hs-input.invalid.error {
  border-color: var(--accent-alert);
}

.hs-error-msg,
.hs-error-msgs label {
  color: var(--accent-alert);
  font-size: var(--fs-micro);
  margin-top: var(--sp-2);
}


/* --- Submit button --- */

form input[type=submit],
form .hs-button {
  display: inline-block;
  width: auto;
  min-height: var(--size-btn-lg);
  padding: 0 var(--sp-8);
  border: none;
  border-radius: var(--radius-pill);
  background-color: var(--action-accent-bg);
  color: var(--action-accent-fg);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-standard);
}

form input[type=submit]:hover,
form input[type=submit]:focus,
form .hs-button:hover,
form .hs-button:focus {
  background-color: var(--action-accent-bg);
  color: var(--action-accent-fg);
  opacity: var(--hover-opacity);
}


/* --- Captcha --- */

.grecaptcha-badge {
  margin: 0 auto;
}



  /* Search button input field and suggestions */
  .body-container-wrapper .hs-search-field__button {
    padding: var(--sp-4);
  }

  .body-container-wrapper .hs-search-field__bar--button-inline .hs-search-field__button {
    margin-left: var(--sp-2);
    margin-bottom: 0;
  }

  .body-container-wrapper .hs-search-field__button svg {
    height: var(--fs-body-s);
    fill: var(--text-inverse);
  }

  .body-container-wrapper .hs-search-field__bar > form > .hs-search-field__input {
    padding: var(--sp-3);
  }

  .body-container-wrapper .hs-search-field__suggestions li a {
    color: var(--text-primary);
    padding: var(--sp-2) var(--sp-3);
    text-decoration: none;
    transition: background-color var(--dur-slow) var(--ease-standard);
  }

/* ==========================================================================
   elements/_tables.css
   ========================================================================== */

table {
  width: 100%;
  border: var(--rule-thin) solid var(--border-hairline);
  border-collapse: collapse;
  background-color: var(--surface-card);
  margin-bottom: var(--sp-6);
  overflow-wrap: break-word;
}


/* --- Table cells --- */

td,
th {
  border: var(--rule-thin) solid var(--border-hairline);
  padding: var(--sp-4);
  color: var(--text-primary);
  font-size: var(--fs-body-s);
  text-align: left;
  vertical-align: top;
}


/* --- Table header --- */

thead th {
  background-color: var(--surface-mist);
  color: var(--text-primary);
  font-weight: var(--fw-bold);
  vertical-align: bottom;
}


/* --- Table footer --- */

tfoot td {
  background-color: var(--surface-mist);
  color: var(--text-primary);
}


/* --- 日付ピッカーの除外 ---
   フォームの pikaday カレンダーも table 要素で組まれているため、
   上のセル余白・罫線がそのまま当たると崩れる。ここで打ち消す。 */

.pika-table,
.pika-table td,
.pika-table th {
  border: none;
  padding: 0;
  background-color: transparent;
}

/* Components
Specific pieces of UI that are stylized. Typically used for global partial styling
*/

/* ==========================================================================
   components/_header.css

   対象は header-no-navigation.html（ロゴのみのヘッダー）だけ。
   LPのヘッダーは zl-header モジュールが担当するため、ここには含めない。

   削除済み: ナビゲーションメニュー / 検索バー / 言語スイッチャー /
             モバイルトグル（base64アイコン3点）/ スキップリンク /
             header__row・header__column（2段ヘッダー用）
   → いずれも header.html 専用で、このテーマでは使用しない。
      復活させる場合は cms-theme-boilerplate の元ファイルを参照。
   ========================================================================== */

/* --- Header DND sections ---
   ヘッダー上下の dnd_area にセクション余白を出さない。 */

.header .dnd-section {
  padding: 0;
}


/* --- Header appearance --- */

.header {
  background-color: var(--surface-page);
  box-shadow: var(--shadow-header);
}


/* --- Header container --- */

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}


/* --- Logo --- */

.header__logo {
  align-items: center;
  display: flex;
  height: auto;
  margin-right: auto;
  max-width: 200px;
  overflow: hidden;
}

.header__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 40px;
}

/* ロゴを画像ではなくテキストで設定した場合 */

.header__logo .logo-company-name {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: var(--fw-bold);
  text-decoration: none;
}


/* --- SP --- */

@media (max-width: 767px) {
  .header__container {
    padding-block: var(--sp-4);
  }

  .header__logo {
    margin: 0 auto;
  }

  .header__logo img {
    max-height: 32px;
  }
}
/* Menu and simple menu */

.hs-menu-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Horizontal menu */

.hs-menu-wrapper.hs-menu-flow-horizontal .hs-menu-children-wrapper {
  flex-direction: column;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-horizontal ul {
    flex-direction: column;
  }
}

/* Vertical menu */

.hs-menu-wrapper.hs-menu-flow-vertical ul {
  flex-direction: column;
}

/* Flyouts */

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
  display: inline-flex;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-vertical ul {
    display: flex;
  }
}

.hs-menu-wrapper.flyouts .hs-item-has-children {
  position: relative;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper {
  left: -9999px;
  opacity: 0;
  position: absolute;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper a {
  display: block;
  white-space: nowrap;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
  left: 0;
  opacity: 1;
  top: 100%;
}

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
  left: 100%;
  opacity: 1;
  top: 0;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.flyouts .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
    left: 0;
    opacity: 1;
    position: relative;
    top: auto;
  }
}

/* CTA, logo, and rich text images */

.hs_cos_wrapper_type_cta img,
.hs_cos_wrapper_type_logo img,
.hs_cos_wrapper_type_rich_text img {
  height: auto;
  max-width: 100%;
}

/* Utilities
Helper classes with ability to override anything that comes before it
*/

/* For content that needs to be visually hidden but stay visible for screenreaders */

.show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@media (max-width: 767px) {
  .show-for-sr--mobile {
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }
}

/* 改行 */
.u-br-sp { display: none; }
.u-br-pc { display: inline; }

/* 要素の出し分け */
.u-hide-sp { }
.u-hide-pc { }

@media (max-width: 767px) {
  .u-br-sp { display: inline; }
  .u-br-pc { display: none; }
  .u-hide-sp { display: none !important; }
}
@media (min-width: 768px) {
  .u-hide-pc { display: none !important; }
}