CSSリセット


/*! sanitize.css v13.0.0 | CC0 License | github.com/csstools/sanitize.css */
*,:after,:before {
    background-repeat: no-repeat;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

:after,:before {
    text-decoration: inherit;
    vertical-align: inherit
}

:where(:root) {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    cursor: default;
    line-height: 1.5;
    overflow-wrap: break-word;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4
}

:where(body) {
    margin: 0
}

:where(h1) {
    font-size: 2em;
    margin: .67em 0
}

:where(dl,ol,ul) :where(dl,ol,ul) {
    margin: 0
}

:where(hr) {
    color: inherit;
    height: 0
}

:where(nav) :where(ol,ul) {
    list-style-type: none;
    padding: 0
}

:where(pre) {
    font-family: monospace,monospace;
    font-size: 1em;
    overflow: auto
}

:where(abbr[title]) {
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted
}

:where(b,strong) {
    font-weight: bolder
}

:where(code,kbd,samp) {
    font-family: monospace,monospace;
    font-size: 1em
}

:where(small) {
    font-size: 80%
}

:where(audio,canvas,iframe,img,svg,video) {
    vertical-align: middle
}

:where(iframe) {
    border-style: none
}

:where(svg:not([fill])) {
    fill: currentColor
}

:where(table) {
    border-collapse: collapse;
    border-color: currentColor;
    text-indent: 0
}

:where(button,input,select) {
    margin: 0
}


:where(fieldset) {
    border: 1px solid #a0a0a0
}

:where(progress) {
    vertical-align: baseline
}

:where(textarea) {
    margin: 0;
    resize: vertical
}

:where([type=search i]) {
    outline-offset: -2px
}

::-webkit-inner-spin-button,::-webkit-outer-spin-button {
    height: auto
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: .54
}

::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

:where(dialog) {
    background-color: #fff;
    border: solid;
    color: #000;
    height: -moz-fit-content;
    height: -webkit-fit-content;
    height: fit-content;
    left: 0;
    margin: auto;
    padding: 1em;
    position: absolute;
    right: 0;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    width: fit-content
}

:where(dialog:not([open])) {
    display: none
}

:where(details>summary:first-of-type) {
    display: list-item
}

:where([aria-busy=true i]) {
    cursor: progress
}

:where([aria-disabled=true i],[disabled]) {
    cursor: not-allowed
}

:where([aria-hidden=false i][hidden]) {
    display: initial
}

:where([aria-hidden=false i][hidden]:not(:focus)) {
    clip: rect(0,0,0,0);
    position: absolute
}

/* 角丸をすべての要素で無効にする */
* {
  border-radius: 0 !important;
}


/* デフォルト（タブレット・PC用） */
:root {
  --font-base: 16px;
  --font-small: 12px;
  --font-medium: 18px;
  --font-large: 28px;
  --font-button: 16px;
  --color-base: #243B55;
  --color-accent: #243B55;
  --bg-base: #fff;
  --bg-card: #fff;
}

/* スマホサイズ専用（幅599px以下） */
@media (max-width: 599px) {
  :root {
    --font-base: 12px;
    --font-small: 10px;
    --font-medium: 14px;
    --font-large: 18px;
    --font-button: 14px;
  }
}

body {
  font-family: '游明朝', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: var(--font-base);
  background-color: var(--bg-base);
  color: var(--color-base);
  padding: 1em;
  margin: 0;
  line-height: 1.6;
}

/* リスト */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header{
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* 背景色（必須：透け防止） */
    z-index: 1000; /* 他の要素より前面に表示 */
    padding: 0em 0em 0em 0.5em; /* 上下0.5em、左右1emのパディング */
    text-align: center;
}

.site-title {
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.site-title a {
  text-decoration: none;
  color: var(--color-accent);
  display: inline-block;
}

.furigana {
  font-size: 12px;
}


.nav-list {
  display: flex;
  gap: 1em;
  text-align: center;
}

ul.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

li.post-item {
  background: var(--bg-card);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

li.post-item:hover {
  transform: translateY(-4px);
}

.topimg {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

/* 見出し */
h1 {
  font-size: var(--font-large); /* 28px以上 */
  margin-top: 0;
}

h2 {
  font-size: var(--font-medium); /* 小見出し 18px */
  font-weight: 500;
  text-align: center;
  margin: 0.5em 0;
}

/* 段落・地域表示など */
.post-item p {
  font-size: var(--font-base); /* 本文 16px */
  margin: 0.5em 0;
}

.store-header {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.store-header h2 {
  font-size: var(--font-medium);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.star-rating {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  align-items: center;
  transform: scale(0.85); /* 少し縮小してボックスに収めやすく */
  transform-origin: left center;
}

.star-rating img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* リンク */
a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* ボタン */
.post-item form {
  text-align: center;
  margin-top: 0.5em;
}

button {
  font-size: var(--font-button); /* ボタン文字 16px */
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #a17050;
}

button[disabled] {
  background-color: #ccc;
  cursor: default;
}

/* フォーム関連 */
form {
  text-align: center;
  margin-bottom: 1em;
}

input[type="text"] {
  font-size: var(--font-base);
  padding: 0.6em 1em;
  border: 1px solid #ccc;
  width: 250px;
  background-color: #fff;
  color: #333;
}

select {
  font-size: var(--font-base);
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin-top: 2em;
}

.pagination a {
  color: var(--color-base);
  margin: 0 0.4em;
  text-decoration: none;
  font-weight: bold;
}

.pagination strong {
  color: var(--color-accent);
  margin: 0 0.4em;
  font-weight: bold;
}

/* 補足・注意書き用（必要なら） */
.small-note {
  font-size: var(--font-small); /* 12px */
  color: #666;
}

/* レスポンシブ対応 */
@media (min-width: 600px) {
  body {
    max-width: 960px;
    margin: 0 auto;
  }

  .topimg {
    height: 300px;
  }
}

@media (max-width: 599px) {
  ul.post-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .topimg {
    height: 130px;
  }
}
