/* ==========================================================================
   株式会社システムライン 公式サイト
   フォントは外部依存削減のためシステムフォントを使用。
   ========================================================================== */

:root {
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --primary-light: #2563eb;
  --brand-name: #2563eb;
  --primary-soft: #eff6ff;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a;
  --border-light: rgba(226, 232, 240, 0.95);
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --max-width: 1120px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-body);
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--subtle {
  background: var(--bg-subtle);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  overflow: visible;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-logo:hover {
  color: inherit;
}

.site-logo__mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.site-logo__name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-name);
  white-space: nowrap;
}

.site-logo__en {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

.global-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem 1.25rem;
}

.global-nav.is-open {
  display: block;
}

.global-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
}

.global-nav__link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
}

.global-nav__link:hover {
  color: var(--primary-light);
}

.global-nav__link.is-active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary-light);
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none;
  }

  .global-nav {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 3.5rem 0 1.75rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand__name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-brand__en {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-heading {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 3.25rem 0 3.5rem;
  color: var(--text-white);
  background: #07101f;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 18, 42, 0.38) 0%, rgba(4, 18, 42, 0.12) 46%, rgba(6, 22, 52, 0.28) 100%),
    url("../images/hero-bg.webp") center / cover no-repeat;
  pointer-events: none;
}

.page-hero__art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 18, 42, 0.40) 0%, rgba(4, 18, 42, 0.32) 100%),
    url("../images/hero-bg.webp") 70% center / cover no-repeat;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  margin-bottom: 1.15rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero__desc {
  max-width: 36rem;
  margin-bottom: 0;
  color: #e2e8f0;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff !important;
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.45);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.78rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
}

.hero-card:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.82);
}

.hero-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f172a;
}

.hero-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__thumb--software img {
  object-position: 36% 48%;
}

.hero-card__thumb--rakuichi img {
  object-position: 38% 40%;
}

.hero-card__thumb--fuji img {
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.35);
  transform-origin: 50% 40%;
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.hero-card p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Page common
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) * 0.35 + 3rem) 0 3.25rem;
  color: #fff;
  text-align: center;
  background: #07101f;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.page-hero p {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  color: #cbd5e1;
  overflow-wrap: break-word;
  word-break: normal;
}

.page-main {
  padding: 3.25rem 0 4.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2,
.section-title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.7rem;
}

.section-desc,
.page-lead,
.info-card p,
.form-help {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Business cards / gallery
   -------------------------------------------------------------------------- */

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .business-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.business-card,
.gallery-card,
.service-card,
.info-card,
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.business-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.business-card .card-link {
  margin-top: auto;
}

.business-card__media,
.gallery-card__media {
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}

.business-card__media img,
.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card__body,
.gallery-card__body {
  padding: 1.4rem 1.35rem 1.5rem;
}

.business-card h3,
.gallery-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--primary-dark);
}

.business-card p,
.gallery-card p,
.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.business-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.business-block--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.business-block__media img,
.business-block__media svg {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.business-block__media .software-visual {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: #f4f1ea;
}

.web-contents-note {
  margin-top: 1.25rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border-light);
  max-width: 32rem;
}

.web-contents-note h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.web-contents-note p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.web-contents-note__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.web-contents-note__link:hover {
  background: var(--primary-soft);
}

.business-card__media .software-visual {
  object-fit: cover;
  object-position: 38% 48%;
}

.business-card__media .rakuichi-visual {
  object-fit: cover;
  object-position: 40% 42%;
}

.business-card__media--fuji img {
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.28);
  transform-origin: 50% 40%;
}

.image-note {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.band {
  padding: 4.25rem 0;
}

.band--plain {
  background: #fff;
}

.band--tint {
  background: #eef3f8;
}

.rakuichi-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 2rem 2.1rem;
  border-top: 4px solid var(--primary);
}

.rakuichi-panel .service-card {
  background: #f8fafc;
}

.rakuichi-visual-block {
  margin: 1.35rem 0 0;
}

.rakuichi-visual-block img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: 40% 42%;
  border-radius: var(--radius-md);
}

.rakuichi-visual-block .image-note {
  margin-top: 0.45rem;
}

.band .business-block {
  margin-bottom: 0;
}

#software,
#rakuichi,
#embroidery,
#drone {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.service-card {
  padding: 1.2rem 1.15rem;
}

.rakuichi-panel .service-cards {
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
}

.gallery--featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas:
    "featured flowers"
    "featured tea";
  gap: 1rem;
  margin-top: 1.75rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
}

.gallery-card--featured {
  grid-area: featured;
}

.gallery-card--flowers {
  grid-area: flowers;
}

.gallery-card--tea {
  grid-area: tea;
}

.gallery-card--featured .gallery-card__media {
  height: auto;
  min-height: 430px;
  flex: 1;
  background: #111827;
}

.gallery-card--featured .gallery-card__media img {
  object-fit: contain;
  object-position: center;
}

.gallery-card--flowers .gallery-card__media {
  height: auto;
  min-height: 260px;
  flex: 1;
}

.gallery-card--flowers .gallery-card__media img {
  object-fit: cover;
  object-position: center 40%;
}

.gallery-card__media {
  height: 220px;
}

.ext-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Company table / contact
   -------------------------------------------------------------------------- */

.info-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 28%;
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary-dark);
}

.office-grid,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-card {
  padding: 1.4rem 1.3rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.form-card {
  padding: 1.6rem 1.4rem 1.75rem;
  position: relative;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.badge--required {
  background: #fee2e2;
  color: #dc2626;
}

.badge--optional {
  background: #f1f5f9;
  color: #64748b;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font: inherit;
  font-size: 0.9375rem;
}

.form-control[type="file"] {
  padding: 0.55rem 0.7rem;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-help {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-field-note {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-privacy {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  min-height: 1.4em;
}

.form-status--ok {
  color: #166534;
}

.form-status--error {
  color: #b91c1c;
}

.form-notice {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: #ecfeff;
  color: #0e7490;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #94a3b8;
  color: #fff !important;
}

.form-hours {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.form-crosslink {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policy-section {
  margin-bottom: 1.75rem;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.policy-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.policy-section p,
.policy-section li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.2rem;
}

.policy-section li {
  margin-bottom: 0.35rem;
}

.policy-section h3 {
  font-size: 1rem;
  margin: 1rem 0 0.45rem;
  color: var(--primary-dark);
}

.policy-toc {
  margin: 1.5rem 0 2.25rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.policy-toc h2 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
  color: var(--primary-dark);
}

.policy-toc ol {
  padding-left: 1.2rem;
}

.policy-toc li {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.policy-date {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
  .hero {
    min-height: calc(100vh - var(--header-height) - 7.5rem);
    padding: 3rem 0 3.25rem;
  }
}

@media (max-width: 900px) {
  .hero__art {
    background:
      linear-gradient(180deg, rgba(4, 18, 42, 0.42) 0%, rgba(4, 18, 42, 0.18) 55%, rgba(6, 22, 52, 0.30) 100%),
      url("../images/hero-bg.webp") 78% center / cover no-repeat;
  }

  .hero__grid,
  .business-block,
  .business-block--reverse,
  .contact-layout,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .business-block--reverse .business-block__media {
    order: -1;
  }

  .gallery--featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "featured"
      "flowers"
      "tea";
  }

  .gallery-card--featured .gallery-card__media {
    min-height: 260px;
    height: 280px;
  }

  .gallery-card--flowers .gallery-card__media {
    min-height: 260px;
    height: 280px;
  }
}

@media (max-width: 1024px) {
  .global-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .global-nav__link {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .global-nav__link.is-active {
    border-bottom-color: var(--border-light);
    box-shadow: inset 3px 0 0 var(--primary-light);
    padding-left: 0.65rem;
  }
}

@media (max-width: 768px) {
  .hero,
  .page-hero,
  .page-main,
  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    min-height: 0;
    padding: 2.5rem 0 2.75rem;
  }

  .form-select,
  .form-control,
  .form-textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .band {
    padding: 3.1rem 0;
  }

  .rakuichi-panel {
    padding: 1.6rem 1.2rem 1.5rem;
  }

  .rakuichi-panel .service-cards {
    grid-template-columns: 1fr;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .site-logo {
    gap: 0.55rem;
  }

  .site-logo__mark {
    height: 36px;
  }

  .site-logo__name {
    font-size: 1.0625rem;
  }

  .site-logo__en {
    font-size: 0.625rem;
  }
}

@media (max-width: 560px) {
  .gallery--featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "featured"
      "flowers"
      "tea";
  }

  .gallery-card--featured .gallery-card__media,
  .gallery-card--flowers .gallery-card__media {
    min-height: 220px;
    height: 220px;
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0 1rem;
  }

  .site-logo {
    gap: 0.45rem;
    flex: 1;
  }

  .site-logo__mark {
    height: 32px;
  }

  .site-logo__name {
    font-size: 1rem;
  }

  .hero-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .business-card__media,
  .gallery-card__media,
  .business-block__media img,
  .business-block__media svg {
    height: 190px;
  }

  .business-block__media .software-visual {
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }

  .gallery-card--featured .gallery-card__media {
    min-height: 220px;
    height: 220px;
  }

  .form-card .btn {
    width: 100%;
    min-height: 48px;
  }

  .form-select,
  .form-control,
  .form-textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .form-textarea {
    min-height: 140px;
  }
}
