/* --- 基本設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    letter-spacing: 0.05em;
    background-color: #fcfcfc;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- コンテナ --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- セクション共通 --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #4aa3a3; /* テーマカラー */
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 50px;
}

/* --- ヘッダー --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4aa3a3;
}

.nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    font-size: 0.9rem;
    font-weight: bold;
}

.nav a:hover {
    color: #4aa3a3;
}

.nav-btn {
    background-color: #4aa3a3;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-btn:hover {
    opacity: 0.8;
}

/* ------------------------------------- */
/* --- ハンバーガーメニュー基本設定 --- */
/* ------------------------------------- */
.menu-toggle {
    /* チェックボックス自体は画面から完全に非表示 */
    display: none;
}

.menu-btn {
    /* PC表示では非表示にするための準備 */
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 24px;
    z-index: 200; 
}

/* ハンバーガーの3本線を作成 */
.menu-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #4aa3a3; /* テーマカラー */
    transition: 0.3s;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 11px; }
.menu-btn span:nth-child(3) { top: 22px; }

/* --- ヒーローセクション --- */
.hero {
    height: 80vh;
    background-color: #e6f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4aa3a3;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

/* --- Concept --- */
.concept .text-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Works (実績) --- */
.works {
    background-color: #fff;
}

.works-grid {
    /* 1つでも複数でも中央に寄せる設定 */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 増えた時に折り返す */
    gap: 40px;
}

.work-item {
    text-align: center;
    display: block;
    color: inherit;
    /* ここでサイズを小さく制限しています */
    width: 100%;
    max-width: 400px; 
}

/* マウスを乗せた時の動き */
.work-item:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

/* 実績画像の設定 */
.work-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    border: 1px solid #eee; /* 薄い枠線をつけて引き締める */
}

.work-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.work-item p {
    font-size: 0.85rem;
    color: #888;
}



/* --- Profile --- */
.profile-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-img {
    width: 200px;
    height: 200px;
    background-color: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden; /* 写真を入れた時にはみ出さないように */
}

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

.profile-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.sub-name {
    font-size: 1rem;
    color: #888;
    font-weight: normal;
    margin-left: 10px;
}

.role {
    color: #4aa3a3;
    font-weight: bold;
    margin-bottom: 20px;
}

.skills {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skills li {
    background-color: #f0f0f0;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* --- Price --- */
.price {
    background-color: #fff;
}

.price-table {
    max-width: 700px;
    margin: 0 auto 30px;
    border: 1px solid #eee;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.price-row:last-child {
    border-bottom: none;
}

.menu {
    font-weight: bold;
}

.note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* --- Footer --- */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 60px 20px 20px;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    background-color: #4aa3a3;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    margin: 30px 0 10px; 
    font-weight: bold;
}

.contact-btn:hover {
    background-color: #388e8e;
}

/* 電話番号のコンテナのスタイル */
.footer .phone-contact {
    margin-top: 20px;
    font-size: 1rem;
    color: #fff; 
    margin-bottom: 20px;
}

.footer .phone-contact a {
    color: #4aa3a3; 
    font-weight: bold;
    text-decoration: underline; 
}

.footer .phone-contact .small-note {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #ccc;
}


.copyright {
    font-size: 0.75rem;
    color: #999;
    margin-top: 40px;
}


/* --- レスポンシブ --- */
@media (max-width: 768px) {
    
    /* セクション共通 */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        margin-bottom: 30px;
    }

    /* ヘッダー/ナビゲーション（ハンバーガーメニューの挙動） */
    .header {
        flex-direction: row; 
        justify-content: space-between;
        padding: 15px 20px;
    }

    .menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 60px; 
        right: -100%; 
        width: 100%;
        height: 100vh;
        /* 背景が白く消えるのを改善: 透明度を上げて、背後のコンテンツを透けさせる */
        background-color: rgba(255, 255, 255, 0.8);
        transition: right 0.4s;
        z-index: 150;
        padding-top: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav ul {
        flex-direction: column; 
        gap: 0; 
        font-size: 1rem;
        text-align: center;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav ul li:first-child {
        border-top: 1px solid #eee;
    }

    .nav a {
        display: block;
        padding: 15px 0; 
    }

    .nav-btn {
        margin: 10px auto; 
    }

    /* チェックボックスがONの時の動作（メニュー表示・×印変形） */
    /* メニューが表示されるための基本のCSS */
    #menu-toggle:checked ~ .nav {
        right: 0; 
    }

    #menu-toggle:checked ~ .menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #menu-toggle:checked ~ .menu-btn span:nth-child(2) {
        opacity: 0; 
    }

    #menu-toggle:checked ~ .menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* ヒーローセクション */
    .hero h1 {
        font-size: 2rem;
    }

    /* プロファイルセクションのモバイル対応 */
    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 30px; 
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .skills {
        justify-content: center;
        margin-top: 15px;
    }
    
    /* フッター */
    .footer {
        padding: 40px 20px 20px;
    }
}