/* trendmap.jp 共通ヘッダー・フッター（トップページのデザインに合わせる）
   クラス名は tm- で始め、各ページのTailwind等とぶつからないようにしている */
.tm-header, .tm-footer {
  --tm-ink: #16241f; --tm-ink-2: #4b5f58; --tm-em: #059669; --tm-em-d: #047857; --tm-em-l: #34d399;
  --tm-paper: #f7faf7; --tm-paper-2: #eef5f0; --tm-line: #d9e5de;
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.6; letter-spacing: normal;
}
.tm-header *, .tm-footer * { box-sizing: border-box; }
.tm-header a, .tm-footer a { text-decoration: none; }
.tm-header img, .tm-footer img { display: inline-block; max-width: none; }

/* ヘッダー */
.tm-header { position: sticky; top: 0; z-index: 50; background: rgba(247,250,247,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tm-line); }
.tm-hd { max-width: 1360px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 28px; }
.tm-logo { display: flex; align-items: center; flex-shrink: 0; }
.tm-logo img { height: 34px; width: auto; }
.tm-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; color: var(--tm-ink-2); }
.tm-nav a { color: var(--tm-ink-2); }
.tm-nav a:hover { color: var(--tm-em-d); }
.tm-nav a[aria-current="page"] { color: var(--tm-ink); font-weight: 700; }
.tm-nav .tm-prod { display: flex; align-items: center; gap: 6px; color: var(--tm-em-d); font-weight: 600; }
.tm-nav .tm-prod img, .tm-mnav a img { height: 18px; width: 18px; }
.tm-nav .tm-cta { background: var(--tm-em); color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.tm-nav .tm-cta:hover { background: var(--tm-em-d); color: #fff; }
.tm-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tm-ink-2); }
.tm-lang b { font-weight: 700; }
.tm-burger { display: none; margin-left: auto; width: 42px; height: 42px; padding: 0; border: 1px solid var(--tm-line); background: #fff; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.tm-burger span { display: block; width: 17px; height: 1.6px; background: var(--tm-ink-2); border-radius: 2px; transition: .3s; }
.tm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.tm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.tm-mnav { display: none; border-top: 1px solid var(--tm-line); background: rgba(247,250,247,.98); padding: 12px 20px 20px; }
.tm-mnav.open { display: block; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tm-mnav a { display: flex; align-items: center; gap: 8px; padding: 13px 4px; font-size: 14px; color: var(--tm-ink-2); border-bottom: 1px solid var(--tm-paper-2); }
.tm-mnav a.tm-prod { color: var(--tm-em-d); font-weight: 600; }
.tm-mnav a[aria-current="page"] { color: var(--tm-ink); font-weight: 700; }
.tm-mnav a.tm-cta { justify-content: center; margin-top: 14px; background: var(--tm-em); color: #fff; border: 0; border-radius: 999px; font-weight: 700; }
.tm-mnav-lang { display: flex; gap: 10px; margin-top: 14px; }
.tm-mnav-lang a { flex: 1; justify-content: center; border: 1px solid var(--tm-line); border-radius: 10px; font-size: 13px; }
.tm-mnav-lang a[aria-current] { border-color: var(--tm-em); color: var(--tm-em-d); font-weight: 700; }
@media (max-width: 1023px) { .tm-nav { display: none; } .tm-burger { display: flex; } .tm-hd { padding: 0 16px; } }
@media (min-width: 1024px) { .tm-mnav.open { display: none; } }

/* フッター */
.tm-footer { background: #16241f; color: #fff; padding: 56px 0 30px; }
.tm-ft { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tm-ft-top { display: grid; grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.tm-ft-brand strong { display: block; font-size: 19px; letter-spacing: .05em; color: #fff; font-weight: 700; }
.tm-ft-brand small { display: block; color: #8fa39b; font-size: 11px; margin-top: 6px; letter-spacing: .14em; }
.tm-ft-h { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #8fa39b; }
.tm-ft-col ul { list-style: none; margin: 0; padding: 0; }
.tm-ft-col a { display: inline-block; padding: 6px 0; font-size: 13px; color: #c9d6d0; }
.tm-ft-col a:hover { color: var(--tm-em-l); text-decoration: underline; text-underline-offset: 3px; }
.tm-ft-col a[aria-current="page"] { color: #fff; font-weight: 700; }
.tm-ft-btm { border-top: 1px solid #2c4238; margin-top: 36px; padding-top: 20px; text-align: center; font-size: 11px; color: #8fa39b; letter-spacing: .14em; }
@media (max-width: 860px) { .tm-ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-ft-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tm-footer { padding: 44px 0 26px; } .tm-ft { padding: 0 16px; } .tm-ft-col a { padding: 9px 0; } }
.tm-ft-extra { margin: 12px 0 0; }
.tm-ft-extra a { font-size: 12.5px; color: #c9d6d0; }
.tm-ft-extra a:hover { color: var(--tm-em-l); text-decoration: underline; }
.tm-nav .tm-cta[aria-current="page"], .tm-mnav a.tm-cta[aria-current="page"] { color: #fff; }
.tm-lang i { font-style: normal; opacity: .5; }
.tm-ft-home { color: #fff; display: inline-block; }
.tm-ft-home:hover strong { color: var(--tm-em-l); }
