@charset "UTF-8";

/* ---------------------------------------------
   ふく物語LP - style.css
--------------------------------------------- */

:root {
  --color-bg: #F7F6F2;
  --color-dark: #274A5A;
  --color-text: #222222;
  --color-gold: #CEAC60;
  --color-gold-dark: #BF983B;
  --color-gold-light: #D9B946;
  --shadow-card: rgba(224, 216, 183, 0.83);
  --color-tag-bg: #EAD8B1;
  --font-serif: "Noto Serif JP", serif;
  --content-width: 860px;
  --slider-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  line-height: 1.6;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 見出しタグで画像タイトルを置き換える際、見た目への影響をなくすリセット */
.history__pc h2,
.history__sp h2,
.oshinagaki-heading h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* .page {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
} */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */

.hero img {
  width: 100%;
}

/* ---------------------------------------------
   History section
--------------------------------------------- */

.history {
  position: relative;
  background-image: url("../img/history-bg.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.history__gradient-bar {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark) 0%, var(--color-gold-light) 50.5%, var(--color-gold-dark) 100%);
}

/* --- PC composition (absolute, percentage based on 1440x954 reference) --- */

.history__pc {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 954;
}

.history__pc img {
  position: absolute;
}

.history__seigaiha {
  opacity: 0.9;
}

.history__seigaiha--tl {
  left: -2.08%;
  top: 6.08%;
  width: 32.2%;
}

.history__seigaiha--br {
  left: 72.01%;
  top: 77.15%;
  width: 32.2%;
}

.history__title-tate {
  left: 74.375%;
  top: 7.86%;
  width: 4.51%;
  z-index: 2;
}

.history__panel--1 {
  left: 20.35%;
  top: 10.59%;
  width: 50.97%;
  z-index: 1;
}

.history__panel--2 {
  left: 24.17%;
  top: 53.67%;
  width: 47.15%;
  z-index: 1;
}

.history__panel-group {
  position: absolute;
  inset: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .history__panel-group {
    transform: scale(1.07);
    transform-origin: 50% 50%;
  }
}

/* --- SP composition (simple stacked flow) --- */

.history__sp {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 56px;
}

.history__title-yoko {
  width: 80%;
  max-width: 315px;
  display: block;
    margin: 0 auto;
}

.history__divider {
  width: 86%;
  max-width: 337px;
  height: 2px;
  background-color: var(--color-dark);
  margin: 20px 0 36px;
}

.history__txt {
  width: 88%;
  max-width: 345px;
  margin-bottom: 12px;
}

.history__illust {
  width: 74%;
  max-width: 286px;
  margin-bottom: 40px;
}

.history__illust:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------
   Gallery (Frame13 / Frame14)
--------------------------------------------- */

.gallery {
  position: relative;
}

.gallery__band {
  background-image: url("../img/section-bg-band.jpg");
  background-size: cover;
  background-position:top center;
  z-index: 0;
      height: 150px;
}

@media (min-width: 1100px) {

  .gallery__band {
  height: 10vw;
}
}

.gallery__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 9px;
  padding: 0;
  margin-top: -90px;
}

.gallery__main {
  flex: 1 1 auto;
  width: 58.7%;
}

.gallery__sub {
  flex: 0 0 auto;
  width: 39.8%;
  margin-bottom: 5%;
}

/* ---------------------------------------------
   Intro text
--------------------------------------------- */

.intro {
  padding: 60px 0 30px;
}

.intro p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 3.2px;
  color: var(--color-text);
}

/* ---------------------------------------------
   Oshinagaki
--------------------------------------------- */

.oshinagaki-section {
  padding: 16px 0 0;
  margin-bottom: 1.5rem;
}

.oshinagaki-heading {
  background-color: var(--color-bg);
  margin-bottom: 0;
  position: absolute;
  top: -20px;
  left: -10px;
   padding-right: 10px;
}

.oshinagaki-heading img {
  width: 160px;
}

@media (max-width: 767px) {
  .oshinagaki-heading img {
  width: 130px;
}

}

.oshinagaki-box {
  border-top: 1px solid var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
  padding: 2rem 1rem;
  box-sizing: border-box;
  margin-top: -1px;
  position: relative;
}

.oshinagaki-box p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 3.2px;
  color: var(--color-text);
  text-align: left;
}

.oshinagaki-photo {
  margin: 32px auto 0;
  width: 100%;
}

.oshinagaki-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  margin: 1rem 0;
}

/* ---------------------------------------------
   Oshinagaki layout
--------------------------------------------- */
.oshinagaki-layout {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .oshinagaki-photo {
    position: sticky;
    top: 0;
    margin: 0;
    overflow: hidden;
    z-index: 99;
    background: #f7f6f2ea;
  }
}

@media (min-width: 768px) {
  .oshinagaki-layout {
    /*max-width: 1300px;
     display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    grid-template-areas:
      "photo box"
      "photo cards";
    column-gap: 48px;
    align-items: start; */
  }

  .oshinagaki-box {
    grid-area: box;
  }

  .menu-slider {
    grid-area: cards;
    margin-top: 3rem;
  }
}

/* ---------------------------------------------
   Menu card grid
--------------------------------------------- */
.menu-slider__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  padding: 2rem 0 0;
  box-sizing: border-box;
}

@media (min-width: 1000px) {
  .menu-slider__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }
}

.menu-card {
  position: relative;
  background-color: #fff;
  box-shadow: 0 4px 20px var(--shadow-card);
  text-align: center;
  padding: 1rem;
}

.menu-card__badge {
  position: absolute;
  top: -17px;
  left: 0;
  width: 90px;
}

.menu-card__photo {
  width: 150px;
  margin: 19px 0 7px;
  display: block;
    margin: 0 auto;
}

.menu-card h3 {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 900;
  line-height: 30px;
  letter-spacing: 3px;
  color: var(--color-dark);
}

.menu-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 3.2px;
  color: var(--color-text);
  text-align: left;
}

p.menu-fukusai-ttl{
  letter-spacing:1px;
  font-size: .9rem;
  font-weight: 900;
  color: var(--color-dark);
  text-align: center;
}

/* ---------------------------------------------
   Sales info (販売について)
--------------------------------------------- */

.sales-section {
  padding: 0 0 1rem;
}

.sales-box {
  border-top: 1px solid var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
  padding: 2.5rem 1rem 2rem;
  box-sizing: border-box;
  margin-top: 5rem;
  position: relative;
}

.sales-heading {
  background-color: var(--color-bg);
  position: absolute;
  top: -40px;
  left: -10px;
  padding-right: 10px;
}

.sales-heading img {
  width: 220px;
}

.sales-item + .sales-item {
  margin-top: 1.5rem;
}

.sales-tag {
  display: inline-block;
  background-color: var(--color-tag-bg);
  color: var(--color-dark);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3.6px;
  padding: 5px 10px;
  margin: 0 0 12px;
}

.sales-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 3.2px;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .sales-heading img {
    width: 170px;
  }

  .sales-tag {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .sales-text {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 2px;
  }
}

/* ---------------------------------------------
   Fade-in on scroll
--------------------------------------------- */

.js-fade-in {
  opacity: 0;
  /* transform: translateY(24px); */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */

.site-footer {
  background-color: var(--color-dark);
  padding: 28px 0;
  margin-top: 3rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: #fff;
}

/* ---------------------------------------------
   Mobile (SP) - collapse multi-column areas to 1 column
--------------------------------------------- */

@media (max-width: 767px) {

  .container {
    padding: 0 24px;
  }

  /* history: swap PC composition for the stacked SP composition */
  .history__pc {
    display: none;
  }

  .history__sp {
    display: flex;
  }

  /* gallery: row -> column (2 columns -> 1 column) */
  .gallery__row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .gallery__main,
  .gallery__sub {
    width: 88%;
    margin-bottom: 0;
    max-width: 400px;
  }

  .intro {
   
    padding: 20px 0 40px;
  }

  /* .intro p {
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 2px;
  }

  .oshinagaki-box p {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 2px;
  } */


}
@media (max-width: 480px) {


  /* menu card grid: 1カラムに切り替え */
  .menu-slider__row {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    gap: 1.5rem;
     margin-top: 15%;
  }

  .menu-card {
    width: 100%;
    max-width: 345px;
    margin: 0 auto;
  }

  .site-footer p {
    font-size: 10px;
    letter-spacing: 1px;
  }
}
