:root {
    --primary-color: #ff4081;
    --secondary-color: #00B900;
    --line-green: #00B900;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* ライン文字の色設定 */
.line-text {
    color: var(--line-green);
    font-weight: bold;
}

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

/* ヘッダー */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
}

@media (max-width: 768px) {
   .logo img {
    height: 30px;
}
}
.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    margin-left: 5px;
}
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    font-size: 14px; /* フォントサイズを小さくする */
}

.btn-entry {
    max-width: 120px; /* ボタンの最大幅を設定 */
    overflow: hidden;
    text-overflow: ellipsis; /* はみ出たテキストを省略記号で表示 */
}

@media (max-width: 768px) {
    .btn {
        padding: 8px 15px; /* パディングを小さくする */
        font-size: 14px; /* フォントサイズをさらに小さくする */
    }
}

.btn:hover {
    opacity: 0.9;
}

.btn-line {
    background-color: var(--secondary-color);
    color: white;
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
}

/* メインビジュアル */
#hero {
    padding-top: 80px;
    background: rgba(0, 0, 0, 0.5);
    background-image: url('./images/bg_images.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    #hero {
        background-image: url('./images/bg_sp.jpg');
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
    .smartphone-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

.responsive-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9のアスペクト比の場合 */
    position: relative;
    overflow: hidden;
}

.responsive-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    max-width: 500px;
    margin: 60px auto;
    padding: 60px 0;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}


@media (max-width: 768px) {
    .hero-content {
    max-width: 350px;
}
}

.hero-title {
    font-size: 52px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 36px;
    display: block;
    margin-bottom: 15px;
}

.current-date {
    font-size: 1.0rem;
    color: #333;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .label {
    font-size: 1.2rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.stat-item .number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
}

.stat-item .unit {
    font-size: 1.4rem;
    font-weight: normal;
}

.stat-item .label {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
    border: 1px solid #000;
    border-radius: 15px;
}

@media (max-width: 768px) {
   .stat-item .label {
       width: 300px;
       margin: 0 auto;
       padding: 4px 0;
}
}

.stat-item .number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-item .unit {
    font-size: 24px;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s;
}

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

.search-button .icon {
    margin-right: 10px;
}

.guarantee-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background-color: #ffd700;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
}

.guarantee-badge .amount {
    font-size: 32px;
    font-weight: bold;
}

.guarantee-badge .unit {
    font-size: 16px;
}

.guarantee-badge .text {
    font-size: 12px;
}

.guarantee-badge .details {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: underline;
}

/* セクション共通 */
section {
    padding: 60px 0;
}

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

/* アバウトセクション */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.safety-points {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.safety-points h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.safety-points ul {
    list-style: none;
    text-align: left;
}

.safety-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.safety-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.about-content-styled {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.about-content-styled .highlight {
    font-size: 1.2em;
    color: #ff4081;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-content-styled .cta {
    font-size: 1.2em;
    font-weight: bold;
    color: #00B900;
    text-align: left;
    margin-top: 20px;
}

.anshin-badge {
    background-color: #ff4081;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 16px;
    margin-right: 10px;
}

/* 収入・待遇セクション */
#benefits {
    padding: 60px 0;
    background-color: #fff5f8;
}

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

.benefit-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    font-size: 24px;
    color: #ff4081;
    margin-bottom: 15px;
}

.benefit-image-container {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.benefit-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.benefit-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* 逢いトークの6つの機能セクション */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

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

.faq-item {
    background-color: var(--background-light);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-item h3 {
    font-size: 18px;
    padding: 20px;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.faq-item h3 .faq-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item p {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active p {
    display: block;
}

.faq-item.active h3 .faq-toggle {
    transform: translateY(-50%) rotate(45deg);
}

/* フッター */
footer {
    background-color: #efefef;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* チャットデモのスタイル */
#chat-demo {
    background-color: var(--background-light);
    padding: 60px 0;
}

#chat-demo .container {
    max-width: 800px;
}

.chat-demo {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.chat-subtitle {
    text-align: center;
    font-size: 1.0em;
    margin: 30px auto;
    color: #666;
    border: 1px solid #dfdfdf;
    border-radius: 15px;
    width: 80%;
}

.chat-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.chat-message.reply {
    flex-direction: row-reverse;
    margin-left: auto;
}

.chat-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.avatar-label {
    font-size:12px;
    color: #666;
    margin-top: 2px;
    text-align: center;
}

.avatar-label-1 {
    font-size:12px;
    color: #666;
    margin-top: 2px;
    text-align: center;
}

.message-content {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.0em;
    line-height: 1.5;
    margin-bottom: 12px;
}

.chat-message.reply .message-content {
    background: #e3f2fd;
}

/* 登録ステップのスタイル */
#registration {
    padding: 80px 0;
    background-color: var(--background-light);
}

.registration-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

.registration-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-content h3 {
    margin: 0;
    font-size: 18px;
    flex-grow: 1;
}

.step-check {
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 10px;
}

.registration-requirements {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

.registration-requirements ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.registration-requirements li {
    margin-bottom: 10px;
}

/* エントリーセクションのスタイル */
.entry-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, white, #f8f9fa);
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.business-hours {
    color: #666;
    margin-bottom: 5px;
}

.notice {
    font-size: 14px;
    color: #888;
}

.entry-notice {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.entry-notice p {
    margin-bottom: 10px;
}

.exit-link {
    color: #ff4081;
    text-decoration: underline;
}

.terms-agreement {
    margin-top: 20px;
    margin-bottom: 20px;
}

.terms-agreement label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.terms-agreement input[type="checkbox"] {
    margin-right: 10px;
}

/* タブのスタイル */
.entry-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #f0f0f0;
    padding: 2px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.tab-button img {
    width: 40px;
    height: 40px;
}

.tab-button:first-child {
    border-radius: 6px 0 0 6px;
}

.tab-button:last-child {
    border-radius: 0 6px 6px 0;
}

.tab-button.active[data-tab="line"] {
    background: #00B900;
    color: white;
}

.tab-button.active[data-tab="web"] {
    background: #ff4081;
    color: white;
}

/* タブコンテンツのスタイル */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* エントリーカードのスタイル */
.entry-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entry-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.notice-text {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.notice-text p {
    margin-bottom: 8px;
}

/* ステップのスタイル */
.steps {
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.step-number {
    background: #40b3ff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.step:last-child .step-number {
    background: #ff4081;
}

/* ボタンのスタイル */
.line-button, .web-button {
    width: 100%;
    padding: 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.line-button {
    background: #00B900;
    color: white;
}

.web-button {
    background: #ff4081;
    color: white;
}

.line-button:hover, .web-button:hover {
    opacity: 0.9;
}

/* LINE登録の番号付きリスト */
.line-requirements {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.line-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: item;
}

.line-requirements-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.line-requirements-list li::before {
    content: counter(item);
    counter-increment: item;
    background: #666;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

/* 利用規約 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    height: 80%;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#terms-iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
    margin-top: 40px;
}



/* ハッシュタグセクション */
.hashtag-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.hashtag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hashtag {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ffffff;
    color: #ff4081;
    border: 2px solid #ff4081;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hashtag:hover {
    background-color: #ff4081;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 女性の声セクション */
.testimonials-section {
    padding: 60px 0;
    background-color: #fff5f8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-header h3 {
    font-size: 18px;
    color: #333;
}

.age {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.testimonial-footer {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-footer p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #ff4081;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* フローセクション全体のスタイル */
.flow-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff5f8, #ffffff);
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー部分のスタイル */
.flow-header {
    text-align: center;
    margin-bottom: 60px;
}

.flow-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.flow-subtitle {
    font-size: 20px;
    color: #666;
}

/* フローステップのスタイル */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ステップコンテンツのスタイル */
.flow-step-content {
    flex: 1;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ff4081;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.step-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.step-details h4 {
    font-size: 20px;
    color: #ff4081;
    margin-bottom: 10px;
}

.step-details p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 画像部分のスタイル */
.flow-step-image {
    width: 300px;
    flex-shrink: 0;
}

.flow-step-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.flow-step:hover .flow-step-image img {
    transform: scale(1.05);
}


.age-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff5f8, #ffffff);
}

.age-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダースタイル */
.age-header {
    text-align: center;
    margin-bottom: 30px;
}

.age-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 20px;
    color: #666;
}

/* コンテンツレイアウト */
.age-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* 円グラフのスタイル */
.pie-chart-container {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.pie-chart {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f5f5f5;
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transform: rotate(calc(var(--rotation) * 1deg));
}

.pie-segment::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    background: var(--color);
    clip-path: polygon(
        50% 50%,
        50% 0%,
        calc(50% + 50% * cos(calc(var(--percentage) * 0.036 * 1rad))) calc(50% - 50% * sin(calc(var(--percentage) * 0.036 * 1rad))),
        50% 50%
    );
}


/* 年齢のセクション */
.age-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff5f8, #ffffff);
}

.age-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダースタイル */
.age-header {
    text-align: center;
    margin-bottom: 60px;
}

.age-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 20px;
    color: #666;
}

/* コンテンツレイアウト */
.age-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* 画像コンテナのスタイル */
.age-image-container {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.age-image {
    width: 300px;
    height: 300px;
    border-radius: 20px; /* 角丸の設定 */
    object-fit: cover;
}

.age-note {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
}

/* 統計バーのスタイル */
.age-stats {
    flex: 1;
    max-width: 600px;
}

.age-stat-item {
    margin-bottom: 30px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.age-group {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.percentage {
    font-size: 24px;
    font-weight: bold;
}

.symbol {
    font-size: 16px;
    margin-left: 2px;
}

/* プログレスバー */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

/* 年代別カラー設定 */
.progress-20s {
    width: 13%;
    background: #FF7B7B;
}

.progress-30s {
    width: 48%;
    background: #4ECDC4;
}

.progress-40s {
    width: 58%;
    background: #45B7D1;
}

.progress-50s {
    width: 40%;
    background: #96CEB4;
}

/* レスポンシブデザイン */
@media (max-width: 968px) {
    .age-content {
        flex-direction: column;
        gap: 10px;
    }

    .age-image-container {
        max-width: 100%;
    }

    .age-image {
        width: 400px;
        height: 300px;
    }

    .age-stats {
        max-width: 95%;
        width: 95%;
    }

    .progress-bar {
        max-width: calc(100% - 40px);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .age-section {
        padding: 40px 0;
    }

    .age-header h2 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .age-image {
        width: 350px;
        height: 250px;
    }

    .age-group {
        font-size: 16px;
    }

    .percentage {
        font-size: 20px;
    }

    .progress-bar {
        height: 10px;
        max-width: calc(100% - 20px);
    }
}


/* レスポンシブデザイン */
@media (max-width: 968px) {
    .flow-step {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 5px;
    }

    .flow-step-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .flow-step-image img {
        height: 250px;
    }

    .step-header {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .flow-section {
        padding: 40px 0;
    }

    .flow-header h2 {
        font-size: 24px;
    }

    .flow-subtitle {
        font-size: 18px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-header h3 {
        font-size: 26px;
    }

    .step-details h4 {
        font-size: 18px;
    }

    .step-details p {
        font-size: 15px;
    }

    .flow-step-image img {
        height: 200px;
    }
}



/* Additional promotional images */
.promo-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.promo-image {
    border-radius: 8px;
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .btn-primary {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .guarantee-badge {
        position: static;
        margin: 40px auto 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item .number {
        font-size: 36px;
    }

    .search-button {
        padding: 12px 70px;
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-section {
        padding: 60px 0px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-image {
        height: 180px;
    }

    .feature-item h3 {
        font-size: 24px;
    }

    .feature-item p {
        font-size: 15px;
    }

    .chat-demo {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    .message-content {
        font-size: 1.0em;
    }

    .registration-steps {
        grid-template-columns: 1fr;
    }

    .entry-section {
        padding: 40px 0px;
    }
    
    .tab-button {
        padding: 15px;
    }
    
    .entry-card {
        padding: 20px;
    }

    .hashtag-section {
        padding: 30px 0;
    }

    .hashtag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .testimonials-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 15px;
    }

    .testimonial-header h3 {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-footer p {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }

    .flow-title h2 {
        font-size: 24px;
    }

    .flow-title p {
        font-size: 16px;
    }

    .flow-step-header {
        padding: 10px 15px;
    }

    .flow-step-content {
        padding: 15px;
    }

    .promo-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* フェードアニメーションを適用する要素 */
.hero-content,
.about-content,
.benefits-grid,
.faq-list {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-content.visible,
.about-content.visible,
.benefits-grid.visible,
.faq-list.visible {
    opacity: 1;
    transform: translateY(0);
}


/* 診断用 */
.shindan-section {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.shindan-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10px 10px, #FFB6C1 3px, transparent 3px),
                      radial-gradient(circle at 20px 20px, #FFD700 3px, transparent 3px),
                      radial-gradient(circle at 30px 30px, #87CEEB 3px, transparent 3px),
                      radial-gradient(circle at 40px 40px, #90EE90 3px, transparent 3px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 1;
}

.shindan-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.shindan-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin: 0 auto 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.shindan-title {
    font-size: 32px;
    color: #ff4081;
    margin-bottom: 15px;
    font-weight: bold;
}

.shindan-subtitle {
    font-size: 42px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.shindan-welcome {
    background-color: #ff4081;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 18px;
}

.shindan-description {
    font-size: 28px;
    color: #ff4081;
    margin-bottom: 10px;
}

.shindan-text {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.shindan-button {
    display: inline-block;
    background-color: #00a884;
    color: white;
    padding: 15px 60px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shindan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .shindan-section {
        padding: 40px 0;
    }

    .shindan-image {
        width: 220px;
        height: 220px;
    }

    .shindan-title {
        font-size: 24px;
    }

    .shindan-subtitle {
        font-size: 32px;
    }

    .shindan-welcome {
        font-size: 16px;
        padding: 10px 20px;
    }

    .shindan-description {
        font-size: 24px;
    }

    .shindan-text {
        font-size: 18px;
    }

    .shindan-button {
        padding: 12px 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .shindan-image {
        width: 180px;
        height: 180px;
    }

    .shindan-title {
        font-size: 20px;
    }

    .shindan-subtitle {
        font-size: 28px;
    }

    .shindan-description {
        font-size: 20px;
    }

    .shindan-text {
        font-size: 16px;
    }
}

