@charset "utf-8";

@font-face {
  font-family: 'ascii';
  src: url('../font/aahub.woff2') format('woff2');
}

/* p168 */
:root {
  /* 基本フォント等はそのまま */
  --party-font: "Megrim", system-ui;
  --main-font: "Yusei Magic", sans-serif;

  /* ベース（紙色） */
  --bg-color: #fffef9;

  /* 福井っぽいカラーパレット */
  --fukui-sea: #0e6fbf;      /* 日本海の深いブルー */
  --fukui-coast: #9fd3c7;    /* 波打ち際の淡いシーグリーン */
  --fukui-mountain: #2f6f3a; /* 山の深いグリーン */
  --fukui-sand: #f5ead6;     /* 海辺の淡いベージュ */
  --fukui-accent: #e9b75a;   /* 暖かいアクセント（屋台やクラフト紙の雰囲気） */

  /* 既存変数に新パレットを割当て（互換性維持） */
  --p1-color: var(--fukui-sand);      /* ボタン等の背景（砂色） */
  --p2-color: var(--fukui-sea);       /* アクション色（海ブルー） */
  --p3-color: var(--fukui-mountain);  /* 見出しなど（山色） */
  --p4-color: var(--fukui-coast);     /* 背景や柔らかい箇所（波色） */
  --p5-color: var(--fukui-accent);    /* 強調色 */

  /* ニュース領域は淡い海色に */
  --news-bg: #e6f7f9;

  /* フッターグラデとテキスト色（既に使用済み） */
  --footer-bg: linear-gradient(180deg, var(--fukui-coast) 0%, var(--fukui-sand) 60%);
  --footer-text: #20435a;
  --footer-accent: var(--fukui-mountain);

  /* 影色は保持 */
  --shadow-color: rgba(0,0,0,0.12);
}

.foreword,
.footerbox,
.party_etc {
  width: 970px;
  max-width: 93%;
  margin-left: auto;
  margin-right: auto;
}

body {
  background-color: var(--bg-color);
}

/* ヘッダー */
header {
  background-color: var(--bg-color);
  box-shadow: 0 0 3px 1px var(--shadow-color);
}

header .material-symbols-outlined {
  color: black;
}

/* ハンバーガー */
.openbtn {
  background: var(--p4-color);
}

.openbtn span {
  background: var(--p5-color);
}

/* メイン */
.foreword {
  font-family: var(--main-font);
  font-size: 18px;
  margin-top: 5rem;
  margin-bottom: 6rem;
}

.foreword,
.foreword *,
.party_etc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.foreword>hgroup>p:nth-child(2) {
  margin-bottom: 0.5rem;
}

.foreword h2 {
  font-size: 3.5rem;
  margin-bottom: 3rem;
  font-weight: normal;
}

.foreword div {
  color: var(--p2-color);
  margin: 3rem auto 6rem;
  width: fit-content;
  border-radius: 100px;
  padding: 6px 1.2rem 8px;
  background-color: var(--p1-color);
  transition-duration: .3s;
  box-shadow: 0 0 1px var(--p4-color);
  font-size: 17.6px;
}

.foreword div:hover {
  background-color: var(--p2-color);
  color: var(--p1-color);
}

.foreword img {
  width: 550px;
}

/* おすすめ記事 */
.newsbox {
  background-color: var(--news-bg);
  padding: 2.1rem 0 5rem;
  outline: dashed 10px var(--news-bg);
}

.news {
  width: 1280px;
  max-width: 93%;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 3rem 3rem;
  border-radius: 10px;
}

.news h3 {
  font-family: var(--main-font);
  font-weight: normal;
  color: var(--bg-color);
  font-size: 1.5rem;
  margin: 0 auto 4rem;
  padding: 8px 5px 12px;
  text-align: center;
  width: fit-content;
  background-color: var(--p3-color);
  border-radius: 4px;
  box-shadow: 0 3px 6px var(--shadow-color);

}

.news h3 span {
  font-weight: bolder;
}

.news ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 18px;
  column-gap: 18px;
}

.news ul li {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px var(--shadow-color);
  transition-duration: 0.3s;
}

.news ul li:hover {
  filter: contrast(1.3);
  background-color: hwb(48 98% 30%);
}

.news ul li div {
  padding: 0 6px;
}

.news time {
  display: block;
  font-size: small;
  text-align: right;
}

/* フッター */
footer {
  padding: 3.5rem 0 4rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 -4px 18px rgba(0,0,0,0.04);
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* footer 内リンク色 */
.footerbox {
  padding-top: 3rem;
  padding-bottom: 0.5em;
  font-size: small;
  color: var(--footer-text);
  border-radius: 1000px 1000px 0 0;
}
footer a { color: var(--footer-accent); text-decoration: underline; }

/* 区切り線（濃さを調整） */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(970px, 93vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(32,67,90,0.06) 12%, rgba(32,67,90,0.06) 88%, rgba(0,0,0,0) 100%);
}

.footerbox,
.footerbox * {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.footerbox {
  padding-top: 3rem;
  padding-bottom: 0.5em;
  font-size: small;
  color: var(--footer-text);
  border-radius: 1000px 1000px 0 0;
}

#h1 {
  font-size: 2rem;
  font-weight: bold;
}

.begin div {
  width: fit-content;
  aspect-ratio: 1/1;
  padding: 45px;
  border-radius: 1000px;
  margin: 0 auto 1rem;
  transition-duration: 1s;
}

.begin div img {
  max-height: 100%;
  margin-right: 0;
  transition-duration: 1s;
}

.begin div:hover {
  transform: rotate(1turn);
}

.begin div:hover img {
  filter: hue-rotate(180deg);
}

.etc {
  display: flex;
  flex-wrap: wrap;
  width: 500px;
  max-width: 100%;
  margin-bottom: 1em;
}

.etc li a:hover {
  opacity: 0.7;
}

.okareco {
  color: rgba(0, 0, 0, 0.6);
}

/* その他 */
.party_etc h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: normal;
}

.party_etc {
  font-family: var(--main-font);
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.party_etc img {
  margin: 4rem auto 0;
  width: 550px;
}

.party_etc ul {
  list-style: disc;
  width: fit-content;
  margin: 1rem auto 0;
}

.party_etc ul li {
  text-align: left;
}

.note:hover {
  opacity: 0.7;
}

@media(max-width:800px) {
  header .material-symbols-outlined {
    color: white;
  }

  .header_inner {
    background-color: var(--bg-color);
    box-shadow: 0 0 4px var(--shadow-color);
  }

  .search {
    color: white;
    border: 1px solid white;
  }

  .search .material-symbols-outlined {
    color: white;
  }

  #nav {
    background-color: var(--p4-color);
  }

  /* メイン */
  .foreword h2 {
    font-size: 3rem;
    padding-left: 2rem;
  }

  .foreword>hgroup>p {
    line-height: 1.7;
  }

  .foreword>hgroup>p:nth-child(2) {
    margin-bottom: 0;
    max-width: 340px;
  }

  /* 新着記事 */
  .newsbox {
    padding: 3rem 0 4rem;
  }

  .news {
    padding: 0;
  }

  .news h3 {
    margin-bottom: 2.5rem;
  }

  .news ul {
    grid-template-columns: 1fr;
  }

  /* 
  .news ul li a {
    display: flex;
  }

  .news ul li img {
    width: 64px;
    height: 64px;
    object-fit: cover;
  }

  .news ul li div {
    position: relative;
    padding: 0;
    margin-left: 10px;
  }

  .news time {
    position: absolute;
    bottom: 0;
  } */

  /* その他 */
}