/* =========================================
   株式会社WA ホームページ
   和テイスト × モダンなコーポレートサイト
   ========================================= */

/* ---------- 変数 ---------- */
:root {
  --ai: #1b3a5c;          /* 藍色 */
  --ai-dark: #122a44;
  --shu: #c2452d;         /* 朱色 */
  --shu-light: #e8f0f7;
  --kizome: #f7f3ec;      /* 生成り(背景) */
  --sumi: #2b2b2b;        /* 墨色(テキスト) */
  --sumi-light: #6b6b6b;
  --white: #ffffff;
  --line: #e5ddd0;
  --shadow: 0 10px 30px rgba(27, 58, 92, 0.08);
  --radius: 14px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--sumi);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-accent {
  background: var(--shu);
  color: var(--white);
}

.btn-accent:hover {
  background: #a83a24;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 69, 45, 0.35);
}

.btn-ghost {
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 58, 92, 0.08);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(27, 58, 92, 0.1);
}

.header-inner {
  width: min(1080px, 92%);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: 0.04em;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: 0.15em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 26px;
}

.nav-list a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ai);
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--shu);
  transition: width 0.25s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 14px;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ai);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(194, 69, 45, 0.18), transparent 55%),
    linear-gradient(135deg, var(--ai-dark) 0%, var(--ai) 55%, #2a5d8f 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-seigaiha {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
}

/* 大円の装飾 */
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 140px 0 160px;
}

.hero-en {
  font-size: 14px;
  letter-spacing: 0.5em;
  opacity: 0.85;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-mincho);
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 2.1;
  opacity: 0.95;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--shu);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-mincho);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--ai);
  letter-spacing: 0.08em;
}

.section-desc {
  margin-top: 14px;
  color: var(--sumi-light);
}

/* ---------- about ---------- */
.about {
  background: var(--kizome);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.about-lead {
  font-size: 19px;
  font-weight: 700;
  color: var(--ai);
  margin-bottom: 20px;
  line-height: 2;
}

.about-lead strong {
  color: var(--shu);
  font-family: var(--font-mincho);
  font-size: 22px;
}

.about-text p {
  margin-bottom: 18px;
  color: #3d3d3d;
}

.about-points {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.about-points li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--ai);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--shu);
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px;
  border-bottom: 1px solid var(--line);
}

.about-card-item:last-child {
  border-bottom: none;
}

.about-num {
  font-family: var(--font-mincho);
  font-size: 44px;
  font-weight: 700;
  color: var(--ai);
  line-height: 1.2;
}

.about-num span {
  font-size: 16px;
  margin-left: 4px;
  color: var(--sumi-light);
  font-family: var(--font-sans);
  font-weight: 600;
}

.about-label {
  font-size: 13.5px;
  color: var(--sumi-light);
  font-weight: 600;
}

/* ---------- コース ---------- */
.courses {
  background: var(--white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--shu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--shu-light);
  color: var(--ai);
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ai);
  margin-bottom: 12px;
}

.course-desc {
  font-size: 14px;
  color: var(--sumi-light);
  margin-bottom: 18px;
}

.course-meta {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--sumi-light);
  font-weight: 600;
}

.course-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--shu);
  transition: color 0.2s ease;
}

.course-link:hover {
  color: #a83a24;
}

/* ---------- 強み ---------- */
.features {
  background: var(--ai);
  color: var(--white);
}

.features .section-title {
  color: var(--white);
}

.features .section-en {
  color: #f0a08c;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.feature-item {
  position: relative;
  padding: 12px 8px;
}

.feature-no {
  font-family: var(--font-mincho);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #f0a08c;
  display: block;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  position: relative;
}

.feature-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--shu);
}

.feature-desc {
  font-size: 14.5px;
  line-height: 2;
  opacity: 0.85;
}

/* ---------- 会社概要 ---------- */
.voices {
  background: var(--kizome);
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--white);
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ai-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo-footer .logo-mark,
.logo-footer .logo-text {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.footer-nav a {
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.copyright {
  font-size: 12.5px;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  width: 100%;
  text-align: center;
}

/* ---------- フェードイン ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* モバイルナビ */
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 20px 0 32px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(27, 58, 92, 0.12);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 99;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner {
    padding: 120px 0 140px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .course-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .sp-only {
    display: inline;
  }
}

.sp-only {
  display: none;
}


/* ---------- 補足 ---------- */
.note-small {
  margin-top: 28px;
  font-size: 13px;
  color: var(--sumi-light);
  text-align: center;
}

/* ---------- 会社概要の表 ---------- */
.company-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 36px;
}

.company-table > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

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

.company-table dt {
  font-weight: 700;
  color: var(--ai);
}

.company-table a {
  color: var(--ai);
}

.company-list {
  list-style: none;
}

.company-list li + li {
  margin-top: 4px;
}

/* ---------- お問い合わせカード ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px;
  background: var(--kizome);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--sumi);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--shu);
  letter-spacing: 0.1em;
}

.contact-card-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ai);
  word-break: break-all;
}

.contact-card-note {
  font-size: 13px;
  color: var(--sumi-light);
}

@media (max-width: 560px) {
  .company-table {
    padding: 4px 20px;
  }

  .company-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-num {
    font-size: 36px;
  }
}
