@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');



/* =========================================
   Recommended Pillow Diagnosis Section
========================================= */

/* セクション全体のスタイル */
.recommended-pillow {
    padding: 4rem 1rem;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.recommended-pillow.visible {
    opacity: 1;
    transform: translateY(0);
}

/* セクション内のコンテナ */
.recommended-pillow .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 見出し */
.recommended-pillow h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.text-3xl{
    font-family: 'MyFont', sans-serif;
    color: #d0a900;
}

/* フォームのスタイル */
#pillowQuiz {
    background-color: rgba(255, 255, 255, 0.2); /* 半透明の白背景 */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(15, 5, 20, 0.5), 0 20px 50px -15px rgba(15, 5, 20, 0.5);
    animation: fadeInUp 1s ease forwards;
}

/* 質問セクションのスタイル */
#pillowQuiz .mb-6 {
    text-align: start;
    margin-bottom: 1.5rem;
}

#pillowQuiz label {
    font-family: 'Noto Sans JP', sans-serif;
    color: #ffffff;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

#pillowQuiz .form-radio {
    accent-color: #d0a900; /* カスタムカラー */
    margin-right: 0.5rem;
}

/* 送信ボタンのスタイル */
#pillowQuiz .submit-button {
    background-color: #805ad5;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    margin-top: 1rem;
}

#pillowQuiz .submit-button:hover {
    background-color: #895beb;
}

/* 結果表示エリアのスタイル */
#quizResult {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(15, 5, 20, 0.5), 0 20px 50px -15px rgba(15, 5, 20, 0.5);
    margin-top: 2rem;
    animation: fadeInUp 1s ease forwards;
}

#quizResult h3 {
    font-family: 'MyFont', sans-serif;
    color: #d0a900;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

#recommendedPillowContent {
    text-align: center;
    color: #ffffff;
}

#recommendedPillowContent h4 {
    font-family: 'MyFont', sans-serif;
    color: #d0a900;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#recommendedPillowContent img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: inline;
}

#recommendedPillowContent p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#recommendedPillowContent a {
    background-color: #805ad5; /* Tailwindのgreen-500 */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

#recommendedPillowContent a:hover {
    background-color: #2f855a; /* Tailwindのgreen-600 */
}

/* フォームと結果表示のアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .recommended-pillow {
        padding: 2rem 1rem;
    }

    .recommended-pillow h2 {
        font-size: 2rem;
    }

    #pillowQuiz {
        padding: 1.5rem;
    }

    #quizResult {
        padding: 1.5rem;
    }

    #recommendedPillowContent img {
        max-width: 100%;
    }
}


div.title-makura {
    font-family: 'MyFont', sans-serif;
    color: #d0a900;
    font-size: 2.5rem;
    text-align: center;
    align-items: center;
    margin: 0;
    top: 50%;
    position: absolute;
}

/* 統合されたアニメーションを適用するクラス */
.target.frog {
    transform-origin: center bottom;
    animation: floating-rotate 6s linear infinite;
}

/* 統合されたキーフレームの定義 */
@keyframes floating-rotate {
    0%, 100% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(15px);
    }
}




#text3d {
    width: 140%;
    text-align: center;
    letter-spacing: .15em;
    text-shadow: 
      -1px -1px 1px #efede3, 
      0px 1px 0 #2e2e2e, 
      0px 2px 0 #2c2c2c, 
      0px 3px 0 #2a2a2a, 
      0px 4px 0 #282828, 
      0px 5px 0 #262626, 
      0px 6px 0 #242424, 
      0px 7px 0 #222, 
      0px 8px 0 #202020, 
      0px 9px 0 #1e1e1e, 
      0px 10px 0 #1c1c1c, 
      0px 11px 0 #1a1a1a, 
      0px 12px 0 #181818, 
      0px 13px 0 #161616, 
      0px 14px 0 #141414, 
      0px 15px 0 #121212,
      2px 20px 5px rgba(0, 0, 0, 0.9),
      5px 23px 5px rgba(0, 0, 0, 0.3),
      8px 27px 8px rgba(0, 0, 0, 0.5),
      8px 28px 35px rgba(0, 0, 0, 0.9);
 }


:root {
    --glitter: url("https://assets.codepen.io/13471/silver-glitter-background.png");
    --duration: 6.66s;
}

.card-front:before {
    content: "";
    inset: 0;
    position: absolute;
    transform: translate3d(0, 0, 0.01px);
    background-image: var(--glitter), var(--glitter),
        linear-gradient(120deg, black 25%, white, black 75%);
    background-size: 100% 100%, 80% 80%, 200% 200%;
    background-blend-mode: multiply, multiply, overlay;
    background-position: 50% 50%, 50% 50%, 50% 50%;
    mix-blend-mode: color-dodge;
    filter: brightness(2) contrast(0.8);
    animation: bg var(--duration) ease infinite;
}


.card-front {
    display: grid;
    position: relative;
    transform: translate3d(0, 0, 0.01px);
    width: 90vw;
    max-width: 450px;
    aspect-ratio: 3 / 2;
    border-radius: 3.5% / 5%;
    background-image: url('hani.png');
    background-size: cover;
    box-shadow: 0 30px 40px -25px rgba(15, 5, 20, 1), 0 20px 50px -15px rgba(15, 5, 20, 1);
    overflow: hidden;
    animation: tilt var(--duration) ease infinite;
    image-rendering: optimizequality;
}

.card-front:after {
    content: "";
    background: none, none, linear-gradient(125deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 0.1%, rgba(255,255,255,0) 60%);
    background-size: 200% 200%;
    mix-blend-mode: hard-light;
    animation: bg var(--duration) ease infinite;
}

.card-front * {
    font-family: 'PT Mono', monospace;
}



@keyframes tilt {
    0%, 100% { transform: translate3d(0, 0, 0.01px) rotateY(-20deg) rotateX(5deg); }
    50% { transform: translate3d(0, 0, 0.01px) rotateY(20deg) rotateX(5deg); }
}

@keyframes bg {
    0%, 100% { background-position: 50% 50%, calc(50% + 1px) calc(50% + 1px), 0% 50%; }
    50% { background-position: 50% 50%, calc(50% - 1px) calc(50% - 1px), 100% 50%; }
}



.cardLogo,
.expiry,
.name,
.number,
.chip,
.icon {

  color: #ccc;
  position: absolute;
  margin: 0;
  padding: 0;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2.8vw + 0.2rem, 1.1rem);
  inset: 5%;
  text-shadow: -1px -1px 0px rgba(255,255,255,0.5),1px -1px 0px rgba(255,255,255,0.5),1px 1px 0px rgba(0,0,0,0.5),1px -1px 0px rgba(0,0,0,0.5);
  z-index: 5;

}

.name, .number, .expiry {
  background-image: linear-gradient(to bottom, #ededed 20%, #bababa 70%), none,
    linear-gradient(120deg, transparent 10%, white 40%, white 60%, transparent 90%);
  background-size: cover, cover, 200%;
  background-position: 50% 50%;
  background-blend-mode: overlay;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  animation: bg var(--duration) ease infinite;
  
}

.number {

  font-family: PT Mono, monospace;
  text-align: center;
  font-size: clamp(1rem, 8vw - 0.5rem, 2.5rem);
  letter-spacing: 0.025em;
  top: 60%;
  bottom: auto;

}
.expiry,
.name {

  top: auto;

}

.name {

  right: auto;
  max-width: 180px;
  line-height: 1.2;
  text-align: left;

}

.expiry {

  left: auto;

}

.cardLogo {

  bottom: auto;
  left: auto;
  width: 15%;
  filter: invert(1) saturate(0) brightness(1) contrast(1.2);
  mix-blend-mode: screen;

}

.chip {

  display: grid;
  place-items: center;
  width: 14%;
  aspect-ratio: 5/4;
  left: 10%;
  top: 30%;
  border-radius: 10% 10% 10% 10% / 15% 15% 15% 15%;

  background-image: none, none,
    linear-gradient(120deg, #777 10%, #ddd 40%, #ddd 60%, #777 90%);
  background-size: 200% 200%;
  background-position: 50% 50%;

  overflow: hidden;
  animation: bg var(--duration) ease infinite;

}













.chip svg {

  display: block;
  width: 90%;
  fill: none;
  stroke: #444;
  stroke-width: 2;

}

.contactless {

  position: absolute;
  left: 23%;
  top: 30%;
  width: 12%;
  rotate: 90deg;

  stroke-width: 1.25;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;

}

.icon {

  width: 25%;
  bottom: auto;
  right: auto;
  top: 0;
  left: 15px;
  filter: invert(1) hue-rotate(180deg) saturate(5) contrast(2);

}

.ml-2{
    font-size: 18px;
}

button.title-button{
    bottom: -80%;
    position: relative;
    min-width: 95%;
    font-weight: bold;
}

/* グラデーションテキスト用のクラス */
.gradient-text {
    background: linear-gradient(to top, #ffffdb, #a16422); /* 金のグラデーション */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


/* 基本的に全ての要素を非表示にする */
.desktop-only,
.mobile-only {
    display: none;
}

.site-header {
    display: block;
}

.site-header nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.site-header nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header nav li:first-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8d36b 0%, #f08d49 100%);
    color: #1f1304;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(240, 141, 73, 0.28);
}

.site-header nav li:not(:first-child) a {
    opacity: 0.72;
}

.site-header nav li:not(:first-child) a:hover {
    color: rgba(255, 255, 255, 0.82);
    opacity: 0.95;
}

.site-header nav li:first-child a:hover {
    color: #1f1304;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(240, 141, 73, 0.34);
}

.h-s{
    height: 200vh;
}
.h-s2{
    height: 150vh;
}

/* デスクトップ用のスタイル（幅769px以上） */
@media (min-width: 769px) {
    .desktop-only {
        display: block; /* 必要に応じて他の表示プロパティに変更 */
    }
}

/* モバイル用のスタイル（幅768px以下） */
@media (max-width: 768px) {
    .mobile-only {
        display: block; /* 必要に応じて他の表示プロパティに変更 */
    }

    .site-header nav {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .site-header nav ul {
        gap: 0.25rem 0.75rem;
        line-height: 1.3;
    }

    .site-header nav ul > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0;
    }

    .site-header nav a {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .site-header nav li:first-child a {
        padding: 0.58rem 0.95rem;
        letter-spacing: 0.04em;
    }
}


#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 他のコンテンツの背面に配置 */
}

.section__content {
    min-height: 100vh;
    position: sticky;
    top: 0;
    width: 100vw;
    display: grid;
    place-items: center;
    padding: 1rem;
    width: 60ch;
    max-width: 100vw;
    margin: 0 auto;
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(20px); /* 少し下にずらす */
    transition: opacity 1s ease-out, transform 1s ease-out; /* フェードインとスライドアップのトランジション */
}

.section__content.visible {
    opacity: 1; /* 表示時に不透明に */
    transform: translateY(0); /* 元の位置に戻す */
}
.section__content2 {
    min-height: 100vh;
    position: sticky;
    top: 0;
    width: 100vw;
    display: grid;
    place-items: center;
    padding: 1rem;
    width: 60ch;
    max-width: 100vw;
    margin: 0 auto;
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(20px); /* 少し下にずらす */
    transition: opacity 1s ease-out, transform 1s ease-out; /* フェードインとスライドアップのトランジション */
}

.section__content2.visible {
    opacity: 1; /* 表示時に不透明に */
    transform: translateY(0); /* 元の位置に戻す */
}



section:nth-of-type(4) {
    position: relative;
    width: 100vw;
    height: 200vh;
    view-timeline-name: --section;
}
section:nth-of-type(5) {
    position: relative;
    width: 100vw;
    height: 200vh;
    view-timeline-name: --section;
}

/* Heading */
h5 {
    display: grid;
    font-size: clamp(2.5rem, 7vw + 1rem, 10rem);
    text-align: center;
    line-height: 1;
    margin: 0;
    max-width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h5 span:nth-of-type(1),
h5 span:nth-of-type(3) {
    display: inline-block;
    color: hsl(0, 0%, 100%);
    /* スケールダウンとフェードアウェイのアニメーションを適用 */
    animation: scale-down both cubic-bezier(.1, .7, .9, 1.3);
    animation-timeline: --section;
    animation-range: entry-crossing 50% exit 50%;         /* fade-away の範囲 */
}

h5 span:nth-of-type(2),
h5 span:nth-of-type(4) {
    display: inline-block;
    animation: scale-up both cubic-bezier(.1,.7,.9,1.3);
    animation-timeline: --section;
    animation-range: entry-crossing 50% exit 50%;	
}

@keyframes scale-up {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1.5);
    }
}

@keyframes scale-down {
    from {
        transform: scale(1.5);
    }
    to {
        transform: scale(0);
    }
}






/* Typing Text のスタイル */
#typing-text {
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 15px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 最前面に表示するためのスタイルを追加 */
/* 既存のCSSに追加 */


.about-us ul {
    padding: 40px 0 0 0;
    list-style: none;
    text-align: center;
}

.about-us li {
    margin-bottom: 10px;
}

.about-us a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.about-us i {
    margin-right: 8px;
    color: #e53e3e; /* PDFアイコンを赤色に */
}

h6{
    text-align: left;
}

.con{
    padding-left: 15%;
    padding-right: 15%;
    text-align: center;
}


/* フッター全体を前面に表示 */
footer {
    position: relative; /* スタッキングコンテキストを作成 */
    z-index: 10;        /* 他の要素よりも高い値を設定 */
}

/* フッター内のpタグを最前面に表示 */
footer p {
    position: relative; /* スタッキングコンテキストを利用 */
    z-index: 20;        /* フッター内で最前面に表示 */
    padding-bottom: 45px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}
/* 既存のCSSに追加 */




.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

/* フォントファミリーの定義 */
@font-face {
    font-family: 'MyFont';
    src: url('kaiso_up/Kaisotai-Next-UP-B.ttf') format('woff2'),
         url('kaiso_up/Kaisotai-Next-UP-B.otf') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MyFont';
    src: url('kaiso_up/Kaisotai-Next-UP-B.ttf') format('woff2'),
         url('kaiso_up/Kaisotai-Next-UP-B.otf') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 新しいフォントクラス */
.myfont {
    font-family: 'MyFont', sans-serif;
}

.text-4xl {
    font-size: 6rem; /* フォントサイズを大きく */
    font-weight: bold;
    margin-bottom: 1rem;
    /* デフォルトフォントを使用するため、font-familyを削除 */
}

.text-5xl {
    font-size: 2rem; /* フォントサイズを大きく */
    font-weight: bold;
    margin-bottom: 1.5rem;
    /* デフォルトフォントを使用するため、font-familyを削除 */
}

.text-xl {
    font-size: 1.5rem; /* フォントサイズを大きく */
    margin-bottom: 2rem;
}

.text-xl1 {
    font-size: 1.5rem; /* フォントサイズを大きく */
    margin-bottom: 2rem;
    text-align: center;
    color: #d0a900;
}

cta-button3{
    background-color: #805ad5;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    margin-top: 1rem;
}   

.cta-button2 {
        padding: 10px 20px;
        font-size: 1em;
        background-color: transparent;
        color: transparent; /* テキスト色を透明に設定 */
        border-radius: 5px;
        cursor: pointer;
        transition: color 0.3s, text-shadow 0.3s;
        min-width: 60%;
        border: 4px solid; /* ボーダー幅を設定 */
        border-image: linear-gradient(
            135deg,
            #704308 0%,
            #ffce08 37%,
            #fefeb2 47%,
            #fafad6 50%,
            #fefeb2 53%,
            #e1ce08 63%,
            #704308 100%
        ) 1; /* border-image-slice を1に設定 */
    }
    .cta-button4 {
        padding: 10px 20px;
        font-size: 1em;
        background-color: transparent;
        color: transparent; /* テキスト色を透明に設定 */
        border-radius: 5px;
        cursor: pointer;
        transition: color 0.3s, text-shadow 0.3s;
        text-align: center;
    max-width: 65%;
        border: 4px solid; /* ボーダー幅を設定 */
        border-image: linear-gradient(
            135deg,
            #704308 0%,
            #ffce08 37%,
            #fefeb2 47%,
            #fafad6 50%,
            #fefeb2 53%,
            #e1ce08 63%,
            #704308 100%
        ) 1; /* border-image-slice を1に設定 */
    }
 
.modal-button{
    padding: 10px 20px;
    width: 70%;
    margin-bottom: -20px;
}

.modal-p{
    color: black;    
}

.pillow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20rem; /* 画像サイズを大きく */
    height: 20rem;
    margin: 5rem auto 3rem;
    position: relative;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pillow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}


/* 固定購入ボタンのスタイル */
.mobile-purchase-button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #805ad5; /* 背景色 */
    color: white; /* テキスト色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    min-width: 60%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-purchase-button:hover {
    background-color: #6c48b8; /* ホバー時の背景色 */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* 購入オプションモーダルのスタイル */
#purchaseModal {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(100%);
}

#purchaseModal.show {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}




/* モーダル内のキャンセルボタン */
#closeModal {
    background-color: #f3f4f6; /* 背景色 */
    color: #4b5563; /* テキスト色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#closeModal:hover {
    background-color: #e5e7eb; /* ホバー時の背景色 */
}


.cta-button:hover {
    background-color: #805ad5;
}

.features {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-3xl {
    font-size: 2rem; /* フォントサイズを少し大きく */
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(107, 70, 193, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card2 {
    background-color: rgb(77 0 255 / 50%);
    padding: 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: 10px;
}

.feature-card:nth-child(1) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.4s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.6s;
}

footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-indicator {
    position: fixed;
    bottom: 4rem;
    left: 48%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation: bounce 1.5s infinite;
    z-index: 1000; /* 他の要素よりも前面に表示 */
}

.scroll-indicator.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}


@media (max-width: 768px) {
    .text-4xl {
        font-size: 3rem;
    }
    .text-5xl {
        font-size: 2.5rem;
    }
    .text-xl {
        font-size: 1.25rem;
    }
    .pillow-container {
        width: 15rem;
        height: 15rem;
    }
}


/* カーソル（点滅） */
.cursor {
    display: inline-block;
    width: 0.15em;
    background-color: black;
    margin-left: 2px;
    animation: blink-caret 0.75s step-end infinite;
}

/* 「夢」を赤色かつ大きめに表示 */
.highlight {
    font-family: 'MyFont', sans-serif;
    color: #d0a900;
    font-size: 1.5em; /* 必要に応じて調整 */
}

/* カーソルの点滅アニメーション */
@keyframes blink-caret {
    from, to { background-color: transparent; }
    50% { background-color: black; }
}

/* セクションが表示されるときのクラス */
.visible {
    align-items: center;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   Navigation Bar
========================================= */

.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #007BFF;
}

/* =========================================
   Responsive Design
========================================= */

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar li {
        margin: 10px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .feature-grid,
    .testimonial-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .pillow-image,
    .gallery-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .cta-button,
    .submit-button {
        width: 40%;
    }

    .navbar a {
        font-size: 1rem;
    }
}
.item p {
    /* ここにスタイルを記述 */
    padding-bottom: 10%;
  }

  .item.a {
    display: flex;
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center;     /* 垂直方向に中央揃え */
    flex-direction: column;  /* 子要素を縦に並べる */
    height: 100%;            /* 高さを親要素に合わせる */
}
  
/* =========================================
   Additional Styles for Interactivity
========================================= */

/* Mobile Navigation Toggle (Optional) */
.navbar .toggle-button {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.navbar .toggle-button div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar .toggle-button {
        display: block;
    }
}

/* Active state for toggle button */
.navbar .toggle-button.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar .toggle-button.active .bar2 {
    opacity: 0;
}

.navbar .toggle-button.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================================
   Testimonials Section
========================================= */

.testimonials {
    padding: 60px 20px;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {

    background-color: rgba(107, 70, 193, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
}

h3{
    font-family: 'MyFont', sans-serif;
}

/* =========================================
   About Us Section
========================================= */

.about-us {
    padding: 60px 20px;
}

.about-us h3 {
    text-align: center;
    margin-bottom: 30px;
}

.about-us p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* =========================================
   Gallery Section
========================================= */

.gallery {
    padding: 60px 20px;
}

.gallery h3 {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* =========================================
   FAQ Section
========================================= */

.faq {
    padding: 60px 20px;
}

.faq h3 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.faq-question {
    font-weight: bold;
    color: #805ad5;
    margin-bottom: 10px;
}

.faq-answer {
    color: #555;
    line-height: 1.6;
}

/* =========================================
   Contact Section
========================================= */

.contact {
    padding: 60px 20px;
}

.contact h3 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.submit-button {
    padding: 15px;
    font-size: 1.1rem;
    background-color: #805ad5;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #895beb;
}

/* =========================================
   Footer
========================================= */

footer {
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

footer p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.social-media a {
    margin: 0 10px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.social-media img {
    width: 24px;
    height: 24px;
}

.social-media a:hover {
    opacity: 0.7;
}

/* 既存のスタイルを維持しつつ、カルーセル用のスタイルを追加 */

.additional-content.container {
    /* 既存のスタイル */
    padding: 20px;
    text-align: center;
}

.text-xl {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.pillow-container {
    position: relative;
    width: 300px; /* 必要に応じて調整 */
    height: 300px; /* 必要に応じて調整 */
    margin: 0 auto 20px auto;
    perspective: 1000px;
}

.carousel-container {
    position: relative;
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.item {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: visible;
    border-radius: 10px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* activeクラスが付与されたアイテムを通常の不透明度にする */
.item.active {
    opacity: 1;
}


.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 3枚の画像に合わせた回転角度 */
.a {
    transform: rotateY(0deg) translateZ(150px);
}
.b {
    transform: rotateY(120deg) translateZ(150px);
}
.c {
    transform: rotateY(240deg) translateZ(150px);
}
.pillow-image {
    animation: float 3s ease-in-out infinite;  /* アニメーションの適用 */
  }
  
  @keyframes float {
    0% {
      transform: translateY(0);  /* 初期位置 */
    }
    50% {
      transform: translateY(-10px);  /* 上に10px移動 */
    }
    100% {
      transform: translateY(0);  /* 初期位置に戻る */
    }
  }
  

/* NextおよびPrevボタンのスタイル調整 */
.next, .prev {
    position: absolute;
    top: 70%;
    transform: translateY(-50%);
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 50%;
    transition: box-shadow 0.1s, top 0.1s, transform 0.3s;
    user-select: none;
    z-index: 10;
    width: 50px; /* ボタンの幅を広げる */
    height: 50px; /* ボタンの高さを広げる */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

.next:hover, .prev:hover { color: #000; }
.next:active, .prev:active {
    box-shadow: 0 1px 0 #999;
}

.prev { 
    left: -60%; /* 左側に広げる */
}
.next { 
    right: -60%; /* 左側に広げる */
}
.cta-button3 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #805ad5; /* 背景色 */
    color: white; /* テキスト色 */
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    max-width: 40%;
}

button.cta-button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #805ad5;
    color: white; /* テキスト色を透明に設定 */
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
    min-width: 60%;
    border: 4px solid #805ad5; /* ボーダー幅と色を設定 */
}

.cta-button:hover {
    background-color: #0056b3;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pillow-container {
        width: 250px;
        height: 250px;
    }
   
}

@media (max-width: 480px) {
    .pillow-container {
        width: 200px;
        height: 200px;
    }
    .next { 
        right: -70px; /* スクリーンサイズに合わせて調整 */
    }
    .prev { 
        left: -70px; /* スクリーンサイズに合わせて調整 */
    }
}
