/*
Theme Name: Hana
Description: 「華」のオリジナル和風テーマ。明朝体と紅色・金色を基調にした、華やかで上品なブログデザイン。
Version: 1.0
Author: hiroko
Text Domain: hana
*/

:root {
  --kurenai: #d24361;   /* 紅色(赤ピンク) */
  --kurenai-dark: #ab2d4a;
  --kin: #c29a5b;       /* 金色 */
  --sumi: #45333a;      /* 墨色(文字) */
  --kinari: #fdf1f2;    /* 桜色がかった背景 */
  --shiro: #fffafa;     /* カードの白 */
  --usuzumi: #9a7f87;   /* 薄墨(補助文字) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--kinari);
  color: var(--sumi);
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

img { max-width: 100%; height: auto; }
a { color: var(--kurenai); text-decoration: none; }
a:hover { color: var(--kurenai-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--shiro);
  border-bottom: 1px solid rgba(179, 147, 82, 0.35);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 600;
}
.site-title a {
  color: var(--sumi);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.site-title .logo-dog {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(166, 55, 68, 0.2));
  transition: transform 0.25s ease;
}
.site-title a:hover .logo-dog { transform: rotate(-8deg) scale(1.06); }
.site-title .logo-text {
  font-size: 2rem;
  color: var(--kurenai);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(210, 67, 97, 0.25);
}

.site-tagline {
  color: var(--usuzumi);
  font-size: 0.85rem;
}

.site-nav {
  width: 100%;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.site-nav a {
  color: var(--sumi);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--kurenai);
  border-bottom-color: var(--kin);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(238, 140, 160, 0.35) 0, transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(226, 120, 145, 0.28) 0, transparent 45%),
    linear-gradient(180deg, #fce8ec 0%, var(--kinari) 100%);
}

.hero .enso {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 168, 185, 0.6) 0%, rgba(244, 168, 185, 0) 70%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: 4.6rem;
  color: var(--kurenai);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(166, 55, 68, 0.18);
}

.hero p {
  position: relative;
  margin-top: 0.8rem;
  color: var(--usuzumi);
  font-size: 1rem;
}

.hero .kazari {
  position: relative;
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--kin);
  letter-spacing: 0.5em;
  font-size: 0.9rem;
}

/* ---------- トップの大きなスライドショー ---------- */
.hero-slideshow {
  padding: 0;
  height: min(78vh, 640px);
  background: #f4dee3;
}

.hero-slides .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 24s infinite;
}
.hero-slides .s1 { animation-delay: 0s; }
.hero-slides .s2 { animation-delay: 6s; }
.hero-slides .s3 { animation-delay: 12s; }
.hero-slides .s4 { animation-delay: 18s; }

@keyframes hero-fade {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; }
}

.hero-veil {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(69, 51, 58, 0.10) 0%, rgba(69, 51, 58, 0) 35%, rgba(69, 51, 58, 0.42) 100%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.2rem;
  text-align: center;
}
.hero-slideshow .hero-text h1 {
  font-size: 4.2rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(69, 51, 58, 0.65);
}
.hero-slideshow .hero-text p {
  margin-top: 0.3rem;
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 1px 10px rgba(69, 51, 58, 0.75);
}
.hero-slideshow .hero-text .kazari {
  display: inline-block;
  margin-top: 1rem;
  color: #f6d8a8;
  letter-spacing: 0.5em;
  font-size: 0.9rem;
  text-shadow: 0 1px 8px rgba(69, 51, 58, 0.7);
}

@media (max-width: 600px) {
  .hero-slideshow { height: 62vh; }
  .hero-slideshow .hero-text h1 { font-size: 3rem; }
}

/* 桜の花びら */
.petal {
  position: absolute;
  font-size: 1.3rem;
  color: rgba(226, 105, 130, 0.75);
  pointer-events: none;
}

/* ---------- メイン ---------- */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.section-title {
  text-align: center;
  font-size: 1.25rem;
  color: var(--sumi);
  margin-bottom: 2rem;
  letter-spacing: 0.3em;
}
.section-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--kin);
  margin: 0.7rem auto 0;
}

/* ---------- 左右の金の飾り罫線 ---------- */
.side-kazari {
  position: fixed;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 0;
  pointer-events: none;
  z-index: 5;
}
.side-left  { left: 34px; }
.side-right { right: 34px; }

.side-kazari .k-top,
.side-kazari .k-bottom {
  color: var(--kin);
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(194, 154, 91, 0.35);
}

.side-kazari .k-line {
  flex: 1;
  width: 7px;
  margin: 0.9rem 0;
  border-left: 1px solid rgba(194, 154, 91, 0.55);
  border-right: 1px solid rgba(194, 154, 91, 0.55);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* 狭い画面では飾りを消す(記事にかぶらないように) */
@media (max-width: 1000px) {
  .side-kazari { display: none; }
}

/* ---------- 両わきのおすすめ用品コーナー ---------- */
.side-ads {
  position: fixed;
  top: 112px;
  width: 150px;
  z-index: 6;
}
.side-ads-left  { left: 12px; }
.side-ads-right { right: 12px; }
.ads-head {
  text-align: center;
  font-size: 0.8rem;
  color: var(--kurenai);
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.ad-card {
  background: var(--shiro);
  border: 1px solid rgba(194, 154, 91, 0.4);
  border-radius: 0.5rem;
  padding: 0.45rem;
  margin-bottom: 0.55rem;
  box-shadow: 0 3px 12px rgba(58, 50, 52, 0.08);
  text-align: center;
}
.ad-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 0.3rem;
  display: block;
}
/* 縦長の写真など、切り抜かずに全体を見せるカード(高さは他カードと同じでコンパクトに) */
.ad-card--contain img {
  object-fit: contain;
  background: #faf6ef;
}
.ad-title { font-size: 0.78rem; font-weight: bold; margin-top: 0.3rem; line-height: 1.3; }
.ad-desc { font-size: 0.68rem; color: var(--usuzumi); margin-top: 0.12rem; line-height: 1.35; }
.ad-link {
  display: block;
  font-size: 0.72rem;
  margin-top: 0.28rem;
  padding: 0.24rem 0.2rem;
  border: 1px solid rgba(210, 67, 97, 0.5);
  border-radius: 99px;
}
.ad-link.shop { background: var(--kurenai); color: #fff; border-color: var(--kurenai); }
.ad-link.shop:hover { background: var(--kurenai-dark); }

/* 画面が狭いときは、記事にかぶらないように隠す */
@media (max-width: 1120px) {
  .side-ads { display: none; }
}

/* ---------- トップのお天気コーナー ---------- */
.hana-weather { padding-top: 1.6rem; padding-bottom: 0; }
.weather-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #eaf4fb 0%, var(--shiro) 55%);
  border: 1px solid rgba(194, 154, 91, 0.45);
  border-radius: 0.8rem;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 5px 18px rgba(58, 50, 52, 0.1);
}
.weather-body { flex: 1; }
.weather-bubble {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.weather-today { font-size: 0.98rem; color: var(--sumi); }
.weather-today .max { color: #d2434a; font-weight: bold; }
.weather-today .min { color: #4a76c9; font-weight: bold; }
.weather-more { margin-top: 0.4rem; font-size: 0.88rem; }

.mini-dog { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.mini-dog .body { position: absolute; bottom: 0; left: 7px; width: 78px; height: 44px; background: #fbf5ea; border-radius: 50% 46% 20% 20% / 72% 60% 20% 20%; box-shadow: inset 0 -6px #f0e4d2; }
.mini-dog .head { position: absolute; z-index: 2; left: 18px; top: 3px; width: 52px; height: 45px; background: #fbf5ea; border-radius: 52% 52% 48% 48%; }
.mini-dog .ear { position: absolute; top: -8px; width: 17px; height: 19px; background: #fbf5ea; border-radius: 66% 34% 52% 48% / 66% 44% 56% 34%; }
.mini-dog .ear.l { left: 3px; transform: rotate(-13deg); }
.mini-dog .ear.r { right: 3px; transform: rotate(13deg) scaleX(-1); }
.mini-dog .ear::after { content: ""; position: absolute; inset: 4px 4px 2px 3px; background: #ecc39a; border-radius: inherit; }
.mini-dog .eye { position: absolute; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: #3a2f2a; }
.mini-dog .eye.l { left: 13px; } .mini-dog .eye.r { right: 13px; }
.mini-dog .muzzle { position: absolute; left: 14px; top: 23px; width: 24px; height: 19px; background: #fffdf8; border-radius: 50%; }
.mini-dog .nose { position: absolute; left: 8px; top: 3px; width: 7px; height: 5px; background: #453a34; border-radius: 46%; }
.mini-dog .mouth { position: absolute; left: 8px; top: 10px; width: 7px; height: 4px; border-bottom: 2px solid #c09184; border-radius: 50%; }
.mini-dog .tail { position: absolute; z-index: 1; right: 0; bottom: 32px; width: 20px; height: 20px; border-radius: 50%; border: 6px solid #fbf5ea; border-bottom-color: transparent; transform: rotate(38deg); }

@media (max-width: 600px) {
  .weather-card { flex-direction: column; text-align: center; }
}

/* ---------- バースデーカウントダウン ---------- */
.hana-birthday { padding-top: 0.9rem; padding-bottom: 0; }
.bd-ribbon {
  text-align: center;
  background: linear-gradient(90deg, #fff0d8, #ffe3ea 50%, #fff0d8);
  border: 1px dashed var(--kin);
  border-radius: 99px;
  padding: 0.65rem 1rem;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 10px rgba(194, 154, 91, 0.15);
}
.bd-ribbon b { color: var(--kurenai); font-size: 1.1em; }
.bd-ribbon.bd-today {
  background: linear-gradient(90deg, #ffd98a, #ff9eb5 50%, #ffd98a);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ---------- トップページの動画 ---------- */
.hana-video {
  padding-bottom: 0.5rem;
}
.hana-video .video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
}

/* 動画の左右に添えるスナップ写真 */
.video-side-photo {
  max-height: 330px;
  width: auto;
  padding: 8px 8px 26px; /* 下を厚くしてポラロイド写真風に */
  background: #fff;
  border: 1px solid rgba(194, 154, 91, 0.4);
  box-shadow: 0 6px 18px rgba(58, 50, 52, 0.16);
  border-radius: 0.2rem;
}
.video-side-photo.left  { transform: rotate(-3.5deg); }
.video-side-photo.right { transform: rotate(3.5deg); }
.video-side-photo:hover { transform: rotate(0deg); transition: transform 0.3s; }

/* 狭い画面では写真をたたんで動画だけにする */
@media (max-width: 760px) {
  .video-side-photo { display: none; }
}
.hana-video .hana-top-video {
  width: auto;
  max-width: min(100%, 360px);
  max-height: 430px; /* 縦長動画が縦に伸びすぎないよう上限 */
  border-radius: 0.5rem;
  border: 1px solid rgba(194, 154, 91, 0.45);
  box-shadow: 0 6px 24px rgba(58, 50, 52, 0.14);
  background: #000;
}
.hana-video .video-note {
  text-align: center;
  color: var(--usuzumi);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---------- 記事カード ---------- */
.post-card {
  background: var(--shiro);
  border: 1px solid rgba(179, 147, 82, 0.25);
  border-top: 3px solid var(--kurenai);
  border-radius: 0.3rem;
  padding: 1.8rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 3px 14px rgba(58, 50, 52, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover {
  box-shadow: 0 6px 22px rgba(58, 50, 52, 0.12);
  transform: translateY(-2px);
}

.post-card .date {
  font-size: 0.82rem;
  color: var(--kin);
  letter-spacing: 0.15em;
}

.post-card h2 {
  font-size: 1.3rem;
  margin: 0.3rem 0 0.7rem;
  font-weight: 600;
}
.post-card h2 a { color: var(--sumi); }
.post-card h2 a:hover { color: var(--kurenai); }

.post-card .excerpt {
  color: var(--sumi);
  font-size: 0.95rem;
}

.post-card .more {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--kurenai);
  border-bottom: 1px solid rgba(166, 55, 68, 0.4);
  padding-bottom: 1px;
}

/* ---------- 記事ページ ---------- */
.article {
  background: var(--shiro);
  border: 1px solid rgba(179, 147, 82, 0.25);
  border-radius: 0.3rem;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 3px 14px rgba(58, 50, 52, 0.06);
}

.article .date {
  font-size: 0.85rem;
  color: var(--kin);
  letter-spacing: 0.15em;
}

.article h1.entry-title {
  font-size: 1.7rem;
  margin: 0.4rem 0 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid rgba(179, 147, 82, 0.35);
  font-weight: 600;
}

.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 {
  font-size: 1.25rem;
  margin: 1.8em 0 0.7em;
  padding-left: 0.7rem;
  border-left: 4px solid var(--kurenai);
}
.entry-content h3 { font-size: 1.1rem; margin: 1.5em 0 0.6em; color: var(--kurenai-dark); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.6em; }
.entry-content blockquote {
  border-left: 3px solid var(--kin);
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--usuzumi);
  margin-bottom: 1.2em;
}
.entry-content img { border-radius: 0.3rem; }

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ---------- 華のアルバム ---------- */
.album-intro {
  text-align: center;
  color: var(--usuzumi);
  margin-bottom: 1.8rem;
}
.hana-album {
  columns: 2;
  column-gap: 1rem;
}
.hana-album figure {
  break-inside: avoid;
  margin: 0 0 1rem;
  background: var(--shiro);
  border: 1px solid rgba(194, 154, 91, 0.35);
  border-radius: 0.4rem;
  padding: 0.5rem;
  box-shadow: 0 3px 12px rgba(58, 50, 52, 0.08);
}
.hana-album img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  /* 縦向きの写真が縦に伸びすぎないよう、高さに上限をつける */
  max-height: 460px;
  margin: 0 auto;
  border-radius: 0.25rem;
}
.hana-album figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--usuzumi);
  padding: 0.5rem 0.2rem 0.2rem;
  letter-spacing: 0.1em;
}
@media (max-width: 600px) {
  .hana-album { columns: 1; }
}

/* ---------- 記事一覧を横3列に ---------- */
.blog-list {
  max-width: 1100px; /* 3枚並べるので棚の幅を広げる */
}
/* 両わきのおすすめカードと重なる幅のときは、棚をせばめて2列にする */
@media (min-width: 1121px) and (max-width: 1500px) {
  .blog-list { max-width: calc(100vw - 380px); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横に3等分 */
  gap: 1.4rem;
}
.post-grid .post-card {
  margin-bottom: 0;
  padding: 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.post-grid .post-card h2 { font-size: 1.05rem; }
.post-grid .post-card .excerpt { font-size: 0.88rem; }
.post-grid .post-card .more { margin-top: auto; padding-top: 0.8rem; } /* リンクをカードの下端にそろえる */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; } /* スマホでは1列に戻す */
}

/* ---------- ページ送り ---------- */
.pagination {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0 0.15rem;
  border: 1px solid rgba(179, 147, 82, 0.4);
  border-radius: 0.25rem;
  color: var(--sumi);
}
.pagination .page-numbers.current {
  background: var(--kurenai);
  border-color: var(--kurenai);
  color: #fff;
}

/* ---------- 検索窓 ---------- */
.header-search {
  display: flex;
  margin-left: auto;
  border: 1px solid rgba(194, 154, 91, 0.5);
  border-radius: 99px;
  overflow: hidden;
  background: #fff;
}
.header-search input {
  border: 0;
  outline: none;
  padding: 0.3rem 0.9rem;
  width: 10.5em;
  font: inherit;
  font-size: 0.85rem;
  background: transparent;
  color: var(--sumi);
}
.header-search button {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.7rem 0.2rem 0.2rem;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 2px solid rgba(194, 154, 91, 0.5);
  background: var(--shiro);
  color: var(--sumi);
  font-size: 0.88rem;
  padding: 2.4rem 1.5rem 1.4rem;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; min-width: 200px; }
.footer-logo {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo .footer-logo-dog {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 3px rgba(166, 55, 68, 0.2));
}
.footer-head {
  color: var(--kin);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(194, 154, 91, 0.35);
  padding-bottom: 0.3rem;
  margin-bottom: 0.2rem;
}
.footer-col a { color: var(--sumi); font-size: 0.88rem; }
.footer-col a:hover { color: var(--kurenai); }
.footer-tag { color: var(--usuzumi); font-size: 0.8rem; line-height: 1.8; }
.footer-copy {
  text-align: center;
  color: var(--usuzumi);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(194, 154, 91, 0.25);
}
.footer-copy .copy-logo-dog {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.4em;
  margin-left: 0.15em;
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2.6rem; }
  .hero h1 { font-size: 3.2rem; }
  .post-card { padding: 1.4rem 1.3rem; }
  .article { padding: 1.8rem 1.3rem; }
}

/* ---------- 記事内の動画 ----------
   スマホで撮った縦長動画が画面いっぱいに広がって
   縦に長くなりすぎないよう、幅をスマホ画面くらいに抑える */
.article .wp-video,
.article video {
  width: auto !important;
  max-width: 340px !important;
  margin: 0 auto;
  display: block;
}
.article .wp-video video {
  max-width: 100% !important;
  height: auto !important;
}
