/*
Theme Name: まりあんヌのアトリエ
Description: レトロでかわいい紹介サイト用テーマ。大正レトロ柄のSVGパターン×純喫茶配色、アニメーションたっぷり。TOP・作品紹介・ブログ・リンク・お問合せの構成向け。「外観→カスタマイズ→アトリエの設定」から文章とお問い合わせ宛先を変更できます。
Author: まりあんヌ（制作サポート: 莉波）
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marianne-atelier
*/

/* =========================================================
   まりあんヌのアトリエ — レトロかわいいスタイルシート
   配色・柄は「明治大正レトロ×純喫茶チラシ」イメージ
   ========================================================= */

/* ---------- 1. 変数（色・フォント） ---------- */
:root {
  --cream:      #f7efda;
  --cream-dark: #efe2c4;
  --paper:      #fffbef;
  --teal:       #45a5ab;
  --teal-deep:  #17767d;
  --teal-hero:  #2e8b91;
  --navy:       #1c4d58;
  --red:        #cf4a28;
  --red-deep:   #a83a1e;
  --yellow:     #f4c54e;
  --pink:       #e8a0ad;
  --pink-soft:  #f6d9de;
  --brown:      #5a4634;
  --matcha:     #57653b;

  --font-head: "RocknRoll One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;

  --shadow-pop: 5px 5px 0 rgba(28, 77, 88, 0.16);
  --radius: 16px;

  /* 七宝つなぎ（クリーム地にうっすら） */
  --pattern-shippo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23e0d0ab' stroke-width='1.6'%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='48' cy='0' r='24'/%3E%3Ccircle cx='0' cy='48' r='24'/%3E%3Ccircle cx='48' cy='48' r='24'/%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/g%3E%3C/svg%3E");

  /* 水玉（チラシのフチのドット風） */
  --pattern-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cg fill='%23ffffff' fill-opacity='0.26'%3E%3Ccircle cx='6' cy='6' r='3.1'/%3E%3Ccircle cx='19' cy='19' r='3.1'/%3E%3C/g%3E%3C/svg%3E");

  /* ひょうたんと実ちらし（抹茶色のフッター用） */
  --pattern-hyotan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='%23f7efda' fill-opacity='0.5'%3E%3Cg transform='translate(26,30) rotate(-14)'%3E%3Crect x='-2' y='-21' width='4' height='6' rx='2'/%3E%3Ccircle cy='-10' r='6.5'/%3E%3Ccircle cy='4' r='10'/%3E%3C/g%3E%3Cg transform='translate(68,72) rotate(18) scale(0.78)'%3E%3Crect x='-2' y='-21' width='4' height='6' rx='2'/%3E%3Ccircle cy='-10' r='6.5'/%3E%3Ccircle cy='4' r='10'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23cf4a28' fill-opacity='0.75'%3E%3Ccircle cx='66' cy='22' r='2.6'/%3E%3Ccircle cx='73' cy='27' r='2.6'/%3E%3Ccircle cx='68' cy='31' r='2.6'/%3E%3Ccircle cx='18' cy='64' r='2.6'/%3E%3Ccircle cx='25' cy='69' r='2.6'/%3E%3Ccircle cx='20' cy='73' r='2.6'/%3E%3C/g%3E%3Cg fill='%23f4c54e' fill-opacity='0.6'%3E%3Ccircle cx='80' cy='52' r='2'/%3E%3Ccircle cx='10' cy='14' r='2'/%3E%3C/g%3E%3C/svg%3E");

  /* 大正ガラスのダイヤ格子 */
  --pattern-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='64' viewBox='0 0 40 64'%3E%3Cg fill='none' stroke='%23cbb98d' stroke-width='1.4'%3E%3Cpath d='M20 0 L40 32 L20 64 L0 32 Z'/%3E%3Cpath d='M20 16 L30 32 L20 48 L10 32 Z' fill='%23e8a0ad' fill-opacity='0.22' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 2. リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--navy);
  background-color: var(--cream);
  background-image: var(--pattern-shippo);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px dashed var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--navy); color: #fff;
  padding: 8px 16px; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. ヘッダー・ナビ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--navy);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 20px;
  max-width: 1060px; margin: 0 auto;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.logo:hover { color: var(--red); }
.logo__mark { flex: none; }
.logo small {
  font-family: var(--font-body);
  font-size: 0.65rem; letter-spacing: 0.16em;
  color: var(--teal-deep); display: block; line-height: 1.2;
}

.global-nav ul {
  display: flex; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.global-nav a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.86rem;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.18s, background-color 0.18s, border-color 0.18s;
}
.global-nav a:hover {
  background: var(--pink-soft);
  border-color: var(--navy);
  transform: translateY(-2px) rotate(-1deg);
  color: var(--navy);
}
.global-nav a[aria-current="page"] {
  background: var(--yellow);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px;
  background: var(--yellow);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block; height: 3px; border-radius: 3px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 4. セクション共通 ---------- */
.section { padding: 56px 0 64px; position: relative; }
.section--teal {
  background-color: var(--teal);
  background-image: var(--pattern-dots);
}
.section--paper { background: var(--paper); }
.section--diamond {
  background-color: var(--cream);
  background-image: var(--pattern-diamond);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  text-align: center;
  margin: 0 0 34px;
  color: var(--navy);
}
.section-title .title-badge {
  display: inline-block;
  background: var(--paper);
  border: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 8px 30px;
  box-shadow: var(--shadow-pop);
  position: relative;
}
.section-title .title-badge::before,
.section-title .title-badge::after {
  content: "";
  position: absolute; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--red);
  transform: translateY(-50%);
}
.section-title .title-badge::before { left: 10px; }
.section-title .title-badge::after { right: 10px; }

.section--teal .section-title .title-badge { border-color: var(--navy); }

.section-lead { text-align: center; max-width: 640px; margin: -14px auto 34px; }
.section--teal .section-lead { color: #fff; text-shadow: 0 1px 0 rgba(23, 118, 125, 0.6); }

/* 波の区切り */
.wave { display: block; width: 100%; height: 34px; margin-bottom: -1px; }

/* ---------- 5. ヒーロー（TOP） ---------- */
.hero {
  background-color: var(--teal-hero);
  background-image: linear-gradient(rgba(46, 139, 145, 0.45), rgba(46, 139, 145, 0.45)), var(--pattern-dots);
  padding: 60px 0 46px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: flex; align-items: stretch; gap: 22px;
}
.hero-content {
  flex: 1;
  position: relative;
  text-align: center;
  padding-top: 12px;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.9rem; letter-spacing: 0.34em;
  color: #fffbef;
  text-shadow: 0 2px 0 rgba(23, 80, 86, 0.45);
  margin: 0 0 10px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0 0 16px;
  color: #fffbef;
  line-height: 1.35;
  text-shadow: 3px 3px 0 var(--navy);
}
.hero-title .char { display: inline-block; }
.hero-text {
  max-width: 560px; margin: 0 auto;
  color: #ffffff; font-weight: 500;
  text-shadow: 0 1px 3px rgba(20, 70, 76, 0.6);
}

/* ようこその下のイラスト隊 */
.hero-lineup {
  margin-top: 34px;
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(12px, 3vw, 30px);
  flex-wrap: wrap;
}
.lineup-item { display: inline-block; animation: pop-in 0.55s both; }
.lineup-item svg {
  display: block;
  animation: floaty 4.4s ease-in-out infinite;
  filter: drop-shadow(3px 4px 0 rgba(20, 70, 76, 0.3));
}
.lineup-item:nth-child(1) { animation-delay: 0.85s; }
.lineup-item:nth-child(2) { animation-delay: 0.97s; }
.lineup-item:nth-child(3) { animation-delay: 1.09s; }
.lineup-item:nth-child(4) { animation-delay: 1.21s; }
.lineup-item:nth-child(5) { animation-delay: 1.33s; }
.lineup-item:nth-child(6) { animation-delay: 1.45s; }
.lineup-item:nth-child(7) { animation-delay: 1.57s; }
.lineup-item:nth-child(even) svg { animation-duration: 5.2s; animation-delay: 0.7s; }
.lineup-item:nth-child(3) svg { animation-delay: 1.4s; }
.lineup-item:nth-child(7) svg { animation-delay: 2.1s; }

/* NEW! バースト（登場！風） */
.burst {
  position: absolute; top: -30px; right: 3%;
  width: 92px; height: 92px;
  z-index: 5;
  filter: drop-shadow(3px 3px 0 rgba(28, 77, 88, 0.2));
  animation: burst-swing 3.2s ease-in-out infinite;
}
.burst text {
  font-family: var(--font-head);
  fill: #fff; font-size: 15px;
}

/* ふわふわ浮く飾り */
.float-deco {
  position: absolute;
  animation: floaty 4.4s ease-in-out infinite;
  pointer-events: none;
}
.float-deco--slow { animation-duration: 6s; }
.float-deco--rev { animation-direction: reverse; }

/* ---------- 6. カード共通 ---------- */
.card {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 26px 26px 24px;
}

/* ---------- 7. プロフィール ---------- */
.profile-card {
  display: flex; gap: 28px; align-items: center;
  border-color: var(--teal-deep);
}
.profile-card__avatar {
  flex: none;
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 4px solid var(--teal-deep);
  background: var(--pink-soft);
  overflow: hidden;
  display: grid; place-items: center;
}
.profile-card__name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.profile-card__name small {
  font-family: var(--font-body);
  font-size: 0.72rem; color: var(--teal-deep);
  letter-spacing: 0.18em; margin-left: 10px;
}
.profile-card p { margin: 8px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.chip {
  font-size: 0.8rem;
  background: var(--cream-dark);
  border: 2px solid var(--brown);
  color: var(--brown);
  border-radius: 999px;
  padding: 2px 14px;
}
.chip--teal  { background: #dff0f0; border-color: var(--teal-deep); color: var(--teal-deep); }
.chip--pink  { background: var(--pink-soft); border-color: var(--red-deep); color: var(--red-deep); }
.chip--yellow{ background: #fbeec7; border-color: #a07a1f; color: #7c5e15; }

/* ---------- 8. ページ案内カード（TOPメニュー） ---------- */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0; margin: 0; list-style: none;
}
.nav-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 26px 16px 20px;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 10px;
}
.nav-card--red::before    { background: var(--red); }
.nav-card--yellow::before { background: var(--yellow); }
.nav-card--pink::before   { background: var(--pink); }
.nav-card--teal::before   { background: var(--teal); }

.nav-card:hover, .nav-card:focus-visible {
  transform: translateY(-7px) rotate(-1.2deg);
  box-shadow: 7px 9px 0 rgba(28, 77, 88, 0.2);
  color: var(--navy);
}
.nav-card__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--navy);
}
.nav-card:hover .nav-card__icon { animation: wiggle 0.5s ease-in-out; }
.nav-card__title { font-family: var(--font-head); font-size: 1.05rem; }
.nav-card__desc { font-size: 0.8rem; line-height: 1.6; margin: 0; }
.nav-card__arrow {
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--red-deep);
}

/* ---------- 9. 新着情報 ---------- */
.ticker {
  overflow: hidden;
  background: var(--navy);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  padding: 8px 0;
  margin-bottom: 40px;
}
.ticker__inner {
  display: flex; gap: 3.2rem;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}
.ticker__item {
  color: var(--cream);
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.ticker__item .star { color: var(--yellow); }

.news-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.news-item {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: var(--paper);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 3px 3px 0 rgba(28, 77, 88, 0.12);
}
.news-item time {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--teal-deep);
  flex: none;
}
.news-item .tag {
  flex: none;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 1px 12px;
  border: 2px solid;
}
.tag--info  { background: #fbeec7; border-color: #a07a1f; color: #7c5e15; }
.tag--blog  { background: var(--pink-soft); border-color: var(--red-deep); color: var(--red-deep); }
.tag--works { background: #dff0f0; border-color: var(--teal-deep); color: var(--teal-deep); }

/* ---------- 10. 作品カード ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0; margin: 0; list-style: none;
}
.work-card {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 7px 9px 0 rgba(28, 77, 88, 0.2);
}
.work-card__visual {
  height: 130px;
  display: grid; place-items: center;
  border-bottom: 3px solid var(--navy);
}
.work-card__visual--teal   { background-color: var(--teal);   background-image: var(--pattern-dots); }
.work-card__visual--red    { background-color: var(--red);    background-image: var(--pattern-dots); }
.work-card__visual--yellow { background-color: var(--yellow); background-image: var(--pattern-dots); }
.work-card__visual--pink   { background-color: var(--pink);   background-image: var(--pattern-dots); }
.work-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-card__title { font-family: var(--font-head); font-size: 1.1rem; margin: 0; }
.work-card__desc { font-size: 0.88rem; margin: 0; flex: 1; }
.work-card .status {
  align-self: flex-start;
  font-size: 0.72rem;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 1px 12px;
}

/* ---------- 11. ブログ ---------- */
.post-list { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.post-card {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 22px 26px;
  transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.post-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; margin-bottom: 4px;
}
.post-card__meta time { font-family: var(--font-head); color: var(--teal-deep); }
.post-card__title { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 6px; }
.post-card__title a { text-decoration: none; color: var(--navy); }
.post-card__title a:hover { color: var(--red); text-decoration: underline; }
.post-card__summary { margin: 0; font-size: 0.9rem; }

/* 記事ページ */
.post {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 40px clamp(20px, 5vw, 52px) 46px;
}
.post__meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.post__meta time { font-family: var(--font-head); color: var(--teal-deep); }
.post__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.5;
  margin: 10px 0 6px;
  color: var(--navy);
}
.post__divider { border: none; border-top: 3px dotted var(--pink); margin: 20px 0 26px; }
.post-body h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  background: var(--pink-soft);
  border-left: 8px solid var(--red);
  border-radius: 6px;
  padding: 8px 16px;
  margin: 38px 0 14px;
}
.post-body p { margin: 14px 0; }
.post-body img { border: 3px solid var(--navy); border-radius: 12px; }
.post__footer { margin-top: 36px; text-align: center; }

/* ---------- 12. リンク集 ---------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 0; margin: 0; list-style: none;
}
.link-card {
  display: block;
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  transform: translateY(-5px) rotate(0.6deg);
  box-shadow: 7px 8px 0 rgba(28, 77, 88, 0.2);
  color: var(--navy);
}
.link-card__title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
}
.link-card__desc { font-size: 0.85rem; margin: 0; }
.link-card--soon { opacity: 0.75; }
.link-card--soon:hover { transform: none; box-shadow: var(--shadow-pop); }

/* ---------- 13. お問い合わせ ---------- */
.contact-card { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.badge-required, .badge-optional {
  font-family: var(--font-body);
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 1px 10px;
}
.badge-required { background: var(--red); color: #fff; }
.badge-optional { background: var(--cream-dark); color: var(--brown); border: 1.5px solid var(--brown); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  padding: 12px 16px;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fdf0ec;
}
.form-note {
  font-size: 0.82rem;
  background: var(--pink-soft);
  border: 2px dashed var(--red-deep);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 0 0 26px;
}
.form-status {
  border: 3px solid var(--teal-deep);
  background: #e8f4f3;
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  margin: 0 0 26px;
  animation: pop-in 0.5s both;
}
.form-status--error {
  border-color: var(--red-deep);
  background: var(--pink-soft);
}

/* ---------- 14. ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  background: var(--red-deep);
  border: 3px solid var(--navy);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(28, 77, 88, 0.25);
  padding: 12px 40px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 6px 7px 0 rgba(28, 77, 88, 0.3);
  color: #fff;
}
.btn:active { transform: translateY(1px); box-shadow: 2px 2px 0 rgba(28, 77, 88, 0.25); }
.btn--teal { background: var(--teal-deep); }
.btn--ghost {
  background: var(--paper);
  color: var(--navy);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--navy); }

/* ---------- 15. フッター ---------- */
.site-footer {
  background-color: var(--matcha);
  background-image: var(--pattern-hyotan);
  color: var(--cream);
  text-align: center;
  padding: 44px 20px 34px;
  border-top: 5px solid var(--red);
}
.site-footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
  margin: 0 0 18px; padding: 0; list-style: none;
}
.site-footer__nav a { color: var(--cream); font-size: 0.88rem; }
.site-footer__nav a:hover { color: var(--yellow); }
.site-footer .copyright { font-size: 0.78rem; opacity: 0.85; margin: 0; }

/* ---------- 16. ページ上部へ ---------- */
.back-to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--navy);
  box-shadow: 3px 3px 0 rgba(28, 77, 88, 0.25);
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 90;
}
.back-to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--pink); }

/* ---------- 16.5 背景を泳ぐ金魚（JSが自動生成） ---------- */
.swim-layer {
  position: fixed; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}
.swim-fish {
  position: absolute;
  left: -160px;
  top: var(--top, 30%);
  opacity: 0.45;
  animation: swim-x var(--dur, 40s) linear infinite;
}
.swim-fish .fish-flip { display: block; }
.swim-fish svg {
  display: block;
  animation: swim-bob var(--bob, 3.6s) ease-in-out infinite alternate;
}
.swim-fish--rev { left: auto; right: -160px; animation-name: swim-x-rev; }
.swim-fish--rev .fish-flip { transform: scaleX(-1); }

.swim-bubble {
  position: absolute;
  bottom: -70px;
  left: var(--left, 50%);
  opacity: 0;
  animation: bubble-rise var(--dur, 24s) linear infinite;
}

@keyframes swim-x {
  to { transform: translateX(calc(100vw + 340px)); }
}
@keyframes swim-x-rev {
  to { transform: translateX(calc(-100vw - 340px)); }
}
@keyframes swim-bob {
  from { transform: translateY(-8px) rotate(-3deg); }
  to   { transform: translateY(8px) rotate(3deg); }
}
@keyframes bubble-rise {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 0.55; }
  92%  { opacity: 0.55; }
  100% { transform: translateY(calc(-100vh - 140px)); opacity: 0; }
}

/* スマホでは金魚を少なめに */
@media (max-width: 720px) {
  .swim-fish--extra { display: none; }
}
/* 動きを減らす設定の方には出さない（JS側でも生成しない） */
@media (prefers-reduced-motion: reduce) {
  .swim-layer { display: none; }
}

/* ---------- 17. アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes burst-swing {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.06); }
}
@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(18px) scale(0.6); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-title .char { animation: pop-in 0.55s both; }

/* ---------- 18. レスポンシブ ---------- */
@media (max-width: 860px) {
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--navy);
    display: none;
    padding: 14px 20px 18px;
    box-shadow: 0 10px 18px rgba(28, 77, 88, 0.15);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav a { display: block; text-align: center; border: 2px solid var(--cream-dark); }

  .profile-card { flex-direction: column; text-align: center; }
  .profile-card .chips { justify-content: center; }
  .burst { width: 72px; height: 72px; top: -24px; right: 0; }
  .hero-lineup { margin-top: 26px; gap: 12px; }
  .section { padding: 42px 0 48px; }
}

@media (max-width: 480px) {
  .nav-cards { grid-template-columns: 1fr; }
  .hero-card { padding: 34px 20px 30px; }
}

/* ---------- 19. アニメーションを減らす設定の方へ ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__inner { animation: none; flex-wrap: wrap; width: auto; }
}


/* ---------- 20. WordPress用の追加スタイル ---------- */

/* WP標準のスクリーンリーダー用クラス */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 管理バー表示中の固定ヘッダー位置調整 */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* 本文（ブロックエディタ）の画像・配置 */
.post-body img { max-width: 100%; height: auto; }
.post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-body .alignleft { float: left; margin: 4px 20px 12px 0; }
.post-body .alignright { float: right; margin: 4px 0 12px 20px; }
.post-body .wp-caption { max-width: 100%; }
.post-body .wp-caption-text,
.post-body figcaption {
  font-size: 0.8rem; text-align: center; color: var(--teal-deep); margin-top: 6px;
}
.post-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  border-bottom: 3px dotted var(--teal);
  padding-bottom: 4px;
  margin: 30px 0 12px;
}
.post-body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: var(--pink-soft);
  border-left: 6px solid var(--pink);
  border-radius: 8px;
}
.post-body table {
  border-collapse: collapse; width: 100%;
}
.post-body th, .post-body td {
  border: 2px solid var(--navy);
  padding: 8px 12px;
}
.post-body th { background: var(--cream-dark); font-family: var(--font-head); font-weight: normal; }

/* 作品カードのアイキャッチ画像 */
.work-card__visual { overflow: hidden; }
.work-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card__title a { color: var(--navy); text-decoration: none; }
.work-card__title a:hover { color: var(--red); text-decoration: underline; }
.work-card__more {
  margin-top: 6px;
  text-align: right;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--red-deep);
}

/* プロフィールのアイコン画像（カスタマイザーで設定） */
.profile-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 記事フッターにボタンが2つ並ぶとき */
.post__footer .btn { margin: 0 8px 10px; }

/* ページ送り（ブログ一覧の「まえへ／つぎへ」） */
.pagination { margin-top: 36px; }
.pagination .nav-links {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-block;
  min-width: 44px;
  padding: 8px 14px;
  text-align: center;
  background: var(--paper);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(28, 77, 88, 0.12);
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--yellow); }
.pagination a.page-numbers:hover { background: var(--pink-soft); transform: translateY(-2px); }
