@charset "UTF-8";

/* --- ベース設定 --- */
:root {
    --bg-color: #FFF7EF;          /* 温かみのある生成り */
    --text-color: #1f1b16;        /* 読みやすい濃いブラウン */
    --muted-color: #6b625a;       /* 補助テキスト */
    --accent-color: #D37B3A;      /* 温かいオレンジ */
    --card-bg: #ffffff;
    --border-color: #EADFD3;
    --shadow: rgba(0, 0, 0, 0.08);
    --font-main: 'Noto Sans JP', sans-serif;
    --font-title: 'Noto Sans JP', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    letter-spacing: 0.05em;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.section {
    padding: 100px 0;
    overflow: hidden;
    scroll-margin-top: 90px; /* 固定ヘッダー対策 */
}

/* --- 見出しデザイン --- */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 60px;
    color: var(--accent-color);
    font-family: var(--font-title);
}

.section-title span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 5px;
    font-family: var(--font-main);
}

/* --- ヘッダー & ハンバーガーメニュー --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 247, 239, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 6px 20px var(--shadow);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--accent-color);
    font-family: var(--font-title);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 14px;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* --- トップ（ヒーロー） --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.18;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    opacity: 0;
    animation: fadeInHero 2.5s ease-out forwards;
    background: rgba(255, 247, 239, 0.82);
    border: 1px solid rgba(234, 223, 211, 0.9);
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: 16px;
    padding: 36px 28px;
    max-width: 820px;
    margin: 0 16px;
}

@keyframes fadeInHero {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 44px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: var(--font-title);
}

.hero-text {
    font-size: 16px;
    color: var(--muted-color);
    margin-bottom: 40px;
}

/* --- スクロールでふわっと表示するアニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

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

/* ボタン共通設定 */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px var(--shadow);
}

.btn:hover {
    background-color: #B96932;
    transform: translateY(-2px);
}

/* --- サービス内容 --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-top: 3px solid var(--accent-color);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 26px var(--shadow);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    margin-top: 0;
    font-size: 20px;
}

.service-card p {
    color: var(--muted-color);
    font-size: 14px;
    text-align: left;
}

/* --- Excel自動化（VBA）セクション（画像ビフォーアフター版） --- */
.vba-example {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px 40px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 12px 26px var(--shadow);
}

.vba-example-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.vba-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 15px;
}

.vba-example-title {
    font-family: var(--font-title);
    color: var(--accent-color);
    font-size: 24px;
    margin: 0;
    line-height: 1.4;
}

.vba-compare-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vba-compare-box {
    flex: 1;
    text-align: center;
    position: relative;
}

.vba-compare-label {
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.vba-before-box .vba-compare-label {
    background-color: #9b8f86;
    color: #fff;
}

.vba-after-box .vba-compare-label {
    background-color: rgba(211, 123, 58, 0.14);
    color: var(--accent-color);
    border: 1px solid rgba(211, 123, 58, 0.45);
}

.vba-image-wrapper {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 25px var(--shadow);
    transition: transform 0.3s;
}

.vba-image-wrapper:hover {
    transform: scale(1.02);
}

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

.vba-compare-text {
    font-size: 14px;
    color: var(--muted-color);
    margin-top: 15px;
    text-align: left;
    padding: 0 10px;
}

.vba-magic-arrow {
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.vba-arrow-icon {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.vba-magic-text {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: bold;
    line-height: 1.3;
}

.vba-magic-text span {
    font-size: 10px;
    color: var(--muted-color);
    font-weight: normal;
}

/* --- 料金表 --- */
.price-box {
    background-color: var(--card-bg);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 26px var(--shadow);
}

.price-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 10px 0 0;
}

.price-list li {
    padding: 10px 0;
    font-size: 15px;
}

/* --- 制作実績 --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-item a:hover {
    opacity: 0.7;
}

.work-img-obj {
    object-fit: cover;
    height: 200px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.work-title {
    text-align: center;
    font-weight: 500;
}

/* --- プロフィール --- */
.profile-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 26px var(--shadow);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

.profile-text h3 {
    margin: 0 0 5px;
    color: var(--accent-color);
    font-family: var(--font-title);
}

.profile-text p {
    font-size: 14px;
    color: var(--muted-color);
}

/* --- お問い合わせ --- */
.contact {
    text-align: center;
}

.contact-text {
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-insta {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-insta:hover {
    background-color: var(--text-color);
    color: #fff;
}

.btn-line {
    background-color: #06C755;
    color: #fff;
    border: 2px solid #06C755;
}

.btn-line:hover {
    background-color: #05a546;
    border-color: #05a546;
}

/* --- 追加：各所の細かい見た目調整 --- */
.work-item a {
    display: block;
    transition: opacity 0.3s;
}

.vba-intro {
    text-align: center;
    margin-bottom: 50px;
}

.vba-note {
    text-align: center;
    margin-top: 40px;
}

.vba-note-text {
    font-size: 14px;
}

.price-subheader {
    margin-top: 50px;
    padding-bottom: 10px;
}

.price-subheader h3 {
    font-size: 20px;
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #F2E7DD;
    font-size: 12px;
    color: var(--muted-color);
}

/* --- 追加：親しみやすさ（バッジ等） --- */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 26px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(211, 123, 58, 0.14);
    border: 1px solid rgba(211, 123, 58, 0.35);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
}

.muted {
    color: var(--muted-color);
}

.works-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--muted-color);
}

.profile-role {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.price-old {
    text-decoration: line-through;
    font-size: 18px;
    color: var(--muted-color);
    margin-bottom: -8px;
}

.price-current {
    color: var(--accent-color);
}

.price-note {
    margin-top: 10px;
    color: #B24A3A;
    font-weight: 700;
    font-size: 14px;
}

.price-sublist {
    text-align: left;
    display: inline-block;
}

/* --- スマホ対応 (768px以下/900px以下) --- */
@media screen and (max-width: 900px) {
    .vba-compare-container {
        flex-direction: column;
        gap: 0;
    }

    .vba-compare-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .vba-magic-arrow {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .vba-arrow-icon {
        transform: rotate(0deg);
    }
}

@media screen and (max-width: 768px) {
    .sp-hidden {
        display: none;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

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

    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        transition: left 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav.is-active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-list a {
        font-size: 20px;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .vba-example {
        padding: 30px 20px;
    }
    .vba-example-title {
        font-size: 18px;
    }
}