@charset "UTF-8";

/* ============================================================
   仁虎タイガ / SKY ROOM
   01 色・フォント → 02 背景 → 03 ヘッダー・メニュー
   04 共通の枠 → 05 ヒーロー → 06 お知らせ → 07 日記
   08 プロフィール → 09 フッター → 10 スマホ
   色や画像を変えるときは、まずこのファイルとHTMLの「編集：」へ。
============================================================ */

/* 01. 色・フォント：サイト全体の設定 */
:root {
  --sky: #b1e1fc;
  --paper: #f7fcff;
  --text: #1763b8;
  --muted: #4379ab;
  --blue: #259bfa;
  --line: #78c7ff;
  --pale: #e2f4ff;
  --font-body: "Kiwi Maru", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-dot: "DotGothic16", sans-serif;
  --font-mono: "Courier New", monospace;
  --site-width: 980px;
}

/* 基本設定 */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  display: flow-root;
  position: relative;
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background: var(--sky);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border-radius: 0;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
a, button, summary {
  touch-action: manipulation;
}
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #1c70c7;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
h1, h2, h3, p {
  margin-top: 0;
}
h1, h2, h3, b, strong {
  font-weight: 500;
}
.font-dot {
  font-family: var(--font-dot);
  font-weight: 400;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon, .bottom-nav svg, .archive-button svg, .menu svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex-shrink: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 8px 16px;
  background: white;
}
.skip-link:focus {
  top: 10px;
}

/* 02. 水色の格子・星・雲。本文とは別の装飾レイヤーです */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff40 1px, transparent 1px),
    linear-gradient(90deg, #ffffff40 1px, transparent 1px),
    linear-gradient(180deg, #a8dcfa, #c3e9ff);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.sky-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/sky-decoration.svg") top center / 1600px auto repeat-y;
}
.clouds {
  position: absolute;
  inset: auto 0 0;
  height: 350px;
  pointer-events: none;
  background: url("assets/clouds.svg") bottom center / max(100%, 1100px) auto no-repeat;
}
.site-shell {
  position: relative;
  width: min(var(--site-width), calc(100% - 48px));
  min-height: 100vh;
  margin: 24px auto 0;
  background: #ffffff12;
}

/* 03. ヘッダー：画像ロゴと、画像未設置時の文字ロゴ */
.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  outline: 1px solid #fff;
  outline-offset: 4px;
  background: #f6fcfff5;
  box-shadow: inset 0 0 0 4px #e3f3ff, 0 5px 0 #8fcefb;
  margin-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 210px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
}
.brand-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .12em;
}
.brand-fallback img {
  width: 30px;
  height: 30px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.room-status {
  font: 10px var(--font-mono);
  letter-spacing: 1px;
  color: #387fc6;
}
.room-status i {
  font-style: normal;
  color: #72afff;
  margin-right: 9px;
  font-size: 16px;
}
.menu-button {
  display: grid;
  align-content: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #3da9ff;
  background: linear-gradient(140deg, #e4f6ff, #bce7ff);
  box-shadow: inset 0 0 0 3px #f5fcff, 2px 2px #96cefb;
}
.menu-button span {
  width: 21px;
  height: 2px;
  background: #2489e4;
  transition: transform .18s, opacity .18s;
}
.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site-header .menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 10px;
  z-index: 2;
  width: min(300px, calc(100% - 20px));
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  padding: 10px;
  background: var(--paper);
}
.menu a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px dashed #b5dbf8;
  font-size: 15px;
}
.menu a:last-child {
  border-bottom: 0;
}
.menu a:hover, .menu a[aria-current="page"] {
  background: #e1f3ff;
}

/* 04. 共通ウィンドウ：白地＋細い水色の多重枠 */
.window,
.c-box {
  position: relative;
  border: 1px solid #51b5ff;
  background: #f7fcfff5;
  box-shadow:
    inset 0 0 0 4px #fff,
    inset 0 0 0 5px #a4dcff,
    0 0 0 3px #e6f6ff,
    0 0 0 4px #72c4ff,
    3px 4px 0 5px #ffffffa6;
}
.window-corner {
  position: absolute;
  top: 7px;
  right: 12px;
  font: 18px var(--font-mono);
  color: var(--blue);
  letter-spacing: 3px;
}
.eyebrow {
  font: 11px var(--font-mono);
  letter-spacing: 1.3px;
  color: #397fc2;
}

/* 05. ヒーローの文字枠。画像・レイアウトの指定は末尾「28」に統一 */





.hello-window {
  transform: rotate(-2deg);
  padding: 0 18px 20px;
  background: #f3fbfff0;
}
.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 27px;
  margin-bottom: 12px;
  border-bottom: 1px solid #9ad5ff;
  color: #3784cd;
  font: 10px var(--font-mono);
}
.window-bar > span:first-child {
  letter-spacing: 4px;
  color: #79a2f2;
}
.window-bar b {
  margin-left: 10px;
  font-size: 17px;
}
.hello-window h1 {
  margin-bottom: 0;
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.6;
  letter-spacing: .08em;
  text-shadow: 1px 1px white;
}
.hello-window h1 > span {
  font-size: .68em;
  letter-spacing: .015em;
}
.hello-window h1 i {
  font-size: .68em;
  font-style: normal;
  color: #7ec6fb;
  text-shadow: 1px 1px #2587e6, -1px -1px #2587e6;
  margin-left: 5px;
}
.pixel-pointer {
  position: absolute;
  width: 34px;
  height: 42px;
  right: 19px;
  bottom: -20px;
  transform: rotate(-12deg);
  filter: drop-shadow(2px 3px 0 #80c9ff);
}
.intro-window {
  max-width: 385px;
  margin-top: 23px;
  padding: 19px 21px 15px;
  background: #f7fcfff0;
}
.intro-window p {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .04em;
}
.intro-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #407eb5;
}
.intro-bottom b {
  color: #729fe6;
  letter-spacing: 4px;
  white-space: nowrap;
}
.hero-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 4px 10px;
  background: #f7fcfff2;
  border: 1px solid #71bdff;
  font-size: 11px;
}
.hero-link:hover {
  background: white;
}

.hero-caption span {
  margin-left: 15px;
}

/* 06. 最新のお知らせ・過去のお知らせ */
.content {
  width: 81%;
  margin-inline: auto;
}
.home-content {
  position: relative;
  z-index: 1;
  margin-top: -5px;
}
.notice {
  padding: 30px 40px 19px;
  margin-bottom: 30px;
  text-align: center;
  margin-top: 50px;
}
.new-ribbon {
  position: absolute;
  top: -13px;
  left: 24px;
  width: 74px;
  padding: 12px 0 20px;
  background: linear-gradient(130deg, #8ccfff, #72b6fa);
  color: white;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 84%,0 100%);
  border: 2px solid #54b3fa;
}
.new-ribbon span {
  display: block;
  font-size: 15px;
  margin-top: 5px;
}
.notice-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #217acb;
  font-size: 14px;
  letter-spacing: .2em;
}
.notice-top time {
  display: block;
  padding: 5px 25px;
  border: 1px solid #4eaeff;
  box-shadow: 1px 1px #b2dfff;
  background: #edf8ff;
  font: 12px var(--font-mono);
  letter-spacing: 2px;
}
.notice h2 {
  margin: 18px 0 12px;
  padding: 20px 8px;
  border: 2px dotted #92ccff;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.9;
  letter-spacing: .08em;
}
.notice h2 span {
  color: #71bafb;
  text-shadow: 1px 1px #2587e6;
}
.notice-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #347cb9;
  font-size: 11px;
}
.notice-footer > span:first-child, .notice-footer > span:last-child {
  color: #46b2ff;
  font-size: 23px;
}
.notice-mascot {
  position: absolute;
  width: 62px;
  height: 56px;
  right: 14px;
  bottom: 9px;
}
.notice::before {
  content: "✧";
  position: absolute;
  left: 19%;
  top: 28px;
  color: #b4e2ff;
  font-size: 40px;
  pointer-events: none;
}
.notice::after {
  content: "✧";
  position: absolute;
  right: 15%;
  top: 21px;
  color: #c6eaff;
  font-size: 34px;
  pointer-events: none;
}
.archive-button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 15px;
  padding: 12px 18px;
  border: 1px solid #60baff;
  background: #f7fcfff2;
  box-shadow: inset 0 0 0 3px white, inset 0 0 0 4px #b6e2ff, 0 0 0 3px #ffffffbd;
  font-size: 12px;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.archive-button:hover {
  background: #e9f7ff;
}
.archive-button svg {
  color: var(--blue);
}
.chevrons {
  color: #4c91e2;
}
.archive-count {
  margin-left: auto;
  white-space: nowrap;
  font: 10px var(--font-mono);
  letter-spacing: 1px;
  color: #397fc2;
}
.archive {
  padding: 24px;
  margin-top: 22px;
  margin-bottom: 50px;
}
.archive h3 {
  font-size: 16px;
}
.archive p {
  font-size: 13px;
  padding: 12px 0;
  margin-bottom: 0;
  border-top: 1px dotted #a1d3fa;
}
.archive time {
  display: inline-block;
  margin-right: 14px;
  color: #397bb4;
  font-family: var(--font-mono);
}

/* 07. 日記へのリンク・日記ページ */
.diary-teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  margin-top: 16px;
}
.diary-teaser > div {
  min-width: 0;
}
.diary-art {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid #54b6ff;
  box-shadow: inset 0 0 0 3px #e0f3ff;
  background: #afe0ff;
  color: white;
  font-size: 59px;
  line-height: 1;
}
.diary-art i {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 17px;
  font-style: normal;
}
.diary-teaser h3 {
  font-size: 14px;
  margin: 5px 0 4px;
}
.diary-teaser p {
  font-size: 10px;
  color: #3c7ab0;
  margin: 0;
}
.teaser-arrow {
  margin-left: auto;
  color: #38a3ff;
  font-size: 27px;
  padding-right: 8px;
}
.diary-teaser:hover {
  background: white;
}
.subpage {
  padding-top: 48px;
  min-height: 60vh;
}
.page-heading {
  margin-bottom: 32px;
}
.page-heading h1 {
  font: 34px/1.6 var(--font-dot);
  letter-spacing: .08em;
  margin: 8px 0;
}
.page-heading h1 > span {
  color: #4ba9f2;
  margin-left: 15px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
}
.diary-list {
  display: grid;
  gap: 28px;
}
.diary-entry {
  padding: 30px;
}
.entry-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 11px;
  color: #3d7fb7;
}
.entry-head time {
  font-family: var(--font-mono);
  font-size: 12px;
}
.entry-head > span {
  background: #e8f5ff;
  border: 1px solid #a7d8ff;
  padding: 1px 8px;
}
.diary-entry h2 {
  font-size: 21px;
  line-height: 1.7;
}
.diary-entry p {
  color: #315f8a;
  font-size: 14px;
  line-height: 2.1;
}
.diary-entry summary {
  padding-top: 15px;
  border-top: 1px dashed #a4d3f5;
  cursor: pointer;
  font-size: 13px;
}
.diary-entry summary span {
  float: right;
}
.diary-entry details[open] summary {
  margin-bottom: 18px;
}
.diary-entry details[open] summary span {
  transform: rotate(45deg);
}

/* 08. プロフィール */
.profile-window {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
}
.profile-portrait {
  position: relative;
  min-height: 420px;
  margin: 6px 0 6px 6px;
  overflow: hidden;
}
.profile-portrait img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}
.profile-portrait > span {
  position: absolute;
  left: 15px;
  bottom: 20px;
  padding: 6px 12px;
  border: 1px solid #8dcaff;
  background: #f8fcffdd;
  font: 11px var(--font-mono);
  letter-spacing: 2px;
}
.profile-copy {
  padding: 28px;
}
.profile-copy h2 {
  font-size: 28px;
  margin: 5px 0 20px;
}
.profile-copy h2 > span {
  color: #71baff;
}
.profile-copy > p {
  font-size: 13px;
  line-height: 2;
  color: #315f8a;
}
.profile-copy dl {
  font-size: 12px;
  margin: 24px 0;
}
.profile-copy dl > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px dotted #a1cfed;
  padding: 10px 0;
}
.profile-copy dt {
  color: #4278a5;
}
.profile-copy dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #a2ddff;
  border: 1px solid #3da9fb;
  margin-right: 5px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid #69baff;
  background: #d8f0ff;
  box-shadow: 2px 2px #9acff4;
  font-size: 13px;
}
.primary-button:hover {
  background: #e9f7ff;
}
.room-rules {
  padding: 25px 30px;
  margin-top: 28px;
}
.room-rules h3 {
  font-size: 16px;
}
.room-rules h3 span {
  color: #72b3f6;
}
.room-rules p {
  font-size: 13px;
  color: #315f8a;
  margin-bottom: 0;
}

/* 09. フッター。下部固定ナビはスマホでのみ表示 */
footer {
  padding: 37px 20px 130px;
  text-align: center;
  color: #397cb8;
}
footer > span {
  color: #75a8ed;
  font-size: 22px;
  letter-spacing: 9px;
}
footer p {
  font-size: 12px;
  margin: 5px 0 17px;
  letter-spacing: 2px;
}
footer small {
  display: block;
  font: 10px/1.9 var(--font-mono);
  letter-spacing: 1px;
}
footer .demo-note {
  font: 10px/1.9 var(--font-body);
  margin-top: 6px;
  letter-spacing: 0;
}
.bottom-nav {
  display: none;
}

/* 10. タブレット */
@media (max-width: 900px) {



  .hello-window h1 {
    font-size: 31px;
  }
  .intro-window p {
    font-size: 12px;
  }
  .intro-window {
    padding: 16px;
  }
  .content {
    width: 86%;
  }
  .notice {
    padding-inline: 25px;
  }
  .notice-footer {
    font-size: 10px;
    padding-right: 20px;
  }
  .profile-window {
    grid-template-columns: 1fr;
  }
  .profile-portrait {
    height: 300px;
    min-height: 0;
    margin: 6px;
  }
  .profile-portrait img {
    object-position: 74% 38%;
  }
}

/* 11. スマホ：人物の顔と文字を重ねすぎない配置 */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .site-shell {
    width: calc(100% - 24px);
    margin-top: 12px;
  }
  .site-header {
    min-height: 74px;
    padding: 11px 15px;
    gap: 10px;
  }
  .brand-logo {
    width: 180px;
    max-height: 44px;
  }
  .brand-fallback {
    font-size: 14px;
    gap: 7px;
  }
  .brand-fallback img {
    width: 27px;
  }
  .room-status {
    display: none;
  }
  .menu-button {
    width: 44px;
    height: 44px;
  }
  .site-header .menu {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100dvh - 120px);
  }






  .hello-window {
    padding: 0 14px 15px;
  }
  .hello-window h1 {
    font-size: clamp(28px, 7.5vw, 38px);
    letter-spacing: .03em;
  }
  .hello-window h1 > span {
    font-size: .7em;
  }
  .window-bar {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .window-bar > span:first-child {
    letter-spacing: 2px;
  }
  .pixel-pointer {
    width: 29px;
    height: 35px;
    right: 15px;
    bottom: -16px;
  }
  .intro-window {
    max-width: none;
    margin-top: 21px;
    padding: 16px 17px 12px;
  }
  .intro-window p {
    font-size: 13px;
    line-height: 1.9;
  }
  .intro-bottom {
    font-size: 9px;
  }
  .hero-link {
    font-size: 11px;
    margin-top: 16px;
    min-height: 40px;
  }

  .content {
    width: calc(100% - 34px);
  }
  .home-content {
    margin-top: 8px;
  }
  .notice {
    padding: 33px 13px 17px;
    margin-bottom: 28px;
  }
  .new-ribbon {
    width: 54px;
    left: 10px;
    font-size: 16px;
    padding: 9px 0 17px;
  }
  .new-ribbon span {
    font-size: 12px;
    font-family: var(--font-mono);
  }
  .notice-top {
    gap: 10px;
    padding-left: 0;
    letter-spacing: .12em;
    font-size: 12px;
  }
  .notice-top time {
    font-size: 10px;
    padding: 5px 12px;
    letter-spacing: 1px;
  }
  .window-corner {
    font-size: 14px;
    right: 8px;
    letter-spacing: 1px;
  }
  .notice h2 {
    font-size: clamp(16px, 4.3vw, 22px);
    letter-spacing: .01em;
    padding: 22px 4px;
  }
  .notice-footer {
    font-size: 10px;
    line-height: 1.8;
    padding-right: 28px;
    gap: 4px;
  }
  .notice-footer > span:first-child, .notice-footer > span:last-child {
    font-size: 17px;
  }
  .notice-mascot {
    width: 45px;
    height: 42px;
    right: 5px;
  }
  .notice::before, .notice::after {
    display: none;
  }
  .archive-button {
    font-size: 11px;
    gap: 9px;
    padding: 12px;
    min-height: 52px;
    letter-spacing: 0;
  }
  .archive-count {
    display: none;
  }
  .chevrons {
    margin-left: auto;
    white-space: nowrap;
  }
  .archive {
    padding: 20px;
  }
  .archive time {
    display: block;
  }
  .diary-teaser {
    padding: 13px;
    gap: 12px;
  }
  .diary-art {
    width: 56px;
    height: 67px;
    font-size: 47px;
  }
  .diary-art i {
    font-size: 12px;
    right: 6px;
  }
  .diary-teaser h3 {
    font-size: 12px;
    line-height: 1.8;
  }
  .diary-teaser p {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .teaser-arrow {
    font-size: 19px;
    padding: 0;
  }
  .subpage {
    padding-top: 30px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: .03em;
  }
  .page-heading p {
    font-size: 12px;
  }
  .diary-entry {
    padding: 22px 18px;
  }
  .diary-entry h2 {
    font-size: 18px;
  }
  .diary-entry p {
    font-size: 14px;
  }
  .entry-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .profile-portrait {
    height: 260px;
  }
  .profile-copy {
    padding: 23px 18px;
  }
  .profile-copy h2 {
    font-size: 25px;
  }
  .profile-copy dl > div {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
  }
  .room-rules {
    padding: 22px 18px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 25;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 36px);
    max-width: 420px;
    height: 69px;
    padding: 5px;
    border: 1px solid #53b0f7;
    background: #f7fcfffa;
    box-shadow: 0 0 0 3px #e6f6ff, 0 0 0 4px #7cc7fa, 0 5px 18px #4b95c933;
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    font: 12px/1.7 var(--font-dot);
    border-right: 1px dashed #a6d6f5;
  }
  .bottom-nav a:last-child {
    border-right: 0;
  }
  .bottom-nav a.active {
    background: #d3eeff;
    box-shadow: inset 0 0 0 1px #9bd4ff;
  }
  .bottom-nav svg {
    width: 23px;
    height: 23px;
  }
  footer {
    padding: 36px 10px 170px;
  }
  .clouds {
    height: 250px;
    opacity: .9;
  }
}

/* 12. 動きを減らす端末設定に対応 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}

/* 13. PC版の背景修正（スマホの背景サイズは変更しません） */
@media (min-width: 601px) {
  body {
    /* 子の上marginがbodyの外へ出るのを防ぎ、背景を画面上端から描く */
    display: flow-root;
  }

  .ambient {
    /* 格子と周期が違うドットを削除。32pxの格子だけ残します */
    background-image:
      linear-gradient(#ffffff40 1px, transparent 1px),
      linear-gradient(90deg, #ffffff40 1px, transparent 1px),
      linear-gradient(180deg, #a8dcfa, #c3e9ff);
    background-size: 32px 32px, 32px 32px, 100% 100%;
    background-position: 0 0;
  }

  .sky-decoration {
    background-image: url("assets/sky-decoration-desktop.svg");
    background-size: 100% auto;
  }

  .clouds {
    /* SVGの縦横比に表示領域も合わせ、横長画面で上が切れるのを防止 */
    height: auto;
    aspect-ratio: 1600 / 350;
    background-size: 100% 100%;
  }
}

/* 14. ヒーローのボタン2つ。幅が足りないときは自然に折り返します */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 25px;
  margin-top: 26px;
}
.hero-actions .hero-link {
  margin-top: 0;
}

/* 15. 差し替え用のSVGアイコン共通設定 */
.asset-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
  vertical-align: -0.3em;
  flex-shrink: 0;
  padding-top: 1px;
}

.menu .asset-icon,
.bottom-nav .asset-icon,
.archive-button .asset-icon {
  width: 24px;
  height: 24px;
}
.window-bar > span:first-child .asset-icon {
  width: 12px;
  height: 12px;
}
.diary-art > .asset-icon {
  width: .85em;
  height: .85em;
}
.notice::before,
.notice::after {
  content: "";
  width: 1em;
  height: 1em;
  background: url("assets/icons/star.svg") center / contain no-repeat;
  opacity: .55;
}

/* 16. 3D衣装のプレゼントページ */
.gift-page {
  width: 90%;
}
.gift-page .page-heading {
  text-align: center;
  margin-bottom: 34px;
}
.gift-page .page-heading h1 {
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: .04em;
}
.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 25px;
}
.gift-guide {
  padding: 38px 21px 38px;
  text-align: center;
  background: linear-gradient(150deg, #f8fdff, #e1f3ff);
}
.gift-illustration {
  display: block;
  width: 88px;
  height: 88px;
  padding: 13px;
  margin: 0 auto 20px;
  border: 1px solid #9fd5fc;
  background: #fff9;
  box-shadow: 4px 4px 0 #c1e6ff;
  transform: rotate(-5deg);
}
.gift-guide h2 {
  margin: 12px 0 16px;
  font-size: 21px;
  line-height: 1.8;
  letter-spacing: .04em;
}
.gift-guide p {
  font-size: 12px;
  color: #426d93;
}
.gift-steps {
  display: grid;
  gap: 13px;
  margin: 24px 0;
  padding: 20px 0;
  border-block: 1px dashed #a1d2f6;
  list-style: none;
  text-align: left;
  font-size: 12px;
}
.gift-steps li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gift-steps li > span {
  color: #347dbd;
  font: 12px var(--font-mono);
}
.gift-guide .gift-guide-note {
  margin: 0;
  font-size: 11px;
}
.gift-window {
  padding: 0 27px 28px;
  min-width: 0;
}
.gift-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  margin-bottom: 22px;
  border-bottom: 1px solid #acd9fa;
  color: #3b82c2;
  font: 11px var(--font-mono);
}
.gift-titlebar > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gift-titlebar .asset-icon {
  width: 19px;
  height: 19px;
}
.gift-availability {
  margin-bottom: 25px;
  padding: 12px 14px;
  background: #eaf6ff;
  border-left: 3px solid #7fc2f5;
  color: #3c678d;
  font-size: 12px;
  line-height: 1.8;
}
.gift-availability strong {
  display: block;
  color: #236eac;
  margin-bottom: 4px;
}
.gift-form {
  display: grid;
  gap: 22px;
}
.gift-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 500;
}
.field-badge {
  border: 1px solid #b3d8f3;
  padding: 0 6px;
  color: #4c7390;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.8;
}
.required-badge {
  color: #2468ac;
  background: #e0f2ff;
  border-color: #85c5f5;
}
.gift-field input,
.gift-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #99c9ed;
  border-radius: 0;
  padding: 11px 12px;
  background: #fff;
  color: #244e73;
  box-shadow: inset 2px 2px 0 #e8f4fd;
  /* 16pxでスマホ入力時の不要な拡大を抑えます */
  font-size: 16px;
  line-height: 1.6;
}
.gift-field textarea {
  min-height: 150px;
  resize: vertical;
}
.gift-field input::placeholder,
.gift-field textarea::placeholder {
  color: #6f849a;
  opacity: 1;
  font-size: 13px;
}
.gift-field input:focus-visible,
.gift-field textarea:focus-visible {
  outline: 2px solid #2788d9;
  outline-offset: 3px;
}
.gift-field [aria-invalid="true"] {
  border-color: #b8466b;
}
.field-help,
.field-meta {
  color: #526f88;
  font-size: 11px;
  line-height: 1.8;
}
.field-help {
  margin: 7px 0 0;
}
.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}
.field-error {
  color: #a33659;
  font-size: 12px;
  margin: 6px 0 0;
}
.field-error:empty {
  display: none;
}
.gift-preview-button {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
}
.gift-preview-button .asset-icon {
  width: 20px;
  height: 20px;
}
.gift-review h2 {
  margin: 10px 0 20px;
  font-size: 20px;
}
.gift-review dl {
  margin: 0 0 20px;
}
.gift-review dl > div {
  padding: 15px 0;
  border-bottom: 1px dashed #b0d5f1;
}
.gift-review dt {
  margin-bottom: 6px;
  color: #4a789e;
  font-size: 12px;
}
.gift-review dd {
  margin: 0;
  color: #244e73;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gift-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.gift-back-button {
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #a6cfe9;
  background: #fff;
  font-size: 12px;
}
.gift-review-actions button:disabled {
  cursor: not-allowed;
  background: #e9f0f5;
  border-color: #c4d4df;
  box-shadow: none;
  color: #647889;
}
.gift-home-link {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 5px;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .gift-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gift-guide {
    padding: 22px;
  }
  .gift-illustration {
    width: 65px;
    height: 65px;
    margin-bottom: 14px;
  }
  .gift-guide h2 br {
    display: none;
  }
  .gift-steps {
    width: fit-content;
    margin: 18px auto;
  }
}
@media (max-width: 600px) {
  .hero-actions {
    margin-top: 16px;
  }
  .hero-actions .hero-link {
    margin-top: 0;
  }
  .bottom-nav .asset-icon {
    width: 23px;
    height: 23px;
  }
  .gift-page {
    width: calc(100% - 34px);
  }
  .gift-page .page-heading h1 {
    font-size: clamp(21px, 5.5vw, 28px);
  }
  .gift-window {
    padding: 0 18px 23px;
  }
  .gift-field label {
    font-size: 13px;
  }
}

/* 17. 再利用できる共通ボックス。枠は .window と同じ定義を共有 */
.c-box {
  padding: clamp(20px, 3vw, 32px);
}
.c-box > :last-child {
  margin-bottom: 0;
}
.c-box--soft {
  background: linear-gradient(140deg, #f8fdff, #e4f4ff);
}

/* 18. ボタン：外側のクリック範囲は固定し、内側だけを押し込む */
.c-btn.press {
  --btn-face: #f2faff;
  --btn-hover: #dcf0ff;
  --btn-active: #c5e7ff;
  --btn-edge: #77baf0;
  display: inline-flex;
  align-items: stretch;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.c-btn__face {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid #70b8ee;
  background: var(--btn-face, #f2faff);
  box-shadow: inset 0 0 0 2px #ffffffa6, 0 4px 0 var(--btn-edge, #77baf0);
  transition: transform 160ms cubic-bezier(.2, .7, .3, 1), box-shadow 160ms ease, background-color 160ms ease;
}
.primary-button.c-btn {
  --btn-face: #d8f0ff;
  --btn-hover: #c3e7ff;
  --btn-active: #aedfff;
}
.archive-button .c-btn__face {
  justify-content: flex-start;
  gap: 15px;
}
.hero-link .c-btn__face {
  padding: 8px 12px;
}
.gift-preview-button .c-btn__face {
  padding: 12px 16px;
}
.wishlist-link .c-btn__face {
  justify-content: center;
  font-size: 12px;
}
.c-btn:focus-visible .c-btn__face {
  background: var(--btn-hover);
}
@media (hover: hover) and (pointer: fine) {
  .c-btn.press:not(:disabled):not([aria-disabled="true"]):hover .c-btn__face {
    transform: translateY(2px);
    background: var(--btn-hover);
    box-shadow: inset 0 0 0 2px #ffffffa6, 0 2px 0 var(--btn-edge);
  }
}
.c-btn.press:not(:disabled):not([aria-disabled="true"]):active .c-btn__face {
  transform: translateY(4px);
  background: var(--btn-active);
  box-shadow: inset 0 2px 3px #3279af22, 0 0 0 var(--btn-edge);
}
.c-btn.press:disabled,
.c-btn.press[aria-disabled="true"] {
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: not-allowed;
}
.c-btn.press:disabled .c-btn__face,
.c-btn.press[aria-disabled="true"] .c-btn__face {
  color: #627b8e;
  border-color: #b8cfdf;
  background: #ecf4f9;
  box-shadow: inset 0 0 0 2px #fff8;
  transform: none;
}

/* リンク・ナビ・日記カードにも、軽い反応を追加 */
.menu a,
.bottom-nav a,
.menu-button,
.diary-entry summary {
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.menu a .asset-icon,
.bottom-nav a .asset-icon,
.teaser-arrow {
  transition: transform 180ms ease;
}
.diary-teaser {
  transition: background-color 180ms ease, border-color 180ms ease;
}
.text-link {
  color: #1c6db7;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
  .menu a:hover .asset-icon,
  .bottom-nav a:hover .asset-icon {
    transform: translateY(-2px);
  }
  .menu-button:hover {
    background: #dcf2ff;
  }
  .diary-teaser:hover {
    background: #e9f7ff;
    border-color: #268bdf;
  }
  .diary-teaser:hover .teaser-arrow {
    transform: translate(3px, -3px);
  }
  .diary-entry summary:hover {
    background: #e7f5ff;
  }
  .text-link:hover {
    text-decoration-thickness: 2px;
  }
}
.menu-button:active,
.bottom-nav a:active {
  background: #bddfff;
  box-shadow: inset 0 2px 4px #367ba533;
}

/* 19. 下層ページの見出し：ノート風の白い見出し枠 */
.page-heading--decorated {
  --heading-icon: url("assets/icons/book.svg");
  position: relative;
  isolation: isolate;
  padding: 29px 90px 25px 28px;
  border: 1px solid #85c7f7;
  border-left: 5px solid #68b9f3;
  background: linear-gradient(115deg, #fcfefff5, #eaf7ffdf);
  box-shadow: 4px 4px 0 #ffffffa6;
  text-align: left;
}
#profile-view .page-heading {
  --heading-icon: url("assets/icons/user.svg");
}
#gift-view .page-heading {
  --heading-icon: url("assets/icons/gift.svg");
  text-align: left;
}
.page-heading--decorated::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 54px;
  height: 54px;
  transform: translateY(-50%) rotate(-8deg);
  background: var(--heading-icon) center / contain no-repeat;
  opacity: .65;
}
.page-heading--decorated::after {
  content: "";
  position: absolute;
  left: 28px;
  top: -5px;
  width: 58px;
  height: 9px;
  background: #9ad8ff;
  border: 1px solid #78c0f2;
}
.page-heading--decorated h1 {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 33px);
  letter-spacing: .06em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.page-heading--decorated h1 > span {
  display: none;
}
.page-heading--decorated p {
  margin-bottom: 0;
  color: #4b7597;
}
.diary-entry {
  border-top: 3px solid #8ecdf9;
}
.diary-entry h2,
.c-heading {
  padding: 0 0 13px 13px;
  border-left: 3px solid #8bcaf7;
  border-bottom: 1px dashed #afd6f3;
  line-height: 1.8;
}

/* 背景のある見出し枠。h2/h3と説明文をまとめて包みます。 */
.c-section-heading {
  padding: clamp(22px, 4vw, 30px);
  background: #fff;
  border-top: 3px solid #8ecdf9;
}
.c-section-heading > .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #4379ab;
}
.c-section-heading > .c-heading {
  margin: 0;
  color: #1763b8;
  font-family: var(--font-dot);
  font-size: clamp(22px, 3.5vw, 28px);
}
.c-section-heading > p {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 2;
  color: #315f8a;
}

.profile-copy h2,
.gift-guide h2,
.gift-review h2 {
  padding-bottom: 14px;
  background: linear-gradient(90deg, #80c9fa, #d2ebff) left bottom / 64px 3px no-repeat;
}
.gift-guide h2 {
  background-position: center bottom;
}

/* 20. ギフトの案内と送り方ガイド */
.gift-layout > * {
  min-width: 0;
}
.gift-guide .wishlist-link {
  width: 100%;
}
.gift-howto {
  padding: clamp(20px, 4vw, 36px);
}
.section-intro > p {
  margin-bottom: 0;
  color: #507897;
  font-size: 13px;
}
.c-heading {
  font-size: clamp(20px, 2.6vw, 25px);
  margin: 10px 0 14px;
}
.wishlist-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  margin: 26px 0 6px;
  border: 1px solid #acd7f7;
  background: #e9f7ff;
}
.wishlist-panel > div {
  flex: 1 1 210px;
}
.wishlist-panel h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.wishlist-panel p {
  font-size: 12px;
  color: #4c7392;
  margin-bottom: 0;
}
.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.howto-steps > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px dashed #b4d8f1;
}
.howto-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #8bc6f1;
  background: #e4f4ff;
  box-shadow: 3px 3px 0 #c5e7ff;
  font: 17px var(--font-mono);
}
.howto-steps h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.howto-steps p {
  font-size: 13px;
  color: #3b6589;
  margin-bottom: 10px;
}
.howto-steps .text-link {
  font-size: 12px;
}
.howto-steps .avatar-note,
.howto-steps .guide-status {
  padding: 10px 12px;
  border-left: 2px solid #8ac9f6;
  background: #ebf7ff;
  font-size: 12px;
}
.howto-thanks {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  color: #4b779a;
}

/* 21. PCではヒーローだけ全幅に。100vwを使わず横スクロールを防ぐ */
@media (min-width: 901px) {
  .site-shell {
    width: 100%;
    background: transparent;
  }
  .site-header {
    width: min(var(--site-width), calc(100% - 48px));
    margin-inline: auto;
  }
  .content {
    max-width: 794px;
  }
  .gift-page {
    max-width: 882px;
  }





}

/* 22. スマホの中央寄せと、新しい装飾の調整 */
@media (max-width: 600px) {
  .notice {
    /* リボンと日付の重なりを避けつつ、日付は枠の中央へ */
    padding-top: 66px;
  }
  .notice-top {
    width: 100%;
    padding-inline: 0;
    align-items: center;
    text-align: center;
  }
  .notice-top time {
    margin-inline: auto;
  }
  .hero-actions {
    gap: 16px;
  }
  .c-btn__face {
    padding: 10px 12px;
  }
  .archive-button .c-btn__face {
    gap: 9px;
  }
  .page-heading--decorated {
    padding: 25px 58px 22px 19px;
  }
  .page-heading--decorated::before {
    right: 12px;
    width: 33px;
    height: 33px;
  }
  .page-heading--decorated::after {
    left: 19px;
    width: 43px;
  }
  .page-heading--decorated h1,
  .gift-page .page-heading h1 {
    font-size: clamp(20px, 5.5vw, 26px);
    letter-spacing: .02em;
  }
  .gift-howto {
    padding: 23px 17px;
  }
  .wishlist-panel {
    padding: 17px;
  }
  .wishlist-panel .wishlist-link {
    width: 100%;
  }
  .howto-steps > li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
    padding: 22px 0;
  }
  .howto-number {
    width: 30px;
    height: 34px;
    font-size: 14px;
  }
  .howto-steps h3 {
    font-size: 15px;
  }
}

/* 23. ヒーローのラベル配置は末尾「28」に統一 */



/* 24. 送り方ガイド：標準の details で開閉。JavaScript不要 */
.gift-details {
  margin-top: 28px;
  border: 1px solid #9bcef1;
  background: #f9fdff;
  border-radius: 6px;
}
.gift-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  color: #285c85;
  background: #eaf7ff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  transition: background-color 160ms ease;
}
.gift-details > summary::-webkit-details-marker {
  display: none;
}
.gift-details > summary .eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: .15em;
}
.gift-details > summary:focus-visible,
.gift-guide-figure a:focus-visible {
  outline: 3px solid #3277b5;
  outline-offset: 4px;
}
.gift-details[open] > summary {
  border-bottom: 1px solid #9bcef1;
  border-radius: 6px 6px 0 0;
}
.gift-details-toggle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid #9bcef1;
  border-radius: 4px;
}
.gift-details-toggle::before,
.gift-details-toggle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.gift-details-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.gift-details[open] .gift-details-toggle::after {
  display: none;
}
.gift-details-body {
  padding: 24px;
  color: #3b6589;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.gift-details-body p + p {
  margin-top: 12px;
}
.gift-guide-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px dashed #a3cfed;
}
.gift-guide-section h3 {
  margin: 6px 0 16px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.7;
  color: #285c85;
}
.gift-guide-section h4 {
  margin: 22px 0 8px;
  color: #285c85;
  font-size: 15px;
}
.gift-purchase-steps {
  padding-left: 1.7em;
}
.gift-purchase-steps li {
  padding-left: .4em;
  margin-bottom: 14px;
}
.gift-purchase-steps li::marker {
  color: #347fb6;
  font-weight: 700;
}
.gift-avatar-list {
  margin: 18px 0;
  border: 1px solid #b3d9f2;
  border-radius: 4px;
  overflow: hidden;
}
.gift-avatar-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.gift-avatar-list > div + div {
  border-top: 1px solid #b3d9f2;
}
.gift-avatar-list dt,
.gift-avatar-list dd {
  margin: 0;
  padding: 12px 14px;
}
.gift-avatar-list dt {
  background: #eaf7ff;
  font-weight: 400;
}
.gift-avatar-list dd {
  background: #fff;
  color: #285c85;
}
.gift-callout,
.gift-details-body > .guide-status {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid #82bfe9;
  background: #eaf7ff;
}
.gift-guide-figure {
  margin: 24px 0;
  padding: 12px;
  border: 1px solid #b3d9f2;
  background: #fff;
}
.gift-guide-figure a {
  display: block;
}
.gift-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.gift-guide-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: #587993;
}
.gift-consultation {
  margin-top: 22px;
  padding: 18px;
  background: #f2f4ff;
  border-radius: 4px;
}
.gift-consultation h4 {
  margin-top: 0;
}
.gift-small-note {
  font-size: 12px;
}
.gift-official-link {
  display: inline-block;
  margin-top: 28px;
}
.gift-thanks {
  font-family: var(--font-dot);
  font-size: clamp(16px, 3.8vw, 20px);
  color: #3477a8;
  line-height: 2;
}
@media (hover: hover) and (pointer: fine) {
  .gift-details > summary:hover {
    background: #dbf0ff;
  }
}
@media (max-width: 600px) {
  .gift-details > summary {
    padding: 16px 13px;
    gap: 10px;
    font-size: 14px;
  }
  .gift-details-body {
    padding: 18px 13px;
    font-size: 13px;
  }
  .gift-avatar-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .gift-avatar-list dt,
  .gift-avatar-list dd {
    padding: 9px 12px;
  }
  .gift-consultation {
    padding: 14px;
  }
  .gift-guide-figure {
    padding: 6px;
  }
}

/* 25. プロフィールの立ち絵・ターンテーブル */
.showcase-heading {
  margin-bottom: 24px;
}
.showcase-heading > p {
  font-size: 13px;
  color: var(--muted);
}
.profile-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.profile-media-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
}
.media-card-heading {
  padding-bottom: 14px;
  border-bottom: 1px dashed #a4d3f5;
}
.media-card-heading h3 {
  margin: 7px 0 0;
  font: 22px/1.6 var(--font-dot);
  color: #285c85;
}
.profile-media-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: var(--media-ratio, 2 / 3);
  margin-top: 18px;
  padding: 12px;
  border-radius: 5px;
}
.profile-media-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid #fff;
  border-radius: 50% 50% 5px 5px;
}

.profile-media-stage > img,
.profile-media-stage > video {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  min-height: 0;
  min-width: 0;
  object-fit: contain;
}
.profile-media-stage > video {
  background: #eaf5ff;
  border-radius: 4px;
}
/* ターンテーブルは台座・飾り枠を使わずメディアだけを表示 */
.profile-media-stage--turntable {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.profile-media-stage--turntable::before {
  content: none;
}
.profile-media-stage--turntable > img,
.profile-media-stage--turntable > video {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #fff;
}
.profile-media-card > figcaption {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #507897;
}

/* 26. ギフトガイドの見出し・中央ボタン・参考サイト */
.gift-wishlist-action {
  display: flex;
  justify-content: center;
  margin: 24px 0 30px;
}
.gift-wishlist-action .wishlist-link {
  max-width: 100%;
}
.gift-wishlist-action .c-btn__face {
  justify-content: center;
  text-align: center;
}
.gift-guide-section > h3 {
  padding: 12px 15px;
  border-left: 4px solid #4a9bd5;
  background: #e1f2ff;
  font-family: var(--font-dot);
  font-size: clamp(19px, 2.4vw, 23px);
}
.gift-guide-section > h4 {
  margin: 28px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #a3cfed;
  font-size: 16px;
  color: #285c85;
}
.gift-consultation h5 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #285c85;
}
.gift-reference {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed #a3cfed;
}
.gift-reference h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #285c85;
}
.gift-reference-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid #acd7f7;
  background: #edf8ff;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.gift-reference-link > span {
  display: grid;
  gap: 4px;
}
.gift-reference-link small {
  font-size: 11px;
  color: #507897;
}
.gift-reference-link:focus-visible {
  outline: 3px solid #3277b5;
  outline-offset: 4px;
}
.gift-reference-link > .asset-icon {
  flex-shrink: 0;
}
.field-meta {
  gap: 12px;
}
#gift-counter {
  flex-shrink: 0;
}
.diary-entry > p + p {
  margin-top: 16px;
}
/* 日記に直接追加した本文画像も中央へ。小さい装飾アイコンは除外 */
.diary-entry > img:not(.asset-icon),
.diary-entry > p > img:not(.asset-icon) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
}
@media (hover: hover) and (pointer: fine) {
  .gift-reference-link:hover {
    background: #dff2ff;
    border-color: #599fd4;
  }
}
@media (max-width: 600px) {
  .profile-media-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .profile-media-card {
    padding: 18px;
  }
  .profile-media-stage {
    max-height: 580px;
  }
  .gift-guide-section > h3 {
    padding: 11px 12px;
    font-size: 18px;
  }
  .gift-reference-link {
    padding: 13px;
  }
}

/* 動きを減らす設定では、色の変化だけ残します */
@media (prefers-reduced-motion: reduce) {
  .c-btn.press .c-btn__face,
  .c-btn.press:hover .c-btn__face,
  .c-btn.press:active .c-btn__face,
  .menu a .asset-icon,
  .bottom-nav a .asset-icon,
  .teaser-arrow {
    transform: none !important;
    transition: none !important;
  }
}

/* 28. ヒーローの画像と配置（ここだけを編集すれば調整できます）
   PC画像：1920×560px。全幅・高さautoで全体を表示し、拡大トリミングしません。
   1200px以上：文字枠を画像に重ねる。1199px以下：文字枠を画像の下に配置。
   600px以下：HTMLのpictureでSP画像に切り替え。人物に文字を重ねません。 */
.hero--wide {
  --hero-copy-width: clamp(340px, 25vw, 460px);
  --hero-copy-inset: clamp(28px, calc((100% - 1200px) / 2), 360px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  aspect-ratio: auto;
  border-block: 1px solid #88cafa;
  background: #eaf7ff;
}
.hero--wide > picture {
  display: block;
  grid-area: 1 / 1;
  min-width: 0;
  align-self: start;
}
.hero--wide .hero-art {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.hero--wide .hero-vignette { display: none; }
.hero--wide .hero-coordinate {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  top: auto;
  left: auto;
  z-index: 2;
  margin: 12px 24px;
  padding: 3px 7px;
  color: #246eb4;
  background: #f7fcffed;
  font: 9px var(--font-mono);
  letter-spacing: 2px;
}
.hero--wide .hero-caption {
  display: block;
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  margin: 0 32px 20px 0;
  padding: 6px 12px;
  border: 1px solid #8bc6f1;
  background: #f7fcfff2;
  box-shadow: 3px 3px 0 #94c9ef88;
  color: #246eb4;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.hero--wide .hero-copy {
  position: relative;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: start;
  top: auto;
  left: auto;
  z-index: 3;
  width: var(--hero-copy-width);
  max-width: none;
  margin: 20px 0 20px var(--hero-copy-inset);
}
.hero--wide .hello-window { padding: 0 16px 13px; }
.hero--wide .window-bar { height: 24px; margin-bottom: 8px; }
.hero--wide .hello-window h1 { font-size: clamp(26px, 2vw, 36px); line-height: 1.5; }
.hero--wide .intro-window { max-width: none; padding: 12px 16px; margin-top: 18px; }
.hero--wide .intro-window p { font-size: 12px; line-height: 1.8; margin-bottom: 6px; }
.hero--wide .hero-actions { gap: 12px; margin-top: 18px; }
.hero--wide .hero-link { margin: 0; font-size: 10px; }
.hero--wide .hero-link .c-btn__face { padding: 10px 12px; gap: 8px; }

@media (max-width: 1199px) {
  .hero--wide .hero-copy {
    grid-area: 2 / 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
    width: calc(100% - 48px);
    max-width: 900px;
    margin: 28px auto 32px;
    justify-self: center;
  }
  .hero--wide .hello-window { transform: none; }
  .hero--wide .intro-window { margin-top: 0; height: 100%; }
  .hero--wide .hero-actions { grid-column: 1 / -1; justify-content: center; margin-top: 0; }
  .hero--wide .hero-caption { margin: 0 20px 14px 0; }
}
@media (max-width: 600px) {
  .hero--wide .hero-copy {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 36px);
    margin: 24px auto 28px;
    gap: 20px;
  }
  .hero--wide .hello-window h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero--wide .intro-window { padding: 16px; }
  .hero--wide .intro-window p { font-size: 13px; }
  .hero--wide .hero-coordinate { margin: 10px; font-size: 8px; }
  .hero--wide .hero-caption { margin: 0 12px 12px 0; font-size: 9px; padding: 5px 8px; }
  .hero--wide .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 14px; }
  .hero--wide .hero-link { justify-content: center; font-size: 12px; }
  .hero--wide .hero-link .c-btn__face { justify-content: center; width: 100%; }
  /* SP画像がない時だけ、PC画像の人物付近を表示します（JSで属性を設定）。 */
  .hero--wide picture[data-fallback="desktop"] .hero-art {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 73% center;
  }
}
