/* ================================================
   リセット & 基本設定
================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

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

/* ================================================
   ヘッダー
================================================ */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

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

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #2563eb;
}

.btn-primary-small {
    background-color: #2563eb;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary-small:hover {
    background-color: #1d4ed8;
}

/* ================================================
   ファーストビュー
================================================ */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #f59e0b;
    color: #fff;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #fff;
    color: #667eea;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* ================================================
   共通セクションスタイル
================================================ */
section {
    padding: 80px 0;
}

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

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 50px;
}

/* ================================================
   こんな方におすすめ
================================================ */
.target {
    background-color: #f9fafb;
}

.check-list {
    max-width: 800px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.check-icon {
    font-size: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
}

.check-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ================================================
   AIでできること
================================================ */
.ai-examples {
    background-color: #fff;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.example-card {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.example-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2563eb;
}

.before-after {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.before, .after {
    padding: 15px;
    border-radius: 8px;
}

.before {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
}

.after {
    background-color: #f0fdf4;
    border-left: 4px solid #10b981;
}

.label {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.before .label {
    color: #ef4444;
}

.after .label {
    color: #10b981;
}

.arrow {
    text-align: center;
    font-size: 1.5rem;
    color: #6b7280;
}

/* ================================================
   実績ポートフォリオ
================================================ */
.portfolio {
    background-color: #f9fafb;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
    max-width: 100%;
    overflow-x: hidden;
}

.portfolio-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.portfolio-item-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    text-align: center;
}

.portfolio-item {
    width: min(900px, 100%);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    position: relative;
}

.portfolio-item iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

.portfolio-link {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

.portfolio-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.portfolio-link a:hover {
    text-decoration: underline;
}

/* ================================================
   提供サービス
================================================ */
.services {
    background-color: #fff;
}

.service-card {
    background-color: #f9fafb;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 5px solid #2563eb;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.service-card li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.price {
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.2rem;
}

.fp-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.fp-category h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

.note {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 20px;
}

/* ================================================
   選ばれる理由
================================================ */
.reasons {
    background-color: #f9fafb;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reason-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reason-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

.reason-card p {
    line-height: 1.8;
}

/* ================================================
   よくある質問
================================================ */
.faq {
    background-color: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #f9fafb;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.faq-question, .faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.q-mark, .a-mark {
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.q-mark {
    color: #2563eb;
}

.a-mark {
    color: #10b981;
}

.faq-question {
    margin-bottom: 15px;
}

.faq-question p {
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-answer p {
    line-height: 1.8;
}

/* ================================================
   お問い合わせフォーム
================================================ */
.contact {
    background-color: #f9fafb;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.required {
    color: #ef4444;
    font-size: 0.9rem;
    margin-left: 5px;
}

.optional {
    color: #6b7280;
    font-size: 0.9rem;
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.contact-line {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.contact-line p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #374151;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.contact-line a img {
    width: 150px;
    height: auto;
    display: block;
    margin: 15px auto;
}

.btn-line {
    display: inline-block;
    background-color: #06c755;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-line:hover {
    background-color: #05a847;
    transform: translateY(-2px);
}

/* ================================================
   フッター
================================================ */
.footer {
    background-color: #1f2937;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.footer-subtitle {
    font-size: 1rem;
    color: #9ca3af;
}

.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-contact a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ================================================
   レスポンシブ対応
================================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

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

    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .examples-grid,
    .reasons-grid,
    .fp-services {
        grid-template-columns: 1fr;
    }

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

    .portfolio-item-wrapper {
        max-width: 100%;
    }

    .portfolio-item {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .contact-form {
        padding: 25px;
    }
}
/* 画像を箱いっぱいに綺麗に収める設定 */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の縦横比を保ったまま隙間なく埋める */
    display: block;
}

/* リンク全体のエリア設定 */
.portfolio-link-custom {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* マウスを乗せた時に少し浮かせる演出（お好みで） */
.portfolio-link-custom:hover .portfolio-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ホバー時に「デモを見る」という文字を出す（お好みで） */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-link-custom:hover .portfolio-overlay {
    opacity: 1;
}