@import url("https://www.hirata-office.jp/css/9-1-1.css");
@import url("https://www.hirata-office.jp/css/5-1-25.css");
@import url("https://www.hirata-office.jp/css/8-1-2.css");
@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");

:root {
  --ink: #061846;
  --blue: #07318c;
  --blue-dark: #020d2d;
  --ice: #eaf2ff;
  --paper: #f7f9fc;
  --line: rgba(8, 43, 121, 0.2);
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: calc(var(--scroll-progress) * 100%);
  height: 2px;
  background: #84b8ff;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px clamp(20px, 3.2vw, 54px);
  color: white;
  pointer-events: none;
}

.site-logo {
  pointer-events: auto;
}

.site-logo {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 0.94;
  letter-spacing: 0.27em;
  font-weight: 600;
  mix-blend-mode: difference;
}

/* === konkon menu unified — memory.htmlからそのまま使用 === */
.openbtn{position:fixed !important;top:18px !important;right:18px !important;z-index:99999 !important;pointer-events:auto !important;cursor:pointer;}
.openbtn{
  position:fixed !important;
  top:18px !important;
  right:18px !important;
  z-index:99999 !important;
  pointer-events:auto !important;
  cursor:pointer;
}

#g-nav{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  width:100% !important;
  height:100vh !important;
  z-index:99998 !important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

#g-nav.panelactive{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}#g-nav #g-nav-list li{margin:16px 0 !important;}
#g-nav #g-nav-list a{font-size:19.3px !important;line-height:1.05 !important;}

.share-rail {
  position: fixed;
  z-index: 400;
  right: 22px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  mix-blend-mode: difference;
  color: white;
}

.share-rail .share-label {
  margin-bottom: 28px;
  font-size: 8px;
  letter-spacing: 0.25em;
  transform: rotate(90deg);
}

.share-rail a,
.share-rail button {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.share-rail a:hover,
.share-rail button:hover {
  color: #07194b;
  background: white;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(5, 48, 140, 0.2), transparent 45%),
    #03113b;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 54vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.62;
  animation: drift 12s ease-in-out infinite alternate;
}

.hero-glow-one {
  left: -18vw;
  top: -18vw;
  background: radial-gradient(circle, #145fc6, transparent 68%);
}

.hero-glow-two {
  right: -22vw;
  bottom: -27vw;
  background: radial-gradient(circle, #0a3e99, transparent 68%);
  animation-delay: -5s;
}

.hero-orbit {
  position: absolute;
  width: min(74vw, 940px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: orbit 30s linear infinite;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 12%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9cc8ff;
  box-shadow: 0 0 22px #8bc0ff;
}

.hero-kicker {
  position: absolute;
  top: 26px;
  left: 50%;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.25em;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  animation: fade-in 0.9s 0.3s forwards;
}

.hero-title-wrap {
  width: min(1080px, calc(100% - 44px));
  text-align: center;
}

.dlive-mark {
  margin: 0 0 42px;
  font: italic 500 clamp(64px, 10vw, 138px)/0.8 "Playfair Display", serif;
  letter-spacing: -0.06em;
  opacity: 0;
  transform: translateY(22px);
  animation: title-up 1.1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
  display: grid;
  grid-template-columns: 1fr minmax(100px, 18vw) 1fr;
  margin: 0;
  align-items: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(21px, 3.3vw, 46px);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero h1 span {
  opacity: 0;
  filter: blur(9px);
  animation: focus-in 1s 0.82s forwards;
}

.hero h1 span:first-child { text-align: right; }
.hero h1 span:last-child { text-align: left; animation-delay: 1s; }

.hero h1 i {
  position: relative;
  height: 1px;
  margin: 0 26px;
  background: rgba(255, 255, 255, 0.72);
  transform: scaleX(0);
  animation: line-open 0.9s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) rotate(58deg);
}

.hero-subtitle {
  margin: 45px 0 0;
  font-size: 9px;
  letter-spacing: 0.5em;
  opacity: 0;
  animation: fade-in 0.9s 1.35s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  letter-spacing: 0.25em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  animation: scroll-line 2s ease-in-out infinite;
}

.story-section {
  display: grid;
  width: min(1200px, calc(100% - 48px));
  min-height: 92vh;
  margin: 0 auto;
  padding: clamp(110px, 15vw, 210px) 0;
  grid-template-columns: 190px 1fr;
}

.story-index {
  display: flex;
  height: max-content;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.story-index i {
  width: 38px;
  height: 1px;
  background: var(--blue);
}

.story-copy {
  max-width: 760px;
}

.story-copy p {
  margin: 0 0 2.3em;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 300;
  line-height: 2.25;
  letter-spacing: 0.065em;
}

.story-copy .story-ending {
  margin: 4.5em 0 0;
  color: var(--blue);
  font-weight: 500;
}

.movies-section {
  padding: clamp(100px, 12vw, 180px) max(24px, calc((100vw - 1240px) / 2));
  color: white;
  background: var(--blue-dark);
}

.section-heading {
  display: grid;
  margin: 0 0 76px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.section-heading p {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  color: #82adf4;
  font-size: 9px;
  letter-spacing: 0.25em;
}

.section-heading h2 {
  margin: 0;
  font: 500 clamp(52px, 9vw, 118px)/0.85 "Playfair Display", serif;
  letter-spacing: -0.045em;
}

.section-heading > span {
  max-width: 250px;
  padding-bottom: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.video-card {
  min-width: 0;
}

.video-card.featured {
  margin-bottom: clamp(95px, 11vw, 150px);
}

.video-heading {
  display: grid;
  margin: 0 0 22px;
  grid-template-columns: 58px 1fr;
  align-items: start;
}

.video-number {
  padding-top: 6px;
  color: #8db8ff;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.video-heading h3 {
  margin: 0 0 5px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.video-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.36);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 64px);
}

.profile-section {
  display: grid;
  min-height: 76vh;
  padding: 100px 24px;
  place-content: center;
  text-align: center;
}

.profile-section > p {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.35em;
}

.profile-section h2 {
  margin: 0 0 45px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.profile-section > a {
  display: flex;
  width: min(380px, 84vw);
  margin: 0 auto;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: color 0.35s, background 0.35s, transform 0.35s;
}

.profile-section > a:hover {
  color: white;
  background: var(--blue);
  transform: translateY(-3px);
}

.profile-section > a i {
  font-style: normal;
  font-size: 18px;
}

footer {
  padding: 58px clamp(24px, 5vw, 74px) 34px;
  color: white;
  background: #02091f;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 75px;
  font-size: clamp(24px, 4vw, 52px);
  letter-spacing: 0.2em;
  font-weight: 300;
}

footer > p {
  margin: 0 0 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
}

footer > div {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  to { transform: translate3d(8vw, 5vw, 0) scale(1.1); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes title-up {
  to { opacity: 1; transform: none; }
}

@keyframes focus-in {
  to { opacity: 1; filter: blur(0); }
}

@keyframes line-open {
  to { transform: scaleX(1); }
}

@keyframes fade-in {
  to { opacity: 0.78; }
}

@keyframes scroll-line {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(110%); }
}

@media (max-width: 760px) {
  .site-header {
    padding: 20px;
  }

  .share-rail {
    top: auto;
    right: 13px;
    bottom: 14px;
    flex-direction: row;
    padding: 6px;
    border-radius: 30px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 5px 24px rgba(0, 12, 52, 0.12);
    backdrop-filter: blur(12px);
    mix-blend-mode: normal;
    transform: none;
  }

  .share-rail .share-label { display: none; }
  .share-rail a,
  .share-rail button { border-color: rgba(3, 32, 93, 0.25); }

  .hero-kicker {
    top: 91px;
  }

  .dlive-mark {
    margin-bottom: 50px;
    font-size: clamp(68px, 24vw, 104px);
  }

  .hero h1 {
    grid-template-columns: 1fr;
    gap: 28px;
    font-size: clamp(22px, 7vw, 32px);
  }

  .hero h1 span:first-child,
  .hero h1 span:last-child { text-align: center; }

  .hero h1 i {
    width: 92px;
    margin: 0 auto;
  }

  .hero h1 i::after { height: 42px; }
  .hero-subtitle { margin-top: 42px; }

  .story-section {
    width: min(100% - 40px, 620px);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-index { margin-bottom: 54px; }
  .story-copy p { line-height: 2.05; }
  .desktop-break { display: none; }

  .section-heading {
    margin-bottom: 58px;
    grid-template-columns: 1fr;
  }

  .section-heading h2 { font-size: clamp(54px, 18vw, 90px); }
  .section-heading > span { margin-top: 25px; }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 75px;
  }

  .video-heading {
    grid-template-columns: 42px 1fr;
  }

  .video-heading h3 { font-size: 17px; }
  .video-heading p { line-height: 1.7; }

  .profile-section { min-height: 68vh; }
  .profile-section h2 { letter-spacing: 0.06em; }

  footer > div {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
