差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
top [2026/11/26 20:26] – Tana JH1HSTtop [2026/11/27 15:44] (現在) – Tana JH1HST
行 1: 行 1:
 {{keywords>ハムフェア, Hamfair, ハムフェア公式, ハムフェアJP, アマチュア無線, アマチュア無線フェスティバル, ham, ハムフェア2024, ハムフェア2025, ハムフェア2026}} {{keywords>ハムフェア, Hamfair, ハムフェア公式, ハムフェアJP, アマチュア無線, アマチュア無線フェスティバル, ham, ハムフェア2024, ハムフェア2025, ハムフェア2026}}
 {{description>Hamfair.JP(ハムフェアJP)はアマチュア無線フェスティバル「ハムフェア」のインフォメーションサイトです。,}} {{description>Hamfair.JP(ハムフェアJP)はアマチュア無線フェスティバル「ハムフェア」のインフォメーションサイトです。,}}
-<fs x-small>【ハムフェア公式サイト Hamfair.jp - ハムフェア.JP】</fs>+<HTML> 
 +<style> 
 +  .hf-top-brand { 
 +    margin: 0 0 22px; 
 +    padding: clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px); 
 +    border-radius: 10px; 
 +    background: linear-gradient(110deg, #142d4e, #21487a); 
 +    color: #fff; 
 +    font-size: 16px; 
 +    line-height: 1.65; 
 +  }
  
-<html><!-- +  .hf-top-brand__lead { 
-====== 第48回アマチュア無線フェスティバル ハムフェア2026 ====== +    display: inline-block; 
---></html>+    margin-inline-end: 0.25em; 
 +  }
  
-<wrap column rightalign 90%> [ [[side_en|ENGLISH MENU]] ] </wrap> \\ +  .hf-top-brand__name { 
-<fs xx-large>ハムフェア.jp</fs> はアマチュア無線フェスティバル「ハムフェア」のオフィシャルサイトです。 +    font-size: clamp(28px, 4vw, 42px); 
 +    font-weight: 750; 
 +    line-height: 1.18; 
 +  }
  
-開催の日時、<fc #ff0000>会場アクセスや注意事項</fc>、入場整理などは[[48th_ann|第48回ハムフェアの開催案内]]をご覧ください。 \\ +  .hf-top-brand__description { 
-駅から会場へ徒歩で向かう際、**北側の道路**を通っていただくようお願いします。 \\ +    display: inline-block; 
-その他のコンテンツは[[side|コンテンツメニュー]]よりご覧ください。\\+    max-width: 100%; 
 +    overflow-wrap: anywhere; 
 +  }
  
 +  .hf-top-brand__event {
 +    white-space: nowrap;
 +  }
  
-<fs x-large>👉[[48th_nsp_sase|ハムフェア2026 JARL創立100周年記念品 追加頒布のご案内]]</fs>+  .hf-topics { 
 +    container: hf-topics / inline-size; 
 +    margin: 0 0 14px; 
 +    font-size: 16px; 
 +  }
  
 +  .hf-topics .hf-topics__heading {
 +    margin: 0 0 10px;
 +    padding: 0;
 +    border: 0;
 +    font-size: 19px;
 +    line-height: 1.5;
 +  }
  
 +  .hf-topics__list {
 +    display: grid;
 +    gap: 10px;
 +  }
  
 +  .hf-topics .hf-topic {
 +    --topic-accent: #7a8693;
 +    --topic-ink: #485363;
 +    --topic-fill: #f8fafc;
 +    --topic-tint: #e8edf2;
 +    --topic-line: #b9c4cf;
 +    display: grid;
 +    grid-template:
 +      "meta title action" 1fr
 +      "meta title period" 1fr
 +      / 128px minmax(0, 1fr) max-content;
 +    min-height: 88px;
 +    padding-inline-end: 18px;
 +    overflow: hidden;
 +    border: 1px solid var(--topic-line);
 +    border-inline-start: 7px solid var(--topic-accent);
 +    border-radius: 15px;
 +    background: var(--topic-fill);
 +    color: #182638;
 +    text-decoration: none;
 +    line-height: 1.5;
 +  }
 +
 +  .hf-topics .hf-topic--news {
 +    --topic-accent: #1664cf;
 +    --topic-ink: #1d4e87;
 +    --topic-fill: #f4f8fe;
 +    --topic-tint: #dfedff;
 +    --topic-line: #9cbbe2;
 +  }
 +
 +  .hf-topics .hf-topic--open {
 +    --topic-accent: #d39a12;
 +    --topic-ink: #74510b;
 +    --topic-fill: #fffbef;
 +    --topic-tint: #faedc4;
 +    --topic-line: #d6bb7c;
 +  }
 +
 +  .hf-topics .hf-topic--closed {
 +    --topic-accent: #a0a5ab;
 +    --topic-ink: #555c64;
 +    --topic-fill: #f7f7f7;
 +    --topic-tint: #ededee;
 +    --topic-line: #c9ccd0;
 +  }
 +
 +  .hf-topics .hf-topic--announcement {
 +    --topic-accent: #159bd2;
 +    --topic-ink: #15586d;
 +    --topic-fill: #f1fafd;
 +    --topic-tint: #dcf2fa;
 +    --topic-line: #8fbecf;
 +  }
 +
 +  .hf-topics .hf-topic--important {
 +    --topic-accent: #d12c39;
 +    --topic-ink: #794b52;
 +    --topic-fill: #fcf8f8;
 +    --topic-tint: #f2e4e5;
 +    --topic-line: #ccaaaf;
 +  }
 +
 +  .hf-topics .hf-topic--exhibitors {
 +    --topic-accent: #e47725;
 +    --topic-ink: #795236;
 +    --topic-fill: #fdf9f6;
 +    --topic-tint: #f4e9df;
 +    --topic-line: #d4b8a3;
 +  }
 +
 +  .hf-topics .hf-topic--update {
 +    --topic-accent: #118b80;
 +    --topic-ink: #165b56;
 +    --topic-fill: #f2faf8;
 +    --topic-tint: #daefeb;
 +    --topic-line: #91c0b7;
 +  }
 +
 +  .hf-topics .hf-topic--guide {
 +    --topic-accent: #299557;
 +    --topic-ink: #21613f;
 +    --topic-fill: #f3f9f5;
 +    --topic-tint: #dfefe5;
 +    --topic-line: #9abdac;
 +  }
 +
 +  .hf-topics .hf-topic:hover {
 +    border-color: var(--topic-ink);
 +    border-inline-start-color: var(--topic-accent);
 +    color: #182638;
 +    text-decoration: none;
 +  }
 +
 +  .hf-topics .hf-topic:focus-visible {
 +    outline: 2px solid var(--topic-ink);
 +    outline-offset: 2px;
 +  }
 +
 +  .hf-topic__meta {
 +    position: relative;
 +    isolation: isolate;
 +    grid-area: meta;
 +    display: flex;
 +    flex-direction: column;
 +    justify-content: center;
 +    gap: 1px 10px;
 +    padding: 9px 14px;
 +    color: var(--topic-ink);
 +  }
 +
 +  .hf-topic__meta::before {
 +    position: absolute;
 +    z-index: -1;
 +    inset: 0 4px 0 -50px;
 +    transform: skewX(-24deg);
 +    background: var(--topic-tint);
 +    border-inline-end: 1px solid var(--topic-line);
 +    content: "";
 +  }
 +
 +  .hf-topic__date {
 +    font-size: 13px;
 +    font-variant-numeric: tabular-nums;
 +    white-space: nowrap;
 +  }
 +
 +  .hf-topic__type {
 +    font-size: 18px;
 +    font-weight: 750;
 +    white-space: nowrap;
 +  }
 +
 +  .hf-topic__title {
 +    grid-area: title;
 +    align-self: center;
 +    padding: 12px 18px 12px 28px;
 +    font-size: 17px;
 +    font-weight: 700;
 +    overflow-wrap: anywhere;
 +  }
 +
 +  .hf-topic__action {
 +    grid-area: action;
 +    justify-self: end;
 +    align-self: start;
 +    margin-block-start: 10px;
 +    color: var(--topic-ink);
 +    font-size: 14px;
 +    font-weight: 700;
 +    text-align: end;
 +  }
 +
 +  .hf-topic:hover .hf-topic__action,
 +  .hf-topic:focus-visible .hf-topic__action {
 +    text-decoration: underline;
 +    text-underline-offset: 0.2em;
 +  }
 +
 +  .hf-topic__period {
 +    grid-area: period;
 +    justify-self: end;
 +    align-self: end;
 +    max-width: 24ch;
 +    margin-block-end: 10px;
 +    color: #3f4a5a;
 +    font-size: 13px;
 +    text-align: end;
 +    overflow-wrap: anywhere;
 +  }
 +
 +  @container hf-topics (max-width: 36em) {
 +    .hf-topics .hf-topic {
 +      grid-template:
 +        "meta meta"
 +        "title title"
 +        "period action"
 +        / minmax(0, 1fr) minmax(0, 43%);
 +      padding: 0;
 +    }
 +
 +    .hf-topic__meta {
 +      flex-flow: row wrap;
 +      align-items: baseline;
 +      justify-content: flex-start;
 +      padding: 6px 13px;
 +      background: var(--topic-tint);
 +      border-block-end: 1px solid var(--topic-line);
 +    }
 +
 +    .hf-topic__meta::before {
 +      content: none;
 +    }
 +
 +    .hf-topic__type {
 +      font-size: 15px;
 +    }
 +
 +    .hf-topic__title {
 +      padding: 9px 13px 6px;
 +    }
 +
 +    .hf-topic__action,
 +    .hf-topic__period {
 +      align-self: end;
 +      margin: 0 13px 9px;
 +      overflow-wrap: anywhere;
 +    }
 +
 +    .hf-topic__period {
 +      justify-self: start;
 +      text-align: start;
 +    }
 +  }
 +
 +  .hf-top-links {
 +    display: flex;
 +    flex-wrap: wrap;
 +    gap: 4px 18px;
 +    margin: 0 0 32px;
 +  }
 +</style>
 +
 +<p class="hf-top-brand"><span class="hf-top-brand__lead"><strong class="hf-top-brand__name">ハムフェア.jp</strong> は</span><span class="hf-top-brand__description">アマチュア無線フェスティバル<span class="hf-top-brand__event">「ハムフェア」</span>のオフィシャルサイトです。</span></p>
 +</HTML>
 +
 +<PHP>
 +// トピックスを上から表示順に記入します。period と link_label は省略できます。
 +// date は掲載日です。アンケート結果の掲載日は公開日に合わせてください。
 +$topicsJson = <<<'HAMFAIR_TOPICS_JSON'
 +[
 +  {
 +    "date": "2026-11-27",
 +    "type": "発表",
 +    "title": "ハムフェア2026 アンケート結果",
 +    "url": "https://hamfair.jp/sy/form/quest2026/result/",
 +    "link_label": "結果を見る"
 +  },
 +  {
 +    "date": "2026-09-07",
 +    "type": "ご案内",
 +    "title": "JARL創立100周年記念品 追加頒布",
 +    "url": "https://hamfair.jp/48th_nsp_sase",
 +    "period": "在庫がなくなり次第終了",
 +    "link_label": "頒布のご案内"
 +  }
 +]
 +HAMFAIR_TOPICS_JSON;
 +
 +$topicTypes = [
 +    'お知らせ' => 'news',
 +    '受付中' => 'open',
 +    '終了' => 'closed',
 +    '発表' => 'announcement',
 +    '重要' => 'important',
 +    '出展者向け' => 'exhibitors',
 +    '更新' => 'update',
 +    'ご案内' => 'guide',
 +    '情報' => 'information',
 +];
 +
 +$escapeTopicText = static function (string $value): string {
 +    return htmlspecialchars($value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
 +};
 +
 +$topics = json_decode($topicsJson, true);
 +if (!is_array($topics)) {
 +    error_log('Hamfair top topics: ' . json_last_error_msg());
 +    $topics = [];
 +}
 +
 +$topicCards = [];
 +foreach ($topics as $topic) {
 +    if (!is_array($topic)) {
 +        continue;
 +    }
 +
 +    $date = $topic['date'] ?? '';
 +    $type = $topic['type'] ?? '情報';
 +    $title = $topic['title'] ?? '';
 +    $url = $topic['url'] ?? '';
 +    $period = $topic['period'] ?? '';
 +    $linkLabel = $topic['link_label'] ?? '詳細を見る';
 +
 +    if (!is_string($date) || !preg_match('/^\d{4}-\d{2}-\d{2}$/D', $date)
 +        || !is_string($title) || trim($title) === ''
 +        || !is_string($url) || strpos($url, 'https://') !== 0
 +        || filter_var($url, FILTER_VALIDATE_URL) === false) {
 +        continue;
 +    }
 +
 +    if (!is_string($type) || !isset($topicTypes[$type])) {
 +        $type = '情報';
 +    }
 +
 +    $cardClass = $topicTypes[$type];
 +    $cardDate = $escapeTopicText($date);
 +    $cardType = $escapeTopicText($type);
 +    $cardTitle = $escapeTopicText($title);
 +    $cardUrl = $escapeTopicText($url);
 +    $action = is_string($linkLabel) && trim($linkLabel) !== '' ? $linkLabel : '詳細を見る';
 +    $cardAction = $escapeTopicText($action);
 +    $cardPeriod = '';
 +    if (is_string($period) && trim($period) !== '') {
 +        $cardPeriod = '<span class="hf-topic__period">' . $escapeTopicText($period) . '</span>';
 +    }
 +
 +    $topicCards[] = <<<HAMFAIR_TOPICS_CARD
 +<a class="hf-topic hf-topic--{$cardClass}" href="{$cardUrl}">
 +  <span class="hf-topic__meta">
 +    <time class="hf-topic__date" datetime="{$cardDate}">{$cardDate}</time>
 +    <span class="hf-topic__type">{$cardType}</span>
 +  </span>
 +  <strong class="hf-topic__title">{$cardTitle}</strong>
 +  {$cardPeriod}
 +  <span class="hf-topic__action">{$cardAction}</span>
 +</a>
 +HAMFAIR_TOPICS_CARD;
 +}
 +
 +if ($topicCards) {
 +    echo '<section class="hf-topics" aria-labelledby="hf-topics-heading">';
 +    echo '<h2 id="hf-topics-heading" class="hf-topics__heading">トピックス</h2>';
 +    echo '<div class="hf-topics__list">', implode("\n", $topicCards), '</div></section>';
 +}
 +</PHP>
 +
 +<HTML>
 +<nav class="hf-top-links" aria-label="コンテンツ案内">
 +  <a href="https://hamfair.jp/side">コンテンツメニュー</a>
 +  <a href="https://hamfair.jp/side_en" lang="en">ENGLISH MENU</a>
 +</nav>
 +</HTML>
  
  
行 31: 行 398:
 ====== アップデート ====== ====== アップデート ======
  
 +  * 2026-11-27:[[https://hamfair.jp/sy/form/quest2026/result/|ハムフェア2026 アンケート結果]]発表
   * 2026-09-28:ハムフェア2026 アンケート回答受付終了   * 2026-09-28:ハムフェア2026 アンケート回答受付終了
   * 2026-09-18:[[48th_qj|ハムフェア2026 アンケート]]公開   * 2026-09-18:[[48th_qj|ハムフェア2026 アンケート]]公開
  • top.1795692419.txt.gz
  • 最終更新: 2026/11/26 20:26
  • by Tana JH1HST