/* =========================
   Base
========================= */

body {
  margin: 0;
  padding: 0;
  background-color: #1A08C1;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 2px;
  font-weight: normal;
}

.wrapper {
  position: relative;
  min-height: 100vh;
  padding: 0;
}

h1,
p {
  margin: 0;
  letter-spacing: 2px;
  font-weight: normal;
}

h1 {
  margin-bottom: 15px;
}

hr {
  border: none;
  border-top: 1px solid rgba(204, 42, 142, 0.5);
  margin: 8px 0;
  width: 9%;
}

/* =========================
   Text Entry
========================= */

.text-entry {
  max-width: 600px;

  margin-bottom: 90px;

  color: rgba(255,255,255,0.88);
}

.text-entry h2 {
  margin: 0 0 4px;

  font-size: 18px;
  font-weight: normal;

  letter-spacing: 3px;

  color: rgba(255,255,255,0.92);
}

.text-date {
  margin-bottom: 26px;

  font-size: 11px;

  letter-spacing: 2px;

  color: rgba(255,255,255,0.55);
}

.text-body {
  font-size: 14px;

  line-height: 2.1;

  letter-spacing: 1.5px;
}

.text-body p {
  margin: 0 0 1.8em;
}

.text-body a,
.text-body a:visited {
  color: rgba(255,255,255,0.88);

  text-decoration: underline;

  text-underline-offset: 3px;
}

.text-body a:hover {
  opacity: 0.7;
}

.text-image {
  margin: 24px 0;
}

.text-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  transition: opacity 0.2s;
  cursor: pointer;
}

.text-image img:hover {
  opacity: 0.8;
}

/* =========================
   Micro Post
========================= */

.tweet-header {
  font-size: 11px;

  color: #00acee;

  letter-spacing: 3px;

  margin-bottom: 14px;

  opacity: 0.9;
}

.micro-post {
  max-width: 480px;

  padding: 10px 18px 0;

  margin: 0 0 40px;

  border-left: 1.3px solid #00acee;

  font-size: 13px;

  line-height: 2;

  letter-spacing: 1px;

  color: rgba(255,255,255,0.88);
}

.micro-post a,
.micro-post a:visited {
  color: rgba(255,255,255,0.88);

  text-decoration: underline;

  text-underline-offset: 3px;
}

.micro-post a:hover {
  opacity: 0.7;
}

.micro-post img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 18px 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.micro-post img:hover {
  opacity: 0.8;
}

.post-meta {
  margin-top: 6px;

  font-size: 11px;

  color: #00acee;

  letter-spacing: 2px;

  opacity: 0.9;
}

/* details */

details {
  margin-top: 10px;
}

summary {
  list-style: none;

  cursor: pointer;

  color: rgba(255,255,255,0.75);

  font-size: 13px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  display: none;
}

summary::before {
  content: "+";

  padding-right: 10px;

  color: #00acee;
}

details[open] summary::before {
  content: "−";
}

details[open] {
  padding-bottom: 10px;
}

/* =========================
   Links
========================= */

.left-text a,
.left-text a:visited {
  color: #cc2a8e;
  text-decoration: none;
}

.left-text a:hover {
  opacity: 0.7;
}

.main-content a,
.main-content a:visited {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.main-content a:hover {
  opacity: 0.7;
}

/* =========================
   Layout
========================= */

.left-text {
  position: fixed;
  left: 40px;
  top: 40px;
  width: 200px;
  color: #cc2a8e;
  z-index: 1000;
}

.main-content {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 600px;
  box-sizing: border-box;
}

.right-space {
  position: absolute;
  right: 40px;
  top: 40px;
  width: 200px;
}

.right-title {
  position: absolute;
  right: 40px;
  top: 40px;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.right-index {
  position: fixed;
  right: 40px;
  top: 40px;

  width: 140px;

  text-align: right;

  color: #cc2a8e;

  line-height: 1.9;
  letter-spacing: 2px;

  font-size: 14px;
}

.desktop-index {
  display: block;
}

.mobile-index {
  display: none;
}

.right-index a,
.right-index a:visited {
  color: #cc2a8e;
  text-decoration: none;
}

.right-index a:hover {
  opacity: 0.7;
}

/* =========================
   Main Image
========================= */

.main-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.main-image img {
  width: 600px;
  height: auto;
  display: block;
}

.main-image a:hover img {
  opacity: 0.8;
}

/* =========================
   Logo
========================= */

.site-logo {
  position: fixed;
  right: 40px;
  top: 50%;
  z-index: 900;

  color: #cc2a8e;
  font-family: "YuMincho", "Yu Mincho", serif;
  font-size: 42px;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 11px;

  writing-mode: horizontal-tb;
  text-orientation: mixed;

  transform: translateY(-50%) scaleX(1.35);
  transform-origin: center right;
}

/* =========================
   Utility
========================= */

.big {
  font-size: 18px;
}

.small {
  font-size: 11px;
}

/* =========================
   Video
========================= */

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Music Video
========================= */

.video-item {
  margin-bottom: 75px;
  margin-top: 40px;
}

.video-title {
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.video-date {
  font-size: 11px;
  margin-bottom: 15px;
}

.video-caption {
  margin-top: 15px;
}

.video-caption p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 3px;
}

/* =========================
   Camera Roll
========================= */

.photo-item {
  margin-bottom: 60px;
}

.photo-item img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  transition: opacity 0.2s;
  cursor: pointer;
}

.photo-item img:hover {
  opacity: 0.8;
}

.photo-caption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
}

/* =========================
   Photo Modal
========================= */

#photo-modal {
  opacity: 0;
  pointer-events: none;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.92);

  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: opacity 0.2s;
}

#photo-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#photo-modal img {
  max-width: 92vw;
  max-height: 92vh;

  display: block;
}

/* =========================
   Mobile Menu
========================= */

.menu-toggle {
  display: none;
}

.site-logo.menu-open {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   Responsive — スマホ縦向き (〜768px)
========================= */

@media screen and (max-width: 768px) {
  body {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;

    background: transparent;
    border: 1px solid #cc2a8e;
    color: #cc2a8e;

    padding: 8px 14px;

    font: inherit;
    letter-spacing: 2px;
    cursor: pointer;
  }

  .left-text {
    display: none;
    position: fixed;
    top: 70px;
    left: 20px;
    width: 220px;
    padding: 20px;
    background: rgba(26, 8, 193, 0.95);
    box-sizing: border-box;
    z-index: 1000;
  }

  .left-text.active {
    display: block;
  }

  .main-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;

    width: auto;
    max-width: calc(100vw - 24px);

    margin: 100px auto 60px;
    padding: 0 8px;
  }

  .main-content a {
   overflow-wrap: anywhere;
  }

  .main-image {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
  }

  .main-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .site-logo {
    right: 20px;
    top: 380px;

    font-size: 28px;
    letter-spacing: 6px;

    transform: scaleX(1.2);
    transform-origin: center right;
  }

  .right-title,
  .right-space {
    display: none;
  }
  
  .micro-post {
  font-size: 12px;
  line-height: 2.1;
  letter-spacing: 0.8px;
  }
  
  .right-index {
  display: flex;

  flex-wrap: wrap;

  gap: 8px 14px;

  margin: 0 0 28px;

  width: 100%;

  position: static;

  text-align: left;

  line-height: 1.6;

  font-size: 12px;
  }

  .desktop-index {
    display: none;
  }

  .mobile-index {
    display: flex;
  }
  
  .text-entry {
    margin-bottom: 72px;
  }

  .text-entry h2 {
    font-size: 17px;

    letter-spacing: 2px;
  }

  .text-date {
    font-size: 10px;

    letter-spacing: 1px;

    margin-bottom: 20px;
  }

  .text-body {
    font-size: 13px;

    line-height: 2.1;

    letter-spacing: 0.8px;
  }

}



/* =========================
   Responsive — スマホ横向き (〜932px landscape)
========================= */

@media screen and (max-width: 932px) and (orientation: landscape) {
  .menu-toggle {
    top: 15px;
    left: 15px;
  }

  .left-text {
    display: none;
    position: fixed;
    top: 60px;
    left: 15px;
    right: 15px;
    width: auto;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    padding: 20px;
    background: rgba(26, 8, 193, 0.97);
    box-sizing: border-box;
    z-index: 1000;
  }

  .left-text.active {
    display: block;
  }

  .site-logo {
    top: 50%;
    right: 15px;
    font-size: 30px;
    letter-spacing: 4px;
    line-height: 1;
    transform: translateY(-50%) scaleX(1.1);
    transform-origin: center right;
  }

  .main-content {
    margin-top: 80px;
  }
}