/*
Theme Name: Aifukugyo
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Minimal original WordPress theme
Version: 1.0
*/

/*
body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.8;
  color: #222;
  background: #f7f7f7;
}

a { color: #0073aa; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer {
  background: #222;
  color: #fff;
  padding: 20px;
}

.site-header a, .site-footer a { color: #fff; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  background: #fff;
}

.test{
  background-color: red;
}*/

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #eef2ff;
  --max-width: 1080px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

h3 a {
  color: var(--text);
}

a:hover {
  text-decoration: underline;
}

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

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

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-weight: 600;
}

.hero {
  padding: 64px 0 32px;
}

.hero-box {
  background: linear-gradient(135deg, #eef2ff, #ffffff 55%);
  border: 1px solid #dbe3ff;
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.hero-tag {
  display: inline-block;
  background: #dfe4ff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

.section {
  padding: 28px 0 64px;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card .meta,
.article-meta,
.profile-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.card p {
  margin: 0 0 18px;
  color: #4b5563;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
}

.button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 40px 0 64px;
}

.article,
.sidebar,
.profile-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.article {
  padding: 36px;
}

.article h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 12px;
}

.article h2 {
  margin-top: 38px;
  font-size: 1.4rem;
}

.article p,
.article li {
  color: #374151;
}

.article ul {
  padding-left: 1.25rem;
}

.note-box {
  background: var(--accent);
  border-left: 4px solid var(--primary);
  padding: 18px;
  border-radius: 12px;
  margin: 24px 0;
}

.sidebar {
  padding: 24px;
  align-self: start;
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li + li {
  margin-top: 10px;
}

.sidebar-ad {
  margin-top: 24px;
  text-align: center;
}

.profile-wrapper {
  padding: 40px 0 64px;
}

.profile-box {
  padding: 40px;
}

.profile-intro {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #818cf8);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 800;
}

.profile-box h1 {
  margin: 0 0 8px;
}

.profile-section + .profile-section {
  margin-top: 30px;
}

.profile-list {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.95rem;
}


@media (max-width: 900px) {
  .card-grid,
  .content-layout,
  .profile-intro {
    grid-template-columns: 1fr;
  }

  .hero-box,
  .article,
  .sidebar,
  .profile-box {
    padding: 28px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
