/* Arakaki Kensho ekotoba site v2.0  ―  warm / hand-drawn / mobile-first */

/* ===== トークン ===== */
:root {
  --paper: #F6EEDE;          /* 温かい生成りクリーム */
  --paper-soft: #FBF6EC;     /* カード・引用の明るい面 */
  --paper-tint: #F1E6D2;     /* タグ・帯の淡い面 */
  --ink: #3A322B;            /* 墨に寄せた文字色 */
  --ink-soft: #7A6F63;       /* 補助テキスト */
  --accent: #E1635B;         /* 落款の赤（CTA・見出し装飾） */
  --accent-soft: #EDA9A3;    /* 点線・淡い赤 */
  --accent-warm: #F0A93F;    /* 花の黄・橙 */
  --line: #E4D8C3;           /* 極薄の罫線 */
  --wood-l1: #E4C79B;        /* 明るい木 ハイライト */
  --wood-l2: #C9A56E;        /* 明るい木 ベース */
  --wood-l3: #A9814B;        /* 明るい木 影 */
  --wood-d1: #7A5333;        /* 濃い木 */
  --wood-d2: #593C22;
  --wood-d3: #3E2915;

  --shadow-card: 0 10px 26px rgba(58, 50, 43, 0.10);
  --shadow-frame: 0 16px 34px rgba(58, 50, 43, 0.20);
  --shadow-cta: 0 10px 20px rgba(225, 99, 91, 0.32);

  --wrap: 560px;             /* スマホ主体：本文は狭めに */
  --wide: 1080px;

  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-quote: "Zen Kurenaido", serif;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(240, 169, 63, 0.06), transparent 32%),
    radial-gradient(circle at 88% 92%, rgba(225, 99, 91, 0.05), transparent 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: .01em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ===== 落款印（ロゴマーク） ===== */
.hanko {
  --hk: var(--accent);
  display: inline-block;
  width: 1.55em; height: 1.55em;
  flex: 0 0 auto;
  border: 2.6px solid var(--hk);
  border-radius: 5px;
  position: relative;
  transform: rotate(-2deg);
}
.hanko::before {
  content: "";
  position: absolute;
  inset: 38% 22%;
  background: var(--hk);
  border-radius: 1.5px;
}

/* ===== 小花マーク ===== */
.flower {
  --petal: #F2A7B6;
  --center: var(--accent-warm);
  display: inline-block;
  width: 20px; height: 20px;
  flex: 0 0 auto;
  position: relative;
  background: var(--petal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Cellipse cx='50' cy='22' rx='15' ry='20'/%3E%3Cellipse cx='50' cy='78' rx='15' ry='20'/%3E%3Cellipse cx='22' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='78' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='30' cy='30' rx='14' ry='17' transform='rotate(-45 30 30)'/%3E%3Cellipse cx='70' cy='30' rx='14' ry='17' transform='rotate(45 70 30)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Cellipse cx='50' cy='22' rx='15' ry='20'/%3E%3Cellipse cx='50' cy='78' rx='15' ry='20'/%3E%3Cellipse cx='22' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='78' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='30' cy='30' rx='14' ry='17' transform='rotate(-45 30 30)'/%3E%3Cellipse cx='70' cy='30' rx='14' ry='17' transform='rotate(45 70 30)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.flower::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--center); }
.flower-red { --petal: var(--accent); --center: #fff; }
.flower-sm { width: 15px; height: 15px; }
.flower:nth-of-type(3n) { --petal: #A9C6E0; }
.flower:nth-of-type(3n+2) { --petal: #C9E4A6; }

/* ===== 装飾：花のあしらい（挿絵PNGを背景として端に） ===== */
.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
/* 角：ほぼ正方形の枠 */
.decor-tl, .decor-tr, .decor-bl, .decor-br { width: 124px; height: 124px; }
.decor-tr { top: -14px; right: -18px; }
.decor-tl { top: -14px; left: -18px; transform: scaleX(-1); }
.decor-br { bottom: -14px; right: -18px; transform: scaleY(-1); }
.decor-bl { bottom: -14px; left: -18px; transform: scale(-1, -1); }
/* 左右の端：縦長のスプリグ（上下反転はしない） */
.decor-lm, .decor-rm { width: 80px; height: 196px; top: 38%; }
.decor-lm { left: -22px; transform: scaleX(-1); }
.decor-rm { right: -22px; }
/* 本文の横：単体の花を小さく散らす（l1〜l3 / r1〜r3） */
.decor-l1, .decor-l2, .decor-l3, .decor-r1, .decor-r2, .decor-r3 {
  width: 36px; height: 36px; opacity: .7;
}
.decor-l1 { left: -10px; top: 22%; }
.decor-l2 { left: -6px;  top: 50%; }
.decor-l3 { left: -10px; top: 77%; }
.decor-r1 { right: -10px; top: 29%; }
.decor-r2 { right: -6px;  top: 55%; }
.decor-r3 { right: -10px; top: 82%; }
/* 装飾は常にコンテンツの背面へ（.decor は absolute のまま維持） */
.hero, .section, .inner { position: relative; }
.hero > *:not(.decor), .section > *:not(.decor), .inner > *:not(.decor) { position: relative; z-index: 1; }
.hero > .decor, .section > .decor, .inner > .decor { z-index: 0; }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(246, 238, 222, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand .hanko { font-size: 15px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: baseline; }
.brand-name .brand-main { font-size: 17px; letter-spacing: .02em; }
.brand-name .sep { color: var(--line); margin: 0 5px; font-weight: 500; }
.brand-name .brand-sub { color: var(--ink-soft); font-size: 12.5px; font-weight: 500; }

.site-nav { display: none; }

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  inset: 0 0 auto 0;
  top: 56px;
  background: rgba(246, 238, 222, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(58, 50, 43, 0.14);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 8px 22px 18px;
  animation: menuIn .25s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu a::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Cellipse cx='50' cy='22' rx='15' ry='20'/%3E%3Cellipse cx='50' cy='78' rx='15' ry='20'/%3E%3Cellipse cx='22' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='78' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='30' cy='30' rx='14' ry='17' transform='rotate(-45 30 30)'/%3E%3Cellipse cx='70' cy='30' rx='14' ry='17' transform='rotate(45 70 30)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Cellipse cx='50' cy='22' rx='15' ry='20'/%3E%3Cellipse cx='50' cy='78' rx='15' ry='20'/%3E%3Cellipse cx='22' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='78' cy='50' rx='20' ry='15'/%3E%3Cellipse cx='30' cy='30' rx='14' ry='17' transform='rotate(-45 30 30)'/%3E%3Cellipse cx='70' cy='30' rx='14' ry='17' transform='rotate(45 70 30)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.mobile-menu a:last-child { border-bottom: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; z-index: 60;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== ボタン（ピル型CTA） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-pill {
  width: 100%;
  max-width: 340px;
  padding: 17px 30px;
  font-size: 18px;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(180deg, #E97169 0%, var(--accent) 60%, #D9544C 100%);
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
}
.btn-pill .chev { font-weight: 400; transition: transform .2s; }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(225, 99, 91, 0.4); }
.btn-pill:hover .chev { transform: translateX(4px); }
.btn-pill:disabled { background: var(--line); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost {
  padding: 14px 26px;
  font-size: 15px;
  color: var(--accent);
  background: var(--paper-soft);
  border: 1.5px solid var(--accent-soft);
  border-radius: 999px;
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn-ig::before {
  content: "";
  width: 22px; height: 22px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 8a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.4' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 8a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.4' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== 木製フレーム ===== */
.frame {
  position: relative;
  padding: 15px;
  border-radius: 6px;
  background:
    linear-gradient(150deg, var(--wood-l1), var(--wood-l2) 42%, var(--wood-l3) 100%);
  box-shadow: var(--shadow-frame);
}
.frame::before {  /* 木目 */
  content: "";
  position: absolute; inset: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(115deg, rgba(70,40,15,.12) 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.frame::after { /* 内側の陰影 */
  content: "";
  position: absolute; inset: 15px;
  border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(62, 41, 21, 0.4);
  pointer-events: none;
}
.frame img { border-radius: 2px; position: relative; }
.frame--dark {
  background: linear-gradient(150deg, #8a5f3a, var(--wood-d1) 42%, var(--wood-d2) 100%);
  padding: 18px;
}
.frame--dark::after { inset: 18px; box-shadow: inset 0 2px 8px rgba(20, 12, 5, 0.55); }

/* ===== セクション ===== */
main { display: block; }
.section {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 62px 22px;
  overflow: hidden;
}
.section-alt { background: linear-gradient(180deg, rgba(241,230,210,.55), rgba(241,230,210,.25)); max-width: none; }
.section-alt > .inner { max-width: var(--wrap); margin: 0 auto; }

/* セクション見出し（バナー画像＋タイトル） */
.eyebrow { text-align: center; margin-bottom: 14px; position: relative; }
.section-banner { display: block; margin: 0 auto; width: min(86%, 340px); height: auto; }
/* バナーの左右に小さな花束を添える */
.eyebrow::before, .eyebrow::after {
  content: ""; position: absolute; top: 46%; width: 40px; height: 40px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: .9; pointer-events: none;
}
.eyebrow::before { left: 2%; background-image: url("images/decorations/deco-07.png"); transform: translateY(-50%); }
.eyebrow::after { right: 2%; background-image: url("images/decorations/deco-05.png"); transform: translateY(-50%) scaleX(-1); }
.eyebrow-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; color: var(--accent); margin: 0;
  letter-spacing: .12em;
}
.eyebrow-label .flower { width: 14px; height: 14px; }
.section-title {
  text-align: center;
  font-size: clamp(24px, 7.1vw, 34px);
  letter-spacing: .03em;
  margin-top: 6px;
}
/* 改行位置を整える：句（フレーズ）単位で折り返す */
.nb { white-space: nowrap; }
.section-lead {
  text-align: center; color: var(--ink-soft);
  font-size: 15px; margin: 14px auto 0; max-width: 30em;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  padding: 92px 22px 56px;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(25px, 7.2vw, 46px);
  line-height: 1.6;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.hero-sub {
  font-family: var(--font-quote);
  color: var(--ink-soft);
  font-size: 17px;
  margin: 18px auto 0;
  max-width: 26em;
}
.hero-art { margin: 34px auto 0; max-width: 400px; }
.hero-art figcaption {
  font-family: var(--font-quote); color: var(--ink-soft);
  margin-top: 14px; font-size: 15px;
}

/* ===== ヒーローのカルーセル ===== */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 6px; }
.carousel-track { display: flex; will-change: transform; transition: transform 1.7s cubic-bezier(.4, 0, .15, 1); }
.carousel.no-anim .carousel-track { transition: none; }
.c-slide { flex: 0 0 100%; min-width: 0; margin: 0; opacity: .35; transition: opacity 1.6s ease; }
.c-slide.is-active { opacity: 1; }
.c-slide .frame { cursor: zoom-in; }
.c-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(251, 246, 236, 0.9);
  color: var(--ink); font-size: 24px; line-height: 1; font-family: var(--font-display);
  box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, transform .2s; z-index: 3;
}
.c-arrow:hover { background: #fff; }
.c-prev { left: -6px; }
.c-next { right: -6px; }
.c-dots { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.c-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: var(--line); cursor: pointer; transition: background-color .2s, transform .2s;
}
.c-dot.active { background: var(--accent); transform: scale(1.25); }

/* ===== お知らせ：チラシ ===== */
.news-flyer { margin: 18px 0 0; }
.news-flyer img {
  border-radius: 8px; border: 1px solid var(--line);
  box-shadow: var(--shadow-card); cursor: zoom-in; margin: 0 auto;
  max-width: 300px; width: 100%;
}
.news-flyer figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.hero-actions { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ===== 作品ページ ===== */
.works-page { padding-top: 92px; }
.works-top { text-align: left; margin-bottom: 6px; }
.works-back {
  display: inline-flex; align-items: center; font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.works-back:hover { color: var(--accent); border-color: var(--accent-soft); }

/* ===== ギャラリー ===== */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.work-card { margin: 0; }
.work-card .frame { cursor: zoom-in; transition: transform .25s; }
.work-card .frame:hover { transform: translateY(-4px); }
.work-caption {
  font-family: var(--font-quote); font-size: 17px;
  text-align: center; margin-top: 15px; line-height: 1.75;
}
.gallery-more { text-align: center; margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.gallery-note { color: var(--ink-soft); line-height: 2; margin: 0; }
.inline-link { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* ===== 絵 ===== */
.painting-list, .poem-list, .book-list { display: flex; flex-direction: column; gap: 54px; }
.painting { margin: 0; }
.painting .frame { cursor: zoom-in; }
.painting figcaption { text-align: center; margin-top: 18px; }
.painting figcaption h3 { font-size: 22px; margin-bottom: 10px; }
.painting figcaption p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== 詩 ===== */
.poem { text-align: center; }
.poem .frame { cursor: zoom-in; max-width: 340px; margin: 0 auto; }
.poem-text { margin-top: 22px; }
.poem-text h3 { font-family: var(--font-quote); font-size: 24px; color: var(--accent); margin-bottom: 12px; }
.poem-body { font-family: var(--font-quote); font-size: 19px; line-height: 2.1; margin: 0; }

/* ===== 引用ボックス ===== */
.quotebox {
  position: relative;
  background: var(--paper-soft);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  max-width: 30em;
  margin: 26px auto 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.quotebox .flower { margin-top: 4px; }
.quotebox p { margin: 0; font-family: var(--font-quote); font-size: 17px; line-height: 1.9; }
.quotebox .hanko { position: absolute; right: 16px; bottom: 14px; font-size: 13px; opacity: .9; }

/* ===== 想い ===== */
.section-story { text-align: center; }
.story-body { max-width: 26em; margin: 26px auto 0; }
.story-body p { font-size: 16px; margin: 0 0 18px; }
.story-portrait { margin: 30px auto 0; max-width: 300px; }
.story-portrait figcaption { font-family: var(--font-quote); color: var(--ink-soft); margin-top: 12px; font-size: 14px; }
.story-sign { font-family: var(--font-quote); color: var(--accent); font-size: 18px; margin-top: 22px; }

/* ===== コンセプト ===== */
.section-concept { text-align: center; }
.concept-list {
  list-style: none; padding: 0; margin: 28px auto 0; max-width: 22em;
  display: flex; flex-direction: column; gap: 14px;
}
.concept-list li {
  display: flex; align-items: center; gap: 15px; text-align: left;
  background: var(--paper-soft); border-radius: 14px; padding: 16px 22px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
}
.concept-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.concept-note { max-width: 26em; margin: 26px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 1.95; }

/* ===== 作品サイズの注記 ===== */
.size-note {
  width: fit-content; margin: 14px auto 0;
  font-size: 12.5px; color: var(--ink-soft);
  background: var(--paper-tint); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 16px;
}

/* ===== プロフィール ===== */
.profile {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  max-width: 30em; margin: 34px auto 0;
  background: var(--paper-soft); border-radius: 16px; padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.profile-portrait { margin: 0; max-width: 190px; }
.profile-portrait .frame { padding: 10px; }
.profile-body { text-align: center; }
.profile-name {
  font-size: 22px; display: flex; align-items: baseline; justify-content: center; gap: 10px;
}
.profile-place { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.profile-bio { font-size: 14.5px; text-align: left; line-height: 1.95; margin: 16px 0 0; }
.profile-ig { margin: 14px 0 0; font-family: var(--font-display); }
.profile-books { text-align: left; margin: 20px 0 0; border-top: 1px dashed var(--line); padding-top: 16px; }
.profile-books-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.profile-books ul { list-style: none; padding: 0; margin: 0; }
.profile-books li { position: relative; padding: 5px 0 5px 16px; font-size: 14px; line-height: 1.7; }
.profile-books li::before { content: "・"; position: absolute; left: 0; color: var(--accent); }

/* ===== 絵本（立体表紙） ===== */
.book { margin: 0; text-align: center; }
.book-covers {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 18px; margin-bottom: 26px; perspective: 1000px;
}
.book-cover {
  position: relative;
  border-radius: 3px 6px 6px 3px;
  box-shadow:
    -3px 0 0 rgba(0,0,0,.06),
    14px 16px 26px rgba(58, 50, 43, 0.28);
  overflow: hidden;
  transition: transform .3s;
}
.book-cover::before { /* 背表紙のハイライト */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(0,0,0,.08));
  z-index: 2;
}
.book-cover img { border-radius: 3px 6px 6px 3px; cursor: zoom-in; }
.book-cover:hover { transform: translateY(-5px) rotate(-1deg); }
.book-cover-1 { width: 60%; max-width: 220px; transform: rotate(-2deg); }
.book-cover-2 { width: 46%; max-width: 168px; transform: rotate(3deg); margin-bottom: 8px; }
.book-titles { list-style: none; padding: 0; margin: 0 auto 20px; display: inline-block; text-align: left; }
.book-titles li { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 16px; padding: 7px 0; line-height: 1.6; }
.book-titles .flower { align-self: flex-start; margin-top: 4px; }
.book-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--accent); background: var(--paper-tint);
  border-radius: 5px; padding: 1px 8px; margin-left: 8px;
  vertical-align: middle; letter-spacing: .08em;
}
.book-pub { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.book-desc { color: var(--ink-soft); font-size: 14.5px; max-width: 26em; margin: 0 auto 18px; }
.book-buy { font-size: 15px; max-width: 26em; margin: 0 auto 20px; line-height: 1.8; }
.book-buy strong { color: var(--accent); }
.book-single { display: flex; flex-direction: column; align-items: center; }

/* ===== お知らせ ===== */
.news-card {
  position: relative;
  background: var(--paper-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  margin-bottom: 22px;
}
.news-card .flower-top { display: block; margin: 0 auto 8px; }
.news-title { text-align: center; font-size: 20px; margin-bottom: 6px; }
.news-badge {
  display: inline-block; font-family: var(--font-display); font-weight: 500;
  font-size: 12px; color: #fff; background: var(--accent);
  padding: 3px 14px; border-radius: 999px; margin: 0 auto 12px;
}
.news-badge-past { background: var(--ink-soft); }
.news-center { text-align: center; }
.news-rule { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; }
.news-rule::before, .news-rule::after { content: ""; width: 40px; border-top: 2px dotted var(--accent-soft); }
.news-detail { margin: 6px 0 0; }
.news-detail > div { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; justify-content: center; flex-wrap: wrap; }
.news-tag {
  font-family: var(--font-display); font-size: 13px; color: var(--accent);
  background: var(--paper-tint); border-radius: 6px; padding: 3px 14px;
  letter-spacing: .3em; flex: 0 0 auto;
}
.news-detail dd { margin: 0; font-size: 15px; font-weight: 500; }
.news-closed { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--accent); font-weight: 500; }
.news-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }
.news-note a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* ===== お問い合わせ（リース） ===== */
.contact-wreath {
  position: relative;
  width: 260px; height: 260px;
  margin: 10px auto 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.contact-wreath::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wood-l2);
  box-shadow: inset 0 0 0 5px rgba(201,165,110,.28);
  opacity: .8;
}
.contact-envelope {
  width: 62px; height: 44px; position: relative; margin-bottom: 12px;
  border: 2.4px solid var(--ink); border-radius: 5px; background: var(--paper-soft);
}
.contact-envelope::before {
  content: ""; position: absolute; inset: -2.4px -2.4px auto -2.4px; height: 26px;
  border: 2.4px solid var(--ink); border-radius: 5px 5px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.contact-envelope::after {
  content: ""; position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 15px; height: 15px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C7 17 3 13 3 8.5 3 6 5 4 7.5 4 9.5 4 11 5.2 12 6.7 13 5.2 14.5 4 16.5 4 19 4 21 6 21 8.5 21 13 17 17 12 21Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C7 17 3 13 3 8.5 3 6 5 4 7.5 4 9.5 4 11 5.2 12 6.7 13 5.2 14.5 4 16.5 4 19 4 21 6 21 8.5 21 13 17 17 12 21Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.contact-handle { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }
.contact-mini { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.contact-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 18px; }

/* お問い合わせフォーム（Googleフォーム埋め込み） */
.contact-form { max-width: 480px; margin: 22px auto 0; }
.contact-form iframe {
  width: 100%; height: 1150px; border: none; border-radius: 14px;
  background: var(--paper-soft); box-shadow: var(--shadow-card);
}
.contact-or {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 360px; margin: 30px auto 8px; color: var(--ink-soft); font-size: 14px;
}
.contact-or::before, .contact-or::after { content: ""; flex: 1; height: 0; border-top: 1px dashed var(--line); }

/* ===== SNS ===== */
.section-sns { text-align: center; }
.sns-lead { color: var(--ink-soft); margin: 6px auto 24px; max-width: 26em; }

/* ===== フッター ===== */
.site-footer { background: var(--ink); color: #E9E1D4; padding: 46px 22px 26px; margin-top: 10px; }
.footer-inner { max-width: var(--wide); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .hanko { --hk: #EDA9A3; font-size: 14px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0; }
.footer-place { color: #A79C8D; font-size: 13px; margin: 4px 0 18px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 auto 18px; max-width: 400px; }
.footer-nav a { font-size: 14px; color: #C7BDAD; }
.footer-nav a:hover { color: #fff; }
.footer-sns a { font-size: 14px; color: #C7BDAD; }
.footer-sns a:hover { color: var(--accent-warm); }
.copyright { text-align: center; color: #8C8375; font-size: 12px; margin: 26px 0 0; }

/* ===== ライトボックス ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(40, 33, 27, 0.92);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; border-radius: 4px; background: #fff; padding: 10px; }
.lightbox-figure figcaption { color: #EDE5D8; font-family: var(--font-quote); margin-top: 12px; font-size: 15px; }
.lightbox-close {
  position: absolute; top: 16px; right: 18px; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.16);
  color: #fff; font-size: 26px; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ===== スクロールで浮き出る演出 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.99);
  transition: opacity 1.9s ease, transform 2s cubic-bezier(.16, .82, .28, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* 作品カードはやや大きめに浮き上がる */
.work-card.reveal, .painting.reveal, .poem.reveal, .book.reveal, .hero-art.reveal {
  transform: translateY(52px) scale(.965);
}
.work-card.reveal.is-visible, .painting.reveal.is-visible, .poem.reveal.is-visible,
.book.reveal.is-visible, .hero-art.reveal.is-visible { transform: none; }
/* ギャラリーは少しずつ遅らせてカスケード */
.gallery-grid .work-card:nth-child(2) { transition-delay: .08s; }
.gallery-grid .work-card:nth-child(3) { transition-delay: .16s; }
.gallery-grid .work-card:nth-child(4) { transition-delay: .24s; }

/* =====================================================
   タブレット以上（min-width:768px）
   ===================================================== */
@media (min-width: 768px) {
  :root { --wrap: 680px; }

  .site-nav {
    display: flex; gap: 22px;
  }
  .site-nav a { font-size: 14px; color: var(--ink-soft); position: relative; padding: 4px 0; }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
  .site-nav a:hover::after { width: 100%; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .brand-name { font-size: 17px; }

  .section { padding: 88px 24px; }
  .decor-tl, .decor-tr, .decor-bl, .decor-br { width: 184px; height: 184px; }
  .decor-tl, .decor-tr { top: -26px; }
  .decor-bl, .decor-br { bottom: -26px; }
  .decor-tl { left: -46px; } .decor-tr { right: -46px; }
  .decor-bl { left: -46px; } .decor-br { right: -46px; }
  .decor-lm, .decor-rm { width: 118px; height: 300px; }
  .decor-lm { left: -44px; } .decor-rm { right: -44px; }
  .decor-l1, .decor-l2, .decor-l3, .decor-r1, .decor-r2, .decor-r3 { width: 52px; height: 52px; }
  .decor-l1, .decor-l2, .decor-l3 { left: -40px; }
  .decor-r1, .decor-r2, .decor-r3 { right: -40px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }

  /* 絵・詩：横並び */
  .painting, .poem {
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; text-align: left;
  }
  .painting-reverse, .poem-reverse { direction: rtl; }
  .painting-reverse > *, .poem-reverse > * { direction: ltr; }
  .painting figcaption, .poem-text { text-align: left; margin-top: 0; }
  .poem .frame { margin: 0; }
  .poem-reverse .frame { margin-left: auto; }

  /* プロフィール：横並び */
  .profile { flex-direction: row; align-items: flex-start; gap: 26px; max-width: 40em; padding: 32px 30px; }
  .profile-portrait { flex: 0 0 190px; }
  .profile-body { text-align: left; }
  .profile-name { justify-content: flex-start; }

  .book-covers { gap: 26px; }
  .book-cover-1 { max-width: 240px; }
  .book-cover-2 { max-width: 190px; }

  .news-detail > div { flex-wrap: nowrap; }
}

@media (min-width: 1024px) {
  .hero { max-width: var(--wide); }
  .hero-title { font-size: 50px; }
}

/* 狭いスマホでは横の花を隠し、装飾を控えめに（作品を主役に） */
@media (max-width: 560px) {
  .decor { opacity: .8; }
  .decor-tl, .decor-tr, .decor-bl, .decor-br { width: 104px; height: 104px; }
  /* 本文の横：小さめ・控えめに端から覗かせる */
  .decor-lm, .decor-rm { width: 58px; height: 150px; opacity: .6; }
  .decor-lm { left: -16px; }
  .decor-rm { right: -16px; }
}

/* ===== モーション配慮 ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
