/* 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));
    }
  
}
.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 1rem;
}

@media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
}

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

/* The overflow-wrap is meant to prevent long/large words from breaking the mobile responsiveness of a page (e.g. horizontal scrolling). It is preferred to reduce font sizes on mobile to address this, with this CSS specifically helping with extreme scenarios where a reduction in font size is not possible. */

body {
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Handles word breaking for a few specific languages which handle breaks in words differently. If your content is not translated into these languages, you can safely remove this.  */

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: 1rem;
  margin: 0 0 1.4rem;
}

/* Anchors */

a {
  cursor: pointer;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.4rem;
}

/* Lists */

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

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: 2px solid;
  margin: 0 0 1.4rem;
  padding-left: 0.7rem;
}

/* Horizontal rules */

hr {
  border: none;
  border-bottom: 1px solid #CCC;
}

/* Image alt text */

img {
  font-size: 0.583rem;
  word-break: normal;
}
button,
.button,
.hs-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.15s linear;
  white-space: normal;
}

button:disabled,
.button:disabled,
.hs-button:disabled {
  background-color: #D0D0D0;
  border-color: #D0D0D0;
  color: #E6E6E6;
}

/* No button */

.no-button,
.no-button:hover,
.no-button:focus,
.no-button:active {
  background: none;
  border: none;
  border-radius: 0;
  color: initial;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin-bottom: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: none;
}
/* Fields */

.hs-form-field {
  margin-bottom: 1.4rem;
}

/* Labels */

form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

/* Form Title */
.form-title {
  margin-bottom: 0;
}

/* Help text */

form legend {
  font-size: 0.875rem;
}

/* 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;
  font-size: 0.875rem;
  padding: 0.7rem;
  width: 100%;
}

form textarea {
  resize: vertical;
}

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

/* Inputs - checkbox/radio */

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

form .inputs-list > li {
  display: block;
  margin: 0.7rem 0;
}

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

form input[type=checkbox],
form input[type=radio] {
  cursor: pointer;
  margin-right: 0.35rem;
}

/* Inputs - date picker */

.hs-dateinput {
  position: relative;
}

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

.fn-date-picker .pika-table thead th {
  color: #FFF;
}

.fn-date-picker td.is-selected .pika-button {
  border-radius: 0;
  box-shadow: none;
}

.fn-date-picker td .pika-button:hover,
.fn-date-picker td .pika-button:focus {
  border-radius: 0 !important;
  color: #FFF;
}

/* 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: 0.875rem;
  margin: 0 0 1.4rem;
}

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: 1rem !important;
}

/* Validation */

.hs-form-required {
  color: #EF6B51;
}

.hs-input.invalid.error {
  border-color: #EF6B51;
}

.hs-error-msg {
  color: #EF6B51;
  margin-top: 0.35rem;
}

/* Submit button */

form input[type=submit],
form .hs-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.15s linear;
  white-space: normal;
}

/* Captcha */

.grecaptcha-badge {
  margin: 0 auto;
}


  /* Search button input field and suggestions */
  .body-container-wrapper .hs-search-field__button {
    padding: 15px;
  }

  .body-container-wrapper .hs-search-field__bar--button-inline .hs-search-field__button {
    margin-left: 6px;
    margin-bottom: 0;
  }

  .body-container-wrapper .hs-search-field__button svg {
    height: 15px;
    fill: #fff;
  }

  .body-container-wrapper .hs-search-field__bar > form > .hs-search-field__input {
    padding: 10px;
  }

  .body-container-wrapper .hs-search-field__suggestions li a {
    color: #494A52;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    transition: background-color 0.3s;
  }

/* Table */

table {
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  overflow-wrap: break-word;
}

/* Table cells */

td,
th {
  vertical-align: top;
}

/* Table header */

thead th {
  vertical-align: bottom;
}

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

/* ============================================
   RYODEN Header
   Structure: 2 rows inside single container
     Row 1 (top-right): Search + JA/EN + CTA buttons
     Row 2 (full-width): Logo left + Nav right
   Container padding: 0 96px
   Transparent by default (top page), white on hover/scroll
   ============================================ */

:root {
  --header-pad-x: 96px;
  --color-primary: #e60012;
  --color-text-strong: #1a1c1e;
  --color-text-sub: #767879;
  --color-surface-default: #ffffff;
  --color-surface-sunken: #f4f5f5;
  --color-border: #E5E5E5;
  --color-border-mega: #e9e9ea;
  --color-text-mega-sub: #25282a;
  --radius-button: 6px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-lang: "Yantramanav", sans-serif;
  --font-roboto: "Roboto", sans-serif;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* --- Base: transparent, becomes white on hover/scroll --- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  font-family: var(--font-sans);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

/* White bg on hover / scroll */
.header:hover,
.header.is-scrolled {
  background: var(--color-surface-default);
}

/* Sub pages: always solid */
.header--solid {
  position: sticky;
  background: var(--color-surface-default);
  border-bottom: 1px solid var(--color-border);
}

.header.is-scrolled {
  position: fixed;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

/* Skip link */
.header__skip {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.header__skip:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ============================================
   Header bar: contains both rows
   ============================================ */

.header__bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 var(--header-pad-x);
}

.header__bar-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

/* ============================================
   Row 1: Utility (top-right)
   Search (44x44) + Lang (JA 50x44, EN 52x44) + CTA buttons (h-44, px-16)
   ============================================ */

.header__utility {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 12px;
}

/* Search button: 44x44 */
.header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-strong);
  transition: color var(--transition-fast);
}

/* Transparent mode: white icons */
.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__search-btn {
  color: #fff;
}

.header__search-btn:hover {
  color: var(--color-primary);
}

/* Language switch */
.header__lang-switch {
  display: flex;
  align-items: center;
}

.header__lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0;
  font-family: var(--font-lang);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.64px;
  color: var(--color-text-sub);
  background: transparent;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

/* JA: 50x44, EN: 52x44 */
.header__lang-btn--ja {
  width: 50px;
}

.header__lang-btn--en {
  width: 52px;
}

/* Fallback if no modifier class */
.header__lang-btn:not(.header__lang-btn--ja):not(.header__lang-btn--en) {
  width: 50px;
}

.header__lang-btn--active {
  font-weight: 700;
  color: var(--color-text-strong);
  background: var(--color-surface-sunken);
}

/* Transparent mode: lang buttons */
.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__lang-btn {
  color: rgba(255, 255, 255, 0.6);
}

.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__lang-btn--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border: 1px solid #fff;
}

/* CTA buttons: h-44, px-16, radius-6 */
.header__cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.header__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-strong);
  text-decoration: none;
  background: var(--color-surface-sunken);
  border: none;
  border-radius: var(--radius-button);
  line-height: 1;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.header__cta-btn:hover {
  background: #e8e9ea;
}

/* Transparent mode: CTA buttons */
.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__cta-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #fff;
  backdrop-filter: blur(8px);
}

.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__cta-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Row 2: Logo + Navigation
   ============================================ */

.header__main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo: 194.574 x 40px */
.header__logo {
  flex-shrink: 0;
}

.header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header__nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Nav links: Noto Sans JP Medium, 15px, h-60px, px-16, py-20 */
.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 20px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-strong);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  box-sizing: border-box;
}

/* Dropdown items: pl-16, pr-8 */
.header__nav-item.has-dropdown > .header__nav-link {
  padding-left: 16px;
  padding-right: 8px;
}

/* Transparent mode: white text */
.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__nav-link {
  color: #fff;
}

.header__nav-link:hover,
.header__nav-item.is-active > .header__nav-link {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__nav-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Chevron: 20x20 container */
.header__nav-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header__nav-item.has-dropdown:hover .header__nav-chevron {
  transform: rotate(180deg);
}

/* External link icon */
.header__nav-external {
  margin-left: 4px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================================
   Mega Menu — Full-width overlay
   ============================================ */

.header__mega-menu {
  position: fixed;
  top: 116px;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--color-surface-default);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
  z-index: 110;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Show on hover */
.header__nav-item.has-dropdown:hover > .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hide when close button clicked */
.header__mega-menu.is-closing {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) !important;
  pointer-events: none;
}

/* Container: max-width 1328px, centered, padding-x 40px */
.header__mega-menu-container {
  position: relative;
  max-width: 1328px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

/* Close button: 40x40, top-right */
.header__mega-menu-close {
  position: absolute;
  top: 32px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-strong);
  transition: color var(--transition-fast);
  z-index: 2;
}

.header__mega-menu-close:hover {
  color: var(--color-primary);
}

/* --- Title section --- */
.header__mega-menu-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-mega);
  gap: 24px;
}

.header__mega-menu-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Arrow icon box: 48x48, white bg, 1px border */
.header__mega-menu-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-mega);
  border-radius: 0;
  flex-shrink: 0;
  color: var(--color-text-strong);
}

/* Title text: 32px, Medium, lh 48px */
.header__mega-menu-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header__mega-menu-title:hover {
  color: var(--color-primary);
}

/* Search button (事業案内 only) */
.header__mega-menu-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-border-mega);
  border-radius: var(--radius-button);
  background: var(--color-surface-default);
  color: var(--color-text-strong);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.header__mega-menu-search-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.header__mega-menu-search-btn svg {
  flex-shrink: 0;
}

/* --- Links body section --- */
.header__mega-menu-body {
  padding-top: 24px;
}

/* Link group */
.header__mega-menu-link-group {
  margin-bottom: 0;
}

.header__mega-menu-link-group + .header__mega-menu-link-group {
  margin-top: 0;
}

/* TextLink item: icon 32x32 + text */
.header__mega-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 31.5px;
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 8px 0;
}

.header__mega-menu-link:hover {
  color: var(--color-primary);
}

.header__mega-menu-link:hover .header__mega-menu-link-icon {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Link icon box: 32x32 */
.header__mega-menu-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-mega);
  flex-shrink: 0;
  color: var(--color-text-strong);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

/* Sub-links: indented grid */
.header__mega-menu-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px 40px;
}

/* Grid modifier for 企業情報 (direct sublinks without parent link) */
.header__mega-menu-sublinks--grid {
  padding: 0;
  padding-top: 0;
}

/* Sub-link item */
.header__mega-menu-sublink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 254px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text-mega-sub);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 4px 0;
}

.header__mega-menu-sublink:hover {
  color: var(--color-primary);
}

.header__mega-menu-sublink svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.header__mega-menu-sublink:hover svg {
  opacity: 1;
  color: var(--color-primary);
}

/* Bottom row: 4-column layout for 事業案内 */
.header__mega-menu-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-mega);
}

.header__mega-menu-bottom-row .header__mega-menu-link {
  padding: 8px 0;
}

/* --- Backdrop overlay --- */
.header__mega-menu-backdrop {
  position: fixed;
  top: 116px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 109;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  pointer-events: none;
}

/* Show backdrop when any mega menu is hovered */
.header__nav-item.has-dropdown:hover ~ .header__nav-item .header__mega-menu-backdrop,
.header:has(.header__nav-item.has-dropdown:hover) .header__mega-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hide backdrop when is-closing */
.header:has(.header__mega-menu.is-closing) .header__mega-menu-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================
   Search Overlay
   ============================================ */

.header__search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-surface-default);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 200;
  display: none;
}

.header__search-overlay.is-open {
  display: block;
}

.header__search-overlay-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--header-pad-x);
}

.header__search-overlay-inner .hs-search-field {
  flex: 1;
}

.header__search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-text-strong);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.header__search-close:hover {
  color: var(--color-primary);
}

/* ============================================
   Hamburger (mobile)
   ============================================ */

.header__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}

.header__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-strong);
  transition: all 0.3s ease;
  transform-origin: center;
  margin: 2.5px 0;
}

.header:not(.header--solid):not(:hover):not(.is-scrolled) .header__hamburger-line {
  background: #fff;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ============================================
   Mobile Menu
   ============================================ */

.header__mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface-default);
  overflow-y: auto;
  z-index: 99;
  display: none;
}

.header__mobile-menu.is-open {
  display: block;
}

.header__mobile-menu-scroll {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.header__mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__mobile-nav-item {
  border-bottom: 1px solid var(--color-border);
}

.header__mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-strong);
  text-decoration: none;
}

.header__mobile-nav-link:active {
  background: var(--color-surface-sunken);
}

.header__mobile-arrow {
  font-size: 20px;
  color: var(--color-text-sub);
  font-weight: 300;
  line-height: 1;
}

.header__mobile-external {
  margin-left: 4px;
  opacity: 0.5;
  flex-shrink: 0;
}

.header__mobile-bottom {
  padding: 16px;
  margin-top: auto;
}

.header__mobile-download {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-strong);
  text-decoration: none;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.header__mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: var(--radius-button);
  overflow: hidden;
  margin-bottom: 16px;
}

.header__mobile-search-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-size: 13px;
  outline: none;
  background: transparent;
  font-family: inherit;
}

.header__mobile-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-left: 1px solid #ccc;
  cursor: pointer;
  color: var(--color-text-strong);
  padding: 0;
}

.header__mobile-sub-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__mobile-sub-links li {
  margin-bottom: 10px;
}

.header__mobile-sub-links a {
  font-size: 12px;
  color: var(--color-text-sub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.header__mobile-sub-links a::before {
  content: ">";
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
}

.header__mobile-sub-links a:hover {
  color: var(--color-primary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1440px) {
  :root {
    --header-pad-x: 48px;
  }
}

@media (max-width: 1280px) {
  :root {
    --header-pad-x: 32px;
  }

  .header__nav-link {
    padding: 20px 10px;
    font-size: 13px;
  }

  .header__nav-item.has-dropdown > .header__nav-link {
    padding-left: 10px;
    padding-right: 6px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-pad-x: 16px;
  }

  .header__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }

  .header__bar-inner,
  .header__utility,
  .header__nav,
  .header__main-row {
    display: none;
  }

  .header__logo {
    display: flex;
  }

  .header__logo img {
    height: 32px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__search-overlay-inner {
    padding: 0 16px;
  }

  /* Hide mega menu on mobile */
  .header__mega-menu {
    display: none;
  }

  .header__mega-menu-backdrop {
    display: none;
  }
}
/* ============================================
   CONTACT CTA Section
   bg: #e60012 (var(--color-primary))
   height: 520px, content width: 1248px centered
   Diamond decorations with mix-blend-mode: plus-lighter
   ============================================ */

.contact-cta {
  position: relative;
  background: var(--color-primary, #e60012);
  color: #fff;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Diamond decorations --- */
.contact-cta__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-cta__diamond {
  position: absolute;
  transform: rotate(45deg);
  mix-blend-mode: plus-lighter;
}

/* Large diamond, top-left area */
.contact-cta__diamond--1 {
  width: 320px;
  height: 320px;
  top: -100px;
  left: -80px;
  background: rgba(255, 255, 255, 0.06);
}

/* Medium diamond overlapping */
.contact-cta__diamond--2 {
  width: 180px;
  height: 180px;
  top: 60px;
  left: 160px;
  background: rgba(255, 255, 255, 0.05);
}

/* Small accent diamond */
.contact-cta__diamond--3 {
  width: 100px;
  height: 100px;
  top: -20px;
  left: 300px;
  background: rgba(255, 255, 255, 0.08);
}

/* Right side large diamond */
.contact-cta__diamond--4 {
  width: 240px;
  height: 240px;
  bottom: -80px;
  right: 80px;
  background: rgba(255, 255, 255, 0.05);
}

/* Small right accent */
.contact-cta__diamond--5 {
  width: 120px;
  height: 120px;
  top: 30px;
  right: 40px;
  background: rgba(255, 255, 255, 0.04);
}

/* Red tinted diamonds */
.contact-cta__diamond--6 {
  width: 160px;
  height: 160px;
  bottom: 20px;
  left: 50%;
  background: rgba(229, 0, 18, 0.4);
}

.contact-cta__diamond--7 {
  width: 90px;
  height: 90px;
  top: 40px;
  right: 280px;
  background: rgba(255, 255, 255, 0.03);
}

/* --- Content: max 1248px centered --- */
.contact-cta__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 96px;
  box-sizing: border-box;
}

/* CONTACT: Roboto Bold, 80px, tracking 4px */
.contact-cta__title {
  font-family: "Roboto", sans-serif;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  margin: 0 0 8px;
  color: #fff;
}

/* お問い合わせはこちら: Noto Sans JP Medium, 24px, lh 38px */
.contact-cta__subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 38px;
  margin: 0 0 8px;
  color: #fff;
}

/* Description: 16px, lh 28px */
.contact-cta__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  margin: 0 0 36px;
  color: #fff;
}

/* --- CTA Buttons: side by side, gap 40px --- */
.contact-cta__actions {
  display: flex;
  gap: 40px;
}

/* Button: w-416, p-24 32, bg rgba(229,0,18,0.25), border-bottom 2px white, backdrop-blur 8px */
.contact-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 416px;
  padding: 24px 32px;
  background: rgba(229, 0, 18, 0.25);
  border: none;
  border-bottom: 2px solid #fff;
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  transition: background var(--transition-base, 0.25s ease);
  box-sizing: border-box;
}

.contact-cta__btn:hover {
  background: rgba(229, 0, 18, 0.35);
}

/* Button text: Noto Sans JP Medium, 24px, lh 38px, white */
.contact-cta__btn-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 38px;
  color: #fff;
  white-space: nowrap;
}

/* Arrow icon container: 32x32 white square */
.contact-cta__btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  flex-shrink: 0;
}

.contact-cta__btn-arrow svg {
  color: var(--color-primary, #e60012);
}

/* ============================================
   Footer
   bg: white, padding: 40px 96px
   ============================================ */

.footer {
  background: #fff;
  padding: 40px 96px;
}

.footer__inner {
  width: 100%;
}

/* Row 1: logo left, nav links right */
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Logo: 184.846 x 38px */
.footer__logo {
  flex-shrink: 0;
}

.footer__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer__logo img {
  height: 38px;
  width: auto;
}

/* Nav links: Noto Sans JP Medium, 15px, px-16 py-20, h-55px, gap 16px */
.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  height: 55px;
  padding: 20px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1c1e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
  box-sizing: border-box;
}

.footer__links a:hover {
  color: var(--color-primary, #e60012);
}

/* Bottom row: copyright + pagetop */
.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* Copyright: Roboto Regular, 14px, color #25282a */
.footer__copyright {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #25282a;
  letter-spacing: 0;
}

/* PAGETOP button: red diamond shape 99x58px */
.footer__pagetop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 99px;
  height: 58px;
  background: var(--color-primary, #e60012);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease;
  text-decoration: none;
}

.footer__pagetop:hover {
  background: #c9000f;
}

/* Arrow inside pagetop */
.footer__pagetop-arrow {
  display: block;
  margin-bottom: 2px;
}

/* PAGETOP text: Yantramanav Bold, 12px, tracking 1px, white */
.footer__pagetop-text {
  font-family: "Yantramanav", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1280px) {
  .contact-cta__content {
    padding: 0 48px;
  }

  .contact-cta__btn {
    width: 360px;
  }

  .footer {
    padding: 40px 48px;
  }
}

@media (max-width: 767px) {
  .contact-cta {
    height: auto;
    padding: 60px 0;
  }

  .contact-cta__content {
    padding: 0 16px;
  }

  .contact-cta__title {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .contact-cta__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .contact-cta__desc {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  .contact-cta__actions {
    flex-direction: column;
    gap: 16px;
  }

  .contact-cta__btn {
    width: 100%;
    padding: 20px 24px;
  }

  .contact-cta__btn-text {
    font-size: 18px;
    line-height: 28px;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__links {
    gap: 8px 12px;
  }

  .footer__links a {
    height: auto;
    padding: 8px 0;
    font-size: 13px;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: flex-end;
  }

  .footer__copyright {
    font-size: 12px;
  }

  .footer__pagetop {
    width: 72px;
    height: 42px;
  }

  .footer__pagetop-text {
    font-size: 10px;
  }
}
/* 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;
  }
}