/* Base Styles & Variables */
:root {
    --primary-color: #ff8c00;
    --primary-hover: #ff7300;
    --secondary-color: #f7a048;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #fffdfa;
    --bg-light: #fcf8f2;
    --white: #ffffff;
    --border-color: #efede8;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(255, 140, 0, 0.15);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 140, 0, 0.2);
    z-index: -1;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 140, 0, 0.4);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-stripe {
    background: #635bff;
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.3);
}

.btn-stripe:hover {
    background: #534be0;
    box-shadow: 0 12px 25px rgba(99, 91, 255, 0.4);
}

/* Utilities */
.bg-light {
    background-color: var(--bg-light);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.note-small {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear > * {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 3s infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 253, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    background: radial-gradient(circle at top right, #fff4e6 0%, var(--bg-main) 70%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-catchphrase {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.paw-icons {
    position: absolute;
    top: 0px;
    left: -40px;
    color: var(--primary-color);
    font-size: 1.8rem;
    opacity: 0.8;
}

.paw1 {
    transform: rotate(-25deg);
    position: absolute;
    top: -20px;
    left: -20px;
}

.paw2 {
    transform: rotate(15deg);
    position: absolute;
    top: 20px;
    left: 10px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
    max-width: 90%;
}

.hero-actions .btn {
    font-size: 1.65rem;
    padding: 21px 42px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.cat-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

.cat-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.chat-bubble {
    position: absolute;
    top: 5%;
    right: -60px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Zen Maru Gothic', sans-serif;
    z-index: 10;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
    display: block;
    width: 0;
}

/* Features Wrapper (基本機能) */
.features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feature-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    width: calc(25% - 22.5px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.address-demo {
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px dashed #ccc;
    word-break: break-all;
}

.address-demo-short {
    font-size: 0.85rem;
    padding: 15px 10px;
    line-height: 1.5;
}

/* Option Section */
.option-section {
    margin-top: 50px;
    text-align: center;
}

.option-separator {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.option-separator i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.option-card {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    text-align: center;
}

.option-badge {
    background: var(--primary-color);
    color: var(--white);
    display: inline-block;
    padding: 8px 30px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 25px;
}

.option-price {
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.9;
}

.option-desc {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.option-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.option-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 1rem;
}

/* Address Supplement */
.address-supplement {
    margin-top: 50px;
    background: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    padding: 30px 40px;
    gap: 40px;
}

.address-supplement-visual {
    flex: 0 0 auto;
}

.address-pill {
    background: #fff4e6;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.05rem;
    border: 1px solid #ffd8b3;
    color: var(--text-main);
}

.addr-black {
    color: #333;
    letter-spacing: 2px;
}

.addr-white {
    color: #999;
}

.address-supplement-text {
    flex: 1;
    text-align: left;
}

.address-supplement-text h5 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.address-supplement-text ul {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.address-supplement-text ul li {
    margin-bottom: 8px;
}

.address-supplement-text ul li span {
    display: inline-block;
    width: 20px;
    text-align: center;
}

.address-supplement-text .note {
    margin-top: 10px;
    font-size: 0.85rem;
}

/* Recommend Section */
.recommend-section {
    background: var(--white);
    padding: 80px 0;
}

.recommend-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.recommend-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recommend-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.recommend-list {
    list-style: none; /* No bullets */
    padding: 0;
    text-align: left;
}

.recommend-list li {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 22px;
    font-weight: 600;
}

.recommend-list li:last-child {
    margin-bottom: 0;
}

.recommend-right {
    flex: 0 0 260px;
    display: flex;
    justify-content: center;
}

.cat-frame-shape {
    position: relative;
    width: 260px;
}

.cat-frame-shape img {
    width: 100%;
    height: auto;
    display: block;
}

.cat-frame-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%); /* adjust slightly as frame might have bottom tail */
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.5;
    width: 100%;
}

/* Chat Demo Section */
.chat-demo-section {
    background: var(--bg-light); /* To alternate backgrounds slightly */
    padding: 60px 0 100px;
}

.chat-demo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.chat-demo-left {
    flex: 1.3;
}

.chat-mockup-wrapper {
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.chat-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.chat-demo-captions {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.caption-left, .caption-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-demo-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-demo-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: left;
}

.chat-demo-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

.cat-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    width: fit-content;
    align-self: center; /* Center within the right column flex */
}

.chat-bubble-large {
    position: relative;
    background: var(--white);
    padding: 25px 40px;
    border-radius: var(--radius-lg);
    border: 2px solid #e0dcd5;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.8;
}

.chat-bubble-large::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 40px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
    display: block;
}

.chat-bubble-large::before {
    content: '';
    position: absolute;
    bottom: -18px;
    right: 38px;
    border-width: 17px 17px 0;
    border-style: solid;
    border-color: #e0dcd5 transparent transparent transparent;
    z-index: -1;
}

.cat-icon-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-right: -40px;
    align-self: flex-end;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
}

.cat-face-icon {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* Contents Grid (シンプル構成) */
.contents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.content-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative !important;
}

.content-card.style-clean {
    align-items: center;
    border-top: none; /* overrides old border if present anywhere else */
    padding: 35px 30px;
}

.card-detail-link {
    position: absolute !important;
    bottom: 20px !important;
    right: 25px !important;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.card-detail-link:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

.card-title-paw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.paw-icon-main {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.card-divider {
    border: none;
    height: 1px;
    background-color: #eee;
    margin-bottom: 25px;
    width: 100%;
}

.clean-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    display: inline-block;
    /* width: 100%から削除して、インライン幅で中央寄せ可能にする */
    margin: 0 auto;
}

.clean-list li {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--text-main);
}

/* multi-line variations */
.clean-list.multi-line {
    padding-left: 0;
}

.clean-list.multi-line li {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.clean-list.multi-line .main-txt {
    font-weight: normal;
    margin-bottom: 5px;
}

.clean-list.multi-line .sub-txt {
    font-size: 1.05rem;
    padding-left: 17px; /* Align under the first char of main-txt */
}

.clean-text-content {
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    display: inline-block;
}

.clean-text-content.center-align {
    text-align: center;
}

/* Templates Section */
.template-display-section {
    background: #fcf8f2;
    padding: 100px 0;
}

.template-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaddd2;
}

.template-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-subtitle {
    font-size: 1.1rem;
    color: #333;
}

.spacer {
    display: inline-block;
    width: 25px;
}

.note-inline {
    margin-bottom: 5px;
    color: #888;
}

.template-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.template-row:last-child {
    margin-bottom: 0;
}

.template-visuals {
    flex: 1.6;
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.template-pc-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.template-label {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    margin-left: 20px;
}

.mockup-pc {
    width: 100%;
    height: auto;
    display: block;
}

.template-sp-wrapper {
    flex: 0.55;
    margin-left: -5%; /* Overlap slightly or put close together */
    z-index: 2;
}

.mockup-sp {
    width: 100%;
    height: auto;
    display: block;
}

.template-info {
    flex: 1;
    padding-left: 20px;
}

.template-info h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dcdcdc;
    display: flex;
    align-items: baseline;
}

.template-info h3 .en {
    font-weight: normal;
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.8;
}

.template-info p {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

/* Colors matching the templates */
.color-simple { color: #666; }
.color-blue { color: #4a7ebd; }
.color-cream { color: #d97736; }

/* Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, #fffcf8 0%, #fff4e6 100%);
}

.pricing-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pricing-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.pricing-header h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price .amount {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.price .period {
    font-size: 1.2rem;
    opacity: 0.9;
}

.pricing-body {
    padding: 50px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.payment-action {
    margin-top: 20px;
}

.options-section {
    padding: 40px;
    background: var(--bg-light);
}

.options-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.option-name {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.option-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.option-price {
    font-weight: 700;
    font-size: 1.2rem;
    text-align: right;
    min-width: 120px;
}

/* Footer */
.footer {
    background: #222222;
    color: var(--white);
    padding: 100px 0 40px;
    text-align: center;
}

.footer-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.footer-cta {
    margin-bottom: 80px;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Popup and Modal Styling */
.popup-trigger {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.popup-trigger:hover .mockup-pc,
.popup-trigger:hover .mockup-sp,
.popup-trigger:hover .chat-mockup-wrapper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.zoom-indicator {
    color: #666666; /* 濃い灰色 */
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.popup-trigger:hover .zoom-indicator {
    opacity: 1;
    color: #444; /* slightly darker on hover */
}

/* Image Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    overflow-y: auto; /* Scrolable vertically */
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: flex-start; /* Start from top to allow scrolling */
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    position: relative;
    max-width: 630px;
    width: 90%;
    margin: 40px auto;
    background: transparent;
    animation: zoomIn 0.3s ease;
}

.modal-content {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: block;
}

.modal-close {
    position: fixed;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #ccc;
    text-decoration: none;
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btt-cat-wrapper {
    position: relative;
    width: 70px;
    height: 90px;
    margin-top: 22px; /* 15pxからさらに少し広くして絶妙な距離感に調整 */
}

.btt-cat-wrapper img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.cat-hover {
    opacity: 0;
}

.back-to-top:hover .cat-hover {
    opacity: 1;
}

.back-to-top:hover .cat-normal {
    opacity: 0;
}

.btt-text {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

/* 吹き出しのしっぽ */
.btt-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
    transition: var(--transition);
}

.back-to-top:hover .btt-text {
    background: var(--primary-color);
    color: var(--white);
}

.back-to-top:hover .btt-text::after {
    border-top-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-wrapper {
        gap: 20px;
    }
    .feature-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-catchphrase {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .recommend-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .chat-demo-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .address-supplement {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .option-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .chat-demo-captions {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 15px;
    }
    
    .btt-cat-wrapper {
        width: 55px;
        height: 70px;
    }
    
    .template-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .template-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .template-info {
        padding-left: 0;
    }
    
    .template-sp-wrapper {
        margin-left: -15%;
    }
    
    .contents-grid, .templates-grid {
        grid-template-columns: 1fr;
    }

    .option-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .option-price {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .feature-item {
        width: 100%;
    }
    
    .price .amount {
        font-size: 3rem;
    }
}
