@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400&display=swap");

/* --- 共通設定 --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
}

html {
    scroll-behavior: smooth;
}

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

/* --- ヘッダー --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.header h1 {
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* --- ジャンプ位置調整 --- */
#profile,
#works,
#contact {
    scroll-margin-top: 110px;
}

/* --- ヒーロー --- */
.hero {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url("img/stone-bg2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 100px 20px;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 12px;
}

.hero-title {
    font-size: 3rem;
    margin: 0;
    color: #fff;
    text-shadow:
        0 0 15px rgba(0, 0, 0, 0.9),
        2px 2px 5px rgba(0, 0, 0, 1);
    font-weight: bold;
}

/*.hero-sub,
.hero-text {
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}*/
/* ファーストビュー コピー調整 */
.hero-sub {
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.85;
    font-weight: bold;
}

.hero-text {
    margin-top: 12px;
    font-size: 1rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
    font-weight: bold;
}

/* --- プロフィール --- */
.profile {
    margin-bottom: 60px;
    padding-top: 20px;
}

.profile-img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

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

.profile-text {
    text-align: center;
}

.profile-text p {
    line-height: 2;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #444;
}

/* --- ワークス --- */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    margin: 40px 0 20px;
    padding-left: 10px;
    border-left: 4px solid #333;
}

.works-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-img {
    aspect-ratio: 4/ 3;
    background: #eee;
}

.card-img img {
    width: 100%;
    /* height: 100%;
    object-fit: cover; */
}
/* メニュー表用（横長） */
.card-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-body {
    padding: 15px;
}
/* ヨガチラシ調整 */
.flyer-card .card-img {
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
}

.flyer-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Before / After --- */
.ba-container {
    display: flex;
    gap: 4px;
    padding: 10px;
    background: #f0f0f0;
}

.ba-item {
    position: relative;
    flex: 1;
}

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

/*.ba-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 5px;
}*/
.ba-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    pointer-events: none;
}
/* 名刺だけ16:9を無効化 */
.card-mock-single {
    aspect-ratio: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f5f5f5, #eeeeee);
    display: flex;
    justify-content: center;
}

.card-mock-single img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --- コンタクト --- */
.contact-btn {
    border: none;
    background: #333;
    color: #fff;
    padding: 15px 40px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}

.contact-btn:hover {
    background-color: #666;
    transform: translateY(-3px);
}

.form-wrapper {
    margin-top: 20px;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit {
    flex: 2;
    background: #333;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel {
    flex: 1;
    background: #eee;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* --- SNS --- */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.sns-icon {
    font-size: 1.4rem;
    color: #666;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.sns-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- フッター --- */
.footer {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.1em;
    margin: 0;
}
.works > .works-grid:first-of-type .card {
    transform: scale(1.03);
}

/* ② ホバー時の集中感 */
.works > .works-grid:first-of-type .card-img img {
    transition: 0.3s ease;
}

.works > .works-grid:first-of-type .card:hover .card-img img {
    transform: scale(1.05);
}

/* ③ タイトルを少しだけ強く */
.works > .works-grid:first-of-type .card-body h3 {
    font-size: 1.05rem;
    font-weight: 400;
}

/* --- PC（min-width: 768px） --- */
/*@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header-nav ul {
        gap: 30px;
    }

    .header-nav a {
        font-size: 1rem;
        font-weight: 400;
    }

    #profile, #works, #contact {
        scroll-margin-top: 100px;
    }

    .hero {
        max-width: 1100px;
        margin: 0 auto 60px;
        height: 450px;
    }

    .profile {
        max-width: 1100px;
        margin: 0 auto 80px;
    }

    .profile-inner {
        display: flex;
        align-items: center;
        gap: 50px;
    }

    .profile-img,
    .profile-text {
        flex: 0 0 50%;
    }

    .profile-text {
        text-align: left;
        padding-right: 2rem;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer {
        padding: 60px 0;
    }
}
*/
/* --- 大きめPC（min-width: 1024px） --- */
/*@media (min-width: 1024px) {
    .works-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}*/
/* ==============================
   レスポンシブ（タブレット〜PC）
   ============================== */
@media (min-width: 768px) {
    /* ヘッダー */
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* ヒーロー */
    .hero {
        min-height: 560px;
        margin-bottom: 60px;
    }

    /* プロフィール */
    .profile-inner {
        display: flex;
        gap: 50px;
        align-items: center;
    }

    .profile-img,
    .profile-text {
        flex: 1;
    }

    .profile-text {
        text-align: left;
    }

    /* ワークス */
    .works-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* フッター */
    .footer {
        padding: 60px 0;
    }
}
@media (min-width: 1024px) {
    .retouch-section {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
    }
    /* PC以上（調整だけ） */

    .retouch-card {
        grid-column: 1 / -1;
        max-width: 900px;
        margin: 0 auto;
    }
    .ba-container {
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .ba-item {
        flex: 0 1 42%;
    }
    .ba-container img {
        width: 100%;
        max-width: 370px; /* ←ここでサイズ調整 */
        height: auto;
    }
    .ba-label {
        font-size: 13px;
        padding: 5px 12px;
    }
    .flyer-card .card-img {
        max-height: 420px;
        margin: 0 auto;
    }
    .card-mock-single img {
        max-height: 460px;
    }
    .card-mock-single {
        padding: 40px;
    }
    .card-mock-single img {
        transform: none;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
        border-radius: 8px;
    }
}

@media (min-width: 1024px) {
    /* ヨガチラシと名刺の表示面を揃える */
    .flyer-card .card-img,
    .card-mock-single {
        height: 460px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .flyer-card {
        margin-top: 32px; /* 全体を下に押す */
    }
}
@media (min-width: 1024px) {
    .flyer-card .card-img,
    .businesscard-card .card-img {
        height: 420px; /* ← 両方同じ高さ */
        display: flex;
        align-items: center; /* 中央に配置 */
        justify-content: center;
    }

    .flyer-card img,
    .businesscard-card img {
        max-height: 100%;
        width: auto;
        object-fit: contain;
    }
}
@media (min-width: 1024px) {
    .flyer-card .card-img {
        background-color: #fff;
        padding: 16px; /* ← 白フチの量 */
        box-sizing: border-box;
    }

    .flyer-card img {
        background-color: #fff;
    }
}
@media (min-width: 1024px) {
    .flyer-card .card-img {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }
}
.work-type {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
}
@media (min-width: 1024px) {
    /* 名刺とメニューの表示面を揃える */
    .businesscard-card .card-img,
    .card-mock-single {
        height: 460px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* Graphic Design：文字サイズ微調整 */
.works .category-title + .works-grid .card-body h3 {
    font-size: 1.05rem;
}

.works .category-title + .works-grid .work-type {
    font-size: 0.85rem;
}

.works .category-title + .works-grid .work-desc {
    font-size: 0.9rem;
    line-height: 1.75;
}
