/* =====================
   ベーススタイル
===================== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    font-family: 'Noto Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 49%, rgba(0,0,0,0.08) 50%, transparent 51%);
    background-size: 100px 100px;
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* =====================
   ヘッダー・ナビゲーション
===================== */
header {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.2s;
}
nav a:hover {
    text-decoration: underline;
}

/* ハンバーガーメニュー（1200px以下） */
@media (max-width: 1200px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 10px 0;
    }
    /* ハンバーガーメニューのアニメーション */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
@media (min-width: 1201px) {
    .nav-container {
        max-width: 1200px;
    }
}

/* =====================
   メイン・セクション
===================== */
main {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
    margin-top: 80px; /* ヘッダーの高さ分の余白を追加 */
}
section {
    margin-bottom: 48px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px;
}
h1, h2, h3 {
    color: #1a1a1a;
}
h1 {
    text-align: center;
}

/* h2のクールなデザイン */
h2 {
    position: relative;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a1a1a, #666);
}

h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    width: 20px;
    height: 3px;
    background: #999;
}

/* =====================
   ミッションとビジョン
===================== */
#about h2 {
    margin-top: 32px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 1.4em;
}
#about ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
#about ul li {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}
#about ul li strong {
    display: block;
    color: #1a1a1a;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: bold;
}
#about ul li::before {
    content: "★";
    position: absolute;
    top: 16px;
    right: 16px;
    color: #666;
    font-size: 1.2em;
}

/* =====================
   スキルセクション
===================== */
#skills {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#skills h2 {
    grid-column: 1 / -1;
}
.skill-item {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.skill-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: 1.2em;
}
.skill-item p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* 背景色を段階的に濃くする */
.skill-item:nth-child(2) {
    background: #f0f0f0;
}
.skill-item:nth-child(3) {
    background: #ebebeb;
}
.skill-item:nth-child(4) {
    background: #e6e6e6;
}
.skill-item:nth-child(5) {
    background: #e1e1e1;
}
.skill-item:nth-child(6) {
    background: #dcdcdc;
}
.skill-item:nth-child(7) {
    background: #d7d7d7;
}
.skill-item:nth-child(8) {
    background: #d2d2d2;
}
.skill-item:nth-child(9) {
    background: #cdcdcd;
}

/* 768px以上で2段組レイアウト */
@media (min-width: 768px) {
    #skills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    #skills h2 {
        grid-column: 1 / -1;
    }
}

/* =====================
   実績カード
===================== */
.works-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.work-card {
    border: 1px solid #ddd;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 12px;
    min-width: 0;
}
.work-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    margin-bottom: 8px;
    display: block;
    background: #e0e0e0;
    height: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* =====================
   作業費用セクション（モノトーンバージョン）
===================== */
#prices {
    background: #f6f6f6;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 24px 32px 24px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}
#prices h2, #prices h3 {
    color: #222;
}
#prices p {
    color: #444;
}
#prices ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
#prices ul li {
    background: #e9e9e9;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 18px 20px;
    font-size: 1.08em;
    font-weight: 500;
    letter-spacing: 0.01em;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #d1d1d1;
}
#prices ul li strong {
    color: #444;
    font-weight: 700;
    margin-right: 0.5em;
    font-size: 1.1em;
}
#prices ul li:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-2px) scale(1.02);
}
@media (min-width: 768px) {
    #prices ul {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1200px) {
    #prices ul {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
#prices .note {
    color: #333;
    font-size: 0.98em;
    margin-top: 1.5em;
    background: #f3f3f3;
    border-radius: 6px;
    padding: 12px 16px;
    display: inline-block;
    border: 1px solid #d1d1d1;
}

/* =====================
   レスポンシブ（ブレイクポイント）
===================== */
@media (max-width: 544px) {
    .works-list {
        flex-direction: column;
        gap: 12px;
    }
    .work-card {
        width: 100%;
    }
}
@media (min-width: 545px) and (max-width: 768px) {
    .works-list {
        gap: 14px;
    }
    .work-card {
        width: calc((100% - 14px) / 2);
    }
}
@media (min-width: 769px) and (max-width: 992px) {
    .works-list {
        gap: 16px;
    }
    .work-card {
        width: calc((100% - 32px) / 3);
    }
}
@media (min-width: 993px) and (max-width: 1200px) {
    .works-list {
        gap: 18px;
    }
    .work-card {
        width: calc((100% - 36px) / 3);
    }
}
@media (min-width: 1201px) {
    .works-list {
        gap: 20px;
    }
    .work-card {
        width: calc((100% - 60px) / 4);
    }
}

/* =====================
   FAQ（説明リスト）
===================== */
#faq dl {
    margin: 0;
    padding: 0;
}
#faq dt {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #1a1a1a;
    padding-left: 36px;
    position: relative;
}
#faq dt::before {
    content: "Q";
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #333;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#faq dd {
    margin: 0 0 16px 0;
    padding: 16px 16px 16px 44px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #333;
    line-height: 1.7;
    position: relative;
}
#faq dd::before {
    content: "A";
    display: inline-block;
    position: absolute;
    left: 12px;
    top: 16px;
    width: 24px;
    height: 24px;
    background: #ccc;
    color: #333;
    font-weight: bold;
    font-size: 1em;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}



/* =====================
   フッター
===================== */
footer {
    text-align: center;
    padding: 16px 0;
    background: #1a1a1a;
    color: #fff;
    margin-top: 32px;
}

/* =====================
   ページトップへ戻るリンク
===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
} 

.main-visual {
    display: block;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto 32px auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s, transform 0.8s;
}
@media (max-width: 767px) {
    .main-visual {
        max-width: 1080px;
    }
} 