/* 基本設定 */
:root {
    --main-red: #e63946;
    --text-dark: #333;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
}

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

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

/* style.css の該当箇所を修正 */
section {
    padding: 100px 0;      /* 上下の余白 */
    scroll-margin-top: 80px; /* ★ここが重要！ヘッダーの高さ分（80px）だけ手前で止まるようにします */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--main-red);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

/* ヘッダー */
header {
    background: var(--bg-white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: var(--main-red);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 25px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--main-red);
}

.btn-red {
    background: var(--main-red);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* ヒーローセクション */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 

 /* 背景画像 */
url('Whisk_4d6ade0cc53ea47ae49483e6e031559ddr.png'); /* ← ここを自分のファイル名に変更 */
 /*              url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1350&q=80'); */

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn-main {
    display: inline-block;
    background: var(--main-red);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* サービスカード */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card i {
    font-size: 3rem;
    color: var(--main-red);
    margin-bottom: 20px;
}

/* フッター */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 15px;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--main-red);
}

/* レスポンシブ (スマホ対応) */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* 簡易化のため。JSで制御可能 */
    }
    .hero-content h2 {
        font-size: 2rem;
    }
}

/* ヒーロー写真とプロフィールの間の余白を広げる */
#profile {
    padding-top: 50px; /* 元の80pxから増やしました */
}

/* 「メールを送る」ボタンから下の暗いフッターまでの間隔を広げる */
#contact {
    padding-bottom: 50px; /* 下側に大きな余白を作ります */
}

/* お問い合わせボタン自体の上の隙間も少し広げてバランスを取る */
.contact-box {
    margin-top: 20px;
    display: flex;          /* 中身を並べる設定 */
    justify-content: center; /* 中身を左右中央に寄せる設定 */
}

/* カード内のリンク集のスタイル */
.card-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.card-links a {
    text-decoration: none;
    color: var(--main-red); /* 赤色を基調に */
    font-size: 1.8rem;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-links a:hover {
    transform: scale(1.1); /* マウスを置いた時に少し大きくする演出 */
}

.card-links .note-link {
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid var(--main-red);
    padding: 5px 12px;
    border-radius: 20px;
}

.card-links .note-link i {
    font-size: 1.2rem;
}