/* ==========================================================
   Base layout and navigation
   Source: base.css
   ========================================================== */
/*
 * base.css
 * 用途: サイト全体の基本設定
 * このファイル内の各セクションは、元CSSの読み込み順を維持しています。
 */

/* --------------------------------------------------------------------------
 * 全体レイアウト・共通要素
 * -------------------------------------------------------------------------- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; 
    background-color: #FFD5EC;
    font-family: 'Noto Serif JP', serif;
}


#sakura_block {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 10; 
}


.content {
    position: relative;
    z-index: 0; 
    background-color: #ffffff; 
}


.section {
    padding: 100px 20px;
    border-bottom: 1px solid #ddd;
    height: 100vh; 
}

.section h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.section p {
    font-size: 1.2em;
    line-height: 1.6;
}


@keyframes sakura {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg) scale(var(--sakura-scale, 1));
        opacity: 0;
    }
    12% {
        opacity: 0.9;
    }
    82% {
        opacity: 0.75;
    }
    100% {
        transform: translate3d(var(--sakura-drift-x, 20vw), 115vh, 0) rotate(540deg) scale(var(--sakura-scale, 1));
        opacity: 0;
    }
}


#sakura_block img {
    position: absolute;
    width: 20px;
    height: auto;
    animation: sakura linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

.img_wrap{
  position:relative;
}
.img_wrap::after{
  content:"";
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  top:0;
  left:0;
  backdrop-filter:blur(8px);
  animation:blur 4s ease-in-out forwards;
}
@keyframes blur{
  0%{backdrop-filter:blur(8px);}
  100%{backdrop-filter:none;}
}

img.img{
white:100%;
}
img.example1 {
width: 50%;
}





.sns-x {
    width: 8%;
    display: inline-block;
}

.sns-x img {
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
 * 季節表示
 * -------------------------------------------------------------------------- */
.season-section {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    margin-top: 20px; 
    background: rgba(255,255,255,0.8);
    padding: 0px 0;
}

.season {
    width: 100%;
    aspect-ratio: 3 / 1; 
    background-size: cover;
    background-position: center;
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 25px;
    
    transition: height 0.3s ease;
    z-index: 0; 
    font-size: 4em;
     font-weight: bold;
}


.season::before,
.season::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 1;
}

.season::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.season::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}


.season-overlay {
    
    padding: 15px;
    border-radius: 10px;
    position: absolute;
    width: 80%;
}


.spring-text {
    text-align: left;
    left: 10%;
    top: 50%;
    transform: translateY(-40%);
    color: #32CD32;
    font-size: 0.9em;
    z-index: 2;
}

.spring-text:first-letter{
  color:#FFA500;
  font-size:180%;
}


.summer-text {
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #66FFFF;
    z-index: 2;
}

.summer-text:first-letter{
  color:#FFA500;
  font-size:180%;
}


.autumn-text {
    text-align: right;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFF22;
    font-size:0.8em;
    z-index: 2;
}

.autumn-text:first-letter{
  color:#FFA500;
  font-size:180%;
}


.winter-text {
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #FF97C2;
    font-size:0.9em;
    z-index: 2;
}

.winter-text:first-letter{
  color:#FFA500;
  font-size:180%;
}


.sample1oya{
  display     : inline-block;
  font-weight : bold;
  color       : #FF97C2;
  text-shadow:  2px  2px 10px #777 ,
               -2px  2px 10px #777 ,
                2px -2px 10px #777 ,
               -2px -2px 10px #777;
}
.sample1{
  text-align: center;
   left: 60%;
    top: 40%;
    transform: translate(0, -21%);
    color: #FF97C2;
    font-size:0.8em;
    z-index: 2;
}



@media screen and (max-width: 768px) {

  
  .season-section {
      padding: 10px 0; 
  }

  
  .season {
      aspect-ratio: auto; 
      height: 150px; 
      font-size: 15px; 
      margin-bottom: 15px; 
      overflow: hidden; 
  }

  
  .season-overlay {
      width: 90%; 
      padding: 8px; 
  }

  

  
  .spring-text {
      font-size: 1.4em; 
      left: 5%; 
      top: 50%;
  }

  
  .summer-text {
      font-size: 1.4em; 
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
  }

  
  .autumn-text {
      font-size: 1.2em; 
      left: 5%;
      top: 50%;
  }

  
  .winter-text {
      font-size: 20px; 
      left: 50%;
      top: 50%;
  }

  
  .season-overlay,
  .spring-text,
  .summer-text,
  .autumn-text,
  .winter-text,
  .sample1oya,
  .sample1 {
      overflow-wrap: break-word; 
      word-wrap: break-word; 
  }

}

/* --------------------------------------------------------------------------
 * ナビゲーションメニュー
 * -------------------------------------------------------------------------- */
body {
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
}


.menu-icon {
    position: fixed;
    top: 20px;
    left: 95%;
    cursor: pointer;
    z-index: 1000;
    color:#1288FF;
}
.menu-icon .line {
    width: 30px;
    height: 3px;
    background-color: #5c8ef5;
    margin: 5px 0;
    transition: all 0.3s ease;
    color:#1288FF;
}


.menu-icon.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.open .line:nth-child(2) {
    opacity: 0;
}
.menu-icon.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background-color: #AA0077;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 20px;
}
.side-menu.open {
    right: 0;
}


.menu-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: center;
}
.menu-list li {
    margin: 20px 0;
}
.menu-list a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.menu-list a:hover {
    color: white;
}


@media (max-width: 768px) {
    
    .menu-icon {
        top: 15px;
        left: 90%;
    }

    
    .side-menu {
        width: 80%;
        right: -100%;
    }
    .side-menu.open {
        right: 0;
    }

    
    .img_wrap img, .img_wrap::after {
        width: 100%;
        height: auto;
    }
}






.menu-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.menu-list li {
    margin: 20px 0;
}

.menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.menu-icon-img {
    width: 30px;
    height: auto;
    opacity: 0; 
    transition: opacity 0.3s ease;
    margin-right: 10px; 
    vertical-align: middle;
}


.menu-item:hover .menu-icon-img {
    opacity: 1;
}

/* 追加ページ共通：既存の基本スタイルを活かした、桜色の紙と和風のカード。 */
.collection-page { color: #513e45; background: #fff6f3; }
.collection-page *, .collection-page *::before, .collection-page *::after { box-sizing: border-box; }
.collection-header { padding: 24px 76px 24px 24px; border-bottom: 1px solid #e1c5ca; background: #fffaf7; }
.collection-brand { color: #79445d; text-decoration: none; font-size: 18px; }
.collection-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 72px; }
.collection-intro { text-align: center; margin-bottom: 40px; }
.collection-intro::before { content: none; }
.collection-intro h1 { margin: 12px 0; font-size: clamp(28px, 5vw, 42px); letter-spacing: .15em; font-weight: 500; }
.collection-intro p { line-height: 2; }
.collection-kicker { color: #976175; font-size: 12px; letter-spacing: .2em; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.collection-card { min-width: 0; padding: 28px; background: #fffdf9; border: 1px solid #e5cdd0; border-top: 3px solid #c08c9b; border-radius: 4px 20px 4px 20px; box-shadow: 0 6px 20px #70475409; overflow-wrap: anywhere; }
.collection-card h2 { margin: 12px 0 16px; font-size: 23px; font-weight: 500; line-height: 1.6; }
.collection-card p { line-height: 1.9; }
.link-card { display: flex; flex-direction: column; align-items: flex-start; }
.link-card__image { width: 96px; height: 96px; object-fit: contain; }
.collection-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.collection-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 20px; border: 1px solid #aa768a; border-radius: 24px; color: #79445d; text-decoration: none; line-height: 1.6; }
.collection-button:hover { background: #f8e6ec; }
.collection-page a:focus-visible, .menu-icon:focus-visible, .side-menu a:focus-visible { outline: 3px solid #986033; outline-offset: 4px; }
.collection-footer { text-align: center; padding: 28px 20px; border-top: 1px solid #e1c5ca; background: #f6e6e9; line-height: 2; }
.collection-footer a { color: #79445d; }
/* 動画追加：16:9を維持。タイトル・説明文の長さにかかわらず幅を固定しない。 */
.video-frame { aspect-ratio: 16 / 9; width: 100%; background: #eee3e4; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-description { white-space: pre-line; }
.collection-empty { grid-column: 1 / -1; text-align: center; padding: 32px; }

/* メニュー：ホームと追加ページで共用。項目が増えても画面内でスクロール可能。 */
.menu-icon { left: auto; right: 16px; top: 16px; width: 48px; height: 48px; padding: 8px; border: 1px solid #d9b7c3; border-radius: 8px; background: #fffaf7; box-sizing: border-box; }
.menu-icon .line { display: block; }
.side-menu { box-sizing: border-box; width: min(340px, 100%); right: -360px; height: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transition: right .3s ease, visibility .3s; }
.side-menu.open { right: 0; visibility: visible; }
.side-menu .menu-list { margin: 52px 0 12px; }
.side-menu .menu-list li { margin: 6px 0; }
.side-menu .menu-item { min-height: 46px; max-width: 100%; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.side-menu [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 640px) {
  .collection-main { width: calc(100% - 32px); padding-top: 32px; }
  .collection-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .collection-card { padding: 20px; }
  .collection-card h2 { font-size: 21px; }
  .collection-header { padding-left: 16px; }
  .collection-brand { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .side-menu, .menu-icon .line { transition: none; }
}

/* 既存イラストをそのまま使用。動画ページと同じ大きさ・余白で配置。 */
.collection-main { padding-top: 28px; }
.links-heading-ribbon { display: block; width: 100px; height: 90px; object-fit: contain; margin: 0 auto 12px; }
.links-heading-icon { display: block; width: 68px; height: 68px; object-fit: contain; margin: 0 auto; }
.link-card:has(.link-card__image) { background-image: url('../images/sakura-decoration.png'); background-repeat: no-repeat; background-position: right 16px top 16px; background-size: 54px auto; }
.links-guide { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 36px auto 0; max-width: 660px; }
.links-guide img { flex: 0 0 auto; width: 76px; height: 106px; object-fit: contain; }
.links-guide p { min-width: 0; margin: 0; font-size: 14px; line-height: 2; overflow-wrap: anywhere; }
.collection-footer { background: #faeef0; }
.illustrated-home { display: inline-flex; flex-direction: column; align-items: center; width: min(240px, 100%); padding: 12px 24px 16px; text-decoration: none; border-radius: 50% 50% 24px 24px; background: radial-gradient(ellipse at center, #f0d5df 0%, #faeef0 72%); transition: transform .2s ease; }
.illustrated-home img { display: block; width: 100%; height: 116px; object-fit: contain; }
.illustrated-home span { margin-top: 8px; font-size: 16px; letter-spacing: .1em; border-bottom: 1px solid #b27d93; }
.illustrated-home:hover { transform: translateY(-4px); }
@media (max-width: 640px) {
  .collection-main { padding-top: 20px; padding-bottom: 40px; }
  .links-heading-ribbon { width: 80px; height: 72px; }
  .links-heading-icon { width: 56px; height: 56px; }
  .links-guide { gap: 12px; }
  .links-guide img { width: 60px; height: 86px; }
  .links-guide p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .illustrated-home { transition: none; }
  .illustrated-home:hover { transform: none; }
}
