/* style.css */
/* 全体 */
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
}

.gradient-background {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background: radial-gradient(circle at 20% 20%, #ff5722, transparent 60%),
        radial-gradient(circle at 80% 30%, #2196f3, transparent 60%),
        radial-gradient(circle at 50% 80%, #4caf50, transparent 60%),
        radial-gradient(circle at 30% 60%, #fdd835, transparent 60%);
    background-blend-mode: screen;
    background-size: 200% 200%;
    animation: moveGradients 15s ease-in-out infinite alternate;
}

@keyframes moveGradients {
    0% {
        background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
    }

    50% {
        background-position: 100% 0%, 0% 100%, 100% 0%, 0% 100%;
    }

    100% {
        background-position: 0% 100%, 100% 100%, 0% 0%, 100% 0%;
    }
}






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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 50px 0;
}

.header .container {
    position: relative;
    /* 子要素のabsolute配置の基準にする */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navigation {
    position: absolute;
    top: 50%;
    /* 上からの位置を調整 */
    right: 0px;
    /* 右からの位置を調整 */
    transform: translateY(-50%);
    /* 垂直方向中央揃え（必要に応じて） */
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ロゴ */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
    text-decoration: none;
    width: 150px;
    /* ロゴの幅を調整 */
    height: auto;
    /* 高さ自動 */
    position: relative;
    /* 配置の基準 */
    top: 0px;
    /* 上からの位置調整 */
    left: -30px;
    /* 左からの位置調整 */
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: difference;
    /* 差の絶対値合成モード */
}

.navigation {
    display: flex;
    align-items: center;
    /* 垂直方向中央揃え */
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.navigation li {
    margin: 0 20px;
}

.nav-link {
    color: rgb(0, 0, 0);
    /* 半透明の白 */
    text-decoration: none;
    font-size: 1.2rem;
    /* フォントサイズを1.2remに変更 */
    font-weight: bold;
    /* フォントを太字に */
    transition: color 0.3s ease;
    mix-blend-mode: exclusion;
    /* 除外合成モード */
}


.nav-link:hover {
    color: #ffffff;
}

/* 基本ブロック設定 */
.features-bg-block,
.services-bg-block,
.flow-bg-block,
.price-bg-block,
.faq-bg-block,
.contact-bg-block {
    border-radius: 20px;
    padding: 40px;
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    /* 半透明の白 */
}

/* ヒーローセクション */
.hero {
    position: relative;
    color: #ffffff;
    text-align: center;
    padding: 0px 0px;
    /* 上下のpaddingを調整 */
    margin-bottom: 0px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* 水平方向中央揃え */
    align-items: center;
    /* 垂直方向中央揃え */
    overflow: hidden;
}

.hero .container {
    position: relative;
    /* 子要素の配置基準 */
    z-index: 2;
    /* 背景より前に表示 */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    /* コピーの最大幅 */
    mix-blend-mode: luminosity;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;

}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;

}


.hero-image {
    position: absolute;
    top: 50%;
    /* 垂直方向中央 */
    left: 50%;
    /* 水平方向中央 */
    transform: translate(-50%, -50%);
    /* 中央に配置 */
    width: 150%;
    /* 画像の幅 */
    height: auto;
    opacity: 1;
    /* 不透明度 */
    z-index: 1;
    /* 背景画像を一番後ろに表示 */
}

.hero-image img {
    width: 100%;
    /* 画像の幅を100%に */
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: difference;
    /* 差の絶対値合成モード */
    filter: blur(1px);
    /* ブラー効果を適用 */
}


/* 特徴セクション */
.features {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.section-title.no-underline::before {
    display: none;
}

.feature-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    background: rgba(255, 255, 255, 1);
    /* 完ぺきな白 */
    width: 350px;
    height: 150px;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    text-align: center;
    color: #000;
    /* 黒色 */
    text-shadow: none;
}

.feature-icon {
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.4;
}

/* サービスセクション */
.services {
    padding: 80px 20px;
    text-align: center;
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.service-item {
    background: rgba(255, 255, 255, 1);
    /* 完ぺきな 白 */
    width: 530px;
    height: 100px;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    text-align: center;
    color: #000;
    /* 黒色 */
    text-shadow: none;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.4;
}

/* 制作の流れセクション */
.flow {
    padding: 80px 20px;
    text-align: center;
}

.flow-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    /* 要素間の隙間を設定 */
}

.flow-item {
    background: rgba(255, 255, 255, 1);
    /* ▼▼▼ 3つ横並び用の幅に調整 ▼▼▼ */
    flex-basis: 250px;
    height: auto;
    min-height: 180px;
    /* 高さを少し確保してバランス調整 */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #000;
    text-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flow-icon {
    font-size: 2rem;
    color: #000;
    margin-bottom: 15px;
}

.flow-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.flow-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* style.css */
/* style.css */
/* (前略) 他のスタイル定義 */

.price-table-asterisk {
    font-size: 0.6em;
    /* 米印のフォントサイズを小さくする */
    display: block;
    /* 改行を有効にする */
    text-align: center;
    /* 右詰にする */
    color: black;
    /* 文字色を黒にする */
    text-shadow: none;
    /* 影をなくす */
}

.price-table {
    width: 100%;
    border-collapse: separate;
    /* 罫線を区切る */
    border-spacing: 10px;
    /* セル間の距離を設定 */
    margin-top: 20px;
    color: black;
    /* 文字色を黒にする */
    text-shadow: none;
    /* 影をなくす */
    background-color: #f8f9fa;
    /* テーブル全体の背景色 */
    font-family: 'Noto Sans JP', sans-serif;
    /* フォント */
    border-radius: 10px;
    /* 角を丸くする */
}

.price-table th,
.price-table td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    /* 縦方向中央揃え */
    border-radius: 10px;
    /* 角を丸くする */
}

.price-table th {
    font-weight: bold;
    color: rgb(255, 255, 255);
    /* ヘッダーの文字色を黒にする */
    text-shadow: none;
    /* ヘッダーの文字に影をつける */
}

/* ヘッダーの色 */
.price-table th:nth-child(2) {
    background-color: #ffffff;
    /* ソクデキ！のヘッダー色 */
}

.price-table th:nth-child(3) {
    background-color: #acacac;
    /* 格安制作会社のヘッダー色 */
}

.price-table th:nth-child(4) {
    background-color: #acacac;
    /* 無料ツールのヘッダー色 */
}



/* 行のアイコン */
.price-table i {
    margin-right: 8px;
    /* アイコンとテキストの間隔 */
    color: #6c757d;
    /* アイコンの色 */
}

.price-table td:first-child {
    text-align: left;
    /* アイコンとテキストを左寄せ */
    font-weight: bold;
    /* 行タイトルのフォントを太字にする */
    padding-left: 20px;
    /* アイコンとテキストの間隔 */
    font-size: 0.9em;
    /* フォントサイズを調整 */
    width: 100px;
    /* 幅を200ピクセルに設定 */
}

/* 罫線 */
.price-table,
.price-table th,
.price-table td {
    border: none;
    /* 罫線をなくす */
}

/* 交互の行の色 */
.price-table tbody tr {
    background-color: #ffffff;
    /* 全ての行の背景色を白にする */
}

/* style.css */
/* (前略) 他のスタイル定義 */

/* ソクデキ！列のヘッダーを赤色にする (不透明) */
.price-table th:nth-child(2) {
    background-color: #ff4d4d;
    /* 赤色 */
    color: white;
    /* ヘッダーの文字色を白にする */
    text-shadow: none;
    /* 文字影をなくす */
}

/* ソクデキ！列のセルを半透明の赤色にする */
.price-table td:nth-child(2) {
    background-color: rgba(255, 77, 77, 0.1);
    /* 半透明の赤色 */
}

.price-table th img {
    max-width: 100%;
    /* 画像がthの幅を超えないようにする */
    height: auto;
    /* 高さを自動調整 */
    display: block;
    /* ブロック要素として表示 */
    margin: 0 auto;
    /* 中央寄せ */
}

/* style.css */
/* (前略) 他のスタイル定義 */



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .price-table {
        font-size: 0.9rem;
    }

    .price-table th,
    .price-table td {
        padding: 8px;
    }

    .price-table td:first-child {
        padding-left: 10px;
        /* スマホでのアイコンとテキストの間隔 */
    }
}



/* お問い合わせセクション */
.contact {
    text-align: center;
}

.contact-bg-block h2 {
    color: #fff;
    /* タイトルの文字色を白に変更 */
    font-size: 2.5rem;
    /* タイトルフォントサイズ */
}

.contact-bg-block h2::before {
    background: #fff;
    /* タイトルの下の線を白に変更 */
}

.contact-bg-block p {
    color: #000000;
    /* 黒色に変更 */
    text-shadow: none;
    /* 文字影を削除 */
}

.contact-text {
    font-size: 1.5rem;
    /* 文字サイズを変更 */
    font-weight: normal;
    /* フォントを太字に */
    line-height: 2;
    /* 行間を設定 */
    margin-top: -13px;
    /* テキストと上の要素の間隔を調整 */
}

.contact-time {
    font-size: 1rem;
    /* 文字サイズを設定 */
    line-height: 2;
    /* 行間を設定 */
}

.contact-button {
    background: #fff;
    color: #007bff;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: all 0.8s ease;
    display: inline-block;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.contact-button:hover {
    background-color: #ffffff30;
    color: #ffffff;
}


.contact-text img {
    width: 150px;
    /* 幅を100pxに設定 */
    height: auto;
    /* 高さを自動調整 */
}


/* style.css */

/* (前略) 既存のスタイル */

/* お問い合わせフォーム */
#contact-form {
    max-width: 800px;
    /* 最大幅 */
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.contact-input,
.contact-textarea,
.contact-button,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.contact-textarea {
    height: 150px;
}

.form-message {
    margin-top: 10px;
    color: #28a745;
    font-weight: bold;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.radio-group label,
.checkbox-group label {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.small {
    font-size: 0.8rem;
    color: #777;
}

/* Section subtitle styling */
.section-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    text-shadow: none;
}

/* Accordion label styling */
.accordion-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    font-weight: normal;
}

.accordion-label:hover {
    background-color: rgba(255, 255, 255, 1);
}

.accordion-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.accordion-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* Accordion content styling */
.accordion-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Required field indicator */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* style.css に以下のコードを追加 */



/* フッター */


/* フッター */
.footer {
    padding: 40px 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer .container {
    text-align: center;
}

/* フッターリンクのスタイル */
.footer-links {
    margin-bottom: 10px;
    position: relative;
    left: -30px;
}

.footer-links a,
.footer-links a:visited,
.footer-links a:active {
    color: #fff;
    text-decoration: none;
    /* 下線を消す */
    margin-left: 20px;
    /* リンクの左側に余白を作り、間隔を空ける */
    font-size: 0.9em;
    /* 少し文字を小さくしてバランスを取る */
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
    /* マウスを乗せた時に少し透明にする */
}

/* コピーライトのpタグが持つデフォルトの余白を消す */
.footer p {
    margin: 0;
}

/* アニメーション */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out, transform 1s ease-out, visibility 1s ease-out;
}

.reveal-from-left {
    transform: translateX(-50px);
}

.reveal-from-right {
    transform: translateX(50px);
}

.reveal-fade-up {
    transform: translateY(50px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
}

/* Mobile-only line break utility */
.mobile-br {
    display: none;
}

/* Form page title - default PC size */
.form-page-title {
    font-size: 2.5rem;
}

/* Form block inner - default PC styles */
.form-block-inner {
    max-width: 500px;
    margin: 20px auto 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 10px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 250px;
    height: 100vh;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 15px 0;
}

.mobile-nav a {
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* Desktop Defaults */
.price-mobile {
    display: none;
}

/* 右下固定ボタン */
.floating-monitor-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 140px;
    height: 60px;
    background: linear-gradient(145deg, #ff3333, #ff5555);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem;
    z-index: 999;

    /* 凹んだ効果 */
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.2),
        inset -3px -3px 6px rgba(255, 120, 120, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.2);

    transition: all 1.2s ease;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

/* ホバー時の効果 */
.floating-monitor-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.1),
        inset -2px -2px 4px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Hide desktop navigation, show hamburger */
    .navigation {
        display: none !important;
    }

    .hamburger-menu {
        display: block;
    }

    /* Fix text overflow - override inline nowrap */
    .hero-title,
    .hero-subtitle {
        white-space: normal !important;
        word-wrap: break-word;
    }

    /* Show mobile-only line breaks */
    .mobile-br {
        display: inline;
    }

    /* Global font size reductions */
    body {
        font-size: 13px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .contact-description {
        font-size: 0.8rem;
    }

    .contact-text {
        font-size: 1.2rem;
    }

    /* Feature and service items */
    .feature-item,
    .flow-item {
        width: 100%;
        max-width: 350px;
        margin: 10px auto;
    }

    /* Service items - wider and taller for mobile */
    .service-item {
        width: 100%;
        max-width: 90%;
        height: auto;
        min-height: 150px;
        margin: 15px auto;
        padding: 25px 20px;
    }

    .service-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .flow-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Widen transparent background blocks on mobile */
    .services-bg-block,
    .features-bg-block,
    .flow-bg-block {
        margin: 20px 10px;
        padding: 30px 15px;
    }

    /* Comparison table - hide on mobile */
    .price-table {
        display: none;
    }

    /* Show mobile price cards */
    .price-mobile {
        display: block;
        margin-top: 20px;
    }

    .price-card {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        color: #333;
        text-align: left;
    }

    .price-card.sokudeki {
        border: 2px solid #ff4d4d;
    }

    .price-card-header {
        padding: 15px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .price-card.sokudeki .price-card-header {
        background: #ff4d4d;
    }

    .price-card-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .price-card-body {
        padding: 15px;
    }

    .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

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

    .price-label {
        font-weight: bold;
        font-size: 0.85rem;
        color: #555;
        flex: 1;
    }

    .price-value {
        font-weight: bold;
        text-align: right;
        font-size: 0.85rem;
        flex: 1;
    }

    .small-text {
        font-size: 0.7rem;
        color: #777;
        font-weight: normal;
    }

    /* Container padding adjustments */
    .container {
        padding: 10px 5px;
    }

    /* Widen transparent background blocks on mobile */
    .services-bg-block,
    .features-bg-block,
    .flow-bg-block {
        margin: 10px 5px;
        padding: 30px 10px;
    }

    /* Form adjustments */
    .form-page-wrapper {
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .form-block-inner {
        max-width: 90%;
        margin: 20px auto 0 auto;
        padding: 15px;
    }

    /* Thanks page */
    .thanks-container {
        padding: 20px;
    }

    /* Thanks page section - reduce top/bottom padding on mobile */
    #thanks-message {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    #thanks-message .container {
        padding: 30px 20px !important;
    }

    #thanks-message .section-title {
        margin-bottom: 20px;
    }

    /* Form page title - smaller on mobile */
    .form-page-title {
        font-size: 1.3rem;
    }

    /* Footer links - center on mobile */
    .footer-links {
        left: 0 !important;
    }

    /* Floating button mobile adjustment */
    .floating-monitor-button {
        width: 120px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 0.85rem;
        border-radius: 15px;
    }
}

/* =========================================
   Modern Gliding Layout for Works Section
   ========================================= */

.works {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    display: none;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #eee;
    margin-top: -10px;
    opacity: 0.8;
}

.works-showcase {
    display: flex;
    flex-direction: row;
    /* 横並び */
    justify-content: center;
    /* 中央寄せ */
    gap: 60px;
    /* カード間の隙間 */
    padding: 0 40px;
    flex-wrap: wrap;
    /* 画面が狭いときは折り返す */
}

/* Project Card */
.project-card {
    display: flex;
    flex-direction: column;
    /* 縦積み（上が画像、下がテキスト） */
    align-items: center;
    text-align: center;
    cursor: pointer;
    perspective: 1000px;
    width: 45%;
    /* 2つ並ぶので幅を調整 */
    min-width: 400px;
}

/* 交互配置の解除 */
.project-card:nth-child(even) {
    flex-direction: column;
    /* こちらも縦積み */
}

/* Visual Area (Clean Images) */
.project-visual {
    position: relative;
    width: 100%;
    /* アスペクト比を維持しつつ幅いっぱい */
    aspect-ratio: 3 / 2;
    height: auto;
    margin-bottom: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-visual {
    transform: scale(1.02);
}

.image-group {
    position: relative;
    width: 100%;
    height: 100%;
    /* 親要素の中心に配置 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    position: relative;
    /* absoluteから変更して制御しやすく */
    width: 85%;
    height: auto;
    z-index: 1;
    /* drop-shadowは維持 */
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
    /* 配置リセット */
    top: auto;
    left: auto;
    transform: none;
}

.sub-image {
    position: absolute;
    bottom: 5%;
    /* 位置調整 */
    right: 0%;
    /* 少し外に出す */
    width: 25%;
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.project-card:nth-child(even) .sub-image {
    right: 0%;
    /* 偶数番目も同じ位置でOK */
    left: auto;
}

/* ホバー時の動き */
.project-card:hover .main-image {
    transform: translateY(-5px);
}

.project-card:hover .sub-image {
    transform: translateY(-10px);
}


/* Project Info Area */
.project-info {
    width: 100%;
    color: #fff;
    text-align: center;
    /* 中央揃え */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 15px;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.visit-website-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.visit-website-link:hover {
    border-bottom-color: #fff;
    transform: translateY(-2px);
}

.visit-website-link i {
    font-size: 0.8em;
    margin-left: 5px;
}

.project-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: #ffeb3b;
    /* アクセントカラー */
    position: relative;
    padding-left: 40px;
}

.project-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #ffeb3b;
}

.project-title {
    font-size: 1.8rem;
    /* 2.5remから縮小 */
    margin: 0 0 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    /* 少し字間を空けて上品に */
}

.project-desc {
    font-size: 0.95rem;
    /* 1remから縮小 */
    line-height: 1.9;
    /* 行間を少し広めに */
    margin-bottom: 30px;
    color: #eee;
    opacity: 0.9;
}


/* =========================================
   New Fullscreen Modal Styles
   ========================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* 縦スクロール許可 */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    /* 全幅に */
    height: 100vh;
    /* 全画面高さ */
    margin: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    /* 上だけ角丸 */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    /* コンテナ内でスクロール */
    transform: translateY(100%);
    /* 初期位置：画面外の下 */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* 高級感のあるイージング */
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: fixed;
    /* スクロールしても追従するように */
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    z-index: 200;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.3s;
}

.modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #000;
}

/* Modal Content Layout (Inside .modal-container) */
.modal-header {
    background: #f4f4f4;
    padding: 60px 40px 40px;
    text-align: center;
}

.modal-mockup-stage {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    height: auto;
}

.modal-mockup-stage img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-info {
    padding: 60px 80px;
    color: #333;
}

.info-block {
    margin-bottom: 50px;
}

.info-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    display: block;
    border-left: 3px solid #333;
    padding-left: 15px;
}

.info-content {
    font-size: 1.1rem;
    line-height: 2;
}

.modal-gallery {
    padding: 0 80px 80px;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


/* Mobile Responsive for Works */
@media (max-width: 900px) {

    .works-showcase {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        padding: 0;
    }

    .hero {
        min-height: auto;
        padding: 280px 0 190px;
    }

    .works {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .project-card,
    .project-card:nth-child(even) {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
        min-width: auto;
        padding: 0 20px;
        margin-bottom: 40px;
        /* カード間の余白 */
        box-sizing: border-box;
    }

    .project-visual {
        width: 75%;
        margin: 0 auto 15px;
        height: auto;
        aspect-ratio: 16/10;
        transform: translateX(-5%);
        /* 視覚調整：少し左へ */
    }

    .project-info {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-title {
        font-size: 1.4rem;
        /* タイトルを小さく */
    }

    .project-info h3,
    .project-info p,
    .project-info a {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .project-tag {
        justify-content: flex-start;
    }

    .sub-image {
        right: 0;
        width: 28%;
    }

    /* レスポンシブ時は影を削除 */
    .main-image,
    .sub-image {
        filter: none;
    }

    .modal-container {
        margin: 0;
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-info,
    .modal-gallery {
        padding: 40px 20px;
    }
}

/* =========================================
   Case Study Modal Styles
   ========================================= */

.modal-case-study {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    color: #333;
}

.case-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
}

.case-category {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.case-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.case-hero {
    width: 100%;
    /* background: #f0f0f0; */
    text-align: center;
    padding: 0 0 60px;
    /* 上のpaddingをなくし、下にたっぷり取る */
    position: relative;
    /* sticky削除 */
    z-index: 10;
}

.case-hero img {
    max-width: 90%;
    height: auto;
    /* box-shadow: 0 20px 50px rgba(0,0,0,0.15);  影削除 */
    border-radius: 8px;
    margin-top: -30px;
    /* ヘッダーに食い込ませるような演出（お好みで） */
}

/* モーダルアニメーションの再定義（確実に動かすためkeyframesを使用） */
@keyframes slideUpPanel {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideDownPanel {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* コンテナではなくモーダル自体をスクロールさせる */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: block;
    /* opacity制御はJSかkeyframesで行うが、今回はシンプルに表示 */
}

.modal.active .modal-backdrop {
    animation: fadeInBackend 0.4s ease forwards;
    /* 背景はスクロールしても固定されるようにfixedのまま（HTML構造上は兄弟要素なのでOK） */
    position: fixed;
}

.modal.active .modal-container {
    animation: slideUpPanel 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* 閉じる時のアニメーション */
.modal.closing .modal-backdrop {
    /* パネルが下がるより先に、背景をサッと消す */
    animation: fadeOutBackend 0.2s ease-out forwards;
}

.modal.closing .modal-container {
    animation: slideDownPanel 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInBackend {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOutBackend {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* 元のtransitionを含む定義は上書き/無効化されるように調整 */
.modal-container {
    position: relative;
    /* 背景の上に表示 */
    z-index: 2;
    width: 100%;
    max-width: 100%;
    /* 高さはコンテンツなりに伸びるように */
    min-height: 100%;
    height: auto;
    margin: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    /* ここでのスクロールは無効化 */
    overflow: visible;
    padding-bottom: 100px;
    /* 下端の余白確保 */
    transform: translateY(100%);
    /* 初期状態 */
    /* transitionは削除し、animationに任せる */
}

.case-body {
    padding: 60px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.case-section {
    margin-bottom: 60px;
}

.case-section h3 {
    font-size: 1.1rem;
    /* 少し小さく */
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    /* 左線ではなく下線に */
    padding-bottom: 10px;
    color: #333;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-section p {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
}

.case-section ul {
    list-style: none;
    padding: 0;
}

.case-section ul li {
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #444;
}

.case-section ul li::before {
    content: "✔";
    color: #333;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

.case-divider {
    height: 1px;
    background: #eee;
    margin: 60px 0;
}

.case-gallery h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.gallery-caption {
    font-size: 0.9rem;
    color: #888;
}

.case-footer {
    text-align: center;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.credits {
    font-size: 0.9rem;
    color: #999;
}

/* Modal Scrollbar Customization */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .case-body {
        padding: 40px 20px;
    }

    .case-hero img {
        max-width: 95%;
    }

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

/* モニター募集フローティングボタン */
.floating-monitor-button {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    color: white;
    padding: 10px 20px;
    /* パディングを縮小して高さを抑える */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    /* 文字サイズも少し小さく */
    box-shadow: 0 4px 15px rgba(255, 78, 80, 0.4);
    z-index: 9999;
    animation: floatAnimation 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
    /* 幅や高さの指定があれば削除して中身にフィットさせる */
    width: auto;
    height: auto;
}

/* Visit Site Button */
.visit-site-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.visit-site-btn:hover {
    transform: translateY(-3px);
    background: #333;
    text-decoration: none;
    color: #fff;
}

.visit-site-btn i {
    margin-left: 8px;
}

/* Metadata (Role) */
.case-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.05em;
}

.meta-role {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
}

/* =========================================
   Form Page Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {

    /* フォームページのタイトル */
    .form-page-title {
        font-size: 1.5rem !important;
        /* インラインスタイルを上書き */
        margin-bottom: 30px !important;
    }

    /* 説明文 */
    .contact-description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        padding: 0 10px;
    }

    /* フォーム項目ラベル */
    .form-group label {
        font-size: 0.9rem;
    }

    /* 入力欄 */
    .contact-input {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* 送信ボタン調整 */
    .contact-button {
        font-size: 0.85rem !important;
        /* 文字を小さくして確実に収める */
        padding: 12px 5px !important;
        /* パディング調整 */
        white-space: nowrap;
        /* 改行させない */
        width: 100% !important;
        max-width: 100% !important;
        letter-spacing: 0.02em;
    }
}

/* 説明文の文字サイズを全体的に小さく調整 */
.contact-description {
    font-size: 0.85rem !important;
    /* PCも少し小さく */
}

@media (max-width: 768px) {
    .contact-description {
        font-size: 0.8rem !important;
        /* スマホはさらに小さく */
        line-height: 1.7 !important;
    }
}

/* スマホのみ改行 */
.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }
}

/* =========================================
   Plan Selection Styles
   ========================================= */
.plan-group {
    margin-top: 30px;
    text-align: left;
}

.plan-card {
    display: flex;
    align-items: flex-start;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* 丸の中のカタログっぽく */
}

.plan-card:hover {
    background: #fff;
    border-color: #aaa;
}

/* ラジオボタンがチェックされた時のスタイル */
.plan-card:has(input[type="radio"]:checked) {
    background: #fffcf0;
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* ラジオボタン本体（微調整） */
.plan-card input[type="radio"] {
    margin-top: 5px;
    margin-right: 15px;
    transform: scale(1.3);
    /* 少し大きく */
    accent-color: #ffd700;
    flex-shrink: 0;
}

.plan-info {
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .plan-card {
        padding: 12px;
    }

    .plan-name {
        font-size: 0.95rem;
    }

    .plan-desc {
        font-size: 0.8rem;
    }
}

/* プラン価格表示のスタイル */
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* 価格は下揃えで見やすく */
    width: 100%;
    margin-bottom: 5px;
}

.plan-price {
    font-weight: bold;
    color: #e63b3b;
    /* 価格を目立たせる */
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 10px;
}

.tax {
    font-size: 0.75rem;
    color: #666;
    font-weight: normal;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .plan-price {
        margin-left: 0;
        font-size: 1rem;
    }
}

/* プラン注釈 */
.plan-note {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #e63b3b;
    font-weight: normal;
}

/* 受付時間外のスタイル */
.plan-disabled {
    opacity: 0.6;
    background: #eaeaea;
    cursor: not-allowed;
    border-color: #ccc;
    pointer-events: none;
    /* クリック無効化 */
}