/* ===========================
   Atwill Corporate Site
   Design tokens & Reset
   =========================== */

:root {
  --color-primary: #9a222a;
  --color-text: #333;
  --color-text-dark: #191c1d;
  --color-bg-light: #f3f4f5;
  --color-bg-white: #fff;
  --color-border: #dadada;
  --color-error: #ff0004;
  --color-link: #5a7db8;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Roboto', sans-serif;
  --max-width: 1279px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.75;
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================
   Utility
   =========================== */

.text-accent {
  color: var(--color-primary);
}

.section-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
  letter-spacing: 1.28px;
  display: block;
}

.section-label--center {
  text-align: center;
}

/* ===========================
   Buttons
   =========================== */

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
  transition: opacity 0.2s;
}
.btn-outline-sm:hover { opacity: 0.7; }

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
  transition: opacity 0.2s;
}
.btn-primary-sm:hover { opacity: 0.8; }

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 32px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.72px;
  transition: opacity 0.2s;
}
.btn-primary-lg:hover { opacity: 0.8; }

.btn-primary-lg--doc {
  min-width: 260px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 246px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.8; }

/* ===========================
   Header
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 40px;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===========================
   Hero
   =========================== */

.hero {
  position: relative;
  height: 520px;
  margin-top: 88px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 84px 40px 65px 632px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.hero__lead {
  font-size: 19px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1.14px;
  line-height: 1.85;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.16);
}

.hero__title {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2.08px;
  line-height: 1.5;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.16);
}

.hero__cta {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ===========================
   Pain Points
   =========================== */

.pain-points {
  background: var(--color-bg-light);
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.pain-points__title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1.68px;
  line-height: 1.7;
  color: var(--color-text);
}

.pain-points__cards {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 8px;
  width: 380px;
  padding: 130px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}

.card__icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: auto;
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.8px;
}

.card__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.28px;
  width: 316px;
  text-align: left;
}

/* ===========================
   OUR SOLUTION
   =========================== */

.solution {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}

.solution__hero {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  overflow: hidden;
  padding: 96px 40px 80px;
}

.solution__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff, transparent 60%);
}

.solution__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--color-text);
}

.solution__logo {
  width: 369px;
  height: auto;
}

.solution__desc {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.36px;
  color: var(--color-text);
  max-width: 667px;
}

.solution__checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.solution__checks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.solution__checks li img {
  flex-shrink: 0;
  margin-top: 2px;
}

.solution__checks li div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solution__checks li strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.72px;
  color: var(--color-text);
}

.solution__checks li span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28px;
  color: var(--color-text);
}

/* Steps */

.steps {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.steps__heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.12px;
  color: var(--color-text);
}

.steps__sub {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.72px;
  color: var(--color-text);
}

.steps__row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 8px;
}

.step {
  background: var(--color-bg-light);
  width: 285px;
  padding: 16px 32px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.step__num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1.12px;
}

.step__desc {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28px;
}

.step__label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.steps__bottom {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.96px;
  color: var(--color-text);
  margin-top: 8px;
}

/* Comparison */

.comparison {
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-bg-light);
  padding: 40px;
}

.comparison__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.96px;
  text-align: center;
  margin-bottom: 40px;
}

.comparison__table-wrap {
  overflow-x: auto;
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.64px;
}

.comparison__table th,
.comparison__table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--color-text);
  vertical-align: middle;
}

.comparison__table thead th {
  font-weight: 700;
  padding-bottom: 12px;
}

.comparison__highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.comparison__highlight-cell {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}

.comparison__label {
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.comparison__table td img {
  margin: 0 auto;
}

.comparison__hint {
  display: none;
  font-size: 12px;
  color: var(--color-text);
  text-align: right;
  margin-top: 8px;
}

/* CTA Section */

.cta-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta-section__text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.12px;
}

/* ===========================
   OUR MISSION
   =========================== */

.mission {
  position: relative;
  padding: 51px 39px 60px;
  min-height: 732px;
  overflow: hidden;
}

.mission__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mission__title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2.04px;
  line-height: 1.85;
}

.mission__text {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.72px;
  line-height: 2;
}

/* ===========================
   OUR VALUES
   =========================== */

.values {
  background: #fff;
  padding: 96px 39px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.values__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--color-text-dark);
  text-align: center;
}

.values__num {
  font-family: var(--font-en);
  font-weight: 700;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 16px;
  max-width: 1200px;
}

.value-card {
  background: var(--color-bg-light);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card__header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.value-card__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.8px;
}

.value-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.28px;
  width: 316px;
}

/* ===========================
   OUR MEMBERS
   =========================== */

.members {
  background: var(--color-bg-light);
  padding: 96px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.members__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--color-text-dark);
  text-align: center;
}

.members__row {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 16px;
}

.member {
  width: 380px;
  overflow: hidden;
}

.member__photo {
  width: 380px;
  height: 320px;
  overflow: hidden;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__info {
  background: #fff;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member__role {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.28px;
}

.member__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.member__bio {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.28px;
  max-width: 316px;
}

/* ===========================
   Company Info
   =========================== */

.company {
  padding: 96px 40px;
}

.company__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 70px;
}

.company__info {
  flex-shrink: 0;
  width: 440px;
}

.company__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--color-text-dark);
  margin-bottom: 56px;
}

.company__table {
  width: 100%;
  border-collapse: collapse;
}

.company__table th,
.company__table td {
  font-size: 16px;
  letter-spacing: 0.64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company__table th {
  font-weight: 700;
  width: 80px;
  white-space: nowrap;
  padding-right: 20px;
}

.company__table td {
  font-weight: 400;
}

.company__map {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.company__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   Contact Form
   =========================== */

.contact {
  background: var(--color-bg-light);
  padding: 96px 40px 120px;
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 70px;
}

.contact__desc {
  flex-shrink: 0;
  width: 466px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__desc h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.contact__lead {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.65;
}

.contact__note {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.64px;
  line-height: 1.65;
}

.contact__form {
  flex: 1;
  max-width: 664px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.08px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-error);
  border: 1px solid var(--color-error);
  border-radius: 4px;
  padding: 0 4px;
  height: 19px;
  letter-spacing: 0.24px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-field__label {
  font-size: 16px;
  letter-spacing: 0.64px;
}

input[type="text"],
input[type="email"] {
  height: 56px;
  width: 100%;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 0 16px;
  font-family: var(--font-jp);
  font-size: 16px;
}

textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 16px;
  font-family: var(--font-jp);
  font-size: 16px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  letter-spacing: 0.64px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #999;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--color-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-note {
  font-size: 12px;
  letter-spacing: 0.48px;
  color: var(--color-text);
}

.form-privacy {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.64px;
}

.form-privacy a {
  color: var(--color-link);
  text-decoration: underline;
  font-weight: 700;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--color-primary);
  padding: 64px 40px 32px;
  color: #fff;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.56px;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer__address p {
  font-size: 14px;
  letter-spacing: 0.56px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: 0.56px;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__copy {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.84px;
}

/* ===========================
   Responsive (tablet)
   =========================== */

@media (max-width: 1024px) {
  .hero__content {
    padding-left: 40px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .pain-points__cards {
    flex-direction: column;
    align-items: center;
  }

  .steps__row {
    flex-wrap: wrap;
  }

  .comparison__table {
    font-size: 14px;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .members__row {
    flex-wrap: wrap;
  }

  .company__inner {
    flex-direction: column;
  }

  .company__info {
    width: 100%;
  }

  .contact__inner {
    flex-direction: column;
  }

  .contact__desc {
    width: 100%;
  }

  .contact__form {
    max-width: 100%;
  }
}

/* ===========================
   Responsive (mobile)
   =========================== */

@media (max-width: 640px) {
  .header__inner {
    padding: 0 16px;
    height: 64px;
  }

  .hero {
    margin-top: 64px;
    height: auto;
    min-height: 400px;
  }

  .hero__content {
    padding: 40px 16px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero__cta {
    flex-direction: column;
    gap: 12px;
  }

  .pain-points {
    padding: 40px 16px;
  }

  .card {
    width: 100%;
    max-width: 380px;
  }

  .steps__heading {
    font-size: 20px;
  }

  .steps__row {
    flex-direction: column;
    align-items: center;
  }

  .comparison {
    padding: 24px 16px;
  }

  .comparison__title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  /* 5 列を画面幅に押し込まず、横スクロールにして項目名の列を固定する */
  .comparison__table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }

  .comparison__table {
    min-width: 600px;
    font-size: 13px;
    letter-spacing: 0.26px;
  }

  .comparison__table th,
  .comparison__table td {
    padding: 12px 8px;
    line-height: 1.6;
  }

  .comparison__label {
    position: sticky;
    left: -16px;
    z-index: 1;
    background: var(--color-bg-light);
  }

  .comparison__table thead th:first-child {
    position: sticky;
    left: -16px;
    z-index: 1;
    background: var(--color-bg-light);
  }

  .comparison__table td img {
    width: 28px;
    height: auto;
  }

  .comparison__hint {
    display: block;
  }

  .values {
    padding: 64px 16px;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .value-card p {
    width: 100%;
  }

  .members {
    padding: 64px 16px;
  }

  .member {
    width: 100%;
    max-width: 380px;
  }

  .member__photo {
    width: 100%;
    height: 240px;
  }

  .company {
    padding: 64px 16px;
  }

  .contact {
    padding: 64px 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .footer {
    padding: 40px 16px 24px;
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer__legal {
    align-items: flex-start;
  }
}

/* ===========================
   Policy page (privacy / customer-harassment)
   =========================== */

.policy {
  max-width: 900px;
  margin: 88px auto 0;
  padding: 80px 40px 120px;
}

.policy__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.12px;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: 56px;
}

.policy__lead {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.28px;
  margin-bottom: 40px;
}

.policy__article {
  margin-bottom: 40px;
}

.policy__article h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.64px;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.policy__article p,
.policy__article li {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.28px;
}

.policy__article ol {
  padding-left: 1.6em;
}

.policy__article ol ol {
  margin: 4px 0;
  padding-left: 1.8em;
}

@counter-style policy-paren {
  system: extends decimal;
  prefix: "(";
  suffix: ") ";
}

.policy__article ol ol,
.policy__article .policy__paren {
  list-style-type: policy-paren;
}

.policy__article .policy__paren {
  padding-left: 2.2em;
}

.policy__enact {
  margin-top: 64px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.28px;
}

.policy__contact {
  color: var(--color-link);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer__links {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

@media (max-width: 640px) {
  .policy {
    margin-top: 64px;
    padding: 48px 16px 80px;
  }

  .policy__title {
    font-size: 22px;
    margin-bottom: 40px;
  }
}
