:target { scroll-margin-top: 72px; }

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}

.hero__title {
    font-size: clamp(1.8rem, 4.5vw, 2.3rem);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: #fff;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 40px;
    opacity: 0.9;
    color: #fff;
}

.hero__cta {
    display: inline-block;
    background: #ff5722;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform 0.3s;
}

.hero__cta:hover {
    transform: translateY(-2px);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* Section Styles */
.section {
    width: 80%;
    margin-inline: auto;
    padding-block: 60px;
    padding-inline: 0 !important;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .section {
        width: 100%;
        padding-block: 40px; /* モバイル版でセクション間スペースを縮める */
    }
}

.section > .section__inner {
    width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
}

.wave-divider-section .section__inner {
    margin-top: 30px;
    position: relative;
}

h2.section__title {
    text-align: center !important;
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
    margin-bottom: 40px !important;
    color: #000 !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

.section__title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    color: #000 !important;
    font-weight: 500 !important;
}

/* Plan Card Styles */
.plan-card {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    background: transparent !important;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
}

#safety .plan-card {
    gap: 80px;
}

.plan-card__content {
    flex: 3; /* 左側を3の割合に（60%） */
}

.plan-card__staff {
    flex: 2; /* 右側を2の割合に（40%） */
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -82px;
}

.plan-card__staff img {
    width: 120%; /* エリアからはみ出させて大きく */
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.08));
    transform-origin: center;
}

.plan-tab-label {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.plan-card__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.plan-card__subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.plan-card__price {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
}

.plan-card__features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-card__features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #333;
}

.plan-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007acc;
    font-weight: 700;
}

.plan-card__image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.plan-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.quality-link {
    background: #e8f5e8;
    color: #2e7d32;
    border: 2px solid transparent;
}

.quality-link:hover {
    background: #2e7d32;
    color: white;
}

.plan-link {
    background: #007acc;
    color: white;
}

.plan-link:hover {
    background: #005fa3;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Steps Grid Mobile */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.step-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 2px solid #007acc;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,122,204,0.1);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #007acc;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #007acc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
    margin: 0 auto 16px;
}

/* Price Cards */
.price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.price-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 2px solid #007acc;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,122,204,0.1);
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,122,204,0.2);
}

.price-card.featured {
    transform: scale(1.05);
}

.price-card h3 {
    font-size: 20px;
    color: #007acc;
    margin-bottom: 16px;
    font-weight: 600;
}

.price-card .price {
    font-size: 36px;
    font-weight: 700;
    color: #007acc;
    margin-bottom: 8px;
}

.price-card .note {
    font-size: 14px;
    color: #666;
}

/* Price Cards Mobile */
@media (max-width: 768px) {
    .price-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Usage Cards */
.usage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.usage-card {
    background: transparent;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.usage-card:hover {
    transform: translateY(-4px);
}

.usage-card h3 {
    color: #007acc;
    margin-bottom: 12px;
}

.usage-card p {
    color: #666;
    font-size: 14px;
}

/* Safety Features */
.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.safety-card {
    background: transparent;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.safety-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
}

.safety-card p {
    color: #666;
    line-height: 1.6;
}

.safety-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e4e7;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item__question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-item__question:hover {
    background: #f7fafc;
}

.faq-item__question span {
    font-size: 20px;
    font-weight: bold;
    color: #4a5568;
    min-width: 20px;
    text-align: center;
}

.faq-item__answer {
    padding: 0 24px;
    background: #fafbfc;
    display: none;
    border-top: 1px solid #e2e8f0;
}

.faq-item__answer[style*="block"] {
    padding: 20px 24px;
}

.faq-item__answer p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #4a5568;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

.faq-item__answer ul,
.faq-item__answer ol {
    margin: 12px 0;
    padding-left: 0;
}

.faq-item__answer li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a5568;
}

.faq-item__answer strong {
    color: #2d3748;
}

.faq-item__answer table {
    margin: 16px 0;
}

.faq-item__answer th,
.faq-item__answer td {
    color: #4a5568;
}

.faq-item__answer th {
    background: #f7fafc !important;
    font-weight: 500;
    color: #2d3748;
}

/* Store Info Section */
.store-info-section {
    background: #2d3748;
    color: white;
    padding: 60px 0;
}

.store-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.store-info-card {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-header h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-icon {
    font-size: 28px;
}

.store-description {
    color: #a0aec0;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.5;
}

.store-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.detail-icon {
    font-size: 20px;
    min-width: 24px;
}

.detail-text {
    color: #e2e8f0;
    line-height: 1.5;
    white-space: nowrap;
}

.phone-link {
    color: #63b3ed;
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover {
    color: #3182ce;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .store-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .store-info-card {
        padding: 24px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Footer Info Styles (from Mihama store) */
.footer-info {
    flex: 1;
    min-width: 300px;
    padding: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-info h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #d1d5db;
    font-size: 1.1rem;
}

.footer-business-hours {
    margin: 0.5rem 0 !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.phone {
    font-size: 1.2rem !important;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
}

.footer-phone {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
}

.footer-phone:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.footer-store-icon {
    width: 30px;
    height: 30px;
}

/* Footer */
.footer {
    background-color: #1f2937;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.footer-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-map,
    .footer-info {
        width: 100%;
        padding: 0;
    }
    
    .footer-map {
        display: none;
    }
    
    .footer-info {
        order: 1;
        text-align: center;
        padding: 0 1.5rem 2rem !important;
    }
    
    .footer-store-name {
        font-size: 1.1rem !important;
        white-space: nowrap;
        gap: 6px !important;
        justify-content: center;
    }
    
    .footer-store-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 480px) {
    .footer-info h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    .footer-info h3 {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section > .section__inner {
        padding-inline: 15px;
    }
    
    .plan-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 16px;
    }
    
    .plan-card__image {
        width: 250px;
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Staff guide image */
.staff-figure{position:relative; display:block; max-width:min(25vw,200px)}
.staff-figure img{width:100%; height:auto; display:block; border-radius:12px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.08))}
.staff-figure.-right{margin:-40px 0 -20px 8px; float:right}
.staff-figure.-left{margin:-40px 8px -20px 0; float:left}
.staff-figure.-mirror img{transform:scaleX(-1)}
.staff-figure.-round img{border-radius:999px}
.plan-card__staff img.-mirror{transform:scaleX(-1)}
.plan-card__staff img.-round{border-radius:999px}
.plan-card__staff img.-rounded{border-radius:36px}

/* pricing section specific layout */
#pricing .plan-card__staff {
    flex: 2; /* 左側の画像を40% */
    margin-top: -80px;
}
#pricing .plan-card__content {
    flex: 3; /* 右側のテキストを60% */
    padding-left: 40px; /* テキストを右に移動 */
}

/* containers section specific layout */
#containers .plan-card__staff {
    margin-top: -60px;
}

/* sparkling section specific layout */
#sparkling .plan-card__staff {
    margin-top: -40px;
}

/* safety section specific layout */
#safety .plan-card__staff {
    margin-top: -40px;
}

#safety .plan-card__content {
    padding-left: 40px; /* テキストを右に移動 */
}

/* CTA buttons styling for PC/Tablet - Enforce horizontal layout */
@media (min-width: 769px) {
    #safety .plan-card .plan-cta-buttons,
    #pricing .plan-cta-buttons,
    #containers .plan-cta-buttons,
    #sparkling .plan-cta-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 16px !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    #safety .plan-card .plan-cta-buttons {
        gap: 20px !important;
    }
}

/* Pricing section plan-card layout - PC・タブレット版で正しいレイアウト */
@media (min-width: 769px) {
    #pricing .plan-card {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    #safety .plan-card {
        flex-direction: row !important;
        align-items: center !important;
    }
}

#safety .cta-btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    justify-content: center;
}

/* Reduce spacing between safety and FAQ sections */
#safety {
    margin-bottom: 20px;
}

#faq-section {
    margin-top: 20px;
}

/* Quality cards styling (from mihama store) */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.quality-card {
    background: transparent;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-8px);
}

.quality-card__icon {
    margin-bottom: 24px;
}

.quality-card__icon img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

.quality-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.4;
}

.quality-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
}

/* Staff comment bubble */
.staff-bubble{
  position:absolute; left:0%; bottom:-10px; transform:translateY(100%); 
  background:#fff3cd; border:2px solid #ffeaa7; border-radius:16px; 
  padding:.8rem 1rem; box-shadow:0 4px 12px rgba(0,0,0,.1); 
  font-size:.9rem; line-height:1.4; color:#856404; font-weight:500;
  max-width:280px; word-wrap:break-word;
}
.staff-bubble::before{
  content:"💬"; position:absolute; left:8px; top:-12px; 
  font-size:16px; background:#fff3cd; border-radius:50%; 
  width:24px; height:24px; display:flex; align-items:center; 
  justify-content:center; border:2px solid #ffeaa7;
}
.staff-bubble::after{
  content:""; position:absolute; left:20px; top:-8px; 
  border:8px solid transparent; border-bottom-color:#ffeaa7;
}

/* ページ全体の泡装飾 */
.bubble-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble-bg::before,
.bubble-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* 左側の密集泡群 */
.bubble-bg::before {
  width: 80px;
  height: 80px;
  left: -10px;
  top: 8%;
  background: radial-gradient(circle, rgba(0,150,255,.8) 0%, rgba(65,185,255,.5) 50%, transparent 70%);
  box-shadow: 
    /* 密集する小泡群 */
    50px 80px 0 -30px rgba(30,144,255,.6),
    30px 150px 0 -35px rgba(0,191,255,.5),
    70px 220px 0 -20px rgba(70,170,255,.7),
    20px 290px 0 -40px rgba(100,200,255,.55),
    80px 360px 0 -25px rgba(40,160,255,.6),
    /* 中間層の泡 */
    40px 450px 0 -30px rgba(20,180,255,.65),
    10px 520px 0 -35px rgba(60,190,255,.5),
    90px 590px 0 -20px rgba(80,170,255,.7),
    60px 660px 0 -40px rgba(50,200,255,.45),
    25px 730px 0 -25px rgba(90,180,255,.6),
    /* 下層の泡群 */
    75px 800px 0 -30px rgba(110,160,255,.55),
    45px 870px 0 -35px rgba(10,210,255,.6),
    15px 940px 0 -20px rgba(130,190,255,.65),
    85px 1010px 0 -40px rgba(75,175,255,.5),
    35px 1080px 0 -25px rgba(85,185,255,.55);
  /* animation: bubbleFloat2 20s ease-in-out infinite; */
}

/* 右側の密集泡群 */
.bubble-bg::after {
  width: 70px;
  height: 70px;
  right: -10px;
  top: 12%;
  background: radial-gradient(circle, rgba(30,144,255,.7) 0%, rgba(100,200,255,.5) 50%, transparent 70%);
  box-shadow: 
    /* 密集する小泡群 */
    -40px 70px 0 -25px rgba(0,150,255,.65),
    -20px 140px 0 -30px rgba(70,170,255,.55),
    -60px 210px 0 -35px rgba(40,160,255,.6),
    -30px 280px 0 -20px rgba(90,180,255,.5),
    -70px 350px 0 -40px rgba(60,190,255,.65),
    /* 中間層の泡 */
    -50px 420px 0 -25px rgba(20,180,255,.55),
    -10px 490px 0 -30px rgba(80,170,255,.6),
    -80px 560px 0 -35px rgba(50,200,255,.5),
    -35px 630px 0 -20px rgba(110,160,255,.65),
    -65px 700px 0 -40px rgba(10,210,255,.55),
    /* 下層の泡群 */
    -25px 770px 0 -25px rgba(130,190,255,.6),
    -75px 840px 0 -30px rgba(75,175,255,.5),
    -45px 910px 0 -35px rgba(85,185,255,.65),
    -15px 980px 0 -20px rgba(65,185,255,.55),
    -85px 1050px 0 -40px rgba(95,195,255,.6);
  animation: bubbleFloat2 25s ease-in-out infinite reverse;
}

/* 中央部の散らし泡 */
.hero::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 20%;
  right: 10%;
  background: radial-gradient(circle, rgba(30,144,255,.3) 0%, transparent 70%);
  box-shadow: 
    -200px 100px 0 -20px rgba(0,150,255,.2),
    300px 200px 0 -30px rgba(70,170,255,.25),
    -400px 300px 0 -15px rgba(40,160,255,.22);
  animation: bubbleFloat3 18s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* セクション間の泡 */
#containers::after,
#pricing::after, 
#sparkling::after,
#safety::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

#containers::after {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 3%;
  background: radial-gradient(circle, rgba(60,190,255,.3) 0%, transparent 70%);
  animation: bubbleFloat1 16s ease-in-out infinite;
}

#pricing::after {
  width: 70px;
  height: 70px;
  top: 30%;
  right: 7%;
  background: radial-gradient(circle, rgba(0,150,255,.35) 0%, transparent 70%);
  /* animation: bubbleFloat2 14s ease-in-out infinite reverse; */
}

#sparkling::after {
  width: 50px;
  height: 50px;
  top: 60%;
  left: 5%;
  background: radial-gradient(circle, rgba(80,170,255,.32) 0%, transparent 70%);
  animation: bubbleFloat3 12s ease-in-out infinite;
}

#safety::after {
  width: 65px;
  height: 65px;
  top: 20%;
  right: 4%;
  background: radial-gradient(circle, rgba(40,160,255,.3) 0%, transparent 70%);
  animation: bubbleFloat1 20s ease-in-out infinite reverse;
}

/* 泡のアニメーション */
@keyframes bubbleFloat1 {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

@keyframes bubbleFloat2 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.7; }
  33% { transform: translateY(-15px) translateX(10px) scale(1.05); opacity: 0.9; }
  66% { transform: translateY(-5px) translateX(-5px) scale(0.95); opacity: 0.8; }
}

@keyframes bubbleFloat3 {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: translateY(-25px) rotate(180deg) scale(1.15); opacity: 0.9; }
}

@media (max-width: 768px){
  .staff-figure{float:none; margin:0 auto 8px; max-width:50vw}
  .staff-bubble{left:50%; transform:translate(-50%,100%); max-width:160px; font-size:.9rem}
  .staff-bubble::before{font-size:12px; width:18px; height:18px; top:-8px}
  
  /* スマホ版のみ左の泡装飾を端に寄せる */
  .bubble-bg::before {
    left: -70px;
  }
  
  /* containers セクションのスマホ版でスタッフ画像の上下スペースを調整して右に寄せる */
  #containers .plan-card__staff {
    margin-top: 5px;
    margin-bottom: 0px;
    margin-right: -50px !important;
  }
  
  /* containers セクションのスマホ版で吹き出しをスタッフ画像と一緒に右に移動 */
  #containers .staff-bubble {
    left: -55px !important;
    top: 35% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    max-width: 200px !important;
  }
  
  #containers .staff-bubble::before {
    left: auto !important;
    right: -12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  
  #containers .staff-bubble::after {
    left: auto !important;
    right: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-right-color: #ffeaa7 !important;
    border-bottom-color: transparent !important;
  }
  
  /* 全セクションのスマホ版でCTAボタンを縦並びに配置 */
  .plan-cta-buttons {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }
  
  
  .cta-btn {
    width: 80% !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
  }
  
  /* containers セクションのスマホ版でテキストを左寄せ */
  #containers .plan-card__features {
    text-align: left !important;
  }
  
  /* 全セクションのスマホ版でテキストコンテナ背景を白に、ボーダーと角丸を追加 */
  .plan-card__content {
    background-color: white !important;
    border: 1px solid #e0e4e7 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    padding: 20px !important;
  }
  
  /* containers セクションのスマホ版でスタッフ画像と手順カード間のスペースを縮める */
  #containers .steps-grid {
    margin-top: -20px !important;
  }
  
  /* pricing セクションのスマホ版で見出しの上のスペースを縮める */
  #pricing {
    padding-top: 0px !important;
  }
  
  /* pricing セクションのスマホ版でスタッフ画像を反転 */
  #pricing .plan-card__staff img {
    transform: scaleX(-1) !important;
  }
  
  /* pricing セクションのスマホ版でスタッフ画像とテキストの順序を変更 */
  #pricing .plan-card {
    flex-direction: column-reverse !important;
  }
  
  /* pricing セクションのスマホ版で特徴リストを左揃えに */
  #pricing .plan-card__features {
    text-align: left !important;
  }
  
  /* pricing セクションのスマホ版でスタッフ画像を下げて左に寄せる */
  #pricing .plan-card__staff {
    margin-top: 20px !important;
    margin-left: -70px !important;
  }
  
  /* pricing セクションのスマホ版で吹き出しをスタッフの手の部分に合わせて移動 */
  #pricing .plan-card__staff .staff-bubble {
    left: 160px !important;
    top: 30% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    max-width: 200px !important;
    width: 200px !important;
  }
  
  #pricing .plan-card__staff .staff-bubble::before {
    left: -12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  
  #pricing .plan-card__staff .staff-bubble::after {
    left: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-left-color: #ffeaa7 !important;
    border-bottom-color: transparent !important;
  }
  
  /* sparkling セクションのスマホ版で特徴リストを左揃えに */
  #sparkling .plan-card__features {
    text-align: left !important;
  }
  
  /* sparkling セクションのスマホ版で炭酸水画像を90%表示して上スペースを広げる */
  #sparkling .plan-card__staff img {
    width: 90% !important;
    height: auto !important;
  }
  
  #sparkling .plan-card__staff {
    margin-top: 20px !important;
  }
  
  /* safety セクションのスマホ版で特徴リストを左揃えに */
  #safety .plan-card__features {
    text-align: left !important;
  }
  
  /* safety セクションのスマホ版で店舗画像を70%表示 */
  #safety .plan-card__staff img {
    width: 70% !important;
    height: auto !important;
  }
}

/* safety セクションのPC版で他セクションと同じサイズに */
@media (min-width: 769px) {
  #safety .plan-card__staff img {
    width: 120% !important;
  }
  
  #safety .plan-card {
    flex-direction: row !important; /* PC・タブレット版は横並び（左:画像、右:テキスト） */
  }
}

/* safety セクションのスマホ版で画像とテキストの順序を変更 */
@media (max-width: 768px) {
  #safety .plan-card {
    flex-direction: column-reverse !important; /* テキストが上、画像が下 */
  }
  
  /* containers セクションのスマホ版で手順カードの幅を70%表示 */
  #containers .step-card {
    width: 70% !important;
    margin: 0 auto 24px auto !important;
  }
  
  /* pricing セクションのスマホ版で価格カードの幅を70%表示 */
  #pricing .price-card {
    width: 70% !important;
    margin: 0 auto !important;
  }
}

/* Final Override for injected script */
@media (min-width: 769px) {
  section#pricing .plan-cta-buttons {
    flex-direction: row !important;
  }
}

/* 画像拡大表示用モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover {
    opacity: 0.7;
}
