:root {
  --color-bg: #f7f9fa;
  --color-surface: #ffffff;
  --color-text: #373737;
  --color-muted: #606060;
  --color-accent: #007b9a;
  --color-accent-dark: #003d4d;
  --color-line: #d8dee3;
  --color-warm: #e28371;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  --max: 1080px;
  --space: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background:
    linear-gradient(180deg, #e8f4f7 0%, var(--color-bg) 280px),
    var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-logo img {
  width: 168px;
  max-width: 55vw;
  height: auto;
  display: block;
}

.site-footer__name {
  margin: 0.5rem 0 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 6px;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-accent-dark);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
}

.site-nav__link {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0;
  display: inline-block;
}

.site-nav__link.is-active,
.site-nav__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.has-dropdown {
  position: relative;
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(0, 61, 77, 0.08);
  z-index: 20;
}

.site-nav__dropdown a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--color-text);
  font-size: 0.9rem;
}

.site-nav__dropdown a:hover {
  background: #eef6f8;
  text-decoration: none;
}

.has-dropdown:hover > .site-nav__dropdown,
.has-dropdown:focus-within > .site-nav__dropdown {
  display: block;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--space) 3rem;
}

.hero {
  position: relative;
  margin: -1.5rem calc(-1 * var(--space)) 2rem;
  min-height: min(62vh, 520px);
  display: flex;
  align-items: flex-end;
  background: #003d4d center/cover no-repeat;
  color: #fff;
}

.hero--home {
  background-image:
    linear-gradient(180deg, rgba(0, 61, 77, 0.15) 0%, rgba(0, 61, 77, 0.72) 100%),
    url("/assets/img/hero.jpg");
}

.hero__content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--space);
}

.hero__brand {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.hero__lead {
  margin: 0 0 1.2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--color-accent-dark);
  line-height: 1.3;
}

.content-block {
  margin-bottom: 1.75rem;
}

.content-block p {
  margin: 0 0 1rem;
}

.content-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}

.content-media img {
  width: calc(50% - 0.5rem);
  min-width: 220px;
  flex: 1 1 220px;
  object-fit: cover;
  border-radius: 4px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-grid a,
.feature-grid .feature {
  flex: 1 1 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 1.1rem 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-grid a:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.feature-grid h2,
.feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--color-accent-dark);
}

.awards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0 1rem;
}

.awards img {
  width: auto;
  height: 72px;
}

.site-footer {
  background: var(--color-accent-dark);
  color: #e8f4f7;
  padding: 2rem var(--space) 1.25rem;
  margin-top: auto;
}

.site-footer a {
  color: #a4e6f7;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer__badges {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-footer__badges img {
  height: 64px;
  width: auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem;
  border-radius: 4px;
}

.site-footer__copy {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.8;
}

.blog-container {
  margin-top: 1rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-card {
  flex: 1 1 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 1.1rem 1.2rem;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.blog-preview p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.romlicontainer {
  max-width: 100%;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 0.9rem;
}

.product-card h2 {
  margin: 0.6rem 0 0.25rem;
  font-size: 1rem;
}

.product-card .price {
  font-weight: 700;
  color: var(--color-accent-dark);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem var(--space) 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__dropdown {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
  }

  .has-dropdown:hover > .site-nav__dropdown {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .hero {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: rise 0.7s ease both;
  }

  .feature-grid a,
  .feature-grid .feature {
    animation: rise 0.55s ease both;
  }

  .feature-grid a:nth-child(2),
  .feature-grid .feature:nth-child(2) { animation-delay: 0.08s; }
  .feature-grid a:nth-child(3),
  .feature-grid .feature:nth-child(3) { animation-delay: 0.14s; }
  .feature-grid a:nth-child(4),
  .feature-grid .feature:nth-child(4) { animation-delay: 0.2s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
