@charset "UTF-8";

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* === カラーパレット・基本設定 === */
:root {
    --orange-vivid: #F27B35;
    --orange-light: #F5A623;
    --orange-gradient: linear-gradient(135deg, #F5A623 0%, #F27B35 100%);
    --green-soft: #8CC63F;
    --green-pale: #E8F5E0;
    --green-face: #A8D8A0;
    --cream: #FFF9F2;
    --cream-deep: #FFF3E6;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-body: #4A4A4A;
    --text-muted: #7A7A7A;
    --border-soft: #F0E8E0;
    --shadow-warm: 0 4px 20px rgba(242, 123, 53, 0.10);
    --shadow-card: 0 6px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(242, 123, 53, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-body);
    line-height: 1.85;
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

a { text-decoration: none; color: var(--text-dark); transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

/* === ヘッダー === */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--cream-deep);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo-area a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text-dark);
    white-space: nowrap;
}
.logo-img { height: 40px; width: auto; }

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}
nav a {
    display: block;
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-body);
    transition: all 0.25s ease;
    white-space: nowrap;
}
nav a:hover {
    background: var(--cream-deep);
    color: var(--orange-vivid);
}
/* currentとheader-ctaを明確に区別 */
nav a.current {
    background: var(--cream-deep);
    color: var(--orange-vivid);
    border: 2px solid var(--orange-vivid);
    padding: 5px 14px;
}
.header-cta {
    background: var(--orange-gradient) !important;
    color: #fff !important;
    padding: 9px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 3px 12px rgba(242, 123, 53, 0.28) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 123, 53, 0.4) !important;
    background: linear-gradient(135deg, #F5A623 0%, #E06820 100%) !important;
}

/* === ハンバーガーメニュー（スマホ用） === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* === メイちゃん吹き出し（案内役） === */
.mei-guide {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 28px 0;
    animation: meiSlideIn 0.5s ease-out;
}
.mei-guide.reverse { flex-direction: row-reverse; }
.mei-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cream-deep);
    border: 3px solid var(--cream-deep);
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.mei-avatar.small { width: 52px; height: 52px; }
.mei-avatar.large { width: 96px; height: 96px; }

.mei-bubble {
    background: var(--white);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    position: relative;
    max-width: 680px;
    box-shadow: var(--shadow-card);
    font-size: 0.97rem;
    line-height: 1.85;
}
.mei-bubble::before {
    content: '';
    position: absolute;
    left: -11px; top: 22px;
    width: 0; height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 11px solid var(--border-soft);
}
.mei-bubble::after {
    content: '';
    position: absolute;
    left: -8px; top: 24px;
    width: 0; height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid var(--white);
}
.reverse .mei-bubble::before { left: auto; right: -11px; border-right: none; border-left: 11px solid var(--border-soft); }
.reverse .mei-bubble::after  { left: auto; right: -8px;  border-right: none; border-left: 9px solid var(--white); }
.mei-bubble .mei-name {
    display: inline-block;
    background: var(--orange-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 11px;
    border-radius: 50px;
    margin-bottom: 7px;
    letter-spacing: 0.05em;
}
.mei-bubble strong { color: var(--orange-vivid); }
.mei-bubble em {
    font-style: normal;
    background: var(--cream-deep);
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 700;
    color: var(--text-dark);
}
@keyframes meiSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === トップページ：ヒーロー === */
.hero {
    background: var(--white);
    padding: 80px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--orange-gradient);
}
.hero-character {
    width: 130px;
    margin: 0 auto 28px;
    display: block;
    animation: heroFloat 3s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero h1 {
    font-size: 2.2rem;
    line-height: 1.6;
    margin-bottom: 22px;
    color: var(--text-dark);
    font-weight: 800;
}
.hero .highlight {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 34px;
    font-weight: 500;
    line-height: 1.9;
}

/* === ボタン === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-gradient);
    color: #fff;
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 22px rgba(242, 123, 53, 0.28);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: #fff; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--orange-vivid);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.97rem;
    border: 2px solid var(--orange-vivid);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover { background: var(--cream-deep); transform: translateY(-2px); color: var(--orange-vivid); }

/* === セクション共通 === */
.section { padding: 80px 0; }
.section.bg-white { background: var(--white); }
.section.bg-cream  { background: var(--cream); }
.section.bg-green  { background: var(--green-pale); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 1.85rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.section-sub { display: block; color: var(--orange-vivid); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.section-line { display: block; width: 48px; height: 3px; background: var(--orange-gradient); margin: 0 auto; border-radius: 2px; }

/* === MVVカード === */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.mvv-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--orange-vivid);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.mvv-card h3 { color: var(--orange-vivid); margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.mvv-card h4 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; color: var(--text-dark); line-height: 1.6; }
.mvv-card p, .mvv-card li { color: var(--text-body); font-size: 0.92rem; line-height: 1.85; }

/* === お知らせ === */
.news-list {
    background: var(--white);
    padding: 30px 38px;
    border-radius: var(--radius-md);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}
.news-item { display: flex; gap: 24px; padding: 15px 0; border-bottom: 1px dashed var(--border-soft); align-items: baseline; }
.news-item:last-child { border-bottom: none; }
.news-date { font-weight: 700; color: var(--orange-vivid); white-space: nowrap; font-size: 0.87rem; letter-spacing: 0.04em; }

/* === 下層ページ共通 === */
main.page-content {
    background: var(--white);
    max-width: 860px;
    margin: 48px auto;
    padding: 52px 64px;
    border-radius: var(--radius-lg);
    /* border-image は border-radius と併用不可のため box-shadow で上部ラインを代替 */
    box-shadow: 0 -4px 0 var(--orange-vivid), var(--shadow-card);
}
main.page-content h1 { font-size: 1.85rem; text-align: center; margin-bottom: 14px; font-weight: 800; color: var(--text-dark); }
.page-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 44px; font-size: 0.95rem; line-height: 1.85; }
main.page-content h2 { font-size: 1.4rem; color: var(--text-dark); margin-top: 52px; margin-bottom: 20px; border-left: 5px solid var(--orange-vivid); padding-left: 14px; font-weight: 800; line-height: 1.5; }
main.page-content h3 { font-size: 1.12rem; margin-top: 30px; color: var(--orange-vivid); font-weight: 700; }
main.page-content p { color: var(--text-body); font-size: 0.95rem; line-height: 1.9; }

/* === サービスカード === */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.service-card { background: var(--white); border: 1.5px solid var(--border-soft); border-radius: var(--radius-md); padding: 30px 24px; text-align: center; transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--orange-vivid); }
.service-icon { width: 66px; height: 66px; margin: 0 auto 16px; background: var(--cream-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.85rem; }
.service-card h3 { font-size: 1.02rem !important; color: var(--text-dark) !important; margin: 0 0 10px !important; border: none; line-height: 1.55; }
.service-card p { font-size: 0.88rem; line-height: 1.85; color: var(--text-muted); }

/* === 契約モデル === */
.contract-wrap { display: flex; gap: 18px; margin-top: 26px; }
.contract-box { flex: 1; background: var(--cream); padding: 24px; border-radius: var(--radius-md); border-left: 5px solid var(--text-dark); }
.contract-box.continuous { border-left-color: var(--orange-vivid); }
.contract-box h4 { margin: 0 0 10px; font-size: 1.02rem; color: var(--text-dark); line-height: 1.5; }

/* === Before/After === */
.before-after-wrap { display: flex; gap: 18px; margin-bottom: 44px; }
.box-before, .box-after { flex: 1; padding: 26px; border-radius: var(--radius-md); }
.box-before { background: #FFF5F5; border-top: 5px solid #FF6B6B; }
.box-after  { background: #F0F8FF; border-top: 5px solid #4DABF7; }
.ba-title { font-size: 1.08rem; font-weight: 800; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1.5px solid rgba(0,0,0,0.05); }
.box-before .ba-title { color: #E03131; }
.box-after  .ba-title { color: #1971C2; }
.ba-list { list-style: none; padding: 0; margin: 0; }
.ba-list li { position: relative; padding-left: 32px; margin-bottom: 13px; line-height: 1.78; font-size: 0.92rem; color: var(--text-body); }
.box-before .ba-list li::before { content: "×"; position: absolute; left: 0; background: #E03131; color: #fff; width: 21px; height: 21px; border-radius: 50%; text-align: center; line-height: 21px; font-weight: 700; font-size: 0.8rem; }
.box-after  .ba-list li::before { content: "✓"; position: absolute; left: 0; background: #1971C2; color: #fff; width: 21px; height: 21px; border-radius: 50%; text-align: center; line-height: 21px; font-weight: 700; font-size: 0.8rem; }

/* === プロジェクト概要 === */
.project-summary { background: var(--cream); border-left: 5px solid var(--orange-vivid); padding: 20px 28px; border-radius: var(--radius-sm); margin-bottom: 38px; }
.project-summary ul { list-style: none; padding: 0; margin: 0; line-height: 2.1; color: var(--text-dark); }

/* === ロードマップ === */
.roadmap-box { background: var(--white); border: 1.5px solid var(--border-soft); padding: 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.step-row { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.step-row:last-child { margin-bottom: 0; }
.step-badge { background: var(--orange-gradient); color: #fff; padding: 7px 18px; border-radius: 50px; font-weight: 700; font-size: 0.86rem; white-space: nowrap; flex-shrink: 0; }
.step-badge.future { background: var(--text-dark); }
.step-content h4 { margin: 0 0 6px; font-size: 1.02rem; color: var(--text-dark); font-weight: 700; }
.step-content p { margin: 0; font-size: 0.92rem; color: var(--text-body); line-height: 1.85; }

/* === 会社概要テーブル === */
.company-table { width: 100%; border-collapse: collapse; margin-top: 26px; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.company-table th, .company-table td { border: 1px solid var(--border-soft); padding: 15px 18px; text-align: left; }
.company-table th { background: var(--cream); width: 26%; font-weight: 700; color: var(--text-dark); font-size: 0.92rem; }
.company-table td { color: var(--text-body); line-height: 1.75; font-size: 0.92rem; }

/* === お問い合わせフォーム === */
.contact-form-wrap { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 6px; }
.form-group label .required { display: inline-block; background: var(--orange-vivid); color: #fff; font-size: 0.67rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.form-group label .optional { display: inline-block; background: #bbb; color: #fff; font-size: 0.67rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--text-body);
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange-vivid);
    box-shadow: 0 0 0 3px rgba(242, 123, 53, 0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.8; }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}
.form-submit-wrap { text-align: center; margin-top: 30px; }
.form-submit-wrap .btn-primary { padding: 15px 50px; font-size: 1rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; text-align: center; }
.form-success {
    display: none;
    background: var(--green-pale);
    border: 2px solid var(--green-soft);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin-top: 20px;
}
.form-success h3 { color: #2d7a2d; margin: 0 0 10px; font-size: 1.15rem; }
.form-success p { color: #4a7a4a; margin: 0; font-size: 0.92rem; }

/* === お問い合わせCTAセクション === */
.cta-section { background: var(--cream-deep); padding: 56px 0; text-align: center; }
.cta-section .cta-inner { background: var(--white); max-width: 600px; margin: 0 auto; padding: 42px 38px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.cta-section .cta-mei { width: 72px; margin: 0 auto 12px; display: block; }
.cta-section h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin: 0 0 8px; }
.cta-section p { color: var(--text-muted); margin: 0 0 24px; font-size: 0.92rem; line-height: 1.85; }
.cta-section .tel-number { font-size: 1.5rem; font-weight: 800; color: var(--orange-vivid); display: block; margin-bottom: 5px; }
.cta-section .tel-note { font-size: 0.78rem; color: var(--text-muted); }

/* === フッター === */
footer { background: #ffffff; color: var(--text-dark); text-align: center; padding: 30px 0; font-size: 0.82rem; border-top: 1px solid #e8d9c8; }

/* === ユーティリティ === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }
.highlight-box { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 18px 24px; margin: 16px 0; border-left: 4px solid var(--orange-vivid); }

/* ===================================================
   レスポンシブ
   =================================================== */

/* タブレット */
@media (max-width: 900px) {
    .mvv-grid { grid-template-columns: 1fr; gap: 16px; }
    main.page-content { padding: 42px 40px; }
}

/* スマホ */
@media (max-width: 768px) {
    body { font-size: 14px; }

    /* ヘッダー */
    .header-inner { height: 60px; }
    .logo-area a { font-size: 0.9rem; }
    .logo-img { height: 32px; }

    /* ハンバーガー表示 */
    .hamburger { display: flex; }

    /* ナビ：ドロワー */
    nav {
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        border-bottom: 2px solid var(--cream-deep);
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    nav.open { max-height: 420px; padding: 10px 0 18px; }
    nav ul { flex-direction: column; gap: 2px; padding: 0 18px; }
    nav a { font-size: 0.95rem; padding: 11px 14px; border-radius: var(--radius-sm); text-align: left; white-space: normal; }
    nav a.current { padding: 9px 12px; }
    .header-cta { text-align: center; border-radius: var(--radius-sm) !important; }

    /* ヒーロー */
    .hero { padding: 46px 0 54px; }
    .hero h1 { font-size: 1.5rem; line-height: 1.65; }
    .hero-character { width: 95px; }
    .hero-sub { font-size: 0.92rem; }

    /* セクション */
    .section { padding: 52px 0; }
    .section-header h2 { font-size: 1.4rem; }

    /* ページコンテンツ */
    main.page-content { padding: 28px 20px; margin: 16px 12px; border-radius: var(--radius-md); }
    main.page-content h1 { font-size: 1.5rem; }
    main.page-content h2 { font-size: 1.2rem; margin-top: 36px; }

    /* カード群 */
    .service-grid { grid-template-columns: 1fr; gap: 14px; }
    .before-after-wrap { flex-direction: column; gap: 14px; }
    .contract-wrap { flex-direction: column; gap: 14px; }

    /* メイちゃん */
    .mei-guide { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .mei-bubble::before, .mei-bubble::after { display: none; }
    .mei-bubble { padding: 14px 16px; font-size: 0.92rem; }

    /* ニュース */
    .news-list { padding: 22px 18px; }
    .news-item { flex-direction: column; gap: 3px; }

    /* CTA */
    .cta-section { padding: 40px 14px; }
    .cta-section .cta-inner { padding: 28px 20px; }
    .cta-section .tel-number { font-size: 1.3rem; }

    /* テーブル */
    .company-table { font-size: 0.83rem; }
    .company-table th, .company-table td { padding: 11px 12px; }
    .company-table th { width: 34%; }

    /* ロードマップ */
    .roadmap-box { padding: 22px 16px; }
    .step-row { gap: 10px; }

    /* フォーム */
    .form-submit-wrap .btn-primary { width: 100%; justify-content: center; }
}

/* 小型スマホ */
@media (max-width: 375px) {
    .hero h1 { font-size: 1.3rem; }
    .logo-area a .company-name { display: none; }
}

/* ===== フッター SNSリンク ===== */
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
.footer-sns a {
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    opacity: 0.85;
}
.footer-sns a:hover {
    opacity: 1;
}
.footer-sns a[aria-label="Facebook"] {
    color: #1877F2 !important;
}
.footer-sns a[aria-label="X(Twitter)"] {
    color: #000000 !important;
}
