:root {
  --indigo-950: #090d1d;
  --indigo-900: #11162b;
  --indigo-800: #252340;
  --cream: #fff9ef;
  --paper: #f7f0e5;
  --gold: #d5b36a;
  --gold-light: #f5d89b;
  --sun: #c9342f;
  --sun-dark: #a62825;
  --ink: #29232a;
  --muted: #706770;
  --line: rgba(213, 179, 106, 0.35);
  --shadow: 0 18px 50px rgba(7, 9, 20, 0.18);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  line-height: 1.9;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: white;
  color: #111;
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
}
.auth-bar {
  min-height: 35px;
  padding: 0.25rem clamp(1rem, 4vw, 4rem);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 9, 22, 0.38);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}
.auth-bar p {
  margin: 0 auto 0 0;
  opacity: 0.86;
}
.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.text-button,
.small-button {
  border: 0;
  cursor: pointer;
  color: white;
}
.text-button {
  background: none;
}
.small-button {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}
.navbar {
  min-height: 78px;
  padding: 0.65rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 20, 0.72),
    rgba(7, 9, 20, 0.18)
  );
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
}
.sun-logo {
  width: 48px;
  height: 48px;
  color: var(--gold-light);
  filter: drop-shadow(0 0 8px rgba(245, 210, 139, 0.28));
}
.brand span {
  display: grid;
  line-height: 1.25;
}
.brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}
.brand small {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  opacity: 0.78;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
}
.nav-menu a {
  position: relative;
  padding: 0.6rem 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  color: white;
  border: 0;
  background: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--indigo-950);
}
.hero-video,
.hero-fallback,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video {
  z-index: 1;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1.2s ease;
}
.hero-video.is-ended {
  opacity: 0;
  pointer-events: none;
}
.hero-fallback {
  z-index: 0;
  background: url("../images/hero-poster_v2.jpg") center/cover no-repeat;
}
.hero-shade {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(7, 9, 20, 0.82) 0%,
      rgba(7, 9, 20, 0.53) 48%,
      rgba(7, 9, 20, 0.22) 78%
    ),
    linear-gradient(0deg, rgba(7, 9, 20, 0.6), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  padding: 155px clamp(1.25rem, 7vw, 6rem) 100px;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.07em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero-lead {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  letter-spacing: 0.08em;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.primary-button,
.secondary-button {
  min-width: 210px;
  padding: 0.9rem 1.35rem;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.08em;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.primary-button {
  border: 1px solid var(--sun);
  color: white;
  background: var(--sun);
  box-shadow: 0 10px 28px rgba(201, 52, 47, 0.24);
}
.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: white;
  background: rgba(11, 14, 30, 0.25);
  backdrop-filter: blur(7px);
}
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}
.primary-button:hover {
  background: var(--sun-dark);
}
.hero-note {
  margin-top: 1.3rem;
  font-size: 0.78rem;
  opacity: 0.72;
}
.scroll-guide {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 3vw, 3rem);
  bottom: 1.5rem;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font:
    0.62rem system-ui,
    sans-serif;
  letter-spacing: 0.18em;
}
.scroll-guide i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(white, transparent);
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 6vw, 5rem);
}
.section-heading {
  max-width: 1120px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-heading p {
  margin: 0;
  color: var(--sun);
  font:
    0.75rem Georgia,
    serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.about-section {
  background: linear-gradient(135deg, var(--cream), #f3e9da);
}
.about-grid {
  width: min(1060px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.profile-frame {
  position: relative;
  margin: 0;
  padding: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.profile-frame::before {
  content: "";
  position: absolute;
  inset: -10px 10px 10px -10px;
  z-index: -1;
  border: 1px solid var(--gold);
}
.profile-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.profile-frame figcaption {
  padding: 0.75rem 0.5rem 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}
.about-copy p {
  margin: 0 0 1rem;
}
.about-copy .intro {
  font-size: 1.18rem;
  font-weight: 600;
}
.about-copy blockquote {
  margin: 1.8rem 0 0;
  padding: 1rem 0 1rem 1.4rem;
  border-left: 2px solid var(--sun);
  color: #5b3540;
  font-size: 1.2rem;
}

.consultations-section {
  color: white;
  background: var(--indigo-900);
}
.light-heading p {
  color: var(--gold-light);
}
.consultation-grid {
  width: min(1120px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.consultation-grid article {
  min-height: 240px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition:
    background 0.25s,
    transform 0.25s;
}
.consultation-grid article:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-3px);
}
.consultation-grid span {
  color: var(--gold-light);
  font-size: 1.8rem;
}
.consultation-grid h3 {
  margin: 0.55rem 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}
.consultation-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.91rem;
}

.services-section {
  background: var(--paper);
}
.service-grid {
  width: min(1120px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  background: white;
  box-shadow: 0 10px 35px rgba(55, 42, 47, 0.08);
}
.service-card > span {
  color: var(--sun);
  font:
    0.75rem Georgia,
    serif;
  letter-spacing: 0.18em;
}
.service-card h3 {
  margin: 0.7rem 0;
  font-size: 1.25rem;
}
.service-card p {
  flex: 1;
  color: var(--muted);
}
.link-button {
  align-self: flex-start;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  color: #5d3c3c;
  background: none;
}

.contact-section {
  background:
    linear-gradient(rgba(8, 11, 25, 0.82), rgba(8, 11, 25, 0.82)),
    url("../images/hero-poster_v2.jpg") center/cover fixed;
}
.contact-box {
  width: min(760px, 100%);
  margin: auto;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid rgba(245, 210, 139, 0.4);
  color: white;
  background: rgba(13, 16, 34, 0.72);
  text-align: center;
  backdrop-filter: blur(8px);
}
.contact-box h2 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 500;
}
.contact-box .primary-button {
  margin-top: 1rem;
}

.site-footer {
  padding: 3.5rem clamp(1.25rem, 6vw, 5rem) 1.5rem;
  color: rgba(255, 255, 255, 0.74);
  background: #070a16;
  font-size: 0.82rem;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, 100%);
  margin: auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-main > p {
  margin: 0;
}
.footer-links {
  width: min(1120px, 100%);
  margin: 1.4rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.footer-link {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
}
.footer-link:hover {
  color: white;
}
.disclaimer,
.copyright {
  width: min(1120px, 100%);
  margin: 1rem auto 0;
}
.disclaimer {
  color: rgba(255, 255, 255, 0.5);
}
.copyright {
  text-align: right;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.notice {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: -100px;
  transform: translateX(-50%);
  padding: 0.8rem 1.4rem;
  color: white;
  background: rgba(13, 16, 34, 0.95);
  box-shadow: var(--shadow);
  transition: bottom 0.3s;
}
.notice.show {
  bottom: 1.5rem;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 80px;
  }
  .auth-bar p {
    display: none;
  }
  .auth-bar {
    justify-content: flex-end;
  }
  .navbar {
    min-height: 68px;
  }
  .sun-logo {
    width: 42px;
    height: 42px;
  }
  .brand strong {
    font-size: 1.05rem;
  }
  .nav-toggle {
    display: grid;
    grid-template-columns: 24px auto;
    align-items: center;
    gap: 0 0.55rem;
    cursor: pointer;
  }
  .nav-toggle span {
    grid-column: 1;
    display: block;
    width: 24px;
    height: 1px;
    margin: 2px 0;
    background: white;
  }
  .nav-toggle b {
    grid-column: 2;
    grid-row: 1 / span 3;
    font-size: 0.72rem;
    font-weight: 400;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 1rem 1.4rem 1.5rem;
    background: rgba(7, 9, 20, 0.96);
    backdrop-filter: blur(12px);
  }
  .nav-menu.open {
    display: grid;
  }
  .hero-content {
    padding-top: 140px;
  }
  .hero h1 br,
  .hero-lead br {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .profile-frame {
    width: min(440px, 100%);
    margin: auto;
  }
  .consultation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand small {
    display: none;
  }
  .auth-bar {
    min-height: 32px;
  }
  .hero {
    min-height: 92svh;
  }
  .hero-content {
    padding-top: 135px;
  }
  .hero-buttons {
    display: grid;
  }
  .primary-button,
  .secondary-button {
    width: 100%;
  }
  .scroll-guide {
    display: none;
  }
  .consultation-grid {
    grid-template-columns: 1fr;
  }
  .consultation-grid article {
    min-height: 0;
  }
  .footer-links {
    display: grid;
  }
  .copyright {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-video {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   法定表示ページ
========================================================= */

.legal-page {
  min-height: 100vh;
  padding: 120px 20px 70px;
  color: #38291f;
  background:
    linear-gradient(rgba(255, 250, 242, 0.94), rgba(255, 255, 255, 0.97)),
    url("../images/hero-poster_v2.jpg") center / cover fixed;
}

.legal-card {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 42px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(183, 132, 38, 0.35);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(72, 45, 20, 0.14);
}

.legal-card h1 {
  margin: 0 0 28px;
  color: #9c291f;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-align: center;
}

.legal-card h2 {
  margin-top: 30px;
  color: #8a3a25;
  font-size: 1.2rem;
}

.legal-intro {
  margin-bottom: 30px;
  line-height: 1.9;
  text-align: center;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.8;
}

.legal-table th,
.legal-table td {
  padding: 15px 17px;
  border: 1px solid #dfd5c8;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 28%;
  color: #6b3b29;
  background: #fff5e8;
}

.legal-section {
  line-height: 1.9;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-card a {
  color: #a22f25;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-date {
  margin-top: 38px;
  color: #6f655d;
  text-align: right;
}

.legal-back {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 90px 12px 45px;
  }

  .legal-card {
    padding: 25px 16px;
    border-radius: 12px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .legal-table th {
    border-bottom: 0;
  }

  .legal-table td {
    margin-bottom: 10px;
  }

  .legal-intro {
    text-align: left;
  }
}

/* =========================================================
   法定ページ共通ヘッダー
========================================================= */

.legal-site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(87, 20, 20, 0.97),
    rgba(142, 43, 30, 0.94)
  );
  border-bottom: 1px solid rgba(255, 210, 104, 0.65);
  box-shadow: 0 4px 18px rgba(45, 20, 10, 0.18);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  gap: 30px;
}

.legal-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.legal-sun-logo {
  color: #ff3b23;
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(255, 202, 73, 0.8))
    drop-shadow(0 0 10px rgba(255, 85, 32, 0.5));
}

.legal-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.legal-logo-text strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.legal-logo-text small {
  margin-top: 4px;
  color: #ffe9b1;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.legal-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.legal-header-nav a,
.header-coming-soon {
  padding: 8px 2px;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.legal-header-nav a:hover,
.legal-header-nav a:focus-visible,
.header-coming-soon:hover,
.header-coming-soon:focus-visible {
  color: #ffdf87;
}

/* =========================================================
   共通フッター
========================================================= */

.site-legal-footer {
  padding: 42px 20px 24px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #351b1a, #631f1c);
  border-top: 1px solid rgba(255, 210, 104, 0.5);
}

.site-legal-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.footer-brand-name {
  margin: 0 0 8px;
  color: #ffe4a0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.2rem;
}

.footer-brand-name span {
  color: #ff4b28;
}

.footer-catchphrase {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 23px;
}

.footer-link {
  display: inline;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.84rem;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffdf87;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-notice {
  margin: 12px 0 8px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.77rem;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

/* =========================================================
   スマートフォン
========================================================= */

@media (max-width: 760px) {
  .legal-header-inner {
    flex-direction: column;
    width: calc(100% - 28px);
    padding: 14px 0 12px;
    gap: 12px;
  }

  .legal-header-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 16px;
  }

  .legal-header-nav a,
  .header-coming-soon {
    font-size: 0.82rem;
  }

  .footer-legal-nav {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* =========================================================
   法定ページの文章位置
========================================================= */

.legal-section p {
  text-indent: 1em; /* 段落冒頭を1文字下げる */
  line-height: 1.9;
}

.legal-section ul {
  margin: 0.8em 0 1.5em;
  padding-left: 2.5em;
}

.legal-section li {
  padding-left: 0.3em;
  margin-bottom: 0.6em;
  line-height: 1.9;
}

.legal-section p.no-indent {
  text-indent: 0;
}

.legal-section {
  padding-left: 1em;
  padding-right: 1em;
}

.legal-section {
  padding-inline: 1em;
}

.legal-section p {
  text-indent: 1em;
}

.legal-index {
  margin: 2em 0 3em;
  padding: 1.5em 2em;
  background: rgba(255, 247, 232, 0.9);
  border: 1px solid #e7d5bc;
  border-radius: 12px;
}

.legal-index h2 {
  margin-top: 0;
}

.legal-index li {
  margin: 0.65em 0;
}

.legal-document {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #dfd5c8;

  /* ページ内移動時に固定ヘッダーの裏へ隠れない */
  scroll-margin-top: 110px;
}

.legal-document > h2 {
  color: #942d24;
}

.legal-action-link {
  display: inline-block;
  padding: 0.75em 1.4em;
  color: #fff !important;
  text-decoration: none !important;
  background: #8d2a23;
  border-radius: 8px;
}

/* =========================================================
   利用規約本文
========================================================= */

.terms-text {
  margin-top: 1.8rem;
  color: #443b35;

  /* PCで約14.4px */
  font-size: 0.9rem;

  /* 小さめでも読める行間 */
  line-height: 1.8;

  letter-spacing: 0.025em;
  text-align: justify;
  overflow-wrap: anywhere;
}

.terms-text p {
  margin: 0.65em 0 1.15em;

  /* 日本語段落の冒頭を1文字下げる */
  text-indent: 1em;
}

.terms-text .terms-lead {
  margin-bottom: 2em;
}

.terms-text h3 {
  margin: 2em 0 0.7em;
  padding: 0.45em 0.75em;
  color: #743229;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff8ee;
  border-left: 4px solid #a83a2d;
}

.terms-list {
  margin: 0.7em 0 1.5em;
  padding-left: 2.7em;
}

.terms-list li {
  margin-bottom: 0.45em;
  padding-left: 0.25em;
  line-height: 1.75;
}

.terms-text a {
  color: #8e3027;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-revision {
  margin-top: 2.5em;
  padding-top: 1em;
  color: #6f655d;
  border-top: 1px solid #ded5cb;
  text-align: right;
}

.terms-revision p {
  margin: 0.25em 0;
  text-indent: 0;
}

/* スマートフォン */
@media (max-width: 640px) {
  .terms-text {
    /* スマホでは小さくしすぎない */
    font-size: 0.95rem;
    line-height: 1.85;
    letter-spacing: 0.015em;
    text-align: left;
  }

  .terms-text h3 {
    margin-top: 1.7em;
    font-size: 1rem;
  }

  .terms-list {
    padding-left: 2em;
  }
}

/* =========================================================
   プライバシーポリシー
========================================================= */

.privacy-text {
  margin-top: 1.8rem;
  color: #443b35;
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.025em;
  text-align: justify;
  overflow-wrap: anywhere;
}

.privacy-text p {
  margin: 0.65em 0 1.15em;
  text-indent: 1em;
}

.privacy-text h3 {
  margin: 2em 0 0.7em;
  padding: 0.45em 0.75em;
  color: #743229;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff8ee;
  border-left: 4px solid #a83a2d;
}

.privacy-list,
.privacy-service-list {
  margin: 0.7em 0 1.5em;
  padding-left: 2.7em;
}

.privacy-list li,
.privacy-service-list li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
  line-height: 1.75;
}

.privacy-text a {
  color: #8e3027;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-contact {
  margin: 1.4em 0 !important;
  text-align: center;
  text-indent: 0 !important;
}

.privacy-contact-note {
  padding: 1.2em 1.4em;
  text-indent: 0 !important;
  line-height: 2;
  background: #fffaf2;
  border: 1px solid #e4d8c8;
  border-radius: 8px;
}

.privacy-revision {
  margin-top: 2.5em;
  padding-top: 1em;
  color: #6f655d;
  text-align: right;
  border-top: 1px solid #ded5cb;
}

.privacy-revision p {
  margin: 0.25em 0;
  text-indent: 0;
}

@media (max-width: 640px) {
  .privacy-text {
    font-size: 0.95rem;
    line-height: 1.85;
    letter-spacing: 0.015em;
    text-align: left;
  }

  .privacy-list,
  .privacy-service-list {
    padding-left: 2em;
  }

  .privacy-contact-note {
    padding: 1em;
  }
}

/* =========================================================
   利用規約・プライバシーポリシー共通書式
========================================================= */

/* 章題：1．利用規約、2．プライバシーポリシー */
#terms > h2,
#privacy > h2 {
  margin: 0 0 1.8rem;
  color: #8d3028;
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* 本文全体 */
.terms-text,
.privacy-text {
  margin-top: 1.8rem;
  color: #443b35;
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.025em;
  text-align: justify;
  overflow-wrap: anywhere;
}

/* 通常の段落 */
.terms-text p,
.privacy-text p {
  margin: 0.65em 0 1.15em;
  font-size: inherit;
  line-height: inherit;
  text-indent: 1em;
}

/* 冒頭説明文 */
.terms-lead,
.privacy-lead {
  margin-bottom: 2em !important;
  font-size: inherit;
  line-height: inherit;
}

/* 条項名の基本書式 */
.terms-text h3,
.privacy-text h3 {
  box-sizing: border-box;
  width: 100%;
  margin: 2em 0 0.8em;
  padding: 0.55em 0.85em;
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.025em;
  border-radius: 0 6px 6px 0;
}

/* 箇条書き */
.terms-list,
.privacy-list,
.privacy-service-list {
  margin: 0.7em 0 1.5em;
  padding-left: 2.7em;
  font-size: inherit;
  line-height: inherit;
}

.terms-list li,
.privacy-list li,
.privacy-service-list li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
  font-size: inherit;
  line-height: 1.75;
}

/* =========================================================
   プライバシーポリシー：緑系
========================================================= */

.privacy-text h3 {
  color: #35644e;

  /* 薄い緑の背景 */
  background: linear-gradient(90deg, #edf7f1 0%, #f7fbf8 100%);

  /* ボックス全体の薄い緑の線 */
  border: 1px solid #cfe2d7;

  /* 左辺を濃い緑で強調 */
  border-left: 5px solid #4f8b6d;

  box-shadow: 0 2px 7px rgba(53, 100, 78, 0.08);
}

@media (max-width: 640px) {
  #terms > h2,
  #privacy > h2 {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .terms-text,
  .privacy-text {
    font-size: 0.95rem;
    line-height: 1.85;
    letter-spacing: 0.015em;
    text-align: left;
  }

  .terms-text h3,
  .privacy-text h3 {
    margin-top: 1.7em;
    padding: 0.6em 0.7em;
    font-size: 1rem;
  }

  .terms-list,
  .privacy-list,
  .privacy-service-list {
    padding-left: 2em;
  }
}

/* =========================================================
   特商法・キャンセル・免責事項
   利用規約と同じ赤茶色のデザイン
========================================================= */

#tokusho > h2,
#cancellation > h2,
#disclaimer > h2 {
  margin: 0 0 1.8rem;
  color: #8d3028;
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

#tokusho .terms-text h3,
#cancellation .terms-text h3,
#disclaimer .terms-text h3 {
  box-sizing: border-box;
  width: 100%;
  margin: 2em 0 0.8em;
  padding: 0.55em 0.85em;
  color: #743229;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.025em;
  background: linear-gradient(90deg, #fff5e9 0%, #fffbf5 100%);
  border: 1px solid #ead9c7;
  border-left: 5px solid #a83a2d;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 7px rgba(116, 50, 41, 0.06);
}

/* 特商法の表 */
.tokusho-table {
  margin-top: 1.3em;
}

.tokusho-table th {
  width: 27%;
  color: #743229;
  font-weight: 600;
  background: #fff5e9;
}

.tokusho-table td {
  background: rgba(255, 255, 255, 0.7);
}

.tokusho-table th,
.tokusho-table td {
  padding: 0.9em 1.1em;
  font-size: 0.9rem;
  line-height: 1.75;
  border: 1px solid #e7d9ca;
}

/* お問い合わせボタン部分は字下げしない */
#cancellation .privacy-contact {
  text-indent: 0;
}

@media (max-width: 640px) {
  #tokusho > h2,
  #cancellation > h2,
  #disclaimer > h2 {
    font-size: 1.3rem;
  }

  .tokusho-table th,
  .tokusho-table td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    font-size: 0.95rem;
  }

  .tokusho-table th {
    border-bottom: 0;
  }

  .tokusho-table td {
    margin-bottom: 0.7em;
  }
}

/* =========================================================
   独立ページへの案内パネル
========================================================= */

.legal-link-panel {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding: 1.7rem;
  background: linear-gradient(135deg, #fff9ef, #fff);
  border: 1px solid #e7d7c4;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(105, 56, 36, 0.06);
}

.legal-link-icon,
.page-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #a83a2d, #7e261f);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(126, 38, 31, 0.22);
}

.page-symbol {
  margin: 0 auto 1rem;
}

.legal-link-content {
  flex: 1;
}

.legal-link-content h3 {
  margin: 0 0 0.6em;
  color: #743229;
  font-size: 1.1rem;
}

.legal-link-content p {
  margin: 0 0 1.2em;
  line-height: 1.8;
}

/* =========================================================
   お問い合わせフォーム
========================================================= */

.contact-card,
.membership-card {
  max-width: 900px;
}

.contact-intro,
.membership-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
  text-align: center;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field > label {
  display: block;
  margin-bottom: 0.55rem;
  color: #65372e;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.85rem 1rem;
  color: #3e3733;
  font: inherit;
  background: #fff;
  border: 1px solid #d7c8bb;
  border-radius: 8px;
}

.form-field textarea {
  min-height: 190px;
  line-height: 1.7;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(168, 58, 45, 0.14);
  border-color: #a83a2d;
}

.required-mark,
.optional-mark {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.12em 0.45em;
  font-size: 0.72rem;
  border-radius: 4px;
}

.required-mark {
  color: #fff;
  background: #a83a2d;
}

.optional-mark {
  color: #625750;
  background: #eee8e2;
}

.form-help {
  margin: 0.45em 0 0;
  color: #786d65;
  font-size: 0.82rem;
}

.privacy-agreement {
  margin: 1.8rem 0;
  padding: 1.1rem;
  line-height: 1.7;
  background: #fff8ee;
  border: 1px solid #e5d6c4;
  border-radius: 8px;
}

.privacy-agreement label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.privacy-agreement input {
  margin-top: 0.35em;
}

.contact-submit {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  color: #fff;
  font: inherit;
  font-weight: 600;
  background: linear-gradient(135deg, #aa392d, #81271f);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 6px 17px rgba(129, 39, 31, 0.22);
}

.contact-submit:hover {
  transform: translateY(-1px);
}

.form-success,
.form-error-summary {
  max-width: 680px;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem;
  border-radius: 10px;
}

.form-success {
  text-align: center;
  background: #eef8f1;
  border: 1px solid #bfdcc8;
}

.form-error-summary {
  color: #762a23;
  background: #fff1ef;
  border: 1px solid #e5b8b3;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-notes {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  background: #faf7f2;
  border-radius: 10px;
}

.contact-notes h2 {
  margin-top: 0;
  color: #743229;
  font-size: 1.05rem;
}

.contact-notes li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* =========================================================
   会員・解約ページ
========================================================= */

.membership-symbol {
  background: linear-gradient(135deg, #b88a35, #8e6120);
}

.membership-status {
  margin: 2rem 0 3rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #fff8e9, #fffdf8);
  border: 1px solid #e5cf9f;
  border-radius: 14px;
}

.status-label {
  display: inline-block;
  padding: 0.3em 0.8em;
  color: #fff;
  font-size: 0.78rem;
  background: #986825;
  border-radius: 999px;
}

.membership-status h2 {
  margin: 0.9em 0 0.5em;
  color: #744b18;
}

.membership-section {
  margin-top: 2.7rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e2d9cf;
}

.membership-section > h2,
.membership-caution > h2 {
  color: #743229;
  font-size: 1.25rem;
}

.membership-section p,
.membership-section li,
.membership-caution p {
  line-height: 1.85;
}

.membership-steps {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.membership-steps > li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  background: #fffaf2;
  border: 1px solid #e5d9ca;
  border-radius: 10px;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #a83a2d;
  border-radius: 50%;
}

.membership-steps h3 {
  margin: 0 0 0.35em;
  color: #743229;
  font-size: 1rem;
}

.membership-steps p {
  margin: 0;
}

.membership-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.membership-comparison > div {
  padding: 1.3rem;
  background: #fffaf2;
  border: 1px solid #e5d9ca;
  border-radius: 10px;
}

.membership-comparison h3 {
  margin-top: 0;
  color: #743229;
}

.membership-caution {
  margin-top: 2.5rem;
  padding: 1.4rem;
  background: #fff4ef;
  border-left: 5px solid #a83a2d;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 640px) {
  .legal-link-panel {
    flex-direction: column;
    padding: 1.2rem;
  }

  .legal-link-icon {
    width: 44px;
    height: 44px;
  }

  .membership-comparison {
    grid-template-columns: 1fr;
  }

  .membership-steps > li {
    padding: 1rem;
  }
}

/* =========================================================
   管理者画面
========================================================= */

.admin-page {
  min-height: 100vh;
  padding: 80px 20px;
  color: #403832;
  background: #f5f1eb;
}

.admin-login-card,
.admin-panel {
  box-sizing: border-box;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e1d7cc;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(70, 46, 35, 0.1);
}

.admin-login-card {
  width: min(480px, 100%);
}

.admin-login-card h1 {
  text-align: center;
}

.admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-logout {
  padding: 0.65rem 1rem;
  color: #fff;
  background: #6d625b;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.admin-search {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.admin-search input,
.admin-search select,
.admin-search button {
  padding: 0.75rem;
  font: inherit;
  border: 1px solid #d5c7bb;
  border-radius: 7px;
}

.admin-search button {
  color: #fff;
  background: #8f3027;
  cursor: pointer;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem;
  border: 1px solid #ded6cf;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #fff5e9;
}

.status-new,
.status-replied {
  display: inline-block;
  padding: 0.2em 0.55em;
  font-size: 0.78rem;
  white-space: nowrap;
  border-radius: 999px;
}

.status-new {
  color: #fff;
  background: #a63a2e;
}

.status-replied {
  color: #24563d;
  background: #dcefe3;
}

.inquiry-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 2rem 0;
  border-top: 1px solid #ddd3ca;
}

.inquiry-detail dt,
.inquiry-detail dd {
  box-sizing: border-box;
  margin: 0;
  padding: 0.9rem;
  border-bottom: 1px solid #ddd3ca;
}

.inquiry-detail dt {
  color: #6d382f;
  font-weight: 600;
  background: #fff7ec;
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}

.reply-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  font: inherit;
  line-height: 1.7;
}

.admin-error {
  margin: 1rem 0;
  padding: 1rem;
  color: #7b261f;
  background: #fff0ee;
  border: 1px solid #e5b9b4;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .admin-page {
    padding: 35px 10px;
  }

  .admin-login-card,
  .admin-panel {
    padding: 1.1rem;
  }

  .admin-heading {
    flex-direction: column;
  }

  .admin-search {
    grid-template-columns: 1fr;
  }

  .inquiry-detail {
    display: block;
  }

  .inquiry-detail dt {
    border-bottom: 0;
  }

  .admin-table th,
  .admin-table td {
    min-width: 120px;
  }
}

.admin-lock-message {
  margin: 1rem 0;
  padding: 1rem;
  color: #6a4315;
  line-height: 1.7;
  background: #fff7e6;
  border: 1px solid #e3c98e;
  border-left: 5px solid #b9832f;
  border-radius: 0 8px 8px 0;
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.8;
}

.spam-action-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd4ca;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.spam-button {
  appearance: none;
  border: 1px solid #a64b43;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  background: #fff;
  color: #922f29;
  font: inherit;
  cursor: pointer;
}

.spam-button:hover {
  background: #fff1ef;
}

.spam-restore-button {
  appearance: none;
  border: 1px solid #66766b;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  background: #f1f7f2;
  color: #405347;
  font: inherit;
  cursor: pointer;
}

.spam-restore-button:hover {
  background: #e1efe4;
}

.spam-status-message {
  margin: 0;
  color: #922f29;
  font-weight: 600;
}

.status-spam {
  display: inline-block;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: #56504d;
  color: #fff;
  white-space: nowrap;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================================
   幸照プロフィール動画
========================================================= */

.kousyo-profile-media {
  position: relative;

  /* PCでのプロフィール写真・動画の最大サイズ */
  width: min(100%, 760px); /**/
  height: auto;
  aspect-ratio: 1 / 1;

  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #16131a;

  box-shadow:
    0 18px 45px rgba(35, 18, 10, 0.2),
    0 0 0 1px rgba(205, 167, 82, 0.38);
}

/*.kousyo-profile-media {*/
.kousyo-profile-photo {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #16131a;
  box-shadow:
    0 18px 45px rgba(35, 18, 10, 0.2),
    0 0 0 1px rgba(205, 167, 82, 0.38);
}

/* 写真と動画を同じ位置・大きさに重ねる */
/*.kousyo-profile-photo,*/
.kousyo-profile-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /*動画の上下左右が切れる場合は、現在の次の設定を、object-fit: contain;*/
  transition:
    opacity 0.8s ease,
    transform 1.2s ease;
}

/* 通常は写真を表示 */
.kousyo-profile-photo {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

/* 通常は動画を隠す */
.kousyo-profile-video {
  z-index: 2;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  background: #16131a;
}

/* 動画再生中 */
.kousyo-profile-media.is-playing .kousyo-profile-photo {
  opacity: 0;
  transform: scale(1.025);
}

.kousyo-profile-media.is-playing .kousyo-profile-video {
  opacity: 1;
  transform: scale(1);
}

/* テロップ */
.kousyo-video-caption {
  position: absolute;
  z-index: 4;
  left: 7%;
  right: 7%;
  bottom: 7%;
  padding: 13px 18px;
  overflow: hidden;

  color: #fff9e8;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;

  border: 1px solid rgba(240, 204, 112, 0.72);
  border-radius: 999px;
  background: rgba(30, 13, 15, 0.72);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(225, 179, 75, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s;
}

/* 動画再生中だけテロップを表示 */
/* JavaScriptからis-visibleが付いたときだけ表示 */
.kousyo-video-caption.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kousyo-video-caption span {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* 文章を切り替えたときの柔らかな登場 */
.kousyo-video-caption.is-visible span {
  animation: kousyo-caption-appear 0.55s ease both;
}

@keyframes kousyo-caption-appear {
  from {
    opacity: 0;
    transform: translateX(35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 長い第1テロップを2行まで表示できるようにする */
.kousyo-video-caption {
  white-space: normal;
  line-height: 1.7;
}

/* 最後の映像を0.5秒保持している状態 */
.kousyo-profile-media.is-holding-last-frame .kousyo-profile-video {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 600px) {
  .kousyo-video-caption {
    left: 4%;
    right: 4%;
    bottom: 4%;
    padding: 9px 12px;
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    line-height: 1.65;
    letter-spacing: 0.04em;
  }
}

/*.kousyo-profile-media.is-playing .kousyo-video-caption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}*/

/* テロップ文字を右から滑らかに表示 */
/*.kousyo-profile-media.is-playing .kousyo-video-caption span {
  display: inline-block;
  animation: kousyo-caption-flow 7s ease-in-out both;
}

@keyframes kousyo-caption-flow {
  0% {
    opacity: 0;
    transform: translateX(55px);
  }

  15% {
    opacity: 1;
    transform: translateX(0);
  }

  78% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-40px);
  }
}*/

/* 動画再生中の金色の柔らかな光 */
.kousyo-video-glow {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  box-shadow: inset 0 0 45px rgba(229, 187, 82, 0.45);
  transition: opacity 0.8s ease;
}

.kousyo-profile-media.is-playing .kousyo-video-glow {
  opacity: 1;
}

/* ご挨拶ボタン */
.kousyo-greeting-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  width: min(100%, 390px);
  min-height: 56px;
  margin: 22px auto 12px;
  padding: 13px 24px;

  color: #fff9ec;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0.1em;

  border: 1px solid rgba(255, 218, 130, 0.75);
  border-radius: 999px;
  background: linear-gradient(135deg, #761d1b, #b43728);
  box-shadow:
    0 10px 25px rgba(111, 27, 24, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.18);

  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.kousyo-greeting-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8b211d, #c94833);
  box-shadow:
    0 14px 30px rgba(111, 27, 24, 0.32),
    0 0 18px rgba(226, 181, 76, 0.18);
}

.kousyo-greeting-button:focus-visible {
  outline: 3px solid rgba(226, 181, 76, 0.75);
  outline-offset: 4px;
}

.kousyo-greeting-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.greeting-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; /*1.7rem*/
  height: 1.5rem; /*1.7rem*/
  padding-left: 2px;

  color: #83231e;
  font-size: 0.6rem; /*0.72rem*/
  border-radius: 25%; /*50%*/
  background: #f5d577;
}

/* スクリーンリーダー向けの状態通知 */
.kousyo-video-status {
  min-height: 1.4em;
  margin: 0;
  color: #72584e;
  font-size: 0.85rem;
  text-align: center;
}

/* 既存のキャプション */
.profile-frame figcaption {
  margin-top: 10px;
  line-height: 1.8;
  text-align: center;
}

/* スマートフォン */
@media (max-width: 600px) {
  .kousyo-profile-media {
    max-width: 100%;
    border-radius: 14px;
  }

  .kousyo-video-caption {
    left: 4%;
    right: 4%;
    bottom: 5%;
    padding: 10px 8px;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .kousyo-greeting-button {
    width: 92%;
    min-height: 52px;
    margin-top: 18px;
  }
}

/* 動きを減らす設定の利用者に配慮 */
@media (prefers-reduced-motion: reduce) {
  .kousyo-profile-photo,
  .kousyo-profile-video,
  .kousyo-video-caption,
  .kousyo-video-glow,
  .kousyo-greeting-button {
    transition: none;
  }

  .kousyo-profile-media.is-playing .kousyo-video-caption span {
    animation: none;
  }
}

/*ただし、親要素の.about-gridが狭い場合は、動画だけ大きくなりません。
その場合は、次もCSSの最後に追加してください。*/

.about-grid {
  display: grid;
  grid-template-columns: minmax(420px, 760px) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* スマートフォン・タブレット */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .kousyo-profile-media {
    width: min(100%, 620px);
  }
}
