/*
Theme Name: AI Hajime Lab
Theme URI: https://ai-hajime-lab.com/
Author: AI Hajime Lab
Description: AI初心者向けの副業・学習・ブログ運営メディア用テーマ。
Version: 1.0.4
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: ai-hajime-lab
*/

:root {
  --ahl-ink: #172033;
  --ahl-muted: #5f6f86;
  --ahl-line: #dce8f4;
  --ahl-bg: #f7fbff;
  --ahl-panel: #ffffff;
  --ahl-blue: #2f6df6;
  --ahl-teal: #17b8a6;
  --ahl-yellow: #ffca58;
  --ahl-red: #f16666;
  --ahl-shadow: 0 18px 45px rgba(34, 72, 118, 0.14);
  --ahl-radius: 8px;
  --ahl-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ahl-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

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

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

.ahl-container {
  width: min(100% - 32px, var(--ahl-max));
  margin-inline: auto;
}

.ahl-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 232, 244, 0.78);
  backdrop-filter: blur(12px);
}

.ahl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
}

.ahl-brand {
  display: grid;
  gap: 0;
}

.ahl-brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ahl-brand-tagline {
  color: var(--ahl-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.ahl-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #35445a;
  font-size: 0.92rem;
  font-weight: 700;
}

.ahl-nav ul,
.ahl-footer-nav ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ahl-nav a {
  padding-block: 10px;
}

.ahl-nav a:hover {
  color: var(--ahl-blue);
}

.ahl-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(47, 109, 246, 0.11), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--ahl-line);
}

.ahl-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 72px);
  padding: 56px 0 68px;
}

.ahl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: #14594f;
  background: rgba(23, 184, 166, 0.13);
  border: 1px solid rgba(23, 184, 166, 0.24);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.ahl-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.ahl-hero-lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: #3d4d63;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.ahl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ahl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--ahl-radius);
  font-weight: 800;
  line-height: 1.3;
}

.ahl-button-primary {
  color: #fff;
  background: var(--ahl-blue);
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.24);
}

.ahl-button-secondary {
  color: var(--ahl-ink);
  background: #fff;
  border-color: var(--ahl-line);
}

.ahl-hero-media {
  position: relative;
}

.ahl-hero-media img {
  width: 100%;
  border: 1px solid rgba(220, 232, 244, 0.8);
  border-radius: 8px;
  box-shadow: var(--ahl-shadow);
}

.ahl-section {
  padding: 76px 0;
}

.ahl-section-soft {
  background: var(--ahl-bg);
}

.ahl-section-head {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 28px;
}

.ahl-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.ahl-section-head p {
  margin: 0;
  color: var(--ahl-muted);
}

.ahl-grid {
  display: grid;
  gap: 18px;
}

.ahl-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ahl-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ahl-card {
  min-width: 0;
  height: 100%;
  padding: 22px;
  background: var(--ahl-panel);
  border: 1px solid var(--ahl-line);
  border-radius: var(--ahl-radius);
  box-shadow: 0 8px 22px rgba(34, 72, 118, 0.06);
}

.ahl-card h3 {
  margin: 0 0 8px;
  font-size: 1.07rem;
  line-height: 1.35;
}

.ahl-card p {
  margin: 0;
  color: var(--ahl-muted);
  font-size: 0.95rem;
}

.ahl-card-link {
  display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ahl-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 109, 246, 0.38);
  box-shadow: var(--ahl-shadow);
}

.ahl-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--ahl-blue);
  border-radius: 8px;
  font-weight: 900;
}

.ahl-icon-teal {
  background: var(--ahl-teal);
}

.ahl-icon-yellow {
  color: #332400;
  background: var(--ahl-yellow);
}

.ahl-icon-red {
  background: var(--ahl-red);
}

.ahl-review-card {
  display: grid;
  gap: 14px;
}

.ahl-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  color: #114c45;
  background: rgba(23, 184, 166, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.ahl-meta {
  color: var(--ahl-muted);
  font-size: 0.88rem;
}

.ahl-steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ahl-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ahl-line);
  border-radius: var(--ahl-radius);
}

.ahl-step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ahl-ink);
  border-radius: 8px;
  font-weight: 900;
}

.ahl-step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.ahl-step p {
  margin: 0;
  color: var(--ahl-muted);
}

.ahl-post-list {
  display: grid;
  gap: 18px;
}

.ahl-post-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ahl-line);
  border-radius: var(--ahl-radius);
}

.ahl-post-item h2,
.ahl-post-item h3 {
  margin: 0 0 8px;
  line-height: 1.35;
}

.ahl-post-item p {
  color: var(--ahl-muted);
}

.ahl-post-item a:hover {
  color: var(--ahl-blue);
}

.ahl-note {
  margin: 24px 0;
  padding: 18px;
  background: #f7fbff;
  border: 1px solid var(--ahl-line);
  border-left: 4px solid var(--ahl-blue);
  border-radius: var(--ahl-radius);
}

.ahl-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.ahl-content th,
.ahl-content td {
  padding: 12px;
  border: 1px solid var(--ahl-line);
  text-align: left;
  vertical-align: top;
}

.ahl-content th {
  background: var(--ahl-bg);
}

.ahl-content blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  color: #33445b;
  background: #fffdf5;
  border-left: 4px solid var(--ahl-yellow);
}

.ahl-comparison {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--ahl-line);
  border-radius: var(--ahl-radius);
}

.ahl-comparison table {
  min-width: 720px;
  margin: 0;
}

.ahl-mini-cta {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #2f6df6);
  border-radius: var(--ahl-radius);
}

.ahl-mini-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.ahl-mini-cta a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
}

.ahl-content {
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 58px 0 78px;
}

.ahl-content h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.18;
}

.ahl-content a {
  color: var(--ahl-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ahl-cta {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 184, 166, 0.95), rgba(47, 109, 246, 0.96));
}

.ahl-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.ahl-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  line-height: 1.2;
}

.ahl-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.ahl-site-footer {
  color: #dfe7f2;
  background: #172033;
}

.ahl-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
}

.ahl-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #b9c4d4;
  font-size: 0.88rem;
}

.ahl-empty {
  padding: 26px;
  color: var(--ahl-muted);
  background: #fff;
  border: 1px solid var(--ahl-line);
  border-radius: var(--ahl-radius);
}

@media (max-width: 920px) {
  .ahl-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .ahl-nav {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .ahl-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .ahl-grid-4,
  .ahl-grid-3,
  .ahl-cta-inner,
  .ahl-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ahl-container {
    width: min(100% - 24px, var(--ahl-max));
  }

  .ahl-section {
    padding: 54px 0;
  }

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

  .ahl-button {
    width: 100%;
  }

  .ahl-card,
  .ahl-post-item {
    padding: 18px;
  }
}
