/* Base Styles */
:root {
    --primary-teal: #3CADA6;
    --dark-teal: #0e4d4a;
    --logo-orange: #FFC446;
    --accent-orange: #F39800;
    --text-color: #000000;
    --white: #ffffff;
    --menu-line: #3DAC9B;
}

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

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

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

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}


/* Logo Styles */
.logo-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}
.logo { 
    font-family: 'Oswald', sans-serif; 
    font-weight: 700; 
    font-size: 1.5rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex; 
    line-height: 1.2; 
    letter-spacing: 0.1em; 
    gap: 0.2em; 
}
.logo-part { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}
.logo-kana-sub { 
    font-size: 0.5rem; 
    font-weight: 700; 
    margin-top: 2spx; 
}


/* Color Rules: TADA(White), FURU(Orange), タダ(Orange), フル(White) */
.tada-part span:first-child, .logo-kana-furu { 
    color: var(--white); 
}
.furu-part span:first-child, .brand-name span, .logo-kana-tada, .tada-part .logo-kana-sub { 
    color: var(--logo-orange); 
}
.furu-part .logo-kana-sub { 
    color: var(--white); 
}


/* Header */
.header {
    padding: 20px 0;
    position: fixed; /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: transparent; /* 背景を完全に透明にする */
    backdrop-filter: none;
    box-shadow: none;
}

.header .logo {
    text-decoration: none; /* リンクの下線を消す */
}
.header .container { 
    display: flex; justify-content: space-between; align-items: center; 
}
.menu-icon { 
    width: 36px; 
    height: 36px; 
    background: var(--white); 
    border: 1px solid var(--menu-line); 
    border-radius: 50%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 3px; 
    cursor: pointer; 
}
.menu-icon span { 
    width: 18px; height: 2px; background: var(--menu-line); 
}


/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(60, 173, 166, 0.85); /* 透明度を足したメインカラー */
    backdrop-filter: blur(10px); /* 背景をぼかして高級感を出す */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 右上からふわっとめくれるような動きの設定 */
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.8s, opacity 0.8s;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.nav-menu.active {
    clip-path: circle(150% at 100% 0%); /* 円形に広がる */
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

.nav-list {
    list-style: none;
    text-align: center;
}

.nav-list li {
    margin-bottom: 30px;
}

.nav-list a {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--logo-orange);
}

/* Hero Section */
.hero { 
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-teal) 20%); 
    padding: 150px 0 100px; 
    text-align: center; 
    overflow: hidden; 
}
.hero-title { 
    font-size: 2.4rem; 
    font-weight: 700; 
    line-height: 1.3; 
    margin-bottom: 0px; 
    color: #000; 
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.4em; 
}
.hero-title ruby {
    color: #000;
    ruby-position: over;
    ruby-align: center;
    display: ruby; /* ruby表示を明示的に指定 */
}
.hero-title rt {
    font-size: 0.8rem;
    letter-spacing: 0.05em !important; /* メインタイトルより控えめな字間を追加 */
    padding-bottom: 0.3em; /* 漢字との距離を作る */
}
.hero-title ruby:first-child rt { 
    color: var(--logo-orange); 
}
.hero-title ruby:nth-of-type(2) rt { 
    color: var(--white); 
}
.hero-image-main { 
    position: relative; 
    z-index: 1; 
    width: 100%; 
    margin: 0 auto; 
}
.hero-image-main img { 
    width: 95%; 
}
.brand-name { 
    font-family: 'Oswald', sans-serif; 
    font-size: 4rem; 
    font-weight: bold; 
    color: var(--white); 
    position: relative; 
    z-index: 10; 
    margin-top: -110px; 
    text-shadow: 0 4px 5px rgba(0,0,0,0.6); 
    letter-spacing: 0.1em; 
    display: flex; 
    justify-content: center; 
    margin-bottom: 0; 
}

.brand-name .logo-part {
    align-items: center;
}

.brand-name .logo-kana-sub {
    font-size: 1.1rem; 
    font-family: 'Oswald', sans-serif; 
    letter-spacing: 0.5em; 
    margin-top: -20px; /* 英字に近づける */
    text-shadow: 0 4px 5px rgba(0,0,0,0.6); 
}
/* Remove unused old brand-kana-row */
.brand-kana-row { 
    display: none;
}
.hero-desc { 
    font-size: 1.1rem; 
    font-weight: bold; 
    letter-spacing: 0.4em;
    margin: 40px; 
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-button { 
    display: inline-block; 
    background: var(--accent-orange); 
    color: var(--white); 
    padding: 10px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    border: 2px solid var(--white); /* 白い枠線を追加 */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4); /* 白いシャドウを追加 */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #d88700; /* 少し濃いオレンジ */
    transform: translateY(-2px); /* 少し浮き上がる */
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}


.cta-button.small {
    padding: 8px 25px;
    font-size: 0.9rem;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* 最初は画面下に隠す */
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.floating-cta.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Intro Section (3 Reasons) */
.intro {
    background: var(--primary-teal); /* 背景をメインカラーに戻す */
    padding: 0;
    text-align: center;
}

/* Feature Cards Container */
.intro .container {
    background: var(--white);
    border-radius: 200px 200px 0 0; /* アーチ状の背景 */
    padding: 100px 15px 100px; 
    position: relative;
    z-index: 2;
}

.intro-illustration {
    margin-top: -150px; /* アーチの頂点付近に配置（コンテナのパディング内で調整） */
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.intro-illustration .main-ill {
    max-width: 320px;
    margin: 0;
    position: relative;
    z-index: 2;
}


.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-color);
    width: 100%; /* 幅をいっぱいに広げる */
    white-space: nowrap; /* 強制的に1行にする */
}

/* 小さな画面でタイトルがはみ出る場合の調整 */
@media screen and (max-width: 400px) {
    .section-title {
        font-size: 0.9rem;
        white-space: normal; /* 非常に狭い画面では折り返しを許可 */
    }
}

.system-labels {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 80px;
    font-family: 'Anton', sans-serif;
}

.label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

.label .kana {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.label.share {
    color: var(--accent-orange);
    text-shadow: 0 2px 2px rgba(225,165,0,0.4);
}

/* Feature Cards */
.feature-card {
    display: block;
    margin-bottom: 100px; /* 余白を少し広げる */
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.feature-text {
    position: relative;
    z-index: 3;
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    white-space: nowrap; /* 改行なし */
}

.feature-text h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* 線の長さ */
    height: 1px; /* 線の太さ */
    background-color: var(--text-color); 
    border-radius: 2px;
}

.feature-text h4 .orange-txt {
    color: var(--accent-orange);
}

.feature-text p {
    font-size: 0.85rem;
    line-height: 1.8;
    text-align: left;
}

.feature-text .red-txt ,
.support-content .red-txt{
    color: #e74c3c;
    font-weight: 700;
}

.feature-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px; /* 横長に変更 */
    height: 280px;
    z-index: 1;
    opacity: 0.15; /* 少し薄くして文字を強調 */
    margin-top: 0;
}

/* インナーシャドウを再現するためのオーバーレイ */
.feature-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8); /* インナーシャドウ */
    z-index: 2;
    pointer-events: none;
}


.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* 角の丸い長方形 */
}

.simulation-link-wrapper {
    text-align: right;
    margin-top: 40px;
}

.simulation-link-wrapper-pc {
    display: none;
}

.simulation-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    align-items: center;
    display: flex;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 16px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: #fff; /*  影を綺麗に見せるために背景色は「白」 */

    /* 【初期状態】うっすらとだけ影をつけておく */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* カーソルを合わせた時（:hover）の動き */
.simulation-link:hover {
    /*  影を下に広く、不透明度を「0.05 ➔ 0.15」へ濃くする */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* 上に3px 浮かせることで、影の広がりと合わさって大迫力の立体感になります */
    transform: translateY(-3px);
}

.simulation-link i {
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

.simulation-link:hover {
    opacity: 0.8;
}
/* Why Us, Support, Plan, Contact Common */
.section-title-en {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    line-height: 1;
}

.section-title-jp {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

/* Why Us Section */
.why-us {
    background-color: #3aa59e;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: 40px 40px 0 0; /* 上部の角を丸くする */
    margin-top: -60px; /* 前の白いセクションと確実に重ねる */
    position: relative;
    z-index: 3;
    overflow: hidden; /* 角丸を確実に反映 */
}

.market-copy {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 20px;
    letter-spacing: 0.05em;
}

.why-us-desc {
    color: var(--text-color);
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 0 10px;
}

.white-txt {
    color: var(--white);
}

.graph-container {
    position: relative;
    margin: 40px auto;
    max-width: 80%;
    width: fit-content; /* 画像の幅に合わせることで中央寄せを確実に */
}

.hot-badge {
    position: absolute;
    top: -30px;
    left: -45px;
    width: 80px; /* 画像のサイズに合わせて調整 */
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Support Section */
.support {
    background-color: #389d96; /* 少し濃いティール */
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: 40px 40px 0 0;
    margin-top: -60px; /* 前のセクションと繋げる */
    position: relative;
    z-index: 4;
}

.support-list {
    margin: 40px 0;
}

.support-list details {
    background: #f5f5f5;
    color: #333;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.support-list summary {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    list-style: none; /* デフォルトの矢印を消す */
}

.support-list summary::-webkit-details-marker {
    display: none; /* Safari用の矢印を消す */
}

.support-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.support-label {
    font-size: 0.6rem;
    color: #999;
    margin-bottom: 2px;
}

.support-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-title img {
    width: 24px;
    height: 24px;
}

.support-list .arrow-circle {
    width: 24px;
    height: 24px;
    background: #e0e0e0; /* 薄いグレーに変更 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.support-list details[open] .arrow-circle {
    transform: rotate(180deg); /* 開いている時は上を向くように回転 */
}

.support-content {
    padding: 0 20px 20px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin: 0 20px;
    text-align: left; /* 文章を左寄せにする */
}

.support-chat-images {
    display: flex;
    flex-direction: column;
    align-items: center; /* 横中央 */
    gap: 10px;
    margin-top: 15px;
}

.support-chat-images img {
    width: 60%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.support-chat-images img.support-img-large {
    width: 100%;
}

.support-note {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.5); /* より薄い色に変更 */
    line-height: 1.6;
    text-align: left;
    padding: 0;
    padding-bottom: 30px;
    white-space: normal; 
}

/* Plan Section */
.plan {
    background-color: #2b7a74; /* さらに濃いティール */
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: 40px 40px 0 0;
    margin-top: -60px; /* 前のセクションと繋げる */
    position: relative;
    z-index: 5;
}

.plan-card {
    margin-top: 30px;
}

.plan-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 3rem;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-align: center;
    position: relative;
}

.plan-price span {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    position: absolute;
    margin-left: 0.2em;
    bottom: 0.6rem;
    white-space: nowrap;
}

.plan-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 30px;
}

.plan-highlight {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 0 10px;
}

.plan-highlight .orange-txt {
    color: var(--logo-orange);
}

/* Contact Section */
.contact {
    background-color: #1a4a47; /* 最も濃いティール */
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: 40px 40px 0 0;
    margin-top: -60px; /* 前のセクションと繋げる */
    position: relative;
    z-index: 6;
}

.contact-form {
    max-width: 85%; /* コンテナ全体で幅を制御 */
    margin: 40px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 12px; /* 項目間の隙間を少し詰める */
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--logo-orange);
    display: block;
    margin-bottom: 2px; /* ラベルと入力欄の隙間を詰める */
    padding-left: 5px; /* 左端を微調整 */
}

.form-group input, .form-group textarea {
    width: 100%; /* 幅をいっぱいにする（親の85%に収まる） */
    background-color: #6a928f;
    border: 1px solid var(--white);
    border-radius: 20px;
    padding: 10px 20px; /* パディングを少し詰める */
    color: #fff;
}

.contact .submit-button {
    margin-top: 30px;
    background-color: var(--accent-orange);
    border: 1px solid var(--white); /* 白の線を追加 */
    border-radius: 30px;
    padding: 8px 45px; /* パディングを減らして細くする */
    color: #fff;
    font-size: 0.9rem; /* フォントサイズを少し小さくしてスリムに */
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* うっすらとした黒いシャドウに変更 */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact .submit-button:hover {
    background-color: #d88700; /* 少し濃いオレンジ */
    transform: translateY(-2px); /* 少し浮き上がる */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}


/* Footer */
.footer { 
    padding: 40px 0 100px; /* 下部の余白を増やしてCTAボタンとの被りを防ぐ */
    background: linear-gradient(180deg, #1a4a47 0%, #3CADA6 60%, #ffffff 100%); 
    text-align: center; 
}

.header .logo {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.header .logo-part .logo-kana-sub {
    font-size: 0.45rem;
}

.footer .logo-wrapper { 
    align-items: center; 
    margin-bottom: 40px; 
    margin-top: -20px; /* 送信ボタンとの距離を調整 */
}

.footer .logo {
    font-family: 'Oswald', sans-serif; 
    font-size: 13vw; 
    letter-spacing: 0.05em;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer .logo-part .logo-kana-sub {
    font-family: 'Oswald', sans-serif; 
    font-size: 3.5vw; 
    margin-top: 1vw;
}

.footer .logo-part.tada-part span:first-child { 
    color: var(--white); 
}

.footer .footer-copy {
    font-size: 1.1rem;
    margin-top: 40px; /* ロゴとの間に空白を作る */
    margin-bottom: 10px; /* 下のPAGE TOPボタンとの間隔を調整 */
    color: var(--white); 
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.page-top-wrapper {
    margin-bottom: 30px;
}

.page-top-btn {
    display: inline-block;
    color: var(--dark-teal);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    transition: opacity 0.3s ease;
}

.page-top-btn i {
    font-size: 0.7rem;
    margin-left: 5px;
}

.page-top-btn:hover {
    opacity: 0.7;
}

.footer .footer-links {
    margin-bottom: 2px; /* 余白を詰める */
}

.footer .footer-links a {
    color: var(--dark-teal);
    text-decoration: none;
    font-size: 0.7rem;
    line-height: 1; /* 行間を詰める */
}

.footer .footer-links a:hover {
    text-decoration: underline;
}

.footer .copyright {
    font-size: 0.7rem;
    color: var(--dark-teal);
    line-height: 1; /* 行間を詰める */
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
