:root {
  --text: #f6f8ff;
  --shadow: rgba(0, 0, 0, 0.55);
  --panelText: #fff;
  --header-stack-height: 210px;
  --personal-current-width: calc(100vw / 4);
  --personal-fixed-width: clamp(470px, calc(36vw + 50px), 690px);
  --header-person-width: clamp(92px, 11.5vw, 162px);
  --header-person-right: clamp(3.8rem, 6.4vw, 5.2rem);
  --header-text-gap: clamp(0.18rem, 0.5vw, 0.35rem);
  --header-person-safe: calc(var(--header-person-width) + var(--header-text-gap));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-stack-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 0.8rem 0 0;
  background: linear-gradient(180deg, rgba(13, 44, 92, 0.36) 0%, rgba(13, 44, 92, 0.18) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  overflow: visible;
}

.site-header-top {
  color: #fff;
  margin: 0 0 0.55rem;
  padding: 0 1rem;
  padding-right: var(--header-person-safe);
}

.site-header-top p {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.4);
  font-size: clamp(0.82rem, 1.35vw, 1.08rem);
}

.site-header-bottom {
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.55rem 0 0.45rem;
  padding-right: var(--header-person-safe);
  transition: background-color 0.6s ease;
}

.site-header-copy {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.site-header-copy p {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  font-size: clamp(1.76rem, 3.1vw, 2.36rem);
  transition: color 0.6s ease;
  display: grid;
}

.site-header-copy .copy-text {
  grid-area: 1 / 1;
  transition: opacity 0.6s ease;
}

.site-header-copy .copy-default {
  opacity: 1;
}

.site-header-copy .copy-light {
  opacity: 0;
}

.site-header-copy p:first-child .copy-light {
  color: rgb(29, 75, 160);
}

.site-header-copy p:nth-child(2) .copy-light {
  color: rgb(238, 29, 35);
}

.site-header-copy p:first-child {
  font-size: clamp(2.04rem, 3.9vw, 2.88rem);
  color: #ffd84d;
}

body.header-light .site-header-bottom {
  background: rgba(255, 255, 255, 0.92);
}

body.header-light .site-header-copy p {
  color: #1a1a1a;
}

body.header-light .site-header-copy p:first-child {
  color: #876000;
}

body.header-light .site-header-copy .copy-default {
  opacity: 0;
}

body.header-light .site-header-copy .copy-light {
  opacity: 1;
}

.site-header-person {
  position: absolute;
  right: var(--header-person-right);
  bottom: 0.2rem;
  text-align: center;
  z-index: 2;
  transform: none;
}

.site-header-person img {
  display: block;
  width: var(--header-person-width);
  height: auto;
}

.site-header-person p {
  margin: 0.12rem 0 0;
  font-size: clamp(0.66rem, 1.0vw, 0.82rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  transition: color 0.6s ease;
}

.discussion-label {
  position: fixed;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 1100;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
}

body.header-light .site-header-person p {
  color: #111;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -3;
  transition: opacity 0.7s ease;
}

.bg1 {
  background-image: url("../panel/bg01.jpg");
  opacity: 1;
}

.bg2 {
  background-image: url("../panel/bg02.png");
  opacity: 0;
  z-index: -2;
}

body.bg-switched .bg2 {
  opacity: 1;
}

body.bg-switched .bg1 {
  opacity: 0;
}

.personal-fixed {
  position: fixed;
  left: 0;
  bottom: 0;
  width: calc(100vw / 4);
  max-width: none;
  height: auto;
  object-fit: contain;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.6s ease, width 0.18s ease;
}

.personal-push-hint {
  display: none;
}

.social-fixed {
  position: relative;
  margin: 0 1.4rem 0.7rem auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  width: max-content;
}

.social-row {
  display: flex;
  gap: 0.45rem;
}

.social-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  justify-self: center;
}

.social-icon img {
  width: 1.34rem;
  height: 1.34rem;
  object-fit: contain;
}

.survey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.83rem;
  color: #fff;
  text-decoration: none;
  background: rgba(23, 86, 176, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.page {
  position: relative;
  z-index: 10;
}

.section {
  min-height: 115vh;
  padding: 2.2rem 1.4rem 6rem;
}

.content-wrap {
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

#first-section .content-wrap {
  padding-left: calc(100vw / 4 - 100vw / 20 + 1.2rem);
}

.panel {
  color: var(--panelText);
  border-style: solid;
  border-width: 16px;
  border-image-source: url("../panel/panel01.png");
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  padding: 0.9rem 1rem 1rem;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 4px var(--shadow);
}

.panel h2,
.panel h3 {
  margin: 0.2rem 0 0.6rem;
  line-height: 1.45;
}

.panel h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
}

.panel h3 {
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.panel .key-title {
  color: #ffd84d;
}

.panel p,
.panel li {
  line-height: 1.75;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.panel ul,
.panel ol {
  margin: 0.4rem 0 1rem 1.2rem;
  padding: 0;
}

.info-visual {
  margin: 0.5rem 0 1.4rem;
  padding: 0;
}

.info-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.claims {
  padding-top: 4.8rem;
  padding-bottom: 10rem;
}

.section-break-title {
  padding: 1.1rem 1.4rem 0.9rem;
  text-align: center;
}

.section-break-title h2 {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 1.05rem;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  color: #ffe26b;
  background: rgba(8, 18, 38, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.84);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.section-break-title p {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 700;
  text-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.72),
    1px 0 0 rgba(0, 0, 0, 0.72),
    0 -1px 0 rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(0, 0, 0, 0.72),
    0 2px 6px rgba(0, 0, 0, 0.45);
}

.claims-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw);
  gap: 1.1rem;
  align-items: start;
}

.claims-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.claims-side {
  align-self: start;
}

.claims-image {
  margin: 0;
  padding: 0;
}

.claims-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.claim-item {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  color: #111;
  text-shadow: none;
}

.claim-item h3 {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(18, 46, 92, 0.65);
  border-radius: 0;
  font-size: clamp(1rem, 1.85vw, 1.3rem);
  line-height: 1.45;
}

.claim-item p,
.claim-item li {
  color: #111;
  font-size: clamp(0.95rem, 1.45vw, 1.06rem);
  line-height: 1.72;
}

.claim-item ul,
.claim-item ol {
  margin: 0.45rem 0 0.25rem 1.2rem;
  padding: 0;
}

.site-footer {
  margin-top: 0.8rem;
  padding: 0.7rem 1rem 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(0, 0, 0, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.site-footer small {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.site-footer .footer-main {
  display: block;
}

@media (max-width: 920px) {
  :root {
    --header-stack-height: 188px;
    --personal-fixed-width: calc(100vw / 4);
    --header-person-right: clamp(1.6rem, 4vw, 2.4rem);
    --header-text-gap: clamp(0.12rem, 0.35vw, 0.25rem);
    --header-person-safe: calc(var(--header-person-width) + var(--header-text-gap));
  }

  body {
    padding-top: var(--header-stack-height);
  }

  .site-header-bottom {
    padding-right: var(--header-person-safe);
  }

  .site-header-person {
    bottom: 0.15rem;
  }

  .content-wrap {
    padding-left: 0;
  }

  #first-section .content-wrap {
    padding-left: 0;
  }

  .personal-fixed {
    width: calc(100vw / 4);
    opacity: 0.85;
  }

  .social-fixed {
    margin-right: 1rem;
    margin-bottom: 0.65rem;
  }

  .social-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .social-icon img {
    width: 1.18rem;
    height: 1.18rem;
  }

  .survey-btn {
    min-height: 1.85rem;
    padding: 0.32rem 0.62rem;
    font-size: 0.76rem;
  }

  .discussion-label {
    top: 0.45rem;
    right: calc(var(--header-person-right) + var(--header-person-width) + 0.38rem);
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
  }

  .section {
    min-height: auto;
    padding-top: 4rem;
  }

  .claims-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-stack-height: 138px;
    --header-person-width: clamp(72px, 19vw, 98px);
    --header-person-right: 0.7rem;
    --header-text-gap: 0.45rem;
    --header-person-safe: calc(var(--header-person-width) + var(--header-text-gap));
  }

  body {
    padding-top: var(--header-stack-height);
  }

  .site-header {
    padding-top: 0.6rem;
  }

  .site-header-top {
    margin-bottom: 0.35rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header-top p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .site-header-bottom {
    padding-top: 0.42rem;
    padding-bottom: 0.36rem;
    padding-right: var(--header-person-safe);
  }

  .site-header-copy p {
    font-size: clamp(0.92rem, 3.4vw, 1.18rem);
    line-height: 1.2;
  }

  .site-header-copy p:first-child {
    font-size: clamp(0.92rem, 3.5vw, 1.18rem);
    white-space: nowrap;
  }

  .site-header-person {
    right: var(--header-person-right);
    bottom: 0.16rem;
  }

  .site-header-person p {
    margin-top: 0.08rem;
    font-size: 0.52rem;
  }

  .personal-fixed {
    width: 46vw;
    pointer-events: auto;
    touch-action: none;
  }

  .personal-fixed.is-press-zoom {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    bottom: 0;
    z-index: 1250;
  }

  .personal-push-hint {
    display: block;
    position: fixed;
    left: calc(0.62rem + (0.82rem * 1.5));
    bottom: 0.82rem;
    z-index: 1120;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(36, 118, 208, 0.98);
    text-shadow:
      -1px -1px 0 rgba(255, 255, 255, 0.96),
      1px -1px 0 rgba(255, 255, 255, 0.96),
      -1px 1px 0 rgba(255, 255, 255, 0.96),
      1px 1px 0 rgba(255, 255, 255, 0.96),
      0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
  }

  .personal-push-hint-text {
    display: inline-block;
    animation: pushHintPulse 2.4s ease-in-out infinite;
  }

  .social-fixed {
    position: fixed;
    left: auto;
    right: 0.85rem;
    top: auto;
    bottom: 0.9rem;
    gap: 0.35rem;
  }

  .social-row {
    gap: 0.35rem;
  }

  .social-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .social-icon img {
    width: 1.08rem;
    height: 1.08rem;
  }

  .survey-btn {
    min-height: 1.72rem;
    padding: 0.24rem 0.52rem;
    font-size: 0.72rem;
  }

  .section {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .panel h3 {
    font-size: 0.98rem;
  }

  .panel p,
  .panel li {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  #first-section {
    padding-top: 0.45rem;
  }

  .claims {
    padding-top: 3.2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-stack-height: 126px;
    --header-person-width: clamp(62px, 20vw, 82px);
    --header-person-right: 0.5rem;
    --header-text-gap: 0.38rem;
    --header-person-safe: calc(var(--header-person-width) + var(--header-text-gap));
  }

  body {
    padding-top: var(--header-stack-height);
  }

  .site-header-top p {
    font-size: 0.72rem;
  }

  .site-header-copy p {
    font-size: clamp(0.82rem, 3.3vw, 0.96rem);
  }

  .site-header-copy p:first-child {
    font-size: clamp(0.8rem, 3.4vw, 0.94rem);
    white-space: nowrap;
  }

  .social-fixed {
    left: auto;
    right: 0.62rem;
    top: auto;
    bottom: 0.72rem;
  }

  .personal-fixed {
    width: 50vw;
  }

  .personal-push-hint {
    left: calc(0.5rem + (0.68rem * 1.5));
    bottom: 0.68rem;
    font-size: 0.68rem;
  }

  .panel {
    border-width: 12px;
    border-image-slice: 16 fill;
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .panel h3 {
    font-size: 0.95rem;
  }

  .panel p,
  .panel li {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  #first-section {
    padding-top: 0.25rem;
  }

  .discussion-label {
    top: 0.38rem;
    right: calc(var(--header-person-right) + var(--header-person-width) + 0.28rem);
    font-size: 0.66rem;
    padding: 0.14rem 0.36rem;
  }
}

@keyframes pushHintPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-1px);
  }
}

@media (min-width: 769px) {
  #first-section .content-wrap {
    padding-left: calc(var(--personal-current-width) - 50px);
    padding-right: 0;
  }

  .personal-fixed {
    top: auto;
    bottom: 0;
    left: 0;
    width: auto;
    height: calc(100vh - (var(--header-stack-height) + 10px));
    max-height: none;
  }
}

@media (min-width: 921px) {
  #first-section .panel {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  #first-section .info-visual {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
}
