:root {
  --green: #005f0a;
  --ink: #2f3338;
  --line: #cbcbcb;
  --bg: #ececec;
  --footer-dark: #232429;
  --title: 'Montserrat', sans-serif;
  --body: 'Noto Sans JP', sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 92px 0; }
.contact-section { padding-top: 120px; padding-bottom: 140px; }

.site-header { background: var(--green) url('assets/img/top-fv-bg.png') center/cover; color: #fff; }
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 18px;
  padding: 18px 0 38px;
  font-family: var(--title);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 5;
}
.header-nav .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.header-nav .brand img { width: 164px; }
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-left: auto;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  white-space: nowrap;
  position: relative;
}
.nav-menu a:hover { opacity: .82; }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-toggle {
  display: none;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease;
}
.header-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.breadcrumb {
  padding-bottom: 32px;
  font-family: var(--title);
  font-size: 13px;
  letter-spacing: .04em;
}

.page-title { margin-bottom: 40px; }
.page-title .big {
  margin: 0;
  font-family: var(--title);
  font-size: 74px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .02em;
  color: #c5c7ca;
}
.page-title .jp {
  margin: 16px 0 0;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--green);
}

.sec-head-en {
  margin: 0;
  font-family: var(--title);
  font-size: 74px;
  line-height: 1;
  font-weight: 500;
  color: #c9cbce;
}
.sec-head-ja {
  margin: 16px 0 0;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--green);
}
.company-page .sec-head-en {
  color: #c9cbce !important;
}

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.history-layout {
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.72fr);
  gap: 70px;
}
.history-list {
  width: 100%;
  max-width: 880px;
  justify-self: end;
}
.history-section {
  padding: 128px 0 140px;
}
.history-list article {
  padding: 28px 0 !important;
}
.history-list article p:first-child {
  font-size: 24px !important;
  line-height: 1.25;
}
.history-list article p:nth-child(2) {
  margin: 9px 0 8px !important;
  font-size: 25px !important;
  line-height: 1.42 !important;
  font-weight: 700;
  letter-spacing: 0;
}
.history-list article p:last-child {
  font-size: 16px !important;
  line-height: 1.62 !important;
  opacity: .96 !important;
}
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.service-card { background: #e5e5e5; border-radius: 14px; padding: 24px; }
.service-card h3 { margin: 0 0 12px; font-size: 24px; }
.service-card p { margin: 0; font-size: 16px; line-height: 1.9; }
.mission-cards {
  display: flex;
  gap: 26px;
  margin-top: 44px;
  padding: 18px 2px 34px;
  overflow-x: auto;
  overflow-y: hidden;
  counter-reset: mission;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.mission-cards::-webkit-scrollbar {
  height: 10px;
}
.mission-cards::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0,95,10,.72), rgba(164,140,45,.72));
  border-radius: 999px;
}
.mission-card {
  position: relative;
  flex: 0 0 min(78vw, 430px);
  scroll-snap-align: start;
  overflow: hidden;
  min-height: 268px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(246,249,244,.94) 58%, rgba(231,240,226,.98) 100%) !important;
  border: 1px solid rgba(0,95,10,.18);
  border-radius: 22px;
  padding: 74px 30px 34px;
  box-shadow: 0 22px 50px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.88);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  counter-increment: mission;
  isolation: isolate;
}
.mission-card::before,
.mission-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.mission-card::before {
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(164,140,45,.2), transparent 30%),
    linear-gradient(90deg, var(--green), rgba(164,140,45,.86));
  height: 7px;
  z-index: 2;
}
.mission-card::after {
  right: -38px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(0,95,10,.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,95,10,.1), rgba(0,95,10,0) 68%);
  z-index: -1;
}
.mission-card h3::before {
  content: "MISSION 0" counter(mission);
  display: block;
  margin-bottom: 16px;
  font-family: var(--title);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
}
.mission-card h3::after {
  content: counter(mission, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--title);
  font-size: 74px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0,95,10,.08);
  letter-spacing: 0;
}
.mission-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0,95,10,.36);
  box-shadow: 0 30px 64px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.9);
}
.mission-card h3 {
  position: relative;
  margin: 0 0 18px;
  color: var(--green) !important;
  font-size: 26px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: .01em;
}
.mission-card p {
  position: relative;
  margin: 0;
  padding-top: 22px;
  line-height: 1.95;
  color: #343a40;
}
.mission-card p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.company-info-table {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.company-info-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.company-info-row dt {
  margin: 0;
  font-weight: 700;
}
.company-info-row dd {
  margin: 0;
  min-width: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-meta { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-size: 14px; color: #6b6e73; }
.news-cat { border: 1px solid #6da972; color: #2f8336; padding: 2px 10px; font-weight: 600; font-size: 12px; }
.news-title { font-size: 16px; line-height: 1.5; font-weight: 500; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.placeholder-media { background: #c9c9c9; border-radius: 10px; aspect-ratio: 16/10; }
.card-title { margin: 10px 0 8px; font-size: 16px; line-height: 1.5; }
.card-text { margin: 0; font-size: 14px; line-height: 1.6; }

.form-wrap { max-width: 900px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.req { margin-left: 6px; color: var(--green); font-size: 12px; }
.input, .select, .textarea {
  width: 100%;
  background: #dde0e3;
  border: 1px solid #c9d0d8;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 16px;
  color: #7d8795;
}
.textarea { min-height: 190px; resize: vertical; line-height: 1.8; }
.check { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0; font-size: 14px; }
.submit-btn {
  display: block;
  width: 280px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--green) url('assets/img/top-fv-bg.png') center/cover;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 18px;
}

.site-footer { background: var(--green); color: #fff; margin-top: 110px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 58px 0 42px; }
.footer-brand img { width: 300px; margin-bottom: 16px; }
.footer-brand h3 { margin: 0 0 8px; font-size: 30px; font-weight: 500; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.8; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 42px; font-family: var(--title); font-size: 14px; font-weight: 600; }
.copyright { text-align: center; background: var(--footer-dark); color: #fff; font-family: var(--title); font-size: 14px; padding: 12px 0; }

.company-hero {
  padding-top: 0;
}
.company-hero .container {
  max-width: var(--maxw);
}
.company-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 20px 20px;
}
.company-page .history-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 64px;
}
.company-page .history-list {
  width: 100%;
  max-width: 760px;
  justify-self: stretch;
}
.company-message-layout {
  align-items: start;
}
.company-message-figure {
  display: grid;
  gap: 14px;
}
.company-message-image {
  width: min(100%, 92%);
  height: auto;
  display: block;
  border-radius: 12px;
}
.company-message-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}
.company-message-title {
  display: inline-block;
  font-size: .88em;
  margin-right: 10px;
}
.company-message-person {
  font-size: 1em;
}
.company-message-roman {
  margin-left: 10px;
  font-size: .86em;
  color: #8a8f96;
  font-weight: 500;
}
.company-message-figure-mobile,
.company-message-text-mobile {
  display: none;
}
.company-info-layout {
  align-items: center;
}
.company-info-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.company-info-head {
  margin-bottom: 24px;
}
.company-info-image-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .service-layout, .service-cards, .cards3, .footer-inner { grid-template-columns: 1fr; display: grid; }
  .history-layout { gap: 40px; }
  .company-page .history-layout { grid-template-columns: 1fr; gap: 40px; }
  .history-list { max-width: none; justify-self: stretch; }
  .footer-inner { align-items: start; }
}

@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .section { padding: 64px 0; }
  .contact-section { padding-top: 72px; padding-bottom: 86px; }
  .header-nav {
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 24px;
    white-space: normal;
  }
  .header-nav .brand { margin: 0; }
  .header-nav .brand img { width: 138px; }
  .nav-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 8px;
    background: rgba(0,0,0,.16);
    color: #fff;
    cursor: pointer;
    transition: background .28s ease, border-color .28s ease, transform .28s ease;
  }
  .nav-toggle:hover {
    border-color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.12);
    transform: translateY(-1px);
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .28s ease, opacity .2s ease;
  }
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 2px;
    min-width: min(268px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(0,55,7,.93);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .32s ease, visibility .32s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
  }
  .header-nav.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-menu a {
    display: block;
    border-radius: 6px;
    padding: 12px 14px;
  }
  .nav-menu a::after {
    left: 14px;
    right: 14px;
    bottom: 7px;
  }
  .breadcrumb { padding-bottom: 24px; text-align: center; font-size: 12px; }
  .page-title { margin-bottom: 28px; }
  .page-title .big, .sec-head-en { font-size: clamp(38px, 13vw, 52px); overflow-wrap: anywhere; }
  .page-title .jp, .sec-head-ja { font-size: clamp(26px, 8vw, 32px); }
  .service-layout { gap: 26px; }
  .company-message-figure-desktop,
  .company-message-text-desktop {
    display: none;
  }
  .company-message-figure-mobile,
  .company-message-text-mobile {
    display: block;
  }
  .company-message-figure-mobile {
    margin: 18px 0 18px;
  }
  .company-message-image {
    width: 100%;
  }
  .company-message-name {
    font-size: 17px;
  }
  .company-info-layout {
    align-items: start;
  }
  .company-info-image-desktop {
    display: none;
  }
  .company-info-image-mobile {
    display: block;
    margin: 18px 0 18px;
  }
  .company-info-head {
    margin-bottom: 20px;
  }
  .mission-cards { gap: 18px; margin-top: 30px; padding: 12px 2px 24px; }
  .mission-card {
    flex-basis: min(82vw, 360px);
    min-height: 248px;
    border-radius: 18px !important;
    padding: 64px 22px 28px !important;
  }
  .company-info-row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .history-section { padding: 92px 0 104px; }
  .history-list article { padding: 24px 0 !important; }
  .history-list article p:first-child { font-size: 22px !important; }
  .history-list article p:nth-child(2) { font-size: 22px !important; line-height: 1.42 !important; }
  .history-list article p:last-child { font-size: 15px !important; line-height: 1.6 !important; }
  .service-layout p[style*="font-size:28px"] { font-size: 20px !important; line-height: 1.85 !important; margin-top: 18px !important; }
  .service-layout p[style*="font-size:20px"] { font-size: 15px !important; line-height: 1.9 !important; }
  .service-card { border-radius: 8px; padding: 20px; }
  .service-card h3 { font-size: 20px; }
  .service-card p { font-size: 15px; }
  .mission-card h3 {
    font-size: 22px;
  }
  .mission-card h3::before {
    margin-bottom: 13px;
    font-size: 12px;
  }
  .mission-card h3::after {
    top: 17px;
    right: 20px;
    font-size: 58px;
  }
  .mission-card p {
    font-size: 15px;
    line-height: 1.82;
    overflow-wrap: anywhere;
  }
  .cards3 { gap: 24px; }
  .card-text { font-size: 15px; }
  .form-wrap { max-width: none; }
  .input, .select, .textarea { font-size: 16px; }
  .check { align-items: flex-start; text-align: left; }
  .submit-btn { width: min(100%, 280px); }
  .site-footer { margin-top: 54px; }
  .footer-inner { gap: 14px; padding: 26px 0 20px; }
  .footer-brand img { width: min(72vw, 220px); margin-bottom: 10px; }
  .footer-brand h3 { font-size: clamp(22px, 6.5vw, 28px); margin: 0 0 4px; }
  .footer-brand p { font-size: 13px; line-height: 1.55; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .copyright { padding: 10px 0; }
  .article-title, .news-article-title { font-size: 24px !important; overflow-wrap: anywhere; }
  .article-hero-media { aspect-ratio: 16 / 9 !important; }
  .article-body { padding: 42px 16px 62px !important; }
  .news-article { max-width: none !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header-nav { gap: 10px; font-size: 12px; }
  .header-nav .brand img { width: 128px; }
  .page-title .big, .sec-head-en { font-size: clamp(34px, 12vw, 44px); }
  .history-section { padding: 82px 0 92px; }
  .history-list article p:nth-child(2) { font-size: 20px !important; }
  .company-page .history-layout { grid-template-columns: 1fr; gap: 40px; }
  .mission-card {
    flex-basis: min(86vw, 320px);
    padding: 58px 20px 26px !important;
  }
  .mission-card h3::after {
    font-size: 52px;
  }
  .site-footer { margin-top: 42px; }
  .footer-inner { gap: 12px; padding: 22px 0 18px; }
  .footer-brand img { width: min(70vw, 200px); }
  .footer-brand h3 { font-size: 20px; margin: 0 0 4px; }
  .footer-brand p { font-size: 13px; line-height: 1.55; }
  .footer-nav { grid-template-columns: 1fr; gap: 8px; }
  .news-meta { flex-wrap: wrap; }
  .article-title, .news-article-title { font-size: 22px !important; }
}
