/* 2026「税を考える週間」花の種配布イベントページ本文のスタイル
   ヘッダー・フッターは公式サイトの official/css/{reset,layout}.css をそのまま使う。
   公式の reset.css はスマホ幅で html の文字サイズを 1px にするため、ここでは rem を使わず px で指定する。
   「種から芽が出て花が咲く」をテーマに、配色は若葉の緑・花のピンク・ひだまりの黄・空の水色・土の茶。 */
.tx {
  --leaf: #5aad4e;
  --leaf-deep: #3f8a3a;
  --leaf-pale: #eef8e9;
  --petal: #f48fb1;
  --petal-deep: #d9608a;
  --sun: #f6c23e;
  --sun-deep: #e0a21c;
  --sky: #bfe6f5;
  --soil: #7a5534;
  --cream: #fffdf6;
  --text: #34402f;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  word-break: auto-phrase;
}
.tx *, .tx *::before, .tx *::after { box-sizing: border-box; }
/* 公式 reset.css の line-height:160% は px に固定されて引き継がれるため、倍率で指定し直す */
.tx :where(p, li, dt, dd, div, span, h4, h5, figure, figcaption, section) { line-height: 1.85; }
.tx img { max-width: 100%; height: auto; display: block; }
.tx a { color: var(--leaf-deep); }
.tx h2, .tx h3, .tx h4, .tx h5, .tx strong, .tx b { font-weight: bold; }
.tx ul, .tx ol, .tx dl, .tx dd { list-style: none; margin: 0; padding: 0; }
.tx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tx-nowrap { white-space: nowrap; }
.tx-sp { display: none; }

/* 見出しなどの丸ゴシック */
.tx-hero-title, .tx-hero-stamp, .tx-hero-copy, .tx-sec-title .ja, .tx-big, .tx-mid, .tx-count b,
.tx-guest-name, .tx-closing-copy, .tx-lead, .tx-about-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
}
/* 手書き風(ペン字) */
.tx-hero-kicker, .tx-quote p, .tx-list dt {
  font-family: "Klee One", "Zen Maru Gothic", sans-serif;
  font-weight: 600;
}

/* 本文エリア(公式の #contents 内) */
#contents.tx { box-sizing: border-box; padding: 20px 20px 64px; }
.tx .blueTit01 { margin-bottom: 10px; line-height: 1.5; }

.tx-meta { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; font-size: 13px; }
.tx-badge { background: #e57a95; color: #fff; padding: 1px 12px; }
.tx-meta time { color: #888; font-weight: bold; }

/* ===== メインビジュアル(イラスト) ===== */
.tx-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sky);
}
.tx-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 絵の中の動き。SVG の transform 属性(位置)を消さないよう、動かすのは内側の g だけ */
.tx-hero-art .tx-sway, .tx-hero-art .tx-hop, .tx-hero-art .tx-twinkle, .tx-hero-art .tx-wings { transform-box: fill-box; }
.tx-hero-art .tx-sway { transform-origin: 50% 100%; animation: tx-sway 3.6s ease-in-out infinite; }
.tx-hero-art .tx-hop { transform-origin: 50% 100%; animation: tx-hop 2.6s ease-in-out infinite; }
.tx-hero-art .tx-spin { animation: tx-spin 24s linear infinite; }
.tx-hero-art .tx-drift { animation: tx-drift 9s ease-in-out infinite; }
.tx-hero-art .tx-drift-2 { animation-duration: 11s; animation-direction: reverse; }
.tx-hero-art .tx-twinkle { transform-origin: 50% 50%; animation: tx-twinkle 2.4s ease-in-out infinite; }
.tx-hero-art .tx-flutter { animation: tx-flutter 7s ease-in-out infinite; }
.tx-hero-art .tx-flutter-2 { animation-duration: 8.5s; animation-direction: reverse; }
.tx-hero-art .tx-wings { transform-origin: 50% 50%; animation: tx-flap .35s ease-in-out infinite alternate; }
.tx-hero-art .tx-d1 { animation-delay: -1.2s; }
.tx-hero-art .tx-d2 { animation-delay: -2.1s; }
@keyframes tx-spin { to { transform: rotate(360deg); } }
@keyframes tx-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
@keyframes tx-twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes tx-flutter { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(26px, -18px) rotate(6deg); } 50% { transform: translate(50px, 4px) rotate(-4deg); } 75% { transform: translate(20px, 14px) rotate(8deg); } }
@keyframes tx-flap { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
.tx-hero-text {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 15%;
  text-align: center;
}
.tx-hero-kicker {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: var(--leaf-deep);
  font-size: 20px;
  letter-spacing: 2px;
}
.tx-hero-title { margin: 0; color: var(--leaf-deep); font-size: 60px; line-height: 1.25; letter-spacing: 4px; }
.tx-hero-title span {
  /* 白いフチ取り */
  paint-order: stroke;
  -webkit-text-stroke: 10px #fff;
}
.tx-hero-copy {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 30px;
  border-radius: 999px;
  background: var(--petal);
  color: #fff;
  font-size: 30px;
  letter-spacing: 3px;
  box-shadow: 0 4px 0 var(--petal-deep);
  animation: tx-pop .9s .3s cubic-bezier(.2, 1.6, .4, 1) both;
}
.tx-hero-copy small { font-size: 22px; margin: 0 2px; }

/* 右上の花の形のシール */
.tx-hero-stamp {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 22px;
  width: 140px;
  height: 140px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23ff8fb5'%3E%3Ccircle cx='81' cy='50' r='18'/%3E%3Ccircle cx='71.9' cy='71.9' r='18'/%3E%3Ccircle cx='50' cy='81' r='18'/%3E%3Ccircle cx='28.1' cy='71.9' r='18'/%3E%3Ccircle cx='19' cy='50' r='18'/%3E%3Ccircle cx='28.1' cy='28.1' r='18'/%3E%3Ccircle cx='50' cy='19' r='18'/%3E%3Ccircle cx='71.9' cy='28.1' r='18'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='34' fill='%23fff8e1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23ffc1d6' stroke-width='1.6' stroke-dasharray='3 3'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--petal-deep);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  filter: drop-shadow(0 5px 8px rgba(217, 96, 138, .3));
  transform: rotate(8deg);
  animation: tx-bob 3.2s ease-in-out infinite;
}
.tx-hero-stamp-date { font-size: 30px; line-height: 1.05; letter-spacing: 1px; }
.tx-hero-stamp-date small { font-size: 15px; margin-left: 2px; }
@keyframes tx-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes tx-bob { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
@keyframes tx-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.tx-intro {
  margin: 28px auto 0;
  max-width: 700px;
  text-align: center;
  font-size: 16px;
}
.tx-intro strong { color: var(--leaf-deep); }
.tx-intro .tx-hl { color: var(--petal-deep); background: linear-gradient(transparent 66%, rgba(246, 194, 62, .45) 66%); }

/* ===== もくじ ===== */
.tx-index { margin: 30px 0 8px; }
.tx-index ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tx-index li { --c: var(--leaf); }
.tx-index li:nth-child(2) { --c: var(--petal-deep); }
.tx-index li:nth-child(3) { --c: var(--sun-deep); }
.tx-index a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--c);
  box-shadow: 0 4px 0 var(--c);
  color: var(--text);
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.tx-index a::after { content: "▼"; font-size: 9px; color: var(--c); }
.tx-index svg { flex: none; width: 18px; height: 18px; fill: var(--c); }
.tx-index a:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--c); }

/* ===== セクション見出し(双葉) ===== */
.tx-sec { margin-top: 68px; scroll-margin-top: 20px; }
.tx-sec-title { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 0 30px; padding-top: 40px; text-align: center; }
.tx-sec-title::before {
  /* 見出しの上の双葉 */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 40px;
  margin-left: -24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M24 40V20' stroke='%233f8a3a' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M24 24C22 13 13 8 4 10c2 10 10 15 20 14z' fill='%237cc36a'/%3E%3Cpath d='M24 20c2-11 11-16 20-14-2 10-10 15-20 14z' fill='%235aad4e'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tx-sec-title .ja { color: var(--leaf-deep); font-size: 30px; line-height: 1.35; letter-spacing: 3px; }
.tx-sec-title .en {
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--leaf-pale);
  color: var(--leaf);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  line-height: 1.8;
}

/* ===== 開催概要(種の袋のようなカード) ===== */
.tx-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 40px 24px;
  border-radius: 18px;
  background: var(--cream);
  border: 3px solid var(--leaf);
  box-shadow: 8px 8px 0 var(--leaf-pale);
}
.tx-count {
  position: absolute;
  top: -22px;
  right: 24px;
  margin: 0;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--petal);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--petal-deep);
  transform: rotate(3deg);
}
.tx-count[hidden] { display: none; }
.tx-count b { margin-left: 6px; font-size: 22px; line-height: 1.2; }
.tx-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 2px dotted #cfe5c6;
}
.tx-list > div:last-child { border-bottom: 0; }
.tx-list dt {
  padding: 2px 0;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-size: 17px;
  text-align: center;
  letter-spacing: 2px;
}
.tx-list dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.tx-big { font-size: 30px; line-height: 1.35; letter-spacing: 1px; }
.tx-big small { font-size: 17px; }
.tx-big i { font-style: normal; font-size: 22px; margin-left: 4px; color: var(--leaf); }
.tx-mid { font-size: 20px; line-height: 1.5; }
.tx-sub { font-size: 14px; color: #6b7466; }

/* ===== 花の種に込めた思い ===== */
.tx-quote {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 30px 34px 120px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 20%, rgba(244, 143, 177, .25) 0 30px, transparent 31px),
    radial-gradient(circle at 85% 82%, rgba(246, 194, 62, .3) 0 22px, transparent 23px),
    var(--leaf-pale);
}
.tx-quote-sprout { position: absolute; left: 30px; top: 50%; width: 72px; height: 72px; margin-top: -40px; animation: tx-grow 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes tx-grow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(-3deg); } }
.tx-quote p { margin: 0; color: var(--leaf-deep); font-size: 25px; line-height: 1.7; }
.tx-quote p::before, .tx-quote p::after { color: var(--petal); font-size: 30px; }
.tx-quote p::before { content: "「"; margin-left: -.5em; }
.tx-quote p::after { content: "」"; }
.tx-quote-note { margin: 12px 0 0; text-align: center; font-size: 14px; color: #6b7466; }

.tx-about {
  max-width: 720px;
  margin: 34px auto 0;
  padding: 22px 28px;
  border-radius: 16px;
  border: 2px dashed #b9dcae;
  background: #fff;
}
.tx-about-title { margin: 0 0 8px; color: var(--soil); font-size: 19px; }
.tx-about-title::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--sun); color: #fff; font-size: 16px; vertical-align: 2px; }
.tx-about p { margin: 0; }
.tx-about strong { color: var(--petal-deep); }

/* ===== イータ君・チーバくん ===== */
.tx-lead { margin: -8px 0 26px; text-align: center; font-size: 19px; color: var(--soil); }
.tx .tx-guests { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.tx-guest {
  position: relative;
  padding: 28px 16px 26px;
  border-radius: 20px;
  background: #fff;
  border: 3px solid var(--c);
  box-shadow: 0 6px 0 var(--c);
  text-align: center;
}
.tx-anim .tx-guest:nth-child(2) { transition-delay: .15s; }
.tx-guest::before {
  /* 「ようこそ」の吹き出し */
  content: "ようこそ！";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.9;
  white-space: nowrap;
}
#contents.tx .tx-guest-img { width: 200px; height: 200px; margin: 0 auto 8px; object-fit: contain; border-radius: 16px; transition: transform .4s; } /* 公式の #wrapper img に勝たせる */
.tx-guest:hover .tx-guest-img { transform: translateY(-6px) rotate(-3deg); }
.tx-guest-from { margin: 0; font-size: 14px; color: #6b7466; font-weight: bold; }
.tx-guest-name { margin: 2px 0 0; color: var(--c); font-size: 36px; line-height: 1.3; letter-spacing: 3px; }

.tx-caution { margin: 40px 0 0; text-align: center; font-size: 14px; color: #6b7466; }

/* ===== 締め ===== */
.tx-closing {
  position: relative;
  margin-top: 40px;
  padding: 40px 24px 36px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, #f3fbf4, var(--leaf-pale));
}
.tx-closing > p { margin: 0 0 16px; }
.tx-closing-row { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.tx-closing-row svg { width: 56px; height: 56px; animation: tx-hop 2.4s ease-in-out infinite; }
.tx-closing-row svg:nth-child(2) { animation-delay: .2s; }
.tx-closing-row svg:nth-child(3) { animation-delay: .4s; }
.tx-closing-row svg:nth-child(4) { animation-delay: .6s; }
.tx-closing-row svg:nth-child(5) { animation-delay: .8s; }
@keyframes tx-hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
.tx-closing .tx-closing-copy { margin-bottom: 18px; color: var(--leaf-deep); font-size: 30px; line-height: 1.4; letter-spacing: 2px; }
.tx-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--leaf-deep);
  transition: transform .15s, box-shadow .15s;
}
.tx-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--leaf-deep); }

/* ===== スクロールでふわっと表示(JS が使えるときだけ) ===== */
.tx-anim .tx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.tx-anim .tx-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tx *, .tx *::before, .tx *::after { animation: none !important; transition: none !important; }
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  #contents.tx { padding: 14px 14px 48px; }
  .tx { font-size: 14px; }
  .tx-sp { display: inline; }

  .tx-hero { aspect-ratio: 4 / 5; border-radius: 18px; }
  .tx-hero-text { top: 30%; padding: 0 10px; }
  .tx-hero-kicker { font-size: 15px; padding: 2px 16px; }
  .tx-hero-title { font-size: 30px; letter-spacing: 1px; }
  .tx-hero-title span { -webkit-text-stroke-width: 7px; }
  .tx-hero-copy { font-size: 22px; padding: 5px 22px; letter-spacing: 2px; }
  .tx-hero-copy small { font-size: 16px; }
  .tx-hero-stamp { width: 108px; height: 108px; top: 12px; right: 10px; font-size: 12px; }
  .tx-hero-stamp-date { font-size: 23px; }

  .tx-intro { font-size: 15px; text-align: left; }
  .tx-intro br { display: none; }

  .tx-index ul { grid-template-columns: 1fr; gap: 10px; }
  .tx-index a { padding: 10px 8px; font-size: 14px; }

  .tx-sec { margin-top: 52px; }
  .tx-sec-title { margin-bottom: 22px; padding-top: 34px; }
  .tx-sec-title::before { width: 40px; height: 34px; margin-left: -20px; }
  .tx-sec-title .ja { font-size: 21px; letter-spacing: 1px; }
  .tx-sec-title .en { font-size: 10px; }

  .tx-card { padding: 26px 16px 14px; box-shadow: 5px 5px 0 var(--leaf-pale); }
  .tx-count { top: -20px; right: 12px; font-size: 13px; }
  .tx-count b { font-size: 19px; }
  .tx-list > div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .tx-list dt { justify-self: start; padding: 0 16px; font-size: 15px; }
  .tx-big { font-size: 24px; }
  .tx-big small { font-size: 15px; }
  .tx-mid { font-size: 17px; }
  .tx-sub { font-size: 13px; }

  .tx-quote { padding: 96px 18px 24px; text-align: center; }
  .tx-quote-sprout { left: 50%; top: 18px; width: 60px; height: 60px; margin: 0 0 0 -30px; }
  .tx-quote p { font-size: 19px; }
  .tx-quote p br { display: none; }
  .tx-about { padding: 18px 16px; }
  .tx-about-title { font-size: 17px; }

  .tx-lead { font-size: 16px; margin-top: -4px; }
  .tx-guests { grid-template-columns: 1fr 1fr; gap: 10px; }
  #contents.tx .tx-guest-img { width: 130px; height: 130px; }
  .tx-guest-from { font-size: 11px; line-height: 1.5; }
  .tx-guest { padding: 22px 6px 16px; }
  .tx-guest-name { font-size: 22px; letter-spacing: 1px; }

  .tx-closing { padding: 30px 14px 28px; }
  .tx-closing-row { gap: 4px; }
  .tx-closing-row svg { width: 44px; height: 44px; }
  .tx-closing .tx-closing-copy { font-size: 22px; letter-spacing: 1px; }
  .tx-btn { padding: 13px 24px; font-size: 14px; }
}
