/* ココロネ専用スタイルシート */
:root {
    --primary-color: #5d4037;
    /* ミルクティーに合う落ち着いたブラウン */
    --accent-color: #ff7f50;
    /* コーラルオレンジ */
    --bg-color: #fcf6ec;
    /* ミルクティーベージュ（薄め） */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #4e342e;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 2;
    color: var(--text-color);
    background-color: var(--bg-color);
    /* 背景に深みを出すためのグラデーション */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 127, 80, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(93, 64, 55, 0.05), transparent 25%);
    background-attachment: fixed;
    margin: 0;
    overflow-x: hidden;
}

/* 背景に幾何学模様のアクセントを追加（疑似要素） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff7f50' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
.logo {
    font-family: "Shippori Mincho", serif;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ヘッダー・ナビ */
header {
    background-color: rgba(255, 255, 255, 0.85);
    /* 透過度アップ */
    backdrop-filter: blur(12px);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.navbar {
    background-color: transparent;
    padding: 20px 0;
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ヒーローセクション（ファーストビュー） */
.page-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(252, 246, 236, 0.2), rgba(252, 246, 236, 0.4)), url('hero.png');
    background-size: cover;
    background-position: center;
    padding: 0;
    position: relative;
    color: #fff;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #4e342e;
    /* ブラウン系で統一 */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.page-header p {
    font-size: 1.25rem;
    color: #5d4037;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* セクション設定 */
.section {
    padding: 100px 0;
    /* 余白をたっぷりとる */
}

/* 悩みセクション */
.problem-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.problem-item {
    background: #fff;
    padding: 30px;
    border-radius: 50%;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 4px solid #fcf6ec;
    position: relative;
}

.problem-check {
    position: absolute;
    top: -10px;
    background: var(--accent-color);
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

/* カード共通スタイル（グラスモーフィズム） */
.service-item,
.price-item,
.flow-step {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 127, 80, 0.05);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s;
}

.service-grid,
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    padding: 50px 30px;
}

.service-item:hover,
.price-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 127, 80, 0.15);
}

.service-item h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.price-item {
    padding: 50px 30px;
    position: relative;
}

.price-item.recommended {
    border: 2px solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.95);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--accent-color), #ff6b6b);
    color: #fff;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.4);
}

.price-item h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-family: "Noto Sans JP", sans-serif;
}

/* 流れセクション */
.flow-steps {
    margin-top: 50px;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: center;
    padding: 40px;
    margin-bottom: 30px;
    background: #fff;
    text-align: left;
    position: relative;
    border-left: 5px solid var(--accent-color);
}

.flow-step:last-child {
    margin-bottom: 0;
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 127, 80, 0.2);
    margin-right: 30px;
    font-family: "Shippori Mincho", serif;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content p {
    margin: 0;
    color: #666;
}

@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #555;
    position: relative;
}

.price-features li:last-child {
    border-bottom: none;
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 300px;
    /* 写真の幅を固定 */
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    /* 少し角丸にすると親しみやすさが出ます */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    color: var(--accent-color);
    /* ココロネ・オレンジ */
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
    /* 文章の端を揃えて綺麗に見せる */
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.4);
    /* 背景のグラデーションが少し透けるように */
    backdrop-filter: blur(5px);
}

/* フォームなど他の要素の調整 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
    /* 枠線を含めて幅を計算 */
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-color);
}

/* 3つの強みレイアウト */
/* 3つのこだわりを横に並べる設定 */
.feature-grid {
    display: flex;
    justify-content: center;
    /* 中央に寄せる */
    align-items: stretch;
    /* 箱の高さを揃える */
    gap: 30px;
    /* 各項目の間の隙間 */
    margin-top: 50px;
    width: 100%;
    /* 全体の幅を確保 */
}

.feature-item {
    flex: 1;
    /* 3つを均等な幅にする */
    max-width: 350px;
    /* 1つが大きくなりすぎないように制限 */
    background: #fff;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    /* ホバー時に少し浮く演出 */
}

.feature-icon {
    font-size: 40px;
    /* アイコンの大きさを調整 */
    margin-bottom: 20px;
}

/* スマホ表示では縦に並ぶようにする設定 */
@media (max-width: 900px) {
    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 450px;
    }
}

/* よくあるご質問レイアウト */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-left: 5px solid #e67e22;
    border-radius: 0 10px 10px 0;
}

.faq-q {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-a {
    font-size: 0.95em;
    color: #555;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

/* 全体のフォントと行間の最適化 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    line-height: 1.9;
    /* 少し広げて読みやすく */
    letter-spacing: 0.03em;
    /* 文字の間隔をわずかに広げて高級感を出す */
    color: #333;
}

/* セクション間の余白を広げて「窮屈さ」を解消 */
.section {
    padding: 120px 0;
    /* 上下の余白をしっかり取るのがプロのコツです */
}

/* タイトルの装飾をさらに洗練 */
h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: #2c3e50;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #e67e22;
    /* ココロネ・オレンジ */
    margin: 20px auto 0;
}

/* サービスカードのバランス調整 */
.service-item,
.feature-item {
    border: none;
    /* 枠線を消して影だけで表現するとモダンになります */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    background: #fff;
    padding: 50px 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(230, 126, 34, 0.12);
}

/* フォームの入力欄を広げて「入力しやすさ」を演出 */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
    border-radius: 8px;
}

/* 料金表を横に並べる設定 */
.price-table {
    display: flex;
    justify-content: center;
    /* 中央に寄せる */
    align-items: stretch;
    /* 高さを揃える */
    gap: 20px;
    /* プラン間の隙間 */
    margin-top: 40px;
}

.price-item {
    flex: 1;
    /* 3つを均等な幅にする */
    max-width: 350px;
    /* 広がりすぎないように制限 */
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    /* 中の要素を縦に並べる */
    text-align: center;
}

/* スマホ表示では縦に並ぶようにする設定 */
@media (max-width: 900px) {
    .price-table {
        flex-direction: column;
        align-items: center;
    }

    .price-item {
        width: 100%;
        margin-bottom: 20px;
    }
}