/* =========================================
   Terakoya Systems
   Official Website
========================================= */


/* =========================================
   Reset
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  color: #172033;
  background: #ffffff;

  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* =========================================
   Variables
========================================= */

:root {
  --background: #ffffff;
  --background-muted: #f7f9fc;

  --surface: #ffffff;
  --surface-dark: #111827;

  --text: #172033;
  --text-muted: #667085;
  --text-light: #ffffff;

  --border: #e5e9f0;

  --primary: #ff9d3d;
  --primary-dark: #e8811e;
  --primary-soft: #fff3e6;

  --blue: #2563eb;
  --green: #15803d;

  --shadow-small:
    0 6px 20px rgba(15, 23, 42, 0.06);

  --shadow-medium:
    0 18px 50px rgba(15, 23, 42, 0.10);

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --container-width: 1180px;
}


/* =========================================
   Shared
========================================= */

.container {
  width: min(
    calc(100% - 40px),
    var(--container-width)
  );

  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.section-muted {
  background: var(--background-muted);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-heading h2,
.philosophy-grid h2,
.contact-inner h2 {
  margin:
    6px
    0
    16px;

  font-size: clamp(
    2rem,
    5vw,
    3.3rem
  );

  line-height: 1.2;

  letter-spacing: -0.04em;
}

.section-heading p,
.philosophy-text,
.contact-inner p {
  color: var(--text-muted);
}

.section-label,
.eyebrow {
  margin: 0;

  color: var(--primary-dark);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.16em;
}


/* =========================================
   Buttons
========================================= */

.button {
  min-height: 48px;

  padding:
    12px
    22px;

  border:
    1px
    solid
    transparent;

  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);

  box-shadow:
    0
    10px
    24px
    rgba(255, 157, 61, 0.28);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--text);
  background: #ffffff;
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: #cfd5df;
}

.button-disabled {
  color: #98a2b3;
  background: #f2f4f7;
  border-color: #e4e7ec;

  cursor: default;
}

.button-disabled:hover {
  transform: none;
}


/* =========================================
   Header
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background:
    rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(14px);

  border-bottom:
    1px
    solid
    rgba(229, 233, 240, 0.8);
}

.header-inner {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;

  border-radius: 11px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #ffbd70
    );

  font-size: 0.85rem;
  font-weight: 900;

  box-shadow:
    0
    6px
    18px
    rgba(255, 157, 61, 0.22);
}

.brand-text {
  letter-spacing: -0.02em;
}

.main-navigation {
  display: flex;
  align-items: center;

  gap: 8px;
}

.main-navigation a {
  padding:
    8px
    12px;

  color: #475467;

  border-radius: 8px;

  font-size: 0.92rem;
  font-weight: 650;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--text);
  background: #f2f4f7;
}

.menu-button {
  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 10px;

  background: transparent;

  display: none;

  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;

  margin: 4px auto;

  display: block;

  border-radius: 999px;

  background: var(--text);
}


/* =========================================
   Hero
========================================= */

.hero {
  padding:
    110px
    0
    100px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 78% 15%,
      rgba(255, 188, 110, 0.24),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #ffffff,
      #fbfcff
    );
}

.hero-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(360px, 0.85fr);

  align-items: center;

  gap: 60px;
}

.hero-copy h1 {
  margin:
    14px
    0
    24px;

  font-size: clamp(
    2.8rem,
    5vw,
    4.8rem
  );

  line-height: 1.08;

  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: var(--primary-dark);
}

.hero-description {
  max-width: 660px;

  margin: 0;

  color: var(--text-muted);

  font-size: clamp(
    1rem,
    2vw,
    1.18rem
  );
}

.hero-actions {
  margin-top: 36px;

  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}


/* =========================================
   Hero mock window
========================================= */

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";

  position: absolute;

  inset:
    12%
    -10%
    -12%
    12%;

  z-index: 0;

  border-radius: 50%;

  background:
    rgba(255, 157, 61, 0.13);

  filter: blur(40px);
}

.hero-panel-window {
  position: relative;
  z-index: 1;

  overflow: hidden;

  border:
    1px
    solid
    rgba(255, 255, 255, 0.8);

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.96);

  box-shadow:
    var(--shadow-medium);

  transform:
    rotate(1deg);
}

.window-bar {
  height: 48px;

  padding:
    0
    18px;

  display: flex;
  align-items: center;

  gap: 7px;

  background: #f4f6f9;

  border-bottom:
    1px
    solid
    var(--border);
}

.window-bar span {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #d0d5dd;
}

.window-content {
  padding: 34px;
}

.window-label {
  margin:
    0
    0
    20px;

  color: var(--primary-dark);

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.window-line {
  width: 72%;
  height: 12px;

  margin-bottom: 12px;

  border-radius: 999px;

  background: #e9edf3;
}

.window-line-large {
  width: 92%;
  height: 24px;

  background: #263043;
}

.window-line-short {
  width: 50%;

  margin-bottom: 34px;
}

.window-card {
  min-height: 74px;

  margin-top: 14px;
  padding: 15px;

  display: flex;
  align-items: center;

  gap: 14px;

  border:
    1px
    solid
    var(--border);

  border-radius: 16px;

  background: #ffffff;
}

.window-card > span {
  width: 48px;
  height: 48px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: var(--primary-dark);
  background: var(--primary-soft);

  font-size: 0.72rem;
  font-weight: 900;
}

.window-card strong,
.window-card small {
  display: block;
}

.window-card small {
  margin-top: 3px;

  color: var(--text-muted);
}


/* =========================================
   Product cards
========================================= */

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.product-card {
  min-height: 390px;

  padding: 30px;

  display: flex;
  flex-direction: column;

  border:
    1px
    solid
    var(--border);

  border-radius: var(--radius-medium);

  background: var(--surface);

  box-shadow: var(--shadow-small);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.product-card:hover {
  transform:
    translateY(-4px);

  border-color: #d7dce5;

  box-shadow:
    0
    20px
    45px
    rgba(15, 23, 42, 0.09);
}

.product-card-featured {
  border-color:
    rgba(255, 157, 61, 0.38);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fffaf4
    );
}

.product-card-future {
  background:
    linear-gradient(
      145deg,
      #fafbfc,
      #f4f6f9
    );
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 12px;
}

.product-category {
  color: var(--text-muted);

  font-size: 0.76rem;
  font-weight: 750;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.status-badge {
  padding:
    6px
    10px;

  border-radius: 999px;

  color: #667085;
  background: #f2f4f7;

  font-size: 0.72rem;
  font-weight: 700;
}

.status-ready {
  color: #a05000;
  background: var(--primary-soft);
}

.product-icon {
  width: 62px;
  height: 62px;

  margin:
    26px
    0
    20px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #ffb968
    );

  font-size: 0.9rem;
  font-weight: 900;
}

.product-icon-plus {
  color: #667085;
  background: #e7eaf0;

  font-size: 1.6rem;
}

.product-card h3 {
  margin:
    0
    0
    12px;

  font-size: 1.5rem;

  line-height: 1.3;

  letter-spacing: -0.025em;
}

.product-card p {
  margin: 0;

  color: var(--text-muted);
}

.feature-list {
  margin:
    22px
    0
    0;

  padding: 0;

  list-style: none;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px 14px;
}

.feature-list li {
  position: relative;

  padding-left: 18px;

  color: #475467;

  font-size: 0.9rem;
}

.feature-list li::before {
  content: "";

  position: absolute;
  top: 0.7em;
  left: 0;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--primary);
}

.product-card-footer {
  margin-top: auto;

  padding-top: 26px;
}

.text-link {
  color: var(--text-muted);

  font-size: 0.9rem;
  font-weight: 700;
}


/* =========================================
   Philosophy
========================================= */

.philosophy-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: 80px;
}

.philosophy-text p {
  margin:
    0
    0
    18px;

  font-size: 1.06rem;
}


/* =========================================
   About
========================================= */

.about-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.about-card {
  min-height: 270px;

  padding: 28px;

  border:
    1px
    solid
    var(--border);

  border-radius: var(--radius-medium);

  background: #ffffff;
}

.about-number {
  color: var(--primary-dark);

  font-size: 0.74rem;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.about-card h3 {
  margin:
    42px
    0
    12px;

  font-size: 1.35rem;
}

.about-card p {
  margin: 0;

  color: var(--text-muted);
}


/* =========================================
   Updates
========================================= */

.update-list {
  border-top:
    1px
    solid
    var(--border);
}

.update-item {
  padding:
    28px
    0;

  display: grid;

  grid-template-columns:
    150px
    minmax(0, 1fr);

  gap: 28px;

  border-bottom:
    1px
    solid
    var(--border);
}

.update-item time {
  color: #667085;

  font-size: 0.9rem;
  font-weight: 650;
}

.update-type {
  color: var(--primary-dark);

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.update-item h3 {
  margin:
    5px
    0
    6px;

  font-size: 1.1rem;
}

.update-item p {
  margin: 0;

  color: var(--text-muted);
}


/* =========================================
   Contact
========================================= */

.contact-section {
  background:
    var(--surface-dark);

  color: #ffffff;
}

.contact-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 0.7fr);

  align-items: center;

  gap: 80px;
}

.contact-inner p {
  color: #aeb7c6;
}

.contact-card {
  padding: 30px;

  border:
    1px
    solid
    rgba(255, 255, 255, 0.1);

  border-radius: var(--radius-medium);

  background:
    rgba(255, 255, 255, 0.05);
}

.contact-card p {
  margin:
    0
    0
    8px;

  color: #ffbd70;

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.1em;
}

.contact-card strong {
  display: block;

  font-size: 1.25rem;
}

.contact-card small {
  margin-top: 14px;

  display: block;

  color: #98a2b3;
}


/* =========================================
   Footer
========================================= */

.site-footer {
  padding:
    50px
    0;

  color: #98a2b3;
  background: #0b101c;

  border-top:
    1px
    solid
    rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: grid;

  grid-template-columns:
    1fr
    auto;

  gap:
    28px
    40px;

  align-items: start;
}

.brand-footer {
  color: #ffffff;
}

.footer-message {
  margin:
    10px
    0
    0;

  font-size: 0.88rem;
}

.footer-navigation {
  display: flex;
  flex-wrap: wrap;

  gap: 18px;
}

.footer-navigation a {
  font-size: 0.88rem;

  transition:
    color 0.2s ease;
}

.footer-navigation a:hover {
  color: #ffffff;
}

.copyright {
  grid-column:
    1
    /
    -1;

  margin:
    12px
    0
    0;

  padding-top: 24px;

  border-top:
    1px
    solid
    rgba(255, 255, 255, 0.08);

  font-size: 0.82rem;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 900px) {

  .section {
    padding:
      78px
      0;
  }

  .hero {
    padding:
      80px
      0
      75px;
  }

  .hero-inner,
  .philosophy-grid,
  .contact-inner {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 720px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--container-width)
      );
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .menu-button {
    display: block;
  }

  .main-navigation {
    position: absolute;

    top: 64px;
    right: 14px;
    left: 14px;

    padding: 12px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    border:
      1px
      solid
      var(--border);

    border-radius: 14px;

    background: #ffffff;

    box-shadow: var(--shadow-medium);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation a {
    padding: 12px;
  }

  .hero-copy h1 {
    font-size:
      clamp(
        2.7rem,
        14vw,
        4.4rem
      );
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .window-content {
    padding: 24px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;

    padding: 24px;
  }

  .update-item {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }

}


@media (max-width: 420px) {

  .section {
    padding:
      64px
      0;
  }

  .hero {
    padding:
      64px
      0;
  }

  .product-card {
    padding: 21px;
  }

  .hero-panel-window {
    border-radius: 18px;
  }

}