/* style.css — compiled from style.scss */

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
  font-feature-settings: 'palt';
  line-break: strict;
}

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

a { text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* =============================================
   Container
   ============================================= */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* =============================================
   Scroll Reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Buttons
   ============================================= */
.btn--hero {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  background: #e1a346;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(225, 163, 70, 0.45);
  animation: pulse-gold 2.5s ease-in-out infinite;
}
.btn--hero:hover {
  background: #c88c30;
  transform: scale(1.04);
}

.btn--primary {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  background: #e1a346;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(225, 163, 70, 0.45);
}
.btn--primary:hover {
  background: #c88c30;
  transform: scale(1.04);
}

.btn--large {
  padding: 20px 64px;
  font-size: 1.2rem;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 4px 20px rgba(225, 163, 70, 0.45); }
  50% { box-shadow: 0 8px 32px rgba(225, 163, 70, 0.75); }
}

/* =============================================
   Overlay
   ============================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* =============================================
   Site Navigation (Fixed Top)
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  z-index: 200;
  transition: box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  gap: 12px;
}

.site-nav__logo {
  flex-shrink: 0;
}
.site-nav__logo img {
  height: 34px;
  width: auto;
}

.site-nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav__links li a {
  display: block;
  padding: 6px 10px;
  color: #232e4e;
  font-size: 0.82rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.site-nav__links li a:hover {
  background: #f1f7fc;
  color: #1a60a2;
}

.site-nav__cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  background: #e1a346;
  color: #fff;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.site-nav__cta:hover {
  background: #c88c30;
}

.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.site-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #232e4e;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.site-nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.site-nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Drawer (Mobile)
   ============================================= */
.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 199;
  padding: 80px 0 40px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.drawer.is-open {
  right: 0;
}

.drawer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #232e4e;
  line-height: 1;
  padding: 4px;
}

.drawer__links {
  list-style: none;
  padding: 0;
}
.drawer__links li a {
  display: block;
  padding: 14px 24px;
  color: #232e4e;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}
.drawer__links li a:hover {
  background: #f1f7fc;
  color: #1a60a2;
  padding-left: 32px;
}

/* =============================================
   Hero
   ============================================= */
.hero {
  margin-top: 64px;
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
}

.hero__img-wrap img {
  display: block;
  width: 100%;
}

.hero__cta-wrap {
  position: absolute;
  bottom: 30%;
  left: 5%;
}
.hero__cta-wrap a {
  display: block;
  width: 300px;
  text-align: center;
}

/* =============================================
   Subsidy Banner
   ============================================= */
.subsidy {
  background: #1c4a70;
  color: #fff;
  text-align: center;
  padding: 24px 16px;
}

.subsidy__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.subsidy__main {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.8;
}

.subsidy__num {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: 'Poppins', serif;
  color: #ffd700;
  line-height: 1;
  vertical-align: baseline;
}

.subsidy__caution {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

/* =============================================
   Section (shared)
   ============================================= */
.section {
  padding-block: 80px;
}

.h2-img {
  margin-bottom: 20px;
}
.h2-img img {
  max-height: 80px;
  width: auto;
}

.section-subtitle {
  display: inline-block;
  padding: 8px 16px;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 24px;
  border-radius: 4px;
  font-weight: 500;
}
.section-subtitle--edit { background: #d27885; }
.section-subtitle--design { background: #87b73e; }

.lead-text {
  font-size: 1.05rem;
  line-height: 1.95;
  margin-bottom: 24px;
}

/* =============================================
   About Section
   ============================================= */
.section--about .feature-badge {
  display: inline-block;
  padding: 4px 18px;
  background: #578ecb;
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.section--about .feature-sub {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #232e4e;
  font-weight: 500;
}

.section--about .feature-list {
  list-style: none;
  padding: 0;
}
.section--about .feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.section--about .feature-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #578ecb;
  font-size: 0.72rem;
  top: 5px;
}

/* =============================================
   Card Grid
   ============================================= */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #578ecb;
}

.card__title {
  color: #578ecb;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce8f4;
  font-size: 1.05rem;
  font-weight: 600;
}
.card__title--gold {
  color: #e1a346;
  border-bottom-color: rgba(225, 163, 70, 0.25);
}

.card__list {
  list-style: none;
  padding: 0;
}
.card__list li {
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.6;
}
.card__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #578ecb;
  font-weight: 700;
}
.card__list--check li::before {
  content: '✓';
  color: #e1a346;
}

/* =============================================
   Merit Section
   ============================================= */
.section--merit {
  background: #f1f7fc;
}

/* =============================================
   Main Image
   ============================================= */
.main-image {
  padding-block: 8px;
}
.main-image .container img {
  border-radius: 12px;
  width: 100%;
}

/* =============================================
   Function Overview (3-col)
   ============================================= */
.section--func-overview {
  background: #f1f7fc;
  padding-top: 48px;
}

.func-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #1c4a70;
}

.func-card__title {
  color: #1c4a70;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c2d9ef;
  font-size: 0.98rem;
  font-weight: 600;
}

.func-card__list {
  list-style: none;
  padding: 0;
}
.func-card__list li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.6;
}
.func-card__list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #1c4a70;
  font-size: 0.65rem;
  top: 8px;
}

/* =============================================
   Subwrapper (Detailed Functions)
   ============================================= */
.subwrapper {
  background: #f1f7fc;
  padding-block: 80px;
}

.func-desc__heading {
  text-align: center;
  margin-bottom: 56px;
}

.func-desc__item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.func-desc__item--reverse {
  flex-direction: row-reverse;
}

.func-desc__text {
  flex: 1;
}
.func-desc__text h3 {
  color: #578ecb;
  margin-bottom: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}
.func-desc__text p {
  margin-bottom: 10px;
  font-size: 0.93rem;
  line-height: 1.85;
  color: #444;
}

.func-desc__img {
  flex-shrink: 0;
}
.func-desc__img img {
  max-width: 315px;
  width: 100%;
  border-radius: 8px;
}

/* =============================================
   Edit Section
   ============================================= */
.section--edit {
  background: #fdf0f2;
}

.edit-container {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.edit-text p {
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.97rem;
}

.edit-text__h4 {
  font-size: 1.02rem;
  color: #d27885;
  font-weight: 600;
  margin-block: 24px 16px;
  padding-left: 12px;
  border-left: 4px solid #d27885;
}

.edit-ol-wrap {
  position: relative;
}

.point-img {
  position: absolute;
  top: -50px;
  right: -60px;
}

.edit-ol {
  list-style: none;
  counter-reset: edit-counter;
  padding: 0;
}
.edit-ol li {
  padding-left: 38px;
  position: relative;
  margin-bottom: 18px;
  line-height: 1.75;
  font-size: 0.95rem;
}
.edit-ol li::before {
  content: counter(edit-counter);
  counter-increment: edit-counter;
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  background: #d27885;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.edit-img {
  flex-shrink: 0;
  margin-top: 8px;
}
.edit-img img {
  max-width: 380px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Design Section
   ============================================= */
.section--design {
  background: #f3f9e9;
}

.design-text p {
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.97rem;
}

.design-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.design-list li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: #6d9430;
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.5;
}
.design-list li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: #87b73e;
  font-weight: 700;
  font-size: 1.1rem;
}

.design-note {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.9;
  padding: 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

/* =============================================
   Full-Width Image
   ============================================= */
.full-img {
  line-height: 0;
  text-align: center;
  overflow: hidden;
}
.full-img img {
  max-width: 1128px;
  width: 100%;
}

/* =============================================
   Spec Section
   ============================================= */
.section--spec {
  background: #eeefef;
}

.spec-heading {
  font-weight: normal;
  color: #333;
  margin-block: 20px;
  font-size: 1.1rem;
}

.aws-img {
  margin-block: 12px;
  width: 420px;
  max-width: 100%;
}

.spec-tbl1 {
  margin-bottom: 32px;
}

.env-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
}
.env-table td {
  border: 1px solid #bebebf;
  padding: 12px 16px;
  width: calc(100% / 3);
}
.env-table td.td_heading {
  background: #bebebf;
  font-weight: 600;
}
.env-table td:first-child:not(.td_heading) {
  text-align: left;
  background: #e8e8e8;
}
.env-table td:nth-child(n+2) {
  background: #fff;
}
.env-table tbody tr:hover td:not(.td_heading) {
  background: #f1f7fc;
  transition: background 0.3s ease;
}

.spec-tbl2 {
  margin-top: 24px;
}

/* =============================================
   CTA Section
   ============================================= */
.section--cta {
  background: linear-gradient(135deg, #153258 0%, #1c4a70 55%, #1a60a2 100%);
  text-align: center;
  color: #fff;
  padding-block: 80px;
}
.section--cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
}

.cta-sub {
  font-size: 1rem;
  opacity: 0.82;
  margin-bottom: 8px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: #eeefef;
  padding-block: 48px;
}

.footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__logo img {
  max-width: 180px;
  height: auto;
}

.footer__address {
  font-style: normal;
  color: #232e4e;
}
.footer__address h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.footer__address p {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.footer__address a {
  color: #1a60a2;
  font-size: 0.9rem;
}
.footer__address a:hover {
  text-decoration: underline;
}

/* =============================================
   Page Top Button
   ============================================= */
.pagetop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  background: #fff;
  border: 2px solid #153258;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 100;
}
.pagetop:hover {
  background: #1d2975;
}
.pagetop:hover .pagetop__arrow {
  border-color: #fff;
}

.pagetop__arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #232e4e;
  border-right: 2px solid #232e4e;
  transform: translateY(20%) rotate(-45deg);
  transition: border-color 0.3s ease;
}

/* =============================================
   Responsive — max-width: 1024px
   ============================================= */
@media screen and (max-width: 1024px) {
  .site-nav__links {
    display: none;
  }
  .site-nav__hamburger {
    display: flex;
  }
  .point-img {
    position: static;
    margin-bottom: 16px;
  }
}

/* =============================================
   Responsive — max-width: 768px
   ============================================= */
@media screen and (max-width: 768px) {
  .card-grid--2,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .func-desc__item,
  .func-desc__item--reverse {
    flex-direction: column !important;
    padding: 24px;
  }

  .edit-container {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .subwrapper {
    padding-block: 48px;
  }
}

/* =============================================
   Responsive — max-width: 640px
   ============================================= */
@media screen and (max-width: 640px) {
  .site-nav__cta {
    display: none;
  }

  .subsidy__main { font-size: 0.95rem; }
  .subsidy__num { font-size: 2rem; }

  .hero__cta-wrap a {
    width: 160px;
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .section {
    padding-block: 48px;
  }

  .subwrapper {
    padding-block: 48px;
  }

  .section--cta {
    padding-block: 56px;
  }

  .point-img {
    display: none;
  }

  /* env-table card style on mobile */
  .env-table,
  .env-table tbody,
  .env-table tr,
  .env-table td {
    display: block;
    width: 100%;
  }
  .env-table tr:first-child {
    display: none;
  }
  .env-table tr {
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
  }
  .env-table td {
    border: none;
    padding: 8px 12px;
    text-align: left;
  }
  .env-table td:first-child {
    background: #f7f7f7;
    font-weight: 700;
    padding: 12px;
    text-align: left;
  }
  .env-table td:nth-child(2)::before { content: 'Windows: '; font-weight: 700; }
  .env-table td:nth-child(3)::before { content: 'Mac: '; font-weight: 700; }
  .env-table td:nth-child(n+2) { background: #fff; width: 100%; }
}
