/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: #2563eb; /* 初期は青 */
    color: white;              /* 初期は白文字 */
    border: 2px solid #2563eb; /* 枠線を青に */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;    /* ホバー時は白背景 */
    color: #2563eb;            /* ホバー時は青文字 */
    border: 2px solid #2563eb; /* 枠線は青のまま */
    transform: translateY(-2px); /* 動きは残す */
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
}

.logo i {
    font-size: 32px;
    color: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.header .phone-number {
    background-color: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 6px;

    /* ボタンと同じサイズ感に合わせる */
    font-size: 1rem;          /* お問い合わせボタンと同じ文字サイズ */
    font-weight: 600;
    line-height: 1.5;
    padding: 10px 20px;       /* 上下左右の余白をbtnと同じくらいに */
    
    display: inline-flex;
    align-items: center;
    gap: 8px;                 /* アイコンと文字の間 */
    text-decoration: none;
    cursor: pointer;
}

.header .phone-number i {
    font-size: 1rem;          /* アイコンの大きさも揃える */
    color: #2563eb;
}

/* ホバー時は反転 */
.header .phone-number:hover {
    background-color: #2563eb;
    color: #fff;
}
.header .phone-number:hover i {
    color: #fff;
}

/* LINEで相談ボタンにふわっと浮くアニメーションを追加 */
.header .phone-number {
    transition: all 0.3s ease;   /* アニメーション効果を効かせる */
}

.header .phone-number:hover {
    background-color: #2563eb;
    color: #fff;
    transform: translateY(-2px); /* 少し上に動く */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 影も付けると一体感UP */
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 1) 50%, rgba(168, 85, 247, 0.1) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr; /* 左テキスト:右画像 */
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background-color: #f3f4f6;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 24px;
}

.text-primary {
    color: #2563eb;
}

.hero-description {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Hero内 LINEで相談ボタンの動きを追加 */
.hero .btn-outline,
.hero .btn-secondary {
    transition: all 0.3s ease;  /* 動きをつける */
}

.hero .btn-outline:hover,
.hero .btn-secondary:hover {
    transform: translateY(-2px); /* ちょっと浮く */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 影 */
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

/* スライドのドットを画像の下に配置 */
.hero-image{
  display: flex;
  flex-direction: column;   /* ← これで縦並び */
  align-items: center;      /* 横中央 */
  justify-content: center;  /* 縦位置も中央（お好みで） */
}

/* 念のためのリセット＆余白 */
.slideshow-dots{
  position: static;
  margin-top: 12px;
  align-self: center;
  text-align: center;
}

.hero-top-image {
    max-width: 100%;      /* 枠からはみ出さない */
    max-height: 700px;    /* 高さを制限（お好みで調整） */
    height: auto;         /* 縦横比を維持 */
    object-fit: contain;  /* 全体を縮小して収める */
    display: block;
    margin: 0 auto;       /* 中央寄せ */
    /* border-radius: 12px;  角丸にしたい場合 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* ほんのり影 */
}

.hero-truck {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-truck i {
    font-size: 128px;
    color: rgba(37, 99, 235, 0.6);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.slideshow-dots {
  text-align: center;
  margin-top: 12px;
}

.slideshow-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slideshow-dots span.active {
  background-color: #2563eb; /* 青でアクティブを強調 */
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: rgba(249, 250, 251, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 32px;
    color: #2563eb;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.feature-card p {
    color: #6b7280;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.service-card li i {
    color: #2563eb;
    font-size: 16px;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: rgba(249, 250, 251, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.price-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card.popular {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2563eb;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.price-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 8px;
}

.price-description {
    color: #6b7280;
    margin-bottom: 24px;
}

.price-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.price-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.price-card li i {
    color: #2563eb;
    font-size: 16px;
}

.price-note {
    font-size: 12px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

/* Service Areas */
.service-areas {
    padding: 80px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.area-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.area-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-card h3 i {
    color: #2563eb;
}

.cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.cities span {
    font-size: 14px;
    color: #6b7280;
}

.area-note {
    font-size: 12px;
    color: #6b7280;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: rgba(249, 250, 251, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    position: relative;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.customer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.customer-photo img {
    width: 80px;  /* 顔写真のサイズ */
    height: 80px;
    border-radius: 50%; /* 丸くする */
    object-fit: cover; /* はみ出さないように */
    border: 2px solid #ddd; /* 枠線（任意） */
}

.stars {
    margin-bottom: 16px;
}

.stars i {
    color: #fbbf24;
    margin-right: 4px;
}

.testimonial-card p {
    color: #6b7280;
    margin-bottom: 24px;
    font-style: italic;
}

.customer-name {
    font-weight: 600;
}

.customer-location {
    color: #6b7280;
    font-size: 14px;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

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

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #2563eb;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 24px 0;
    color: #6b7280;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: #2563eb;
    color: white;
}

.contact .section-header h2,
.contact .section-header p {
    color: white;
}

.contact .section-header p {
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-method i {
    font-size: 24px;
    margin-top: 4px;
}

.method-title {
    font-weight: 600;
    margin-bottom: 8px;
}

/* メールを太字・大きく、電話の受付時間は通常 */
.email,
.email + .method-note {
    font-size: 32px;       /* 大きめ */
    font-weight: bold;     /* 太字 */
    margin-bottom: 4px;
}

/* 電話番号と受付時間を通常に戻す */
.phone-large,
.contact-method .method-note {
    font-size: 1rem;       /* 通常サイズ */
    font-weight: normal;   /* 通常の太さ */
}

.email a {
    color: #fff;          /* 白に変更（見やすい色に） */
    font-weight: bold;    /* 太字 */
    text-decoration: none; /* 下線なし */
}

.email a:hover {
    color: #000;          /* ホバー時だけ黒にする */
    text-decoration: underline;
}

.form-card {
    background: white;
    color: #333;
    padding: 32px;
    border-radius: 12px;
}

.form-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Footer */
.footer {
    padding: 48px 0;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 24px;
    color: #2563eb;
}

.footer-section p {
    color: #6b7280;
    font-size: 14px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.footer-contact div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-contact i {
    color: #2563eb;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #2563eb;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #1d4ed8;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .header-actions .phone-number {
        display: none;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-content {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background-color: white;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-overlay.active .mobile-menu-content {
        right: 0;
    }
    
    .mobile-menu-content .phone-number {
        display: block;
        margin-bottom: 20px;
        padding: 15px;
        background-color: #f3f4f6;
        border-radius: 8px;
        text-align: center;
    }
    
    .mobile-menu-content .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .services-grid,
    .pricing-grid,
    .areas-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .features,
    .services,
    .pricing,
    .service-areas,
    .testimonials,
    .faq,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .phone-large {
        font-size: 24px;
    }
}

/* ========== Hero(トップの文字と画像)をフルブリード（左右の余白ゼロ）にする ========== */
.hero .container{
    /* max-width: none;   1200pxの制限を外す */
    width: 100%;
    /* padding-left: 0;   両サイドの20pxパディングを消す */
    /* padding-right: 0; */
}

/* 画像を右端まで、テキストを左端まで寄せる */
.hero-content{
    gap: 8px;                 /* お好みで間隔 */
}

.hero-top-image{
    width: 100%;               /* カラム幅いっぱい */
    height: auto;
    margin: 0;                 /* 中央寄せを解除 */
    /* object-fit: contain のままでOK（全体を見せたい場合）
       欲しければ cover にすると“端までピタッと”感が強まります */
    /* object-fit: cover; */
}

/* スマホでは端ギリを避ける（見やすさ用） */
@media (max-width: 768px){
    .hero .container{
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 会社の理念等の間隔空ける */
.features.philosophy h3 {
  margin-top: 28px;   /* 上にゆとり */
  margin-bottom: 6px; /* タイトルと本文の間は少しだけ */
  font-weight: bold;
}

.features.philosophy p {
  margin-bottom: 16px; /* 段落の下に余白 */
  line-height: 1.8;    /* 読みやすさUP */
}

/* 代表写真＋名前を縦並びで右下固定 */
.story-card { position: relative; }

.story-card .rep-info{
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex !important;        /* 縦並びを強制 */
  flex-direction: column !important;
  align-items: center;              /* 中央寄せ */
  text-align: center;
  gap: 6px;
}

.story-card .rep-photo{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: block;
}

.story-card .rep-name{
  display: block;
  margin-top: 2px;
  font-weight: 700;
  font-size: 14px;
  color: #333;
  white-space: nowrap; /* 代表 小林 正明 を1行に */
}

/* トップへ戻るボタンの影を強調 */
.scroll-to-top {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2)!important;
}

.rep-info {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px; /* 画像と文字の間隔 */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px; /* アイコンと文字の間隔 */
}

.footer-logo-text {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  line-height: 1.3;
}

.footer-main {
  font-size: 18px;
  font-weight: bold;
}

.footer-sub {
  font-size: 14px;
  color: #666; /* サブ文字を少し薄めに */
}

/* 約束リストの可読性UP */
.promises {
  margin: 8px 0 0 0;
  padding-left: 0.3em;     /* 左インデント */
  list-style: none;        /* 既定の丸を消す */
}
.promises li {
  margin: 6px 0;
  position: relative;
  padding-left: 1.2em;     /* アイコン分の余白 */
}
.promises li::before {
  content: "✓";            /* 代替アイコン（FAが無くても表示） */
  position: absolute;
  left: 0;
  top: 0.1em;
  font-weight: 700;
}

/* 画面外に隠しておく */
.nav{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  transform: translateX(-100%);
  transition: transform .4s;
  z-index: 1000;
}
/* 表示状態（前者と同じ考え方） */
.nav.active{ transform: translateX(0); } /* ← “前者”もここで出しています */

/* 右上ボタンの見た目＆位置 */
.header { position: sticky; top: 0; z-index: 1100; }
.header .header__btn{
  position: absolute; /* 右上固定にする場合 */
  top: 12px;
  right: 16px;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #2563eb; color:#fff;
}

/* PCでは右上ボタンを消す（前者もPCで非表示） */
@media (min-width:769px){
  .header .header__btn{ display:none; } /* 前者もPCで非表示になっています */ /* :contentReference[oaicite:3]{index=3} */
}

/* 背景スクロール抑止 */
body.menu-open{ overflow:hidden; }

/* メニュー内テキストの最低限 */
.nav__list{ margin: 72px 24px 0; }
.nav__item{ margin: 0 0 20px; }
.nav__item a{ color:#fff; font-size:18px; }

/* メニュー本体：左から出す想定 */
.nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  transform: translateX(-100%);
  transition: transform .4s;
  z-index: 1000;
}
.nav.active { transform: translateX(0); }

/* ヘッダー行と×ボタン */
.nav__header { 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 12px 16px;
}

.nav__btn{
  position: absolute;
  top: 12px; 
  right: 12px;
  width: 44px; 
  height: 44px;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  font-size: 24px; 
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;   /* 念のため有効化 */
}

/* 背景スクロールを止める */
body.menu-open { overflow: hidden; }

/* 右上の開くボタン */
.header { position: sticky; top: 0; z-index: 1100; }
.header .header__btn{
  position: absolute;
  top: 12px;
  right: 16px;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px;
  background: #2563eb; color:#fff;
}
@media (min-width: 769px){ .header .header__btn{ display:none; } }

/* ナビを最前面に */
.nav { z-index: 4000; }

/* ×ボタンも確実に前面＆右上に */
.nav__header { position: relative; }
.nav__btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  z-index: 4100;
}

/* メニュー表示中はヘッダーへのクリックを通さない（被り対策） */
body.menu-open .header { pointer-events: none; }

/* （任意）メニュー表示中は右上の≡を見えなくする */
body.menu-open .header__btn { opacity: 0; }

@media (max-width: 768px){
  .header-content{
    display: flex; align-items: center; justify-content: space-between;
  }
  .header-actions{
    display: flex; align-items: center; gap: 8px;
  }
  /* ハンバーガーはフロー配置に（被らない） */
  .header .header__btn{
    position: static; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  /* モバイルで大ボタンやLINEはヘッダーからは隠す（必要なら） */
  .header-actions .btn,
  .header-actions .phone-number{ display: none; }
}

/* 右上×ボタン 確定版（styles.css の末尾に貼る） */
.nav, .nav__header { overflow: visible; }   /* 枠のクリップ防止 */
.nav { z-index: 4000; }

.nav__header{ position: relative; padding: 12px 16px; }

.nav__btn{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color:#fff;
  box-shadow: inset 0 0 0 2px #2563eb;  /* ← 青い枠（内側リング） */
  border: none;
  border-radius: 10px;
  font-size: 20px; line-height: 1; font-weight: 700;
  cursor: pointer;
  z-index: 4100;
  transform: translateZ(0);              /* サブピクセル対策 */
}

.nav__btn:hover{ background: rgba(37,99,235,.15); }
.nav__btn:focus-visible{ outline: 3px solid #93c5fd; outline-offset: 2px; }

@supports (padding: max(0px)) {
  .nav__btn{
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* 1) 横スクロールを全体で無効化 */
html, body { width: 100%; overflow-x: clip; }       /* 近代ブラウザ */
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }                /* 古いブラウザ用 */
}

/* 2) オフキャンバスのチラ見え防止（少し余分に左へ逃がす） */
.nav{
  /* すでに position:fixed; top/right/bottom/left:0 相当(inset:0) でOK */
  transform: translate3d(-105%, 0, 0);  /* -100% → -105% にして完全退避 */
  overflow-x: hidden;                   /* 自身からの横はみ出しを抑止 */
  will-change: transform;
}
.nav.active{
  transform: translate3d(0, 0, 0);
}

/* 3) メニュー表示中は全スクロール停止（縦横とも） */
body.menu-open{
  overflow: hidden;
  height: 100vh; /* iOS系での横ブレをさらに抑止 */
}

/* 4) （保険）画像や埋め込みのはみ出しを抑止 */
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* 右上 ×ボタンを塗りつぶしの青にする（上書き） */
.nav__btn{
  background: #2563eb;           /* 中を青 */
  color: #fff;                    /* ×は白 */
  border: 2px solid #2563eb;      /* 枠も青 */
  box-shadow: none;               /* 以前の inset 枠を無効化 */
  transition: background-color .2s, transform .1s;
}

.nav__btn:hover{
  background: #1d4ed8;           /* ちょい濃い青に */
  border-color: #1d4ed8;
}

.nav__btn:active{ transform: translateY(1px); }

.nav__btn:focus-visible{
  outline: 3px solid #93c5fd;    /* フォーカス時の見やすい外枠 */
  outline-offset: 2px;
}

/* Font Awesomeアイコンを使う場合の保険 */
.nav__btn i{ color: inherit; }


/* オーバーレイの色を薄い青に＆奥を少しだけぼかす */
.nav{
  background: rgba(37, 99, 235, 0.22);             /* #2563eb の薄い青 */
  backdrop-filter: blur(2px) saturate(120%);
  -webkit-backdrop-filter: blur(2px) saturate(120%);
}

/* メニュー文字の可読性アップ：白プレート＋濃い文字 */
.nav__list{
  margin:72px 16px 0;
  padding:16px 18px;
  list-style:none;
  background: rgba(255,255,255,.86);           /* 半透明の白 */
  backdrop-filter: blur(4px) saturate(120%);   /* 背景を少しぼかす */
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  border-radius: 12px;
}

.nav__topic a,
.nav__item a{
  color:#0f172a;    /* 濃いネイビー（黒より柔らかい） */
  text-shadow:none; /* 影は不要 */
}

/* 区切り線（1本）と前後の間隔 */
.nav__divider{
  display: block;
  height: 0;
  border-top: 1.5px dashed #94a3b8;  /* 実線にしたい場合は solid */
  margin: 18px 0 20px;               /* 上(お問い合わせ側)・下(会社概要側)の余白 */
  opacity: .9;
  pointer-events: none;
}

/* さらに細かく：線の“上側”と“下側”で差をつけたいとき */
.nav__item + .nav__divider { margin-top: 22px; }  /* お問い合わせの下を広めに */
.nav__divider + .nav__item { margin-top: 8px; }   /* 会社概要の上を少し空ける */

/* スマホでメールアドレスを少し小さく */
@media (max-width: 768px){
  .contact .email { font-size: 24px; }   /* タブレット〜小さめスマホ */
}
@media (max-width: 480px){
  .contact .email { font-size: 22px; }   /* iPhone等の小さめ幅 */
}

/* 長いメールでも折り返せるように（任意） */
.contact .email a{
  overflow-wrap: anywhere;  /* 必要な場合のみ改行を許可 */
}

.scroll-to-top {
  -webkit-tap-highlight-color: transparent; /* タップ時の青い四角を消す */
}

.scroll-to-top:focus { outline: none; }      /* クリック時の枠を消す（マウス用） */
.scroll-to-top:focus-visible {               /* キーボード操作では見えるように */
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.scroll-to-top i { pointer-events: none; }   /* アイコンクリックでも安定 */

/* 代表の想い：スマホは本文そのまま、写真だけ右下固定 */
@media (max-width: 768px){
  .story-card{
    position: relative;
    padding-right: 16px;
    padding-bottom: 150px;   /* 写真分の下余白（120px + 余白） */
  }

  .story-card .rep-info{
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    z-index: 1;
  }

  .story-card .rep-photo{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }

  .story-card .rep-name{
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 480px){
  .story-card{ padding-bottom: 130px; } /* 端末小さめ用に少し詰める */
  .story-card .rep-photo{ width: 100px; height: 100px; }
}

/* モバイルだけ：画像を先頭に・高さは控えめ */
@media (max-width: 768px){
  .hero-content{ display:flex; flex-direction: column; } /* grid→flexに */
  .hero-image{ order:-1; margin-bottom: 12px; }          /* 画像を先頭へ */
  .hero-top-image{
    max-height: 32vh;          /* 画面の約1/3に抑える＝CTAが落ちない */
    object-fit: cover;          /* 迫力を出しつつ切り抜き */
    border-radius: 12px;
  }
  .hero-buttons{ margin-top: 12px; }
}

