:root {
  /* =========================
     Brand / Semantic colors
  ========================= */
  --color-brand-primary: #2f5f8f;
  --color-brand-primary-hover: #23496e;
  --color-brand-primary-soft: #eef5fb;
  --color-brand-primary-soft-2: #f6f9fc;
  --color-brand-primary-soft-3: #e7f0f8;
  --color-brand-primary-soft-4: #ddebf7;
  --color-brand-primary-soft-5: #d2e4f3;

  --color-brand-accent: #4a8a84;
  --color-brand-accent-hover: #376b66;
  --color-brand-accent-soft: #edf7f5;
  --color-brand-accent-soft-2: #f6fbfa;
  --color-brand-accent-soft-3: #e7f3f0;

  --color-text-strong: #16202b;
  --color-text-default: #26313b;
  --color-text-muted: #5f6b76;

  --color-bg-page: #ffffff;
  --color-bg-subtle: #f5f8fa;
  --color-bg-panel: #fbfdfe;
  --color-bg-soft-blue: #f3f8fc;
  --color-bg-soft-blue-2: #edf4fa;
  --color-bg-soft-blue-3: #e3edf7;
  --color-bg-soft-green: #f3faf8;

  --color-border-default: #d9e2e8;
  --color-border-strong: #c4d0d9;

  --color-danger: #d92d20;
  --color-danger-bg: #fff1f1;
  --color-success: #0b6e57;
  --color-success-bg: #ecfdf3;
  --color-warning: #9a6700;
  --color-warning-bg: #fffaeb;

  /* =========================
     Shadow
  ========================= */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 6px 18px rgba(18, 39, 60, 0.05);
  --shadow-soft-md: 0 8px 20px rgba(18, 39, 60, 0.06);
  --shadow-soft-lg: 0 10px 22px rgba(18, 39, 60, 0.1);

  /* =========================
     Radius
  ========================= */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* =========================
     Spacing
  ========================= */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;

  /* =========================
     Typography
  ========================= */
  --font-family-base: Verdana, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  --font-size-12: 12px;
  --font-size-13: 12px;
  --font-size-14: 13px;
  --font-size-16: 15px;
  --font-size-18: 16px;
  --font-size-20: 18px;
  --font-size-24: 21px;
  --font-size-28: 24px;
  --font-size-32: 27px;

  --line-height-tight: 1.4;
  --line-height-base: 1.7;
  --line-height-relaxed: 1.8;

  /* =========================
     Layout
  ========================= */
  --layout-content-max: 1180px;
  --layout-reading-max: 760px;
  --layout-max-width: var(--layout-content-max);
  --layout-gutter-pc: 16px;
  --layout-gutter-sp: 12px;

  /* =========================
     Breakpoints
  ========================= */
  --bp-lg: 1024px;
  --bp-md: 768px;
  --bp-sm: 480px;

  /* =========================
     Compatibility aliases
  ========================= */
  --brand-orange: var(--color-brand-accent);
  --brand-orange-dark: var(--color-brand-accent-hover);
  --brand-orange-soft: var(--color-brand-accent-soft);
  --brand-orange-soft-2: var(--color-brand-accent-soft-2);

  --brand-red: var(--color-brand-primary);
  --brand-red-dark: var(--color-brand-primary-hover);
  --brand-red-soft: var(--color-brand-primary-soft);
  --brand-red-soft-2: var(--color-brand-primary-soft-2);

  --brand-black: var(--color-text-strong);
  --text-main: var(--color-text-default);
  --text-sub: var(--color-text-muted);

  --bg-main: var(--color-bg-page);
  --bg-sub: var(--color-bg-subtle);

  --line: var(--color-border-default);
  --line-strong: var(--color-border-strong);

  --maxw: var(--layout-max-width);
  --container-pad: var(--layout-gutter-pc);
}

/* =========================
   Base
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button,
select,
textarea {
  font-family: var(--font-family-base);
}

body.top-page,
body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-default);
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================
   Layout containers
========================= */
/* 本文コンテナの標準は .l-container を使う。
   ページ別CSSで .l-container を直接上書きせず、
   例外が必要な場合はブロック固有の __inner などで切り分ける。 */

.l-container {
  width: min(calc(100% - (var(--layout-gutter-pc) * 2)), var(--layout-content-max));
  margin-inline: auto;
}

.l-container--reading {
  width: min(calc(100% - (var(--layout-gutter-pc) * 2)), var(--layout-reading-max));
  margin-inline: auto;
}

.l-section {
  padding-top: 32px;
}

.l-section--sm {
  padding-top: var(--space-24);
}

.l-section--lg {
  padding-top: 40px;
}

.l-stack > * + * {
  margin-top: var(--space-16);
}

.l-stack--sm > * + * {
  margin-top: var(--space-8);
}

.l-stack--lg > * + * {
  margin-top: var(--space-24);
}

.header-inner,
.search-hero-inner,
.top-section,
.footer-inner {
  width: min(calc(100% - 32px), var(--layout-content-max));
  margin: 0 auto;
}

/* =========================
   Heading / text
========================= */

.c-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-16);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--color-brand-primary);
}

.c-section-head__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text-strong);
}

.c-section-head__desc {
  margin: 0;
  font-size: var(--font-size-13);
  color: var(--color-text-muted);
}

.c-heading-1 {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 34px);
  line-height: 1.22;
  color: var(--color-text-strong);
}

.c-heading-2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text-strong);
}

.c-heading-3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--color-text-strong);
}

.c-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* =========================
   Button
========================= */

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.c-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 95, 143, 0.18);
}

.c-button[disabled],
.c-button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.c-button--primary {
  color: #fff;
  border-color: transparent;
  background: var(--color-brand-primary);
  box-shadow: 0 6px 16px rgba(22, 49, 74, 0.16);
}

.c-button--primary:hover {
  background: var(--color-brand-primary-hover);
  transform: translateY(-1px);
}

.c-button--secondary {
  color: var(--color-brand-primary);
  border-color: transparent;
  background: var(--color-brand-primary-soft);
}

.c-button--secondary:hover {
  background: var(--color-brand-primary-soft-3);
}

.c-button--subtle {
  color: var(--color-text-default);
  border-color: transparent;
  background: var(--color-bg-soft-blue);
}

.c-button--subtle:hover {
  color: var(--color-brand-primary-hover);
  background: var(--color-brand-primary-soft);
}

.c-button--text {
  min-width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-brand-primary);
}

.c-button--text:hover {
  text-decoration: underline;
}

.c-button--full {
  width: 100%;
}

.c-button--lg {
  min-height: 46px;
  font-size: 15px;
}

.c-button--sm {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 12px;
}

/* =========================
   Form
========================= */

.c-field {
  display: block;
}

.c-field + .c-field {
  margin-top: var(--space-16);
}

.c-field__label {
  display: inline-block;
  margin-bottom: var(--space-8);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-strong);
}

.c-field__required {
  margin-left: var(--space-4);
  color: var(--color-danger);
  font-size: var(--font-size-12);
}

.c-field__control {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-default);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

textarea.c-field__control {
  min-height: 120px;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  resize: vertical;
}

.c-field__control::placeholder {
  color: #7a8691;
}

.c-field__control:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(47, 95, 143, 0.14);
}

.c-field__control[disabled] {
  background: #f5f7f8;
  color: #8a949c;
  cursor: not-allowed;
}

.c-field__hint {
  margin-top: var(--space-8);
  font-size: var(--font-size-12);
  color: var(--color-text-muted);
}

.c-field__error {
  display: none;
  margin-top: var(--space-8);
  font-size: var(--font-size-12);
  color: var(--color-danger);
}

.c-field.is-error .c-field__control {
  border-color: var(--color-danger);
  background: var(--color-danger-bg);
}

.c-field.is-error .c-field__error {
  display: block;
}

/* =========================
   Card
========================= */

.c-card {
  display: block;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.c-card__body {
  padding: 14px;
}

.c-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-strong);
}

.c-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.c-card--hover:hover {
  border-color: var(--color-border-strong);
  background: linear-gradient(90deg, var(--color-brand-primary-soft-2) 0%, var(--color-brand-accent-soft-2) 100%);
}

.c-card--accent-top {
  border-top: 3px solid var(--color-brand-primary);
}

.c-card--accent-top-accent {
  border-top: 3px solid var(--color-brand-accent);
}

/* =========================
   Alert
========================= */

.c-alert {
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.65;
}

.c-alert--error {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

.c-alert--success {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.c-alert--warning {
  color: var(--color-warning);
  background: var(--color-warning-bg);
}

/* =========================
   Header (Top page only)
========================= */

body.page-top .site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 24px rgba(18, 39, 60, 0.05);
}

body.page-top .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 10px;
}

body.page-top .header-top__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.page-top .logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.page-top .site-brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
}

body.page-top .site-brand__tagline {
  margin: 0;
  position: absolute;
  right: 6px;
  bottom: 1px;
  z-index: 1;
  color: #1f2937;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 4px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

body.page-top .site-logo {
  max-height: 60px;
  width: auto;
}

body.page-top .header-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

body.page-top .header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-black);
  border-right: 1px solid var(--line);
  transition: background-color 0.18s ease, color 0.18s ease;
}

body.page-top .header-nav a:first-child {
  border-left: 1px solid var(--line);
}

body.page-top .header-nav a:hover {
  background: var(--brand-red-soft-2);
  color: var(--brand-red-dark);
}

body.page-top .header-nav__label--mobile {
  display: none;
}

body.page-top .site-header__cart,
body.page-top .site-header__apply,
body.page-top .sticky-search-cta__cart,
body.page-top .sticky-search-cta__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: .18s ease;
}

body.page-top .site-header__cart,
body.page-top .sticky-search-cta__cart {
  background: var(--color-brand-primary-soft);
  color: var(--color-text-default);
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.04);
}

body.page-top .site-header__cart:hover,
body.page-top .sticky-search-cta__cart:hover {
  background: #fff;
  color: var(--color-brand-primary);
}

body.page-top .site-header__cart.has-items,
body.page-top .sticky-search-cta__cart.has-items {
  background: #ffd814;
  color: #2f2300;
  box-shadow: none;
  border: 1px solid rgba(173, 121, 0, 0.16);
  border-left-color: rgba(173, 121, 0, 0.28);
  border-top-color: rgba(173, 121, 0, 0.14);
  border-bottom-color: rgba(173, 121, 0, 0.14);
}

body.page-top .site-header__cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

body.page-top .site-header__cart-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

body.page-top .site-header__cart-label,
body.page-top .sticky-search-cta__cart-label {
  display: inline-flex;
  align-items: center;
}

body.page-top .site-header__cart-count,
body.page-top .sticky-search-cta__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d4372a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(212, 55, 42, 0.28);
}

body.page-top .site-header__apply,
body.page-top .sticky-search-cta__apply {
  background: var(--color-brand-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 49, 74, 0.22);
}

body.page-top .site-header__apply:hover,
body.page-top .sticky-search-cta__apply:hover {
  background: var(--color-brand-primary-hover);
  transform: translateY(-1px);
}

body.page-top .sticky-search-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

body.page-top .sticky-search-cta__cart,
body.page-top .sticky-search-cta__apply {
  width: 100%;
}

/* =========================
   Sticky search
========================= */

.sticky-search-shell {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: none;
  padding: 8px 16px;
  background: rgba(16, 33, 52, 0.86);
  border-bottom: 1px solid rgba(217, 226, 232, 0.95);
  box-shadow: 0 8px 24px rgba(18, 39, 60, 0.16);
  backdrop-filter: blur(8px);
}

.sticky-search-shell.is-visible {
  display: block;
}

.sticky-search-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.sticky-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.sticky-search-shell .main-search {
  max-width: none;
  margin: 0;
}

.sticky-search-shell .main-search input,
.sticky-search-shell .main-search button {
  height: 46px;
}

.sticky-search-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* =========================
   Hero
========================= */

.search-hero {
  position: relative;
  padding: 38px 0 28px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(74, 138, 132, 0.18), transparent 28%),
    radial-gradient(circle at left bottom, rgba(47, 95, 143, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbfd 0%, #edf4f8 100%);
}

.search-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(248, 251, 253, 0.95) 0%,
      rgba(240, 246, 250, 0.90) 36%,
      rgba(229, 240, 246, 0.75) 58%,
      rgba(255, 255, 255, 0.70) 78%
    ),
    url("../img/common/img-main.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  transform: scale(1.02);
}

.search-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 28px 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(14, 36, 58, 0.78);
  box-shadow:
    0 18px 42px rgba(18, 39, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.hero-brand-block {
  max-width: var(--layout-reading-max);
  margin: 0 auto;
  text-align: center;
}

.hero-catch {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: rgba(183, 217, 241, 0.18);
  color: #d7ebf9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 36px);
  line-height: 1.18;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero-lead {
  max-width: var(--layout-reading-max);
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.main-search {
  max-width: var(--layout-reading-max);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
}

.main-search input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.99);
  font-size: 15px;
  color: var(--color-text-default);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.main-search input::placeholder {
  color: #7a8691;
}

.main-search input:focus {
  outline: none;
  border-color: #8bb7da;
  box-shadow: 0 0 0 4px rgba(139, 183, 218, 0.22);
}

.main-search button {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 49, 74, 0.22);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.main-search button:hover {
  background: var(--color-brand-primary-hover);
  transform: translateY(-1px);
}

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(199, 225, 243, 0.28);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(12, 29, 45, 0.1);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-links a:hover {
  color: #ffffff;
  background: rgba(199, 225, 243, 0.38);
  box-shadow: 0 6px 14px rgba(12, 29, 45, 0.12);
  transform: translateY(-1px);
}

.quick-links--entry-card {
  justify-content: center;
}

.quick-links--entry-card a {
  min-height: 36px;
  padding: 0 14px;
  background: var(--color-brand-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 95, 143, 0.2);
}

.quick-links--entry-card a:hover {
  background: var(--color-brand-primary-hover);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(35, 73, 110, 0.24);
}

/* =========================
   Shared sections
========================= */

.top-section {
  padding: 28px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-16);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand-primary);
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text-strong);
}

.section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* =========================
   Main categories
========================= */

.main-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.main-category-card {
  display: block;
  min-height: 126px;
  padding: 16px 14px;
  border: 1px solid var(--color-border-default);
  border-top: 4px solid var(--color-brand-primary);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%);
  box-shadow: var(--shadow-sm);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.main-category-card:hover {
  background: linear-gradient(135deg, var(--color-brand-primary-soft-2) 0%, var(--color-brand-accent-soft-2) 100%);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.main-category-card__title {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-black);
}

.main-category-card__desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* =========================
   Popular tags
========================= */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  border: 0;
  border-radius: 999px;
  background: var(--color-brand-primary-soft-4);
  color: var(--color-brand-primary-hover);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.05);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tag-chip:hover {
  background: var(--color-brand-primary-soft-5);
  color: var(--color-brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 95, 143, 0.1);
}

/* =========================
   Intro / info
========================= */

.top-section--intro {
  padding-top: 22px;
}

.intro-box,
.info-panel,
.content-panel {
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  box-shadow:
    0 8px 20px rgba(18, 39, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.intro-box {
  background: linear-gradient(180deg, #f3f8fc 0%, #eaf2f8 100%);
}

.content-panel--service {
  background: linear-gradient(180deg, #f3f8fc 0%, #e8f1f7 100%);
}

.info-panel {
  background: linear-gradient(180deg, #f2f8fc 0%, #e8f1f7 100%);
}

.intro-box h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--brand-black);
}

.intro-box p,
.info-panel p,
.service-overview p,
.content-panel p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-sub);
}

.info-panel p:last-child,
.service-overview p:last-child,
.content-panel p:last-child {
  margin-bottom: 0;
}

.service-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-sub);
}

/* =========================
   Flow
========================= */

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-list li {
  min-width: 0;
  min-height: 136px;
  padding: 14px 14px 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f1f8f5 0%, #e7f3f0 100%);
  box-shadow: var(--shadow-soft);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.flow-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--brand-black);
}

.flow-list small {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-sub);
}

.flow-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-sub);
}

/* =========================
   Kana
========================= */

.kana-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kana-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: var(--color-brand-primary-soft-4);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.kana-nav a:hover {
  color: var(--brand-red-dark);
  background: var(--color-brand-primary-soft-5);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 95, 143, 0.08);
}

.kana-groups {
  display: grid;
  gap: 12px;
}

.kana-group {
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.kana-group h3 {
  margin: 0;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--brand-black);
  background: linear-gradient(90deg, var(--brand-red-soft-2) 0%, var(--brand-orange-soft-2) 100%);
}

.kana-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 14px;
  background: #fff;
}

.kana-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--color-brand-primary-soft-4);
  font-size: 12px;
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.kana-links a:hover {
  background: var(--color-brand-primary-soft-5);
  color: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 95, 143, 0.08);
}

/* =========================
   Utility links
========================= */

.utility-links {
  padding-bottom: 30px;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.utility-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--color-bg-soft-blue-2) 0%, var(--color-bg-soft-blue-3) 100%);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 18px rgba(18, 39, 60, 0.08);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.utility-grid a:hover {
  background: linear-gradient(180deg, #e4eef7 0%, #dbe7f2 100%);
  color: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft-lg);
}

/* =========================
   Subpage section spacing
========================= */

.page-sub .subpage-divider-section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid #e6edf2;
}

.page-sub .subpage-divider-head {
  max-width: var(--layout-reading-max);
  margin-bottom: 36px;
}

.page-sub .subpage-divider-panels {
  margin-top: 12px;
}

.page-sub .subpage-pre-divider-panel {
  margin-bottom: 28px;
}

.page-sub .subpage-hero-panels {
  padding-bottom: 28px;
}

.page-sub main > .l-section:first-child {
  padding-bottom: 28px;
}

/* =========================
   Footer (Top page only)
========================= */

body.page-top .site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f5f8fa 0%, #eef4f8 100%);
}

body.page-top .footer-inner {
  padding: 18px 0 24px;
  text-align: center;
}

body.page-top .footer-inner p {
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
}

body.page-top .footer-inner p + p {
  margin-top: 4px;
}

body.page-top .site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

body.page-top .site-footer__marks {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

body.page-top .site-footer__mark {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

/* =========================
   Accessibility
========================= */

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

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

@media (max-width: 1024px) {
  :root {
    --container-pad: 16px;
  }

  .main-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--layout-gutter-sp);
  }

  .page-sub .subpage-divider-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-sub .subpage-divider-head {
    margin-bottom: 24px;
  }

  .page-sub .subpage-divider-panels {
    margin-top: 10px;
  }

  .page-sub .subpage-pre-divider-panel {
    margin-bottom: 20px;
  }

  .page-sub .subpage-hero-panels {
    padding-bottom: 20px;
  }

  .page-sub main > .l-section:first-child {
    padding-bottom: 20px;
  }

  .l-container,
  .l-container--reading {
    width: calc(100% - (var(--layout-gutter-sp) * 2));
  }

  body.page-top .site-header {
    border-bottom: none;
  }

  body.page-top .header-inner {
    display: flex;
    flex-direction: column;
  }

  .header-inner,
  .search-hero-inner,
  .top-section,
  .footer-inner {
    width: 100%;
  }

  .header-inner,
  .top-section,
  .footer-inner {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }

  body.page-top .header-top {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0 8px;
  }

  body.page-top .header-top__cta {
    width: 100%;
    justify-content: center;
  }

  body.page-top .site-logo {
    max-height: 52px;
  }

  body.page-top .header-nav {
    justify-content: flex-start;
    margin-bottom: 3px;
  }

  body.page-top .header-nav a {
    color: #5f6b76;
    flex: 1 1 auto;
    min-width: 140px;
    min-height: 0;
    height: auto;
    line-height: 1.2;
    padding: 8px 10px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  body.page-top .header-nav--top-page {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    order: -1;
    gap: 0;
    width: calc(100% + (var(--container-pad) * 2));
    margin: 0 calc(var(--container-pad) * -1);
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background: #2f5f8f;
    box-shadow: 0 2px 10px rgba(27, 63, 107, 0.14);
  }

  body.page-top .header-nav--top-page a {
    min-width: 0;
    min-height: 28px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-top .header-nav--top-page .header-nav__label--default {
    display: none;
  }

  body.page-top .header-nav--top-page .header-nav__label--mobile {
    display: inline;
  }

  body.page-top .header-nav--top-page a:first-child {
    border-left: 0;
  }

  body.page-top .header-nav--top-page a:hover {
    background: #3a709f;
    color: #ffffff;
  }

  body.page-top .header-nav--top-page a:nth-child(odd) {
    background: rgba(255, 255, 255, 0.06);
  }

  body.page-top .header-nav--top-page a:last-child {
    border-right: 0;
  }

  .search-hero {
    padding: 16px 0 20px;
    border-bottom: none;
  }

  .search-hero__backdrop {
    background-size: auto 82%;
    background-position: center bottom;
  }

  .search-hero-inner {
    padding: 18px 14px 16px;
    border-radius: 18px;
    background: rgba(14, 36, 58, 0.84);
  }

  .hero-catch {
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .hero-lead {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.75;
  }

  .c-section-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-search {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .main-search input,
  .main-search button {
    height: 48px;
    font-size: 14px;
  }

  .main-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-list {
    gap: 6px;
    padding-top: 4px;
  }

  .service-overview p {
    line-height: 1.75;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-list li {
    min-height: 0;
    padding: 14px 12px;
  }

  .utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-search-shell {
    padding: 8px 0;
    border-left: none;
    border-right: none;
  }

  .sticky-search-inner {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .sticky-search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  body.page-top .site-footer__bottom-inner {
    gap: 8px;
  }

  body.page-top .site-footer__copyright {
    order: 2;
    width: 100%;
  }

  body.page-top .site-footer__marks {
    order: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  body.page-top .site-footer__mark {
    max-width: min(200px, 100%);
    height: auto;
  }
}

@media (max-width: 480px) {
  .main-category-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 24px;
  }

  .c-section-head__title,
  .section-head h2 {
    font-size: 18px;
  }

  .kana-links {
    flex-direction: column;
    padding-left: 2px;
    padding-right: 2px;
  }

  .kana-links a {
    width: 100%;
  }

  .search-hero__backdrop {
    background-size: auto 68%;
    background-position: center bottom;
  }

  .search-hero {
    padding-bottom: 16px;
  }

  body.page-top .site-header__cart,
  body.page-top .site-header__apply,
  body.page-top .sticky-search-cta__cart,
  body.page-top .sticky-search-cta__apply {
    min-width: 96px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.page-top .site-header__cart-count,
  body.page-top .sticky-search-cta__cart-count {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .sticky-search-bar {
    grid-template-columns: 1fr;
  }

  .sticky-search-cta {
    width: 100%;
  }
}
