/* =========================================================
   Writing & Short Video Portfolio — white base / rose accent
   (reference: 003 / 004 / 005)
   ========================================================= */
:root {
  --bg: #fbf8f6;
  --white: #ffffff;
  --blush: #f7ecee;
  --blush-2: #f2dfe3;
  --rose: #b4536f;
  --rose-soft: #e9c6cf;
  --rose-mid: #d79cae;
  --tint: #fcf5f5;
  --ink: #2a2226;
  --text: #4d4347;
  --muted: #8a7d82;
  --line: #eee3e1;
  --dark: #2a2226;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 34, 38, .04), 0 16px 32px -24px rgba(120, 60, 80, .28);
  --shadow-lift: 0 2px 4px rgba(42, 34, 38, .05), 0 26px 44px -24px rgba(120, 60, 80, .38);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: #f3d3db; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(720px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 28px;
  padding: 0 max(24px, env(safe-area-inset-left)); background: rgba(251, 248, 246, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.wordmark { font-family: var(--latin); font-weight: 700; font-size: 13px; letter-spacing: .26em; margin-right: auto; }
.nav { display: flex; gap: 20px; }
.nav a { font-size: 13px; color: var(--text); padding: 13px 6px; border-radius: 8px; }
.nav a:hover { color: var(--rose); }
.header-cta { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; font-weight: 700; color: #fff; background: var(--dark); padding: 9px 16px; border-radius: 999px; }

/* ---------- shared ---------- */
.eyebrow { font-family: var(--latin); font-size: 11px; letter-spacing: .24em; font-weight: 700; color: var(--rose); margin: 0 0 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--rose-soft); vertical-align: middle; margin-right: 10px; }
.section { padding: 104px 0; scroll-margin-top: 64px; }
.section h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: .04em; margin: 0 0 14px; text-wrap: balance; }
.section-head { margin-bottom: 44px; }
.section-description { font-size: 14px; line-height: 1.95; color: var(--text); margin: 0; max-width: 560px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--dark); color: #fff; box-shadow: 0 12px 22px -14px rgba(42, 34, 38, .55); }
.btn-outline { background: var(--white); border: 1px solid #e9dbd8; color: var(--ink); }
.btn-soft { background: var(--blush); color: var(--rose); border: 1px solid var(--blush-2); }
.btn.is-disabled { color: var(--muted); background: #f6f1f0; border-color: var(--line); font-weight: 500; cursor: default; transform: none; }
.category-chip { display: inline-block; font-size: 11px; font-weight: 700; color: var(--rose); background: var(--blush); padding: 4px 10px; border-radius: 999px; }
.sample-chip { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--rose); padding: 4px 10px; border-radius: 999px; }
.empty-message, .error-message { font-size: 14px; color: var(--text); background: var(--white); border-radius: 12px; padding: 18px 20px; }

/* ---------- 1. hero ---------- */
.hero { padding: 72px 0 88px; background:
  radial-gradient(600px 380px at 85% 20%, rgba(233, 198, 207, .38), transparent 70%),
  radial-gradient(520px 320px at 8% 90%, rgba(242, 223, 227, .45), transparent 70%),
  linear-gradient(180deg, #fdf5f6, var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.35; letter-spacing: .02em; font-weight: 700; margin: 0 0 18px; text-wrap: balance; }
.hero h1 .line { display: block; }
.hero h1 .line:last-child { color: var(--rose); }
.hero-subtitle { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.hero-description { font-size: 14px; line-height: 2; color: var(--text); margin: 0 0 30px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { font-size: 12px; color: var(--text); background: var(--white); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: 0 1px 2px rgba(42, 34, 38, .03); }
.hero-preview { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); border-radius: 22px;
  padding: 30px 30px 26px; box-shadow: 0 24px 48px -28px rgba(120, 60, 80, .4); border: 1px solid var(--line); transform: rotate(1.2deg); transition: transform .3s; }
.hero-preview:hover { transform: rotate(0deg) translateY(-2px); }
.hero-preview::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 22px; background: var(--blush-2); }
.preview-label { font-family: var(--latin); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.preview-category { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--rose); background: var(--blush); padding: 4px 10px; border-radius: 999px; }
.preview-title { font-family: var(--serif); font-size: 20px; line-height: 1.55; font-weight: 600; }
.preview-lines { display: grid; gap: 8px; margin: 4px 0; }
.preview-lines i { height: 7px; border-radius: 4px; background: #f1e8e6; }
.preview-lines i.short { width: 60%; }
.preview-lead { font-size: 13px; line-height: 1.9; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preview-more { font-size: 13px; font-weight: 700; color: var(--rose); margin-top: 4px; }

/* ---------- 2. writing ---------- */
.writing { background: var(--tint); }
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-link { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 24px; }
.article-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-no { font-family: var(--latin); font-size: 12px; font-weight: 700; color: var(--rose-mid); letter-spacing: .1em; margin-right: 2px; }
.article-title { font-family: var(--serif); font-size: 18px; line-height: 1.65; font-weight: 600; margin: 0 0 12px; text-wrap: balance; }
.article-lead { font-size: 13px; line-height: 1.9; color: var(--text); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed #e8d5d2; }
.article-length { font-size: 12px; color: var(--muted); }
.read-more { font-size: 13px; font-weight: 700; color: var(--rose); }

/* ---------- 3. videos ---------- */
.videos { background: var(--bg); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.video-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.video-cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blush); }
.video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.video-cover:hover img { transform: scale(1.04); }
.video-cover.is-placeholder { background:
  radial-gradient(420px 300px at 50% 0%, rgba(255, 255, 255, .65), transparent 70%),
  linear-gradient(155deg, #faf0f2, #f4e2e8 55%, #f8edef); }
.placeholder-text { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-family: var(--latin); font-size: 10px; letter-spacing: .24em; color: #bd97a3; }
.cover-chip, .cover-sample { position: absolute; top: 12px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.cover-chip { left: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); }
.cover-sample { right: 12px; background: var(--rose); color: #fff; }
.play-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px; font-size: 15px; color: var(--rose); background: rgba(255, 255, 255, .94); box-shadow: 0 10px 26px -10px rgba(80, 30, 50, .4); transition: transform .3s; }
a.video-cover:hover .play-mark { transform: translate(-50%, -50%) scale(1.07); }
.video-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.video-title { font-size: 16px; line-height: 1.6; margin: 0 0 10px; text-wrap: balance; }
.video-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.roles-label { font-size: 11px; color: var(--muted); margin-right: 2px; }
.role-tag { font-size: 11px; font-weight: 700; color: var(--rose); background: var(--blush); padding: 3px 9px; border-radius: 999px; }
.video-description { font-size: 13px; line-height: 1.85; color: var(--text); margin: 0 0 16px; }
.video-btn { margin-top: auto; min-height: 44px; font-size: 13px; width: 100%; }

/* ---------- 4. about & contact ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.creator-row { display: flex; align-items: center; gap: 16px; margin: 26px 0 22px; }
.creator-icon { width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose); overflow: hidden; border: 1px solid var(--blush-2); }
.creator-icon img { width: 100%; height: 100%; object-fit: cover; }
.creator-role { font-family: var(--latin); font-size: 10px; letter-spacing: .18em; color: var(--rose); margin: 0 0 6px; }
.creator-name { font-size: 19px; font-weight: 700; margin: 0; }
.about-description { font-size: 14px; line-height: 2; color: var(--text); margin: 0 0 26px; white-space: pre-line; }
.details { margin: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 13px; font-weight: 700; }
.details dd { margin: 0; font-size: 13px; line-height: 1.85; color: var(--text); white-space: pre-line; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag { font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.contact-panel { background: linear-gradient(160deg, #fdf3f5, var(--blush)); border: 1px solid var(--blush-2); border-radius: 24px; padding: 34px 32px; scroll-margin-top: 80px; box-shadow: 0 24px 44px -32px rgba(120, 60, 80, .35); }
.contact-panel h3 { font-size: 22px; margin: 0 0 10px; }
.contact-text { font-size: 13px; line-height: 1.95; color: var(--text); margin: 0 0 22px; white-space: pre-line; }
.contact-buttons { display: grid; gap: 10px; }
.contact-buttons .btn { width: 100%; }

/* ---------- reader ---------- */
body.is-reading main { display: none; }
.reader { background: var(--white); min-height: 100vh; padding-bottom: 80px; }
.reader-bar { position: sticky; top: 64px; z-index: 10; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 24px; }
.reader-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--rose); padding: 10px 4px; margin: -10px -4px; }
.reader-article { padding-top: 48px; }
.reader-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.reader-title { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); line-height: 1.5; font-weight: 600; margin: 0 0 20px; outline: none; text-wrap: balance; }
.sample-note { font-size: 12px; color: var(--rose); background: var(--blush); padding: 10px 14px; border-radius: 10px; margin: 0 0 28px; }
.reader-body { font-size: 16px; line-height: 2.05; color: #3a3236; border-top: 1px solid var(--line); padding-top: 28px; }
.reader-body h2 { font-size: 19px; line-height: 1.6; margin: 44px 0 14px; padding: 2px 0 2px 14px; border-left: 4px solid var(--rose); }
.reader-body p { margin: 0 0 1.4em; }
.reader-body > :first-child { margin-top: 0; }
.reader-body ul, .reader-body ol { margin: 0 0 1.4em; padding: 18px 22px 18px 40px; background: var(--bg); border-radius: 12px; }
.reader-body li { margin: 2px 0; }
.reader-body strong { background: linear-gradient(transparent 62%, #f6d9e0 62%); }
.reader-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 52px 24px calc(48px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }
.site-footer .eyebrow { color: var(--muted); margin-bottom: 10px; }
.site-footer .eyebrow::before { display: none; }
.site-footer p { margin: 0; letter-spacing: .05em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-preview { max-width: 520px; }
  .article-list, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: 56px; gap: 14px; padding: 0 16px; }
  .wordmark { font-size: 12px; letter-spacing: .2em; }
  .nav { gap: 14px; } .nav a { font-size: 12px; }
  .header-cta { display: none; }
  .hero { padding: 52px 0 68px; }
  .hero-actions .btn { flex: 1 1 140px; padding: 0 16px; }
  .hero-preview { display: none; }  /* スマホでは記事一覧と重複するため非表示 */
  .section { padding: 76px 0; scroll-margin-top: 56px; }
  .section-head { margin-bottom: 30px; }
  .article-list, .video-grid { grid-template-columns: 1fr; gap: 20px; }  /* 005: スマホは縦1列 */
  .article-link { padding: 22px 20px 20px; }
  .video-body { padding: 20px 20px 22px; }
  .details > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-panel { padding: 28px 22px; }
  .reader-bar { top: 56px; padding: 12px 20px; }
  .reader-article { padding-top: 32px; }
  .reader-body { font-size: 15.5px; }
}
@media (max-width: 360px) {
  .nav a:nth-child(3) { display: none; }
}
