/* m.calclife.net メディアサイト用CSS - 2026-05-12 */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-card: #FFFFFF;
  --text: #1F2933;
  --text-muted: #52606D;
  --text-light: #7B8794;
  --border: #D9DEE7;
  --accent: #1F2F46;
  --accent-soft: #E8EEF7;
  --accent-strong: #15233A;
  --gold: #B7791F;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 14px rgba(0,0,0,0.08);
  --max-w: 1080px;
  --font: 'Hiragino Sans', 'Yu Gothic Medium', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo__main { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.logo__sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--text); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--accent); opacity: 1; text-decoration: none; }
.site-nav__about { background: var(--accent); color: white !important; padding: 0.4rem 0.9rem !important; border-radius: var(--radius); }
.site-nav__about:hover { background: var(--accent-strong); border-bottom-color: transparent !important; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); padding: 4rem 0 3.5rem; border-bottom: 1px solid var(--border); }
.hero__eyebrow { font-size: 0.875rem; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 1rem; }
.hero__title { font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.4; color: var(--accent); margin-bottom: 1.5rem; letter-spacing: 0.02em; }
.hero__lead { font-size: 1.0625rem; line-height: 1.9; color: var(--text); margin-bottom: 1.25rem; max-width: 720px; }
.hero__lead strong { color: var(--accent); font-weight: 600; }
.hero__meta { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--text-muted); }

/* Section title */
.section-title { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--accent); margin-bottom: 2rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* Editorial promise */
.editorial-promise { padding: 4rem 0; background: var(--bg); }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.promise-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.promise-card h3 { font-size: 1.0625rem; color: var(--accent); margin-bottom: 0.75rem; font-weight: 700; }
.promise-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.8; }
.promise-card code { background: var(--bg-soft); padding: 1px 6px; font-size: 0.85em; border-radius: 3px; font-family: 'Menlo', 'Consolas', monospace; }

/* Featured articles */
.featured-articles { padding: 4rem 0; background: var(--bg-soft); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-card--featured { grid-column: span 2; background: var(--accent-soft); border-color: var(--accent); }
@media (max-width: 720px) { .article-card--featured { grid-column: span 1; } }
.article-card a { display: block; padding: 1.5rem; color: inherit; }
.article-card a:hover { text-decoration: none; opacity: 1; }
.article-card__category { font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.article-card__title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: var(--accent); line-height: 1.5; margin-bottom: 0.75rem; }
.article-card--featured .article-card__title { font-size: 1.375rem; }
.article-card__excerpt { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; }
.article-card__meta { font-size: 0.8125rem; color: var(--text-light); }
.article-card--coming { background: var(--bg-soft); padding: 1.5rem; opacity: 0.7; }
.article-card--coming:hover { transform: none; box-shadow: var(--shadow); }

/* Editorial team / profile */
.editorial-team { padding: 4rem 0; }
.profile-card { display: flex; align-items: flex-start; gap: 1.5rem; padding: 2rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 800px; }
@media (max-width: 600px) { .profile-card { flex-direction: column; align-items: center; text-align: center; } }
.profile-card__avatar { flex-shrink: 0; }
.profile-card__name { font-weight: 700; font-size: 1.125rem; color: var(--accent); margin-bottom: 0.25rem; }
.profile-card__role { color: var(--text-muted); margin-bottom: 0.75rem; }
.profile-card__role strong { color: var(--accent); }
.profile-card__desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.profile-card__desc strong { color: var(--text); }
.profile-card__cta a { font-weight: 600; }

/* Sister site */
.sister-site { padding: 4rem 0; background: var(--bg-soft); border-top: 1px solid var(--border); }
.sister-site p { max-width: 720px; font-size: 1rem; color: var(--text-muted); }
.sister-site strong { color: var(--text); }

/* Footer */
.site-footer { background: var(--accent); color: rgba(255,255,255,0.85); padding: 3rem 0 1.5rem; font-size: 0.875rem; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.footer-desc { line-height: 1.7; color: rgba(255,255,255,0.7); }
.footer-col h4 { color: white; font-size: 0.9375rem; margin-bottom: 0.75rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: white; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.6); }

/* Article body */
.article-body { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; }
.article-body h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.4; color: var(--accent); margin-bottom: 1rem; letter-spacing: 0.02em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; font-size: 0.875rem; color: var(--text-muted); }
.article-byline { color: var(--accent); font-weight: 600; }
.article-body h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); margin: 3rem 0 1rem; padding-left: 0.875rem; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 1.1875rem; color: var(--accent); margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; line-height: 1.9; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.8; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.625rem 0.875rem; text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 600; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 0.5rem 1.25rem; background: #FFFBF0; color: var(--text); margin: 1.5rem 0; font-style: italic; border-radius: 4px; }
.callout { padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); border-left: 4px solid var(--accent); }
.callout--advice { background: #FFFBF0; border-color: var(--gold); border-left-color: var(--gold); }
.callout--warning { background: #FEF2F2; border-color: #DC2626; border-left-color: #DC2626; }
.callout__title { font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.callout--advice .callout__title { color: var(--gold); }
.callout--warning .callout__title { color: #DC2626; }
.source-box { margin-top: 3rem; padding: 1.5rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 0.9375rem; }
.source-box h3 { font-size: 1rem; color: var(--accent); margin-bottom: 0.75rem; }
.source-box ul { margin-left: 1.25rem; }
.source-box li { margin-bottom: 0.375rem; }
.source-box__meta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-muted); }
.author-block { margin-top: 3rem; padding: 1.5rem; background: var(--accent-soft); border-radius: var(--radius-lg); display: flex; gap: 1rem; align-items: flex-start; }
.author-block__name { font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
.author-block__desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.toc__title { font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.toc ol { margin-left: 1.25rem; }
.toc li { margin-bottom: 0.25rem; font-size: 0.9375rem; }
.calc-embed { margin: 2rem 0; padding: 1.5rem; background: white; border: 2px dashed var(--accent); border-radius: var(--radius-lg); text-align: center; }
.calc-embed__title { font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.calc-embed__sub { color: var(--text-muted); font-size: 0.9375rem; }

/* Legal pages */
.legal-body { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; }
.legal-body h1 { font-family: var(--font-serif); font-size: 1.875rem; color: var(--accent); margin-bottom: 1rem; }
.legal-body h2 { font-size: 1.25rem; color: var(--accent); margin: 2rem 0 0.75rem; }
.legal-body p { margin-bottom: 1rem; line-height: 1.85; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem 1.5rem; }
.legal-body li { margin-bottom: 0.375rem; }

.article-hero {
  margin: -2rem -1.5rem 2rem;
  padding: 0;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
@media (max-width: 760px) {
  .article-hero { margin: -1rem -1rem 1.5rem; }
}


/* Phase 1 site-wide hero figures */
.site-hero, .page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}
.site-hero img, .page-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
@media (max-width: 760px) {
  .site-hero, .page-hero { padding: 1rem 1rem 0; }
}
