:root {
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-accent: #3ba9a4;
  --color-bg: #ffffff;
  --color-border: #e5e5e5;
  --max-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.primary-nav ul {
  display: flex;
  gap: 36px;
}

.primary-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
}

.nav-toggle-bars span {
  display: block;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text);
  line-height: 1;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: clamp(380px, 56vw, 720px);
  background-image: url("images/hero-illustration.svg");
  background-size: cover;
  background-position: center bottom;
  background-color: #e8f6f3;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #1a3a4a;
  pointer-events: none;
}

.hero-copy-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero-copy-en {
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.35em;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn 0.9s ease-out 0.1s forwards;
}

.hero-copy-main {
  font-size: clamp(28px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 18px;
}

.hero-copy-main span {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease-out forwards;
}

.hero-copy-main span:nth-child(1) {
  animation-delay: 0.25s;
}

.hero-copy-main span:nth-child(2) {
  animation-delay: 0.45s;
}

.hero-copy-sub {
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn 0.9s ease-out 0.7s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy-en,
  .hero-copy-main span,
  .hero-copy-sub {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ===== Service Section (TOP) ===== */
.service-section {
  position: relative;
  padding: 120px 0 96px;
  background:
    radial-gradient(ellipse at top left, rgba(59, 169, 164, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(26, 58, 74, 0.05), transparent 55%),
    #fbf8f0;
  overflow: hidden;
}

.service-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(26, 58, 74, 0.12), transparent);
}

.service-section-header {
  text-align: center;
  margin: 0 auto 72px;
  max-width: 780px;
  padding: 0 24px;
}

.service-section-en {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 20px;
}

.service-section-mark {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 20px;
  position: relative;
}

.service-section-mark::before,
.service-section-mark::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
}

.service-section-mark::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  transform: translateX(-0.5px);
  opacity: 0.4;
}

.service-section-mark::after {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.service-section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  color: var(--color-text);
  line-height: 1.2;
}

.service-section-lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--color-text);
  margin: 0;
  opacity: 0.85;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 auto 72px;
  padding: 0 24px;
  max-width: var(--max-width);
}

.service-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(26, 58, 74, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--color-accent), #5cc1bc);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 58, 74, 0.12);
}

.service-card-top {
  position: relative;
  padding: 40px 32px 24px;
  background: linear-gradient(180deg, #f2fafa 0%, #ffffff 100%);
  color: var(--color-accent);
}

.service-card-index {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 42px;
  font-weight: 800;
  color: rgba(59, 169, 164, 0.18);
  letter-spacing: 0.02em;
  line-height: 1;
  font-feature-settings: "tnum" on;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.service-card-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(59, 169, 164, 0.35);
}

.service-card-body {
  padding: 24px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.service-card-desc {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--color-text);
  opacity: 0.85;
  margin: 0 0 24px;
  flex: 1;
}

.service-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
  align-self: flex-start;
}

.service-card-more span {
  transition: transform 0.25s ease;
}

.service-card-more:hover {
  border-bottom-color: var(--color-accent);
  gap: 12px;
}

.service-card-more:hover span {
  transform: translateX(4px);
}

.service-section-cta {
  text-align: center;
  margin: 0;
  padding: 0 24px;
}

.service-section-cta a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--color-text);
  color: #fff;
  padding: 20px 48px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(26, 58, 74, 0.18);
}

.service-section-cta a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(59, 169, 164, 0.3);
}

.service-section-cta .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.service-section-cta a:hover .arrow {
  transform: translateX(6px);
}

/* ===== News / Topics ===== */
.news {
  padding: 80px 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 12px;
  margin: 0 0 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card a {
  display: block;
  background: var(--color-accent);
  border-radius: 16px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(59, 169, 164, 0.25);
}

.news-card a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-card a:hover img {
  transform: scale(1.05);
}

.news-card a {
  position: relative;
}

.news-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* ===== Page Header (sub pages) ===== */
.page-header {
  padding: 96px 24px 32px;
}

.page-header-en {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.page-header-ja {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ===== About Page ===== */
.about-intro {
  padding: 24px 24px 48px;
  max-width: 880px;
}

.about-intro p {
  font-size: 15px;
  line-height: 2;
  margin: 0;
}

.about-section {
  padding: 32px 24px;
  max-width: 880px;
}

.about-section p {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.values-list {
  display: grid;
  gap: 24px;
}

.values-list li {
  padding: 20px 24px;
  border-left: 3px solid var(--color-accent);
  background: #f6fbfb;
}

.values-list h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.values-list p {
  font-size: 14px;
  margin: 0;
  line-height: 1.8;
}

.company-info {
  margin: 0;
}

.company-info > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.company-info > div:last-child {
  border-bottom: none;
}

.company-info dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.company-info dd {
  margin: 0;
  font-size: 15px;
}

/* ===== Service Page ===== */
.service-list {
  padding: 32px 24px 64px;
  max-width: 880px;
  display: grid;
  gap: 40px;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.service-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1;
}

.service-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.service-body p {
  font-size: 15px;
  line-height: 2;
  margin: 0;
  color: var(--color-text);
}

.about-section a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== News Article ===== */
.news-article {
  padding-bottom: 80px;
}

.article-header {
  padding: 96px 24px 32px;
  max-width: 880px;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}

.article-date {
  color: var(--color-muted);
  font-weight: 600;
}

.article-category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.article-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.article-lead {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.8;
}

.article-hero {
  padding: 24px 24px 40px;
  max-width: 1000px;
}

.article-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.article-movie {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 32px rgba(20, 60, 60, 0.14);
}

.article-movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-body {
  padding: 0 24px 48px;
  max-width: 720px;
  font-size: 15px;
  line-height: 2;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  letter-spacing: 0.04em;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-list {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 24px;
}

.article-list li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-end {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

.article-nav {
  padding: 0 24px;
  max-width: 880px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ===== Contact Form ===== */
.contact-form-wrap {
  padding: 16px 24px 80px;
  max-width: 720px;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #e25b5b;
  padding: 2px 8px;
  border-radius: 3px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-row select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 169, 164, 0.18);
}

.form-row-check label {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-row-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit button {
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  padding: 16px 56px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  min-width: 240px;
}

.form-submit button:hover {
  background: #339691;
}

.form-submit button:active {
  transform: translateY(1px);
}

.form-note {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.8;
  text-align: center;
  margin: 8px 0 0;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .container {
    padding: 0 16px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo img {
    height: 30px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }

  .nav-toggle {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: 12px;
  }

  .nav-toggle-bars {
    width: 25px;
    height: 17px;
  }

  .nav-toggle-bars span {
    height: 2.5px;
  }

  .nav-toggle-label {
    font-size: 9px;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .primary-nav.is-open {
    max-height: 400px;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav li:last-child {
    border-bottom: none;
  }

  .primary-nav a {
    display: block;
    padding: 18px 24px;
    font-size: 14px;
  }

  .hero-image {
    height: clamp(280px, 70vw, 420px);
  }

  .hero-copy-main {
    font-size: clamp(24px, 7.5vw, 32px);
  }

  .service-section {
    padding: 72px 0 56px;
  }

  .service-section-header {
    margin-bottom: 48px;
    padding: 0 16px;
  }

  .service-section-lead {
    font-size: 14px;
    line-height: 1.95;
    text-align: left;
  }

  .service-section-lead br {
    display: none;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 48px;
  }

  .service-card {
    border-radius: 16px;
  }

  .service-card-top {
    padding: 32px 24px 20px;
  }

  .service-card-index {
    top: 18px;
    right: 22px;
    font-size: 36px;
  }

  .service-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .service-card-body {
    padding: 18px 24px 26px;
  }

  .service-card-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .service-card-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .service-section-cta a {
    padding: 16px 36px;
    font-size: 13px;
    gap: 12px;
  }

  .news {
    padding: 35px 16px 48px;
  }

  .page-header {
    padding: 48px 16px 24px;
  }

  .page-header-ja {
    font-size: 24px;
  }

  .about-intro,
  .about-section {
    padding: 24px 16px;
  }

  .company-info > div {
    grid-template-columns: 100px 1fr;
    padding: 12px 0;
  }

  .company-info dt {
    font-size: 12px;
  }

  .company-info dd {
    font-size: 14px;
  }

  .service-list {
    padding: 24px 16px 48px;
    gap: 24px;
  }

  .service-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .service-num {
    font-size: 22px;
  }

  .service-body h2 {
    font-size: 17px;
  }

  .service-body p {
    font-size: 14px;
  }

  .contact-form-wrap {
    padding: 16px 16px 48px;
  }

  .form-submit button {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
  }

  .article-header {
    padding: 48px 16px 24px;
  }

  .article-hero {
    padding: 16px 16px 32px;
  }

  .article-body {
    padding: 0 16px 40px;
  }

  .article-body h2 {
    font-size: 17px;
    margin: 32px 0 12px;
  }

  .article-nav {
    padding: 0 16px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-card-title {
    padding: 18px 10px 8px;
    font-size: 11px;
  }
}
