/* お知らせバナー (inc/notice-banner.php: the TOP above the NEWS box, first on /shintoyosu/), now くしゅまる生誕祭: the
   client's banner.css of 2026-11-29 between two answers to the theme. Every word is HTML text; only the character is an
   image. */

/* 日本語版・英語版の共通スタイル。すべての告知文はHTMLのテキストです。画像はキャラクターのみ。 */
a.tcm-notice-banner {
  --banner-red: #b40013;
  --banner-gold: #c9a33f;
  --banner-green: #075331;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: calc(100% - 24px);
  max-width: 1100px;
  min-height: 142px;
  margin: 0 auto 18px;
  padding: 12px 17px 12px 15px;
  border: 2px solid var(--banner-gold);
  border-left: 8px solid var(--banner-red);
  background: #fff8e9;
  color: #48270c;
  text-decoration: none;
  text-align: left;
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.25;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.tcm-notice-banner, .tcm-notice-banner * { box-sizing: border-box; }
/* reset.css gives time normal weight and its own size: the dates inherit their span's (the theme's answer). */
.tcm-notice-banner time { font: inherit; }
.tcm-notice-banner__mascot { display: block; width: 126px; height: 116px; object-fit: contain; }
.tcm-notice-banner__copy { display: grid; gap: 8px; min-width: 0; }
.tcm-notice-banner__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tcm-notice-banner__title {
  background: var(--banner-red);
  color: #fff;
  padding: 4px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
  font-size: 19px;
  font-weight: 800;
}
.tcm-notice-banner__dates { color: var(--banner-red); font-size: 31px; font-weight: 800; line-height: 1.1; }
.tcm-notice-banner__venue { padding: 4px 9px; color: #fff; background: var(--banner-green); font-size: 18px; font-weight: 800; }
/* Pointed ends, as in the client's PC and phone images (their CSS draws a rectangle). */
.tcm-notice-banner__venue { padding-inline: 14px; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }
.tcm-notice-banner__offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.tcm-notice-banner__free-group { display: inline-flex; align-items: baseline; gap: 3px; }
.tcm-notice-banner__free { color: var(--banner-red); font-size: 41px; font-weight: 900; }
.tcm-notice-banner__and { font-size: 23px; font-weight: 800; }
.tcm-notice-banner__gift { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; }
.tcm-notice-banner__mug { font-size: 25px; font-weight: 800; }
.tcm-notice-banner__present { color: var(--banner-red); font-size: 29px; font-weight: 900; }
.tcm-notice-banner__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 128px; padding: 11px 12px; background: var(--banner-red); color: #fff;
  font-size: 15px; font-weight: 800; border-radius: 3px;
}
.tcm-notice-banner__cta::after { content: ""; display: block; flex: 0 0 7px; height: 7px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
a.tcm-notice-banner:hover { color: #48270c; }
a.tcm-notice-banner:hover .tcm-notice-banner__cta { background: #8d0011; }
a.tcm-notice-banner:focus-visible { outline: 3px solid #4a93d2; outline-offset: 4px; }
/* The TOP's column (#contents, common.css) is 900px from 981px up, so the banner is 876px wide there, never the 1100px
   of the client's file: these sizes are their PC image (確認用PNG) scaled to 876px, with the offer on one line
   (4 + 1 + 10 + 6 full-width characters: 39 x 4 + 22 + 24 x 10 + 27 x 6 + gaps = 589px of the 600px it gets). */
@media (min-width: 981px) {
  a.tcm-notice-banner { grid-template-columns: 100px minmax(0,1fr) auto; gap: 10px; min-height: 116px; padding: 8px 14px 8px 12px; }
  .tcm-notice-banner__mascot { width: 100px; height: 100px; }
  .tcm-notice-banner__copy { gap: 6px; }
  .tcm-notice-banner__meta { gap: 6px 10px; }
  .tcm-notice-banner__title { font-size: 18px; }
  .tcm-notice-banner__dates { font-size: 30px; }
  .tcm-notice-banner__venue { font-size: 17px; }
  .tcm-notice-banner__free { font-size: 39px; }
  .tcm-notice-banner__and { font-size: 22px; }
  .tcm-notice-banner__mug { font-size: 24px; }
  .tcm-notice-banner__present { font-size: 27px; }
}
/* 翻訳で文字量が増えた場合は折り返し、高さを自動で確保します。
   Where the column is fluid (96%, common.css), the client's sizes for 768-1020px. */
@media (min-width: 768px) and (max-width: 980px) {
  a.tcm-notice-banner { grid-template-columns: 100px minmax(0,1fr) auto; gap: 10px; }
  .tcm-notice-banner__mascot { width: 100px; height: 106px; }
  .tcm-notice-banner__title { font-size: 16px; }
  .tcm-notice-banner__dates { font-size: 25px; }
  .tcm-notice-banner__venue { font-size: 14px; }
  .tcm-notice-banner__free { font-size: 33px; }
  .tcm-notice-banner__mug { font-size: 20px; }
  .tcm-notice-banner__present { font-size: 23px; }
  .tcm-notice-banner__cta { font-size: 13px; padding: 9px; }
}
@media (max-width: 767px) {
  a.tcm-notice-banner { grid-template-columns: 82px minmax(0,1fr); gap: 7px 9px; width: 100%; min-height: 0; margin-bottom: 16px; padding: 12px 11px 10px 7px; border-left-width: 5px; }
  .tcm-notice-banner__mascot { grid-row: 1 / 3; width: 82px; height: auto; }
  .tcm-notice-banner__copy { gap: 5px; }
  .tcm-notice-banner__meta { gap: 6px; }
  .tcm-notice-banner__title { font-size: 17px; padding: 3px 14px; flex-basis: 100%; text-align: center; }
  .tcm-notice-banner__dates { font-size: 23px; }
  .tcm-notice-banner__venue { padding: 3px 10px; font-size: 12px; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }
  .tcm-notice-banner__offer { gap: 0; }
  .tcm-notice-banner__free { font-size: 34px; }
  .tcm-notice-banner__and { font-size: 20px; }
  .tcm-notice-banner__gift { gap: 0; line-height: 1.4; }
  .tcm-notice-banner__mug { font-size: 18px; }
  .tcm-notice-banner__present { font-size: 21px; }
  .tcm-notice-banner__cta { grid-column: 2; justify-self: end; padding: 5px 9px; font-size: 12px; }
}
@media (max-width: 350px) {
  a.tcm-notice-banner { grid-template-columns: 62px minmax(0,1fr); gap: 7px; }
  .tcm-notice-banner__mascot { width: 62px; }
  .tcm-notice-banner__dates { font-size: 21px; }
  .tcm-notice-banner__venue { font-size: 11px; }
  .tcm-notice-banner__mug { font-size: 17px; }
}

/* The client's Japanese font stack would draw Korean and Chinese from fallback fonts: those pages keep the font their
   language gets in i18n.css. */
html:lang(ko) a.tcm-notice-banner, html:lang(zh) a.tcm-notice-banner { font-family: inherit; }
