@charset "UTF-8";

/*全体*/
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}

.container {
    max-width: 860px;
    margin: 0 auto;
}


/*ヘッダーエリア*/
header {
    padding-top: 10px;
    position: sticky;
    z-index: 1000;
    top: 0;
    background: #fff;
}

header h1 {
    width: 120px;
    margin-bottom: 10px;
}

header h1 img {
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
}

header nav ul {
    display: flex;
}

header nav li {
    margin: 13px 15px 0;
}

header nav a {
    transition: all 0.5s;
}

header nav a:hover {
    color: rgb(240, 184, 51);
}

/*MV*/
.mv {
    background: url(../img/mv-img.jpg) no-repeat center center/cover;
    height: 600px;
    margin-top: 50px;
    margin-bottom: 50px;
}

/*プロフィールエリア*/
.profile {
    padding-top: 85px;
    padding-bottom: 85px;
    background: #eee;
}

.profile h2,
.design h2,
.calligraphy h2,
.contact h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.profile h2 span,
.design h2 span,
.calligraphy h2 span,
.contact h2 span {
    border-bottom: 2px solid #000;
}

.profile .inner {
    display: flex;
    max-width: 530px;
    margin: 0 auto;
    justify-content: space-between;
}

.prof-img {
    flex-basis: 100px;
}

.prof-img img {
    border-radius: 50px;

}

.prof-txt {
    flex-basis: calc(100% - 130px);
    margin-left: 1rem;
}

.prof-txt h3 {
    margin-bottom: 0.8rem;
}

.prof-txt .title {
    margin-bottom: 0.6rem;
}

.prof-txt .prof {
    font-size: 0.9rem;
}

/*チラシデザイン*/
/*書道*/
.design,
.calligraphy,
.contact {
    padding-top: 85px;
}

.design .inner,
.calligraphy .inner {
    display: flex;
    gap: 1rem;
    margin-bottom: 100px;
}

.design .item,
.calligraphy .item {
    flex-grow: 1;
    background: #fff;
    overflow: hidden;
}

.design .item-img,
.calligraphy .item-img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.4s ease;
}

.item-img:hover img {
    opacity: 0.7;
}

.design .inner h3,
.calligraphy .inner h3 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.design .inner p,
.calligraphy .inner p {
    font-size: 0.9rem;
    text-align: center;
}

/*チラシのリンク先設定*/
.gd-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

/*リンク先*/
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    /* 上の余白は固定ヘッダーの高さに合わせて調整 */
}

.detail-category {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.detail-title {
    font-size: 28px;
    margin: 0 0 20px;
    color: #333;
}

.detail-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.detail-flyer-single {
    max-width: 600px;
    margin: 0 auto 50px;
}


/* 制作データの表組み */
.detail-spec {
    border-top: 1px solid #ddd;
    margin-bottom: 60px;
}

.detail-spec div {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    font-size: 14px;
}

.detail-spec dt {
    width: 140px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.detail-spec dd {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* 画像ギャラリー全体 */
.detail-gallery figure {
    margin: 0 0 50px;
}

.detail-gallery img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.detail-gallery figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.banners-container {
    margin-bottom: 3rem;
}

/* チラシ表裏・インスタ投稿を横に2枚並べる設定 */
.detail-flyer-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-banners-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}


/*もっと見るボタン*/
/* === 画面の真ん中に配置する設定 === */
.btn-center-wrapper {
    text-align: center;
    margin: 40px 0;
}

/* === VIEW MOREボタン本体 === */
.view-more-btn {
    display: inline-block;
    padding: 12px 40px;
    /* ボタンの余白（上下・左右） */
    border: 1px solid #333;
    /* 枠線 */
    color: #333;
    /* 文字の色 */
    background-color: transparent;
    /* 背景は透明 */
    text-decoration: none;
    /* 下線を消す */
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    /* 色が変わる速さ */
}

/* === マウスを合わせた時の動き（色が変わる） === */
.view-more-btn:hover {
    background-color: #333;
    /* 背景色が変わる */
    color: #fff;
    /* 文字色が変わる */
}


/*コンタクト*/
.contact-section {
    max-width: 640px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: sans-serif;
    color: #333;
}

.contact-lead {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 32px;
}

/* タブボタン */
.contact-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f2f2f2;
    padding: 6px;
    border-radius: 8px;
}

.tab-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #fff;
    color: #222;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* フォーム切り替え */
.contact-form {
    display: none;
    animation: alternate 0.3s ease;
}

.contact-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 入力項目 */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
}

.badge.required {
    background: #222;
    color: #fff;
}

.badge.optional {
    background: #e5e5e5;
    color: #555;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #222;
    background: #fff;
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.85;
}

/* ポップアップ（モーダル） */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.modal-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-close-btn {
    padding: 10px 32px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}


/*フッター*/
footer {
    height: 30px;
    text-align: center;
    line-height: 30px;
    margin-top: 100px;
    margin-bottom: 100px;
}


/*上に戻るボタン*/
.backtopbt {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 10px;
    bottom: 10px;
}

.backtopbt a {
    display: block;
    height: 50px;
    background: #ccc;
    text-align: center;
    padding-top: 15px;
    transition: all 1s;
}

.backtopbt a:hover {
    background: #666;
}

/*ハンバーガーメニュー*/
/* === 共通設定 === */
.header {
    position: relative;
}

.menu-checkbox {
    display: none;
}

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

.nav-menu li a {
    text-decoration: none;
    color: #333;
}

/* === PC表示（769px以上）のスタイル === */
@media(min-width: 769px) {

    /* PCではボタンもメニューもすべて非表示にする */
    .menu-btn,
    .nav-menu {
        display: none;
    }
}

/* === スマホ表示（768px以下）のスタイル === */
@media(max-width: 768px) {
    html {
        font-size: 90%;
    }

    .pc-only {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .profile .inner,
    .design .inner,
    .calligraphy .inner {
        display: block;
        flex-direction: column;
    }

    .prof-img {
        text-align: center;
        flex-basis: 100px;
        margin-bottom: 2rem;
    }

    .prof-img img {
        border-radius: 400px;
        width: 200px;

    }

    .design .inner .item {
        margin-bottom: 3rem;
        width: 100%;
    }

    .calligraphy .inner .item-img {
        margin-bottom: -5rem;
    }

    /* MENUボタン（背景なし・文字のみ） */
    .menu-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        padding: 8px;
        cursor: pointer;
        z-index: 100;
        color: #333;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0.05em;
    }

    /* 通常時の文字 */
    .menu-btn::before {
        content: 'MENU';
    }

    /* メニューの初期状態（画面の下に隠す） */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #f5f5f5;
        transition: top 0.8s ease;
        z-index: 90;

        /* 画面の中央に配置するための設定 */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 項目を確実に縦に並べる設定 */
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
    }

    /* チェックが入った時（下から上へスライド） */
    .menu-checkbox:checked~.nav-menu {
        top: 0;
    }

    /* チェックが入った時の文字 */
    .menu-checkbox:checked~.menu-btn::before {
        content: 'CLOSE';
    }

    /*コンタクトのスマホ表示*/
    .contact-section {
        width: 100%;
        max-width: 500px;
        margin: 80px auto;
        padding: 0 20px;
        font-family: sans-serif;
        color: #333;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-lead {
        font-size: 0.85rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    /* タブボタンが2行にならないように調整 */
    .contact-tabs {
        padding: 4px;
        gap: 4px;
    }

    .tab-btn {
        padding: 10px 4px;
        font-size: 0.8rem;
    }

    /* 横並び（予算・納期）を縦並びに変更 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* 入力欄はiPhoneの自動ズームを防ぐため16px(1rem)を維持 */
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px;
        padding: 12px 10px;
    }

    /* 送信ボタンを親指で押しやすい高さに */
    .submit-btn {
        padding: 14px;
        font-size: 0.95rem;
    }

    /*gdのページ用*/
    .detail-container {
        padding-top: 90px;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-spec div {
        flex-direction: column;
        gap: 6px;
    }

    /* スマホではチラシ表裏も縦1列にする */
    .detail-flyer-pair {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-banners-pair {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}