/* Tsukuiro (tsukuiro.com) — Portal, Guides & Legal Pages Design System */

:root {
  --bg-page: #f7f9f8;
  --bg-surface: #ffffff;
  --bg-soft: #eef3f1;
  --text-main: #1b2722;
  --text-sub: #475850;
  --text-muted: #6c7d75;
  --border: #dce5e0;
  --border-strong: #c2d1c9;

  --brand: #266f5a;
  --brand-hover: #1d5a48;
  --brand-soft: rgba(38, 111, 90, 0.1);
  --indigo: #4650d6;
  --indigo-soft: rgba(70, 80, 214, 0.1);
  --amber: #c47a18;
  --amber-soft: rgba(196, 122, 24, 0.11);
  --rose: #cc3a5b;
  --rose-soft: rgba(204, 58, 91, 0.1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(27, 39, 34, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 39, 34, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #266f5a, #3b6fd8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--text-main);
  text-decoration: none;
}

.site-nav a.nav-cta {
  background: var(--brand);
  color: #ffffff;
}

.site-nav a.nav-cta:hover {
  background: var(--brand-hover);
}

/* Containers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 22px 72px;
}

/* Hero Section */
.portal-hero {
  padding: 56px 0 44px;
}

.hero-card {
  background: linear-gradient(135deg, #1b3a32 0%, #266f5a 55%, #2d5aa0 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 46px 42px;
  box-shadow: var(--shadow-md);
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-card h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  opacity: 0.93;
  max-width: 720px;
  margin-bottom: 26px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-main {
  background: #ffffff;
  color: #1b3a32;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-hero-main:hover {
  text-decoration: none;
  opacity: 0.94;
}

.btn-hero-sub {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-sub:hover {
  background: rgba(255, 255, 255, 0.24);
  text-decoration: none;
}

/* Section Headings */
.section-block {
  padding: 36px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.section-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-sub);
}

/* App Showcase Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.app-icon.grammar { background: var(--indigo-soft); color: var(--indigo); }
.app-icon.affix { background: var(--brand-soft); color: var(--brand); }
.app-icon.flow { background: var(--amber-soft); color: var(--amber); }

.app-tag {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-sub);
}

.app-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.app-points {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-main);
}

.app-points li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 900;
}

.btn-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.15s;
}

.btn-card-open:hover {
  background: var(--brand-hover);
  text-decoration: none;
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  text-decoration: none;
}

.guide-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.guide-card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.guide-more {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand);
}

/* Article & Legal Page Styling */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article-paper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

.article-paper h1 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 15.5px;
  color: var(--text-sub);
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.article-paper h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-paper h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 10px;
  color: var(--brand);
}

.article-paper p {
  margin-bottom: 16px;
  font-size: 15.5px;
}

.article-paper ul,
.article-paper ol {
  margin: 12px 0 18px 24px;
}

.article-paper li {
  margin-bottom: 8px;
  font-size: 15px;
}

.info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
}

.info-box h4 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--brand);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.article-table th {
  background: var(--bg-soft);
  text-align: left;
  padding: 11px 14px;
  font-weight: 800;
  border-bottom: 2px solid var(--border);
}

.article-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.cta-practice-box {
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #edf7f3 0%, #eef2fb 100%);
  border: 1px solid var(--border-strong);
}

.cta-practice-box h3 {
  margin-top: 0;
  color: var(--text-main);
}

.cta-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.btn-primary-link:hover {
  background: var(--brand-hover);
  text-decoration: none;
}

.btn-outline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.btn-outline-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* Future Ad Slot Container (Safe spacing away from interactive controls) */
.ad-safe-slot {
  margin: 28px 0;
  text-align: center;
}

/* Roadmap / Feature Box on Portal */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.roadmap-step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--brand);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.roadmap-step h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.roadmap-step p {
  font-size: 13.5px;
  color: var(--text-sub);
}

/* Footer */
.site-footer {
  margin-top: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 36px 22px 42px;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-sub);
  max-width: 440px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 700;
}

.footer-links a {
  color: var(--text-sub);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

@media (max-width: 720px) {
  .hero-card {
    padding: 30px 22px;
  }
  .article-paper {
    padding: 26px 20px;
  }
}
