/*
Theme Name: AI Review Studio
Theme URI: https://syanhuro-kgame.com
Author: Yuzumi
Description: AI研究、ツール検証、商品レビューを読みやすく届けるブログテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ai-review-studio
*/

:root {
  --amz-orange: #ff9900;
  --amz-gold: #f3c14b;
  --amz-dark: #131921;
  --amz-navy: #232f3e;
  --amz-blue: #0073bb;
  --ok: #14804a;
  --danger: #d73a31;
  --text: #18202f;
  --sub: #566070;
  --muted: #8a94a6;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --soft: #fff8ec;
  --line: #dde3eb;
  --shadow: 0 8px 24px rgba(18, 28, 45, .08);
  --shadow-sm: 0 2px 10px rgba(18, 28, 45, .07);
  --radius: 8px;
  --container: 1120px;
  --font: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--amz-dark);
  color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .22);
}

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

.brand-link {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #65d9ff, var(--amz-orange));
  color: #111;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(255, 153, 0, .28);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-kicker {
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  color: rgba(255, 255, 255, .82);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.hero {
  background: linear-gradient(135deg, var(--amz-dark), var(--amz-navy) 62%, #283f52);
  color: #fff;
  border-bottom: 4px solid var(--amz-orange);
}

.hero-inner {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 13px;
  border: 1px solid rgba(255, 153, 0, .42);
  border-radius: 999px;
  background: rgba(255, 153, 0, .14);
  color: #dff6ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 18px 0 14px;
  max-width: 720px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
}

.hero-panel {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .24);
}

.hero-panel-title {
  margin: 0 0 12px;
  color: var(--amz-navy);
  font-size: .88rem;
  font-weight: 900;
}

.quick-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--sub);
  font-size: .9rem;
}

.quick-list strong {
  color: var(--amz-orange);
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  padding: 38px 0 72px;
}

.main-content {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-count {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #fff;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  background: #fff;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff, #f2f5f8);
  color: var(--amz-orange);
  font-size: 2.4rem;
  font-weight: 900;
}

.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--amz-orange);
  color: #111;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.48;
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--amz-blue);
}

.card-excerpt {
  margin: 0;
  color: var(--sub);
  font-size: .88rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--amz-navy);
  font-size: .86rem;
  font-weight: 900;
}

.breadcrumb {
  margin-top: 18px;
  color: var(--muted);
  font-size: .8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.single-header {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.single-cat {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--soft);
  color: #a45b00;
  font-size: .78rem;
  font-weight: 900;
}

.single-title {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.35;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.single-thumbnail {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.single-thumbnail img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  padding: 24px;
}

.entry-content {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin: 34px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--amz-orange);
  color: var(--amz-navy);
  font-size: 1.22rem;
  line-height: 1.45;
}

.entry-content h3 {
  margin: 28px 0 10px;
  color: var(--amz-navy);
  font-size: 1.08rem;
}

.entry-content p {
  margin: 0 0 1.15em;
  color: var(--sub);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.entry-content li {
  margin-bottom: .35em;
}

.entry-content table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: .9rem;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.entry-content th {
  background: var(--soft);
  color: var(--amz-navy);
}

.article-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.article-footer-nav a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.article-footer-nav small {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  margin-bottom: 4px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.widget-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.widget-title {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: #a45b00;
  font-size: .88rem;
  font-weight: 900;
}

.widget-content {
  padding: 14px 16px;
}

.side-note {
  padding: 18px;
  border: 1px solid rgba(255, 153, 0, .35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.side-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amz-navy);
}

.side-note p {
  margin: 0;
  color: var(--sub);
  font-size: .88rem;
}

.widget-posts,
.widget-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-posts li,
.widget-cats li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.widget-posts li:last-child,
.widget-cats li:last-child {
  border-bottom: 0;
}

.widget-posts a,
.widget-cats a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
}

.widget-posts time,
.widget-cats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
}

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

.pagination a,
.pagination span {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.pagination .current {
  background: var(--amz-orange);
  border-color: var(--amz-orange);
  color: #111;
}

.no-posts {
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: auto;
  background: var(--amz-dark);
  color: rgba(255, 255, 255, .65);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0 30px;
}

.footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.footer-inner p,
.footer-inner li {
  color: rgba(255, 255, 255, .64);
  font-size: .86rem;
}

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

.footer-inner a {
  color: rgba(255, 255, 255, .72);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .45);
  font-size: .78rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero-inner,
  .content-area,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto 0;
    padding: 14px 16px;
    background: var(--amz-dark);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }
}

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

  .brand-kicker {
    display: none;
  }

  .hero-inner {
    padding: 34px 0;
  }

  .content-area {
    padding-top: 24px;
  }

  .entry-content,
  .single-header {
    padding: 20px;
  }

  .article-footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
