/* General Styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1f2937; /* Gray 800 */
    background-color: #f8fafc; /* gray-50 */
    overflow-x: hidden;
}
.bg-primary-blue { background-color: rgb(2, 50, 155); }
.text-primary-blue { color: rgb(2, 50, 155); }
.border-primary-blue { border-color: rgb(2, 50, 155); }
.bg-accent-yellow { background-color: #fcfc0c; }
.text-accent-yellow { color: #fcfc0c; }
.highlight-text {
     color: #fcfc0c;
     text-shadow: 1px 1px 3px rgba(2, 50, 155, 0.8);
}
.section-title-bg {
    background-color: #fcfc0c;
    color: rgb(2, 50, 155);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 900;
    border: 3px solid rgb(2, 50, 155);
}
.cta-button {
    background-color: #fcfc0c;
    color: rgb(2, 50, 155);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cta-button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Hero Section */
.hero-title-bg {
    background-color: #fcfc0c;
    color: rgb(2, 50, 155);
    font-weight: 900;
}
.bg-hero {
    background-image: url('https://s3-ap-northeast-1.amazonaws.com/s3.peraichi.com/userData/7df39569-c756-4220-973b-d769739a4243/img/c272dba0-2c9c-013e-cd54-0a58a9feac02/IMG_3592.jpeg');
    background-size: cover;
    background-position: center;
}
.text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* FAQ Section */
.faq-question.active + .faq-answer {
    max-height: 500px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}
.faq-question .arrow {
    transition: transform 0.3s ease-in-out;
}
.faq-question.active .arrow {
    transform: rotate(180deg);
}

/* Other Components */
.reason-card {
    border: 3px solid rgb(2, 50, 155);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.reason-title {
    color: white;
    background-color: rgb(2, 50, 155);
    padding: 1rem;
    font-weight: 700;
}
.info-box {
    border: 4px solid #fcfc0c;
    background-color: #fff9c4;
    padding: 2.5rem;
    border-radius: 0.5rem;
}
.info-box-title {
    background-color: rgb(2, 50, 155);
    color: #fcfc0c;
    font-weight: 900;
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 2rem;
}
.price-tag {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 900;
}
.comparison-icon-ok {
    font-size: 3rem;
    font-weight: bold;
    color: #ec4899; /* pink-500 */
    line-height: 1;
}
.comparison-icon-ng {
    font-size: 3rem;
    font-weight: bold;
    color: #6b7280; /* gray-500 */
    line-height: 1;
}
.aspect-ratio-16-9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 9 / 16 = 0.5625 */
}
.aspect-ratio-16-9 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.speech-bubble {
    position: relative;
    background-color: #4a5568; /* gray-700 */
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid white;
}
.bubble-right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #4a5568;
}
.bubble-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid #4a5568;
}
@media (max-width: 1023px) {
    .bubble-left::after, .bubble-right::after {
        left: 50%; top: -23px; transform: translateX(-50%);
        border-left: 15px solid transparent; border-right: 15px solid transparent;
        border-bottom: 20px solid #4a5568; border-top: 0;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animated-bg-particles {
    position: fixed; top: 0; left: 0; width: 100%;
    height: 100%; overflow: hidden; z-index: -1;
}
.particle {
    position: absolute; background-color: rgba(252, 252, 12, 0.3);
    border-radius: 50%; animation: move-particles 20s linear infinite;
    bottom: -50px;
}
.particle:nth-child(1) { width: 10px; height: 10px; left: 15%; animation-duration: 18s; }
.particle:nth-child(2) { width: 20px; height: 20px; left: 30%; animation-duration: 25s; animation-delay: 2s; }
.particle:nth-child(3) { width: 15px; height: 15px; left: 50%; animation-duration: 15s; }
.particle:nth-child(4) { width: 12px; height: 12px; left: 70%; animation-duration: 22s; animation-delay: 5s; }
.particle:nth-child(5) { width: 18px; height: 18px; left: 85%; animation-duration: 19s; }
@keyframes move-particles {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-120vh) rotate(360deg); }
}

/* Mobile Menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
#mobile-menu.is-open {
    transform: translateX(0);
}

/* Gallery Section Styles */
.gallery-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.gallery-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    animation: gallery-fade 25s infinite; /* 5 images * 5s duration */
}
.gallery-image:nth-child(1) { animation-delay: 0s; }
.gallery-image:nth-child(2) { animation-delay: 5s; }
.gallery-image:nth-child(3) { animation-delay: 10s; }
.gallery-image:nth-child(4) { animation-delay: 15s; }
.gallery-image:nth-child(5) { animation-delay: 20s; }
@keyframes gallery-fade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    20% { opacity: 1; }
    28% { opacity: 0; }
    100% { opacity: 0; }
}

/* ===================================
   1. 基本設定 (全てのページ・要素に適用)
   =================================== */

html, body {
  margin: 0;
  padding: 0;
}

/* 全ての画像をレスポンシブ対応させる基本設定 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===================================
   2. デバイス別の表示調整
   =================================== */

/* PCなど、画面幅が768px以上のデバイスにのみ適用 */
@media (min-width: 768px) {
  body {
    zoom: 1.5; /* ページ全体を1.5倍に拡大 */
  }
}

/* スマホなど、画面幅が767px以下のデバイスにのみ適用 */
@media (max-width: 767px) {
  html {
    font-size: 80%; /* 文字サイズを80%に縮小 */
  }
}


/* ===================================
   3. 汎用クラス (必要な場所に都度適用)
   =================================== */

/* ボタンを中央に配置したい場合に使用 */
.cta-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: -moz-fit-content; /* Firefox向け */
    width: fit-content;      /* ボタンの内容に幅を合わせる */
}

/* 画像を固定サイズ（例: 300x200px）のボックスに収めたい場合に使用 */
.image-container {
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を維持したままボックスを埋める */
}

/* 画像をレスポンシブな4:3の比率で表示したい場合に使用 */
.aspect-ratio-4-3 {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 3 / 4 = 0.75 */
}
.aspect-ratio-4-3 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を維持したままボックスを埋める */
}
