﻿/* スタンドアロンLP用スタイル */

:root {
    --yasuragi-primary: #556B2F;
    /* Olive Green */
    --yasuragi-primary-hover: #465926;
    --yasuragi-header-bg: #354F38;
    /* Deep Forest */
    --yasuragi-bg: #FAF9F6;
    /* Off-white */
    --yasuragi-text: #4a4a4a;
    --yasuragi-accent: #D2B48C;
    /* Tan */
}

body {
    background-color: var(--yasuragi-bg);
    color: var(--yasuragi-text);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    overflow-x: hidden;
}

/* ナビゲーション */
.navbar {
    background-color: var(--yasuragi-header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand-text {
    font-weight: bold;
    letter-spacing: 0.2em;
}

/* ヒーローセクション */
.hero-section {
    min-height: auto;
    background: linear-gradient(rgba(53, 79, 56, 0.7), rgba(53, 79, 56, 0.7)),
        url('images/login-bg-center.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section h1 {
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--yasuragi-primary);
    border-color: var(--yasuragi-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--yasuragi-primary-hover);
    border-color: var(--yasuragi-primary-hover);
    transform: translateY(-2px);
}

/* サービス紹介 */
.section-title {
    color: var(--yasuragi-primary);
    font-weight: bold;
    letter-spacing: 0.1em;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--yasuragi-accent);
    margin: 15px auto;
}

.step-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--yasuragi-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(85, 107, 47, 0.3);
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--yasuragi-header-bg);
    margin-bottom: 15px;
}

/* お知らせ */
.news-item {
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge.bg-primary {
    background-color: var(--yasuragi-primary) !important;
}

/* フッター */
.footer {
    background-color: var(--yasuragi-header-bg);
}

/* 背景装飾（任意） */
/* 背景装飾（スマホでも表示・軽量化） */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 60px;
    /* モバイルでは少し細めに */
    z-index: -1;
    opacity: 0.3;
}

body::before {
    left: 0;
    background: url('images/side-texture-left-sm.png') repeat-y;
    background-size: 100% auto;
}

body::after {
    right: 0;
    background: url('images/side-texture-right-sm.png') repeat-y;
    background-size: 100% auto;
}

@media (min-width: 992px) {

    body::before,
    body::after {
        width: 150px;
    }

    body::before {
        background-image: url('images/side-texture-left.png');
    }

    body::after {
        background-image: url('images/side-texture-right.png');
    }
}

/* 開発者の想いセクション */
.thought-section {
    background-color: var(--yasuragi-bg); /* 周囲と調和するオフホワイト */
    position: relative;
    padding-bottom: 2rem;
}

.thought-content-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.thought-content {
    max-height: 120px; /* 初期表示の高さ */
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
    position: relative;
    line-height: 2.0;
    font-size: 1.05rem;
    text-align: left;
    color: var(--yasuragi-text);
}

.thought-content.expanded {
    max-height: 2000px;
}

/* グラデーションオーバーレイ */
.thought-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(250, 249, 246, 0), rgba(250, 249, 246, 1) 90%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s;
}

.thought-content.expanded .thought-overlay {
    opacity: 0;
}

/* 続きを読むボタンエリア */
.thought-trigger-area {
    margin-top: -20px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.btn-thought-toggle {
    background-color: transparent;
    border: 1px solid var(--yasuragi-primary);
    color: var(--yasuragi-primary);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    background-color: rgba(255,255,255,0.8); /* 文字の上に乗る場合に備えて */
}

.btn-thought-toggle:hover {
    background-color: var(--yasuragi-primary);
    color: #fff;
}

.btn-thought-toggle i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-thought-toggle:hover i {
    transform: translateY(3px);
}

/* 料金プラン */
.plan-card {
    border-radius: 25px !important;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1) !important;
}

.plan-header-bg {
    background-color: rgba(85, 107, 47, 0.1) !important;
    color: var(--yasuragi-header-bg) !important;
}

.plan-premium-header {
    background-color: var(--yasuragi-header-bg) !important;
    color: #fff !important;
}

.plan-premium-cell {
    background-color: rgba(210, 180, 140, 0.05) !important;
}

.plan-card .card-header {
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.plan-card .list-unstyled li {
    font-size: 0.95rem;
}

/* ボタン調整 */
.btn {
    font-size: 0.95rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-weight: bold;
}

.btn-outline-primary {
    color: var(--yasuragi-primary);
    border-color: var(--yasuragi-primary);
}

.btn-outline-primary:hover {
    background-color: var(--yasuragi-primary);
    border-color: var(--yasuragi-primary);
    color: #fff;
}

/* 無効化ボタンのスタイル調整 */
.btn:disabled {
    cursor: not-allowed;
    pointer-events: auto !important;
}

/* フィーチャー項目の垂直アライメント調整（左右のカードで高さを揃える） */
.plan-card .list-unstyled li {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

.feature-h-pricing {
    min-height: 120px;
}

.feature-h-single {
    min-height: 48px;
}

.feature-h-mail {
    min-height: 85px;
}

.feature-h-delay {
    min-height: 75px;
}

/* モバイルレスポンシブ調整 */
@media (max-width: 767px) {

    /* ヘッダー全体を1行に収めるための調整 */
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
        flex-wrap: nowrap !important;
        /* 強制的に1行にする */
    }

    .navbar-brand {
        font-size: 1rem !important;
        /* ロゴテキスト縮小 */
        margin-right: 5px !important;
    }

    .navbar-brand img {
        width: 20px !important;
        height: 20px !important;
        margin-right: 4px !important;
    }

    .navbar-brand-text {
        letter-spacing: 0.05em !important;
        /* 字間を詰める */
    }

    .navbar .ms-auto {
        display: flex !important;
        gap: 4px !important;
        /* ボタン同士の間隔を詰める */
    }

    .navbar .btn {
        font-size: 0.7rem !important;
        /* ボタンの文字を小さく */
        padding: 0.4rem 0.6rem !important;
        /* ボタン自体を小さく */
        white-space: nowrap !important;
    }

    /* ヒーローセクション（タイトルとメッセージ）の調整 */
    .hero-title {
        font-size: 3.2rem !important;
        /* 改行されないサイズまで縮小 */
        letter-spacing: 0.1em !important;
        margin-bottom: 1rem !important;
    }

    .hero-phrase-1 {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-phrase-2 {
        font-size: 0.85rem !important;
        letter-spacing: 0.05em !important;
        line-height: 1.4 !important;
    }

    .hero-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-section .btn-lg {
        padding: 0.6rem 1.5rem !important;
        /* ボタンサイズ調整 */
        font-size: 0.9rem !important;
    }
}