:root {
  --bg-light: #D8DA55;          
  --accent-yellow: #b8cc79;     
  --main-yellow: #e3ebbd;       
  --light-yellow: #f5f2e5;      
  --deep-accent: #657247;       
  --soft-brown: #a89579;        
  --text-dark: #494536;          
--white-soft: #ffffff;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'M PLUS Rounded 1c', 'Kiwi Maru', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  background-color: #D8DA55;
  background-image: none;
  background-size: auto;
  line-height: 1.9;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

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

/* --- ヘッダー --- */
header {
  background-color: rgba(250, 250, 242, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-yellow);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo-img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 170px;
  object-fit: contain;
}

.header-toolbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-toolbar ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.header-toolbar a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.header-toolbar a:hover {
  background-color: var(--accent-yellow);
  color: #ffffff;
}

/* SNS アイコンボタン */
.sns-btn-circle {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  background-color: #fff;
  border: 1.5px solid var(--accent-yellow);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(216, 218, 85, 0.25);
  transition: all 0.3s ease;
  overflow: hidden;
}

.sns-btn-circle:hover {
  background-color: var(--accent-yellow) !important;
  border-color: var(--deep-accent);
  transform: translateY(-2px);
}

.sns-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.sns-btn-circle:hover .sns-icon-img {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--deep-accent);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- BGM Player --- */
.bgm-fixed-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  border: 1.5px solid var(--accent-yellow);
  box-shadow: 0 4px 15px rgba(111, 113, 18, 0.15);
  animation: hyoko 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mute-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 3px 0 var(--main-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.1s, box-shadow 0.1s;
  flex-shrink: 0;
}

.mute-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--main-yellow);
}

.mute-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--deep-accent);
}

.slider-container {
  position: relative;
  width: 90px;
  height: 12px;
  background: #edeec8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slider-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-yellow);
  border-radius: 6px 0 0 6px;
  pointer-events: none;
  width: 50%;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--deep-accent);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--deep-accent);
  border: none;
  cursor: pointer;
}

@keyframes hyoko {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(400px, 75vh, 850px);
  overflow: hidden;
  border-bottom: 3px double var(--accent-yellow);
  touch-action: pan-y;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.slide-1 { background-image: url('images/フィユラプHP-001.png'); }
.slide-2 { background-image: url('images/フィユラプHP-002.png'); }
.slide-3 { background-image: url('images/フィユラプHP-003.png'); }
.slide-4 { background-image: url('images/フィユラプHP-004.png'); }
.slide-5 { background-image: url('images/フィユラプHP-005.png'); }

.hero-arrows {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-arrow-btn {
  background: rgba(255, 255, 255, 0.85);
  color: var(--deep-accent);
  border: 1px solid var(--accent-yellow);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(111, 113, 18, 0.15);
  backdrop-filter: blur(4px);
}

.hero-arrow-btn:hover {
  background: var(--accent-yellow);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Main Container & Section --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

section {
  background: var(--white-soft);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(216, 218, 85, 0.12);
  border: 1.5px solid var(--main-yellow);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--deep-accent);
  line-height: 1;
}

.section-title span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 0.1em;
}

/* News List */
.news-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--accent-yellow);
}

.news-date {
  font-size: 0.85rem;
  color: var(--soft-brown);
  min-width: 100px;
  font-weight: 700;
}

.news-text {
  font-size: 0.95rem;
}

/* --- Concept Container --- */
.concept-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 2.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.concept-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.concept-block:nth-child(even) {
  flex-direction: row-reverse;
}

.concept-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 縦書きテキスト */
.concept-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Kiwi Maru', 'M PLUS Rounded 1c', serif;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  line-height: 2.3;
  padding: 1rem 1.5rem 1rem 0.8rem;
  color: var(--text-dark);
  border-right: 2px solid var(--accent-yellow);
  white-space: nowrap;
}

.concept-block:nth-child(even) .concept-vertical-text {
  border-right: none;
  border-left: 2px solid var(--accent-yellow);
  padding: 1rem 0.8rem 1rem 1.5rem;
}

/* 上3つの画像領域 */
.concept-image-box {
  width: 100%;
  max-width: 600px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(216, 218, 85, 0.18);
  position: relative;
  flex-shrink: 0;
}

.concept-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.concept-image-box:hover img {
  transform: scale(1.06);
}

.concept-footer-wrapper {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.concept-footer-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4枚目のフッター画像 */
.concept-footer-image {
  width: 100%;
  max-width: 480px;
  height: 370px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(216, 218, 85, 0.18);
  flex-shrink: 0;
}

.concept-footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 下部説明文 */
.concept-footer-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--deep-accent);
  font-weight: 500;
  padding-left: 0.5rem;
}
/* --- History用CSS --- */
section#history {
    max-width: 1200px;
    margin: 2.5rem auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(154,166,111,.16);
    border: 1.5px solid #dce5c1;
}

.history-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 2;
    color: #5a4a4a;
}

.history-month {
    margin-bottom: 3rem;
}

.history-month:last-child {
    margin-bottom: 0;
}

.history-month-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #657247;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #e3ebbd;
}

.history-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.history-grid img {
    width: 100%;
    max-width: 520px;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: transform .25s ease;
}

.history-grid img:hover {
    transform: scale(1.03);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background-color: var(--white-soft);
  border-top: 2px solid var(--accent-yellow);
  font-size: 0.85rem;
  color: var(--text-dark);
}

.footer-sns-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* レスポンシブ調整 */
@media (max-width: 850px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }

  .header-toolbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(250, 250, 242, 0.98);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    padding: 1.5rem 0;
    display: none;
    flex-direction: column;
    border-bottom: 2px solid var(--accent-yellow);
  }

  .header-toolbar.is-open {
    display: flex;
  }

  .header-toolbar ul {
    flex-direction: column;
    width: 100%;
  }

  .header-toolbar li {
    width: 100%;
    text-align: center;
  }

  .header-toolbar a {
    display: block;
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  header {
    width: 100%;
    padding: 0.7rem 1rem;
  }

  .header-left,
  .header-toolbar,
  .header-toolbar ul {
    min-width: 0;
  }

  .site-logo-img {
    height: 42px;
    max-width: 150px;
  }

  .hero-slider {
    width: 100%;
    height: 56vw;
    min-height: 240px;
    max-height: 480px;
  }

  .hero-arrows {
    right: 12px;
    bottom: 12px;
  }

  .hero-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 0.75rem;
  }

  section {
    width: 100%;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 18px;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .section-title span {
    font-size: 0.8rem;
  }

  .news-list {
    width: 100%;
  }

  .news-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.8rem;
    row-gap: 0.15rem;
    align-items: baseline;
  }

  .news-date {
    min-width: 0;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .news-text {
    min-width: 0;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .concept-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 2.5rem;
  }

  .concept-block,
  .concept-block:nth-child(even) {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .concept-vertical-text,
  .concept-block:nth-child(even) .concept-vertical-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-left: none;
    border-right: none;
    padding: 0 !important;
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.1em;
    line-height: 1.9;
  }

  .concept-vertical-text p {
    margin: 0;
  }

  .concept-image-box {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 600 / 380;
  }

  .concept-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .concept-footer-wrapper {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  .concept-footer-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 480 / 370;
  }

  .concept-footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .concept-footer-text {
    width: 100%;
    padding-left: 0;
    font-size: 0.98rem;
    line-height: 2;
    overflow-wrap: anywhere;
  }

  footer {
    width: 100%;
    padding: 2rem 1rem;
  }

  footer p {
    font-size: 0.78rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .bgm-fixed-widget {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.55rem 0.75rem;
  }

  .site-logo-img {
    height: 36px;
    max-width: 130px;
  }

  .container {
    padding: 1.25rem 0.5rem;
  }

  section {
    padding: 1.6rem 0.8rem;
    border-radius: 16px;
  }

  .hero-slider {
    height: 58vw;
    min-height: 195px;
  }

  .hero-arrows {
    right: 9px;
    bottom: 9px;
    gap: 6px;
  }

  .hero-arrow-btn {
    width: 34px;
    height: 34px;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .news-date {
    font-size: 0.78rem;
  }

  .news-text {
    font-size: 0.86rem;
  }

  .concept-container {
    gap: 2rem;
  }

  .concept-vertical-text {
    font-size: 0.94rem;
    letter-spacing: 0.06em;
  }

  .concept-footer-text {
    font-size: 0.92rem;
    line-height: 1.9;
  }

  .bgm-fixed-widget {
    left: 8px;
    bottom: 8px;
    gap: 7px;
    padding: 6px 9px;
  }

  .mute-btn {
    width: 36px;
    height: 36px;
  }

  .slider-container {
    width: 80px;
  }
}

.section-title.section-title-jp h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--deep-accent);
}


/* --- スマートフォン用メニュー：index2の縦型展開を採用 --- */
@media (max-width: 850px) {
  header {
    position: sticky;
    top: 0;
    z-index: 2000;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2202;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 3px 0;
    border-radius: 2px;
    background-color: var(--deep-accent);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-toolbar,
  .header-toolbar.is-open {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100dvh - 64px);
    max-height: none;
    overflow-y: auto;
    padding: 24px 18px 30px;
    margin: 0;
    background: rgba(250, 250, 242, 0.97);
    border: 0;
    border-bottom: 2px solid var(--accent-yellow);
    box-shadow: 0 8px 16px rgba(73, 69, 54, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .header-toolbar.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-toolbar ul {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.5vh, 22px);
    width: 100%;
    padding: 0;
    margin: auto 0;
    list-style: none;
  }

  .header-toolbar li {
    width: 100%;
    text-align: center;
  }

  .header-toolbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    color: var(--deep-accent);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
  }

  .header-toolbar a:hover {
    background-color: var(--main-yellow);
    color: var(--deep-accent);
  }

  .header-toolbar .sns-btn-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0 auto;
    padding: 0 !important;
  }

  .header-toolbar .sns-icon-img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .header-toolbar,
  .header-toolbar.is-open {
    top: 58px;
    height: calc(100dvh - 58px);
  }
}
