/*
 * 全デバイス対応のための最終最適化スタイルシート
 * - ファーストビューの垂直・水平中央揃えの安定化
 * - bodyへの overflow-x: hidden; で右ズレを解消
 * - 背景色をオフホワイトに変更し、視認性を向上
 */

/* ==================================== */
/* 0. ベース & 共通スタイル */
/* ==================================== */
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

/* =========================================================
   ファーストビュー完全版 CSS
   - 背景：パララックス＋ノイズ
   - テキスト：奥行きフェードイン
   - 画像：浮遊アニメーション
   - スクロール誘導：シンプルアニメ
   ========================================================= */

/* =========================================================
   ファーストビュー最適版CSS
   背景：固定パララックスのみ
   テキスト：フェード＆スライドイン
   ========================================================= */

/* -----------------------------------
   ベース設定
----------------------------------- */
body {
    margin: 0;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: #444;
    background: url(./img/top-bg.png) center/cover no-repeat fixed;
    background-color: #fafafa;
    /* 背景画像が読み込めない場合の代替色 */
    overflow-x: hidden;
}

/* -----------------------------------
   ファーストビュー
----------------------------------- */
.fv-typeA {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    box-sizing: border-box;
    overflow: hidden;
}

.fv-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5vw;
    /* 元は 4vw → 少し詰める */
    width: 100%;
    max-width: 1000px;
    /* 元は1200px → 少し狭める */
    flex-wrap: wrap;
    /* PCでも小さめの画面で崩れにくい */
    position: relative;
    z-index: 2;
}

/* テキスト側 */
.fv-text {
    flex: 1 1 45%;
    /* 元は50% → 少し詰める */
    min-width: 320px;
}

.fv-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.4;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.fv-sub {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.fv-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ボタン */
.fv-btns .btn {
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-dark {
    background: #444;
    color: #fff;
}

.btn-dark:hover {
    background: white;
    color: #444;
}

.btn-accent {
    background: #e4572e;
    color: #fff;
}

.btn-accent:hover {
    background: white;
    color: #e4572e;
}

/* 画像側 */
.fv-image {
    flex: 1 1 48%;
    /* 元は50% → 少し詰める */
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.fv-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    transform: translateY(0);
    transition: transform 0.6s ease;
}

.fv-typeA:hover .fv-image img {
    transform: translateY(-5px);
}

/* 背景 */
.fv-bg .gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, #fbeee6, #ffffff 70%);
    z-index: 0;
}

.fv-bg .noise {
    position: absolute;
    inset: 0;
    background-image: url('../img/noise.png');
    opacity: 0.05;
    mix-blend-mode: multiply;
}

/* スクロール矢印 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(-45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* ===== スマホ・縦長対応 ===== */
@media (max-width: 900px) {
    .fv-typeA {
        min-height: 100vh;
        /* 画面全体に広げる */
        display: flex;
        justify-content: center;
        /* 縦方向の中央揃え */
        align-items: center;
        /* 横方向の中央揃え */
        padding: 0 5vw;
        /* 横余白 */
        box-sizing: border-box;
    }

    .fv-inner {
        flex-direction: column;
        justify-content: center;
        /* これがないと上寄せになる */
        align-items: center;
        text-align: center;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .fv-text {
        flex: none;
        margin-bottom: 1.5rem;
    }

    .fv-image {
        justify-content: center;
        align-items: center;
    }

    .fv-image img {
        width: 90%;
        /* 少し大きめに */
        max-height: 50vh;
        /* 上下バランス調整 */
        height: auto;
    }

    .fv-title {
        white-space: normal;
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        line-height: 1.3;
    }

    .fv-btns {
        justify-content: center;
    }
}

p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.8;
    color: #444;
}

h1,
h2,
h3 {
    color: #444;
    margin-block-start: 0;
    margin-block-end: 0;
}

h2 {
    margin-bottom: 30px;
}

/* 共通レイアウト */
#wrapper {
    width: 1000px;
    max-width: 90%;
    /* レスポンシブ対応 */
    margin: auto;
}

.taC {
    text-align: center;
}

.works,
.section-mgt {
    margin-top: 100px;
}

.works {
    background: white;
    /* worksセクションの背景は白で維持 */
    padding: 50px 0;
}

.flex {
    display: flex;
}

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

a {
    color: #9ca3af;
    text-decoration: none;
}

hr {
    height: 1px;
    border: 0;
    border-top: 1px solid #444;
}

/* ==================================== */
/* SP (<= 768px) ファーストビュー修正 */
/* ==================================== */
@media screen and (max-width: 768px) {

    body {
        width: 100%;
        height: auto;
    }

    /* F/Vコンテナ：高さを自動にし、コンテンツを中央配置する */
    .firstview_ful {
        height: auto;
        /* SPではコンテンツの高さに合わせる */
        min-height: 60vh;
        padding: 50px 0;
        /* 上下に余白を設けて、中央揃え感を出す */
        box-sizing: border-box;
    }

    /* メインキャッチコンテナ：縦積みに変更し、全体を中央に寄せる */
    .main-catch {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 1.5rem;
    }

    /* h1 (SPスタイル)：マージンと幅を調整 */
    .main-catch h1 {
        margin: 40px 0 20px 0;
        font-size: 2.7rem;
        text-align: center;
        width: auto;
        /* PCの固定幅指定を解除 */
    }

    /* 画像 (SPスタイル)：幅を確実に設定 */
    .main-catch img {
        width: 90vw;
        /* 画面幅の90%に設定し、過度な広がりを防ぐ */
        height: auto;
    }

    /* #wrapper のSP幅設定 */
    #wrapper {
        width: 90%;
        max-width: none;
    }

    /* その他のSP修正（元のコードを維持） */
    .service-flex {
        flex-direction: column;
    }

    .service-box {
        width: 100%;
        margin: auto;
    }

    .service-box img {
        width: 100%;
        height: auto;
    }

    .price-table caption {
        width: 100vw;
    }

    .about-flex {
        flex-direction: column-reverse;
    }

    .about-box {
        width: 100%;
        margin: auto;
    }

    .about-box img {
        width: 100%;
        margin: auto;
    }

    .about-txt {
        width: 100%;
        margin: auto;
    }
}

/* ------------------------------------- */
/* 2. WORKS 以降（元のコードを整理） */
/* ------------------------------------- */

.tag-flex .design-genre-txt {
    margin: 0 0 0 10px;
}

.sliderArea {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

.sliderArea.w300 {
    max-width: 300px;
}

.slick-slide {
    margin: 0 5px;
    transition: all ease-in-out .3s;
    opacity: .2;
}

.slick-slide img {
    width: 100%;
    height: auto;
}

.slick-prev,
.slick-next {
    z-index: 1;
}

.slick-prev:before,
.slick-next:before {
    color: #000;
}

.slick-active,
.slick-current {
    opacity: 1;
}

.thumb {
    margin: 20px 0 0;
}

.thumb .slick-slide {
    cursor: pointer;
}

.thumb .slick-slide:hover {
    opacity: .7;
}

.works-footer a {
    color: #444;
    padding-bottom: 5px;
    position: relative;
}

.works-footer a::before {
    background: #ff701e;
    content: '';
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
}

.works-footer a:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

.full-screen_one .slick-list {
    overflow: visible;
}

.full-screen_one.slider {
    max-width: 300px;
    margin: 0 auto;
}

/* service */
.service-box p span {
    background-color: rgb(69, 149, 161);
    color: white;
    padding: 2px 5px 3px 5px;
    font-weight: 400;
    border-radius: 7px;
}

.service-box p {
    text-align: left;
    line-height: 1.8;
}

.service-box img {
    width: auto;
    height: 13vw;
}

.service-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    row-gap: 30px;
}

.service-box {
    padding: 20px;
    width: 49%;
    row-gap: 20px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #F4F5F7
}

.service-flex::after {
    /* 3列レイアウトの調整用疑似要素。2列なので維持 */
    content: "";
    display: block;
    width: calc(100% / 3 - 24px);
    margin: 10px;
}

/* skill横並び */
ul.skill-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: auto;
    padding: 0;
    width: 75%;
    justify-content: center;
    /* 中央寄せ */
}

li.skill-img {
    width: 21%;
    margin: 2%;
    height: auto;
    text-align: center;
}

li img {
    width: 100%;
    height: auto;
}

/* ABOUT */
.about-flex {
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.about-txt {
    margin-right: 30px;
    width: 70%;
    line-height: 1.8;
}

.about-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* リンク */
a {
    text-decoration: none;
}

/* footer */
.footer {
    padding: 2rem;
    font-size: 15px;
    background: #1d1e22;
}

.footer__navi {
    flex-wrap: wrap;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.footer__navi li {
    display: inline-block;
}

.footer__navi li:not(:last-child) {
    margin-right: 16px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__navi li {
    font-size: 0.75rem;
}

.footer__navi li a:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-justify-between {
        justify-content: space-between;
    }

    .copyright {
        text-align: left;
    }
}

.footer__social a {
    display: inline-block;
    width: 24px;
    opacity: 0.7;
}

.footer__social a:not(:last-child) {
    margin-right: 16px;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-justify-between {
        justify-content: space-between;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.contact {
    background: #4e73df;
    padding: 50px 0 30px 0;
    text-align: center;
}

.contact a {
    background: white;
    padding: 10px 50px;
    border: solid 2px white;
    color: #4e73df;
    transition: .4s cubic-bezier(0.37, 0, 0.63, 1);
    border-radius: 10px;
}

.contact a:hover {
    background: #fff;
    color: #ff701e;
    letter-spacing: 0.15em;
}

.white-text {
    color: #fff;
    margin-top: 40px;
    font-size: 1rem;
}

/* 料金*/
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-family: "Hiragino Sans", "游ゴシック体", sans-serif;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* price-table 関連のスタイルは元のまま維持 */
.price-table caption {
    background: #4e73df;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
    padding: 12px 16px;
}

.price-table th,
.price-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.price-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    width: 35%;
}

.price-option {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

/* スマホ対応：カード型に変形 */
@media (max-width: 640px) {

    .price-table,
    .price-table thead,
    .price-table tbody,
    .price-table th,
    .price-table td,
    .price-table tr {
        display: block;
        width: 100%;
    }

    .price-table caption {
        font-size: 1.1em;
    }

    .price-table tr {
        margin-bottom: 1rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .price-table th {
        background: #f5f5f5;
        width: 100%;
        display: block;
        border: none;
        padding: 8px 16px;
        font-weight: bold;
    }

    .price-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 8px 16px;
    }
}

.slick-dots {
    bottom: 0 !important;
}

/* ------------------------------------- */
/* 3. planarea （元のコードを整理） */
/* ------------------------------------- */
.plan-box {
    width: 33%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #F4F5F7
}

.option-box {
    margin-top: 20px;
}


.option01 {
    background: #9ca3af;
    width: 90%;
    margin: auto;
    padding: 10px 0;
    color: white;
}

.plan-box p {
    text-align: center;
    padding: 20px;
    margin: 0;
}

.plan-name {
    background-color: rgb(69, 149, 161);
    padding: 2%;
    color: #fff;
    border-radius: 10px;
}

.price {
    color: darkcyan;
    font-size: 2vw;
}

#main {
    max-width: 100% !important;
}

/* ==================================== */
/* FLOW（制作の流れ） */
/* ==================================== */

.flow {
    background: #F4F5F7;
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title span {
    display: block;
    color: #e4572e;
    font-size: 1.2rem;
    margin-top: 8px;
    border-bottom: 3px solid #e4572e;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 60px;
}

/* ステップ全体 */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

/* 各ステップ */
.flow {
    background: #F4F5F7;
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title span {
    display: block;
    color: #e4572e;
    font-size: 1.2rem;
    margin-top: 8px;
    border-bottom: 3px solid #e4572e;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 60px;
}

/* ステップ全体 */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 各ステップ */
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* ステップ番号 */
.flow-num {
    font-size: 2rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    background-color: #e4572e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ステップ画像 */
.flow-img img {
    width: 60px;
    height: 60px;
}

/* ステップテキスト */
.flow-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.flow-content p.flow-sub {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ボタン */
.flow-btn-area {
    text-align: center;
    margin-top: 60px;
}

.flow-btn-area .btn-accent {
    padding: 12px 36px;
    border-radius: 50px;
    background: #e4572e;
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
}

.flow-btn-area .btn-accent:hover {
    opacity: 0.85;
}

/* ==================================== */
/* モバイル対応 (<=768px) */
/* ==================================== */
@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center;
    }

    .flow-img img {
        width: 80px;
        height: 80px;
        margin: auto;
    }

    .flow-content h3 {
        font-size: 1.3rem;
    }

    .flow-content p.flow-sub {
        font-size: 0.95rem;
    }
}
