/* Home contact section layout (reference-like two-column) */
.home .home-contact-layout{
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem var(--container-padding-x);
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}
.home .home-contact-layout .contact-info-col h2{
    color:#0a3d66; font-size: clamp(1.6rem, 3vw, 2.2rem); margin:0 0 .75rem 0; font-weight:800;
}
.home .home-contact-layout .contact-info-col p{ color:#4d5b6a; line-height:1.8; }
.home .home-contact-layout .contact-form-card{
    background:#fff; border:1px solid #e6eef7; border-radius:16px;
    box-shadow: 0 8px 24px rgba(10,95,165,0.06);
    padding: clamp(1.2rem, 2.5vw, 1.6rem) clamp(1rem, 2.2vw, 1.4rem);
}
.home .home-contact-layout .contact-form-card h3{ color:#0a3d66; margin:0 0 1rem 0; }
.home .home-contact-layout .form-note{ margin-top:.75rem; color:#667; font-size:.95rem; }
@media (max-width: 900px){
    .home .home-contact-layout{ grid-template-columns: 1fr; }
}
/* モバイルメニューも青色ガラス調に */
@media (max-width: 768px) {
    header #primary-navigation {
        background: rgba(0, 64, 128, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
}

/* NOTE: .home header rules previously here are intentionally disabled to avoid
   conflicting with the canonical header rules in `css/header.css`.
   If home-specific header adjustments are required, add them to `css/header.css`
   or a dedicated home stylesheet instead of duplicating rules here. */




/* 固定ヘッダーのスタイル設定 - 青色背景を維持 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 64, 128, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* スクロール時のヘッダー強化 */
header.scrolled {
    background: rgba(0, 64, 128, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Keep slide content visible under the fixed header */
.home .slide-inner {
    padding-top: 80px;
}

/* mainコンテンツをヘッダーの下に配置 */
main {
    padding-top: 70px;
}

/* 固定ヘッダー内のロゴとナビの視認性向上 */
header nav {
    backdrop-filter: none; /* 重複を防ぐ */
}

header .logo img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

header nav a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Full-bleed header+section rules have been disabled here to avoid layout
   conflicts with shared header styles. Use page-specific css to manage
   full-bleed sections when needed. */

/* On the home page we want the section wrapper to be transparent so only the full-bleed card shows */
.home .flow {background:transparent;padding:0;margin-top:0}
.home .highlights,
.home .company-benefits,
.home .testimonials-preview{
    /* セクション自体は通常フローのまま保持 */
    position: relative;
    padding: 3rem 0; /* 統一した垂直方向余白 */
    margin-top: 2rem;
    margin-bottom: 2rem;
}
/* main直下の全sectionを正しい位置で全幅表示 */
main > section {
  position: relative;
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100vw;
  box-sizing: border-box;
}

/* 奇数番目のセクション：白背景 */
main > section:nth-child(odd){
    background: #fff;
}

/* 偶数番目のセクション：淡い青背景 */
main > section:nth-child(even){
    background: #f9fbfd;
}

/* カード部分の共通スタイル */
.home .highlights .highlights-inner,
.home .company-benefits .benefits-grid,
.home .testimonials-preview .testimonials-grid,
.home .contact-content .home-contact-layout{
    background: #f4f8fb;
    border-radius: 16px;
    padding: 2rem var(--container-padding-x);
    margin: 0 auto;
    max-width: var(--container-max);
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

/* highlightsのみ背景画像あり */
.home .highlights .highlights-inner{
    background: url('../images/nami.webp') center/cover no-repeat;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

/* カード部分に背景色と背景画像を適用 */
.home .highlights .highlights-inner{
    background: url('../images/nami.webp') center/cover no-repeat;
    border-radius: 18px;
    padding: 2rem var(--container-padding-x);
    margin: 0 auto;
    max-width: var(--container-max);
    position: relative;
    overflow: hidden;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.home .highlights .highlights-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.82) 60%, rgba(0,64,128,0.13) 100%);
    border-radius: 18px;
}

.home .highlights .highlights-grid,
.home .highlights h2 {
    position: relative;
    z-index: 2;
}

/* カード部分の個別設定は上記の共通スタイルで統一 */

/* セクション自体が背景を持つため、カード風スタイルは不要 */

/* 内側コンテナ: 内容は既存の内容幅のまま中央寄せ */
/* セクションタイトルはカードの外に配置 */
main > section h2{
    color: #173a62;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.home .highlights h2 {
    color: #173a62;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.home .company-benefits > *,
.home .testimonials-preview > *{
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
    box-sizing: border-box;
}
/* 全幅セクションの内側コンテナに適切な余白を設定 */
main > section{
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Benefits section: reference-like spacing and typography (home only) */
.home .company-benefits h3{
    text-align:center;
    color:#0a3d66;
    font-weight:800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: .01em;
    margin: 0 0 1.25rem 0;
}
.home .company-benefits .benefits-grid{
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.4vw, 1.5rem);
}
.home .company-benefits .benefit-card{
    padding: clamp(1.2rem, 2.5vw, 1.6rem) 1.4rem;
    border-radius: 16px;
    border: 1px solid #e6eef7;
    box-shadow: 0 8px 24px rgba(10,95,165,0.06);
}
.home .company-benefits .benefit-card h4{
    color:#0a3d66;
    font-weight:700;
    margin: 0 0 .5rem 0;
    font-size: clamp(1.05rem, 2.2vw, 1.15rem);
}
.home .company-benefits .benefit-card p{
    color:#4d5b6a;
    line-height:1.7;
    font-size: .98rem;
    margin: 0;
}
@media (max-width: 900px){
    .home .company-benefits .benefits-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
    .home .company-benefits .benefits-grid{ grid-template-columns: 1fr; }
}


.home .flow h3 {position:relative;z-index:2}

/* Navigation styles are handled in header.css to avoid duplication */

/* --- Slider styles (fade-in/out large-image hero) --- */
.hero-slider {
    /* Ensure hero is full-bleed (edge-to-edge) even when nested inside main */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    padding-left: 0; /* inner padding is handled by slide-inner */
    padding-right: 0;
}

.slider { position: relative; overflow: hidden; width: 100%; }

.slider .slide { position: absolute; inset: 0; width: 100%; height: 100vh; min-height: 480px; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 1; }

.slider .slide.active { opacity: 1; pointer-events: auto; position: absolute; z-index: 2; }

.slider picture, .slider .slide-bg { position:absolute; inset:0; width:100%; height:100%; }

.slider img { width:100%; height:100%; object-fit:cover; display:block; }

/* Home hero: left-aligned content and blue overlay for readability */
.home .hero-slider .slide::before{
    content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
    /* Hero全体に同じ青系の半透明オーバーレイ */
    background: rgba(0, 64, 128, 0.45);
}
.home .slide-inner{
    text-align:left; align-items:flex-start; justify-content:center;
    max-width: 900px; padding: 2.5rem 2rem; margin-left: clamp(1rem, 6vw, 6rem);
    /* カード風の半透明背景があれば解除する */
    background: transparent !important; box-shadow: none !important; border: none !important;
}
.home .slide-inner h1{ font-size: clamp(2rem, 4.5vw, 3.2rem); line-height:1.15; margin-bottom: 0.8rem; }
.home .hero-subtitle{ font-size: clamp(1rem, 2vw, 1.2rem); opacity:0.98; margin-bottom:1.4rem; }
.home .hero-buttons{ gap:1rem; }
.home .primary-btn{ background: linear-gradient(135deg,#f27a23,#e16812) !important; border: none; }
.home .secondary-btn{ background: transparent !important; border:1.5px solid rgba(255,255,255,0.8) !important; }

.slider-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:48px; height:48px; border-radius:50%; background:rgba(0,0,0,0.45); color:#fff; border:0; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1.5rem; }

.slider-arrow.prev { left:16px; }

.slider-arrow.next { right:16px; }

.slider-dots { position:absolute; left:50%; transform:translateX(-50%); bottom:18px; z-index:4; display:flex; gap:8px; }

.slider-dots button { width:10px; height:10px; border-radius:50%; border:0; background:rgba(255,255,255,0.6); cursor:pointer; }

.slider-dots button.active { background:#fff; }

/* If only one slide, hide navigation controls to keep hero clean */
.slider.single-slide .slider-arrow,
.slider.single-slide .slider-dots {
    display: none;
}

.slide-bg.placeholder-1 { background: linear-gradient(135deg,#2b6cb0,#4fd1c5); }

.slide-bg.placeholder-2 { background: linear-gradient(135deg,#6b46c1,#f6ad55); }

/* --- Slide inner base styles --- */
.slide-inner {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-inner h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.45);
}

.slide-inner p.hero-subtitle {
    color: #f3f4f6;
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .slide-inner {
        padding: 1.5rem;
    }
    .slide-inner h1 {
        font-size: 2rem;
    }
    .slide-inner p.hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .slide-inner {
        padding: 1rem;
    }
    .slide-inner h1 {
        font-size: 1.4rem;
    }
}

/* Individual slide customizations */
/* Add per-slide overrides here if needed, e.g., .slide-1 .slide-inner h1 {...} */
.slide-2 .slide-inner h1 span.big {
    font-size: 5rem;
    color: #ffdd57; /* Example: bright yellow */
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.5);
}
/* For emphasizing a single character/word in h1, use a span and style it */
.slide-inner h1 .em {
    font-size: 1.2em;
    color: #ffd700; /* Example: gold highlight */
    font-weight: bold;
    letter-spacing: 0.02em;
}

/* Individual slide subtitle customizations */
/* Add per-slide subtitle overrides here if needed */

/* Hero buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
        gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-buttons {
        gap: 1rem;
    }
}

.primary-btn {
    background: linear-gradient(135deg, #004080, #0066cc) !important;
    margin: 0 !important;
}

.secondary-btn {
    background: linear-gradient(135deg, #666, #999) !important;
    margin: 0 !important;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #555, #888) !important;
}

/* Highlights section */
.highlights {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 3.25rem 2rem;
    margin: 2.5rem 0;
}

.highlights-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

.highlights h3 {
    text-align: center;
    color: #004080;
    margin-bottom: 1.25rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.highlights-grid { gap: 1rem; }

.company-benefits {
    margin-bottom: 3rem;
}
.company-benefits .benefit-card h3 {
    text-align: center;
    color: #004080;
    font-size: 1.6rem;
    margin: 0 0 1.5rem 0;
}


.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}

.benefit-card {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* For-Companies Page Mobile Styles */
@media (max-width:900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width:480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card h4 {
    color: #004080;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.benefit-card p {
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}



.benefit-card {
    padding: 1.5rem 1rem;
}

/* For-Companies Page Mobile Styles */
.benefit-card {
    padding: 1rem;
}

.benefit-card h4 {
    font-size: 1.1rem;
}



.flow, .pricing, .testimonials {
    padding: 3rem 2rem; /* 左右に余白を追加 */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flow h3, .pricing h3, .testimonials h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #004080;
}

.flow ol {
    list-style-type: decimal;
    padding-left: 2rem;
    font-size: 1.1rem;
}

.flow li {
    margin-bottom: 1rem;
}

/* Flow Page Specific Styles */
.flow-content h2 {
    font-size: 2.2rem;
    color: #004080;
    text-align: center;
    margin-bottom: 2rem;
}

.flow-content h3 {
    font-size: 1.5rem;
    color: #004080;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #cce7ff;
    padding-bottom: 0.5rem;
}

/* Reduce section horizontal padding on smaller screens to avoid overflow */
    .flow, .pricing, .testimonials {
        padding-left: 1rem;
        padding-right: 1rem;
    }

.flow-content li {
        padding-left: 3rem;
    }

.flow-content li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
    }

.flow-content li, .service-content li, .achievements-content li {
    padding: 0.5rem;
}



/* Full-bleed flow summary (top page) */
.flow-summary.full-bleed {position:relative;left:50%;transform:translateX(-50%);width:100vw;box-sizing:border-box;background:#fff;border-radius:12px;padding:2rem 1.5rem;box-shadow:0 6px 24px rgba(3,37,76,0.06);margin-top:1.2rem;z-index:1}

.flow-summary.full-bleed .flow-steps {display:flex;gap:1.25rem;justify-content:space-between;align-items:center;flex-wrap:nowrap;padding:0;margin:0;list-style:none;max-width:1400px;margin-left:auto;margin-right:auto}

.flow-summary.full-bleed .flow-step {flex:1;min-width:160px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0.8rem 0;position:relative}

.flow-summary.full-bleed .step-circle {width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#004080,#0066cc);color:#fff;font-weight:700;font-size:1.15rem;box-shadow:0 6px 18px rgba(0,64,128,0.12);margin-bottom:0.6rem}

.flow-summary.full-bleed .step-title {font-weight:700;font-size:1.05rem;color:#173a62}

.flow-summary.full-bleed .flow-step:not(:last-child)::after {content:'';position:absolute;right:-12px;top:50%;transform:translateY(-50%);width:36px;height:2px;background:linear-gradient(90deg,#e6f0fd,transparent);}

.flow-summary.full-bleed .flow-steps {flex-wrap:wrap}

.flow-summary.full-bleed .flow-step {min-width:120px}

.flow-summary.full-bleed .flow-step:not(:last-child)::after {display:none}

main h2, .service-content h2, .flow-content h2, .pricing-content h2, .company-content h2, .achievements-content h2, .faq-content h2, .contact-content h2, .privacy-content h2 {font-size:var(--h2-size)}

section h3, .service-content h3, .flow h3, .pricing h3, .testimonials h3, .info-card h3, .campaign-header h3, .cta-card h3 {font-size:var(--h3-size)}

/* Link decoration: underline accent and hover color */
a.custom-link {color:#6b2fa8;text-decoration:none;border-bottom:2px solid rgba(107,47,168,0.15);padding-bottom:2px;transition:color 0.18s, border-color 0.18s}

a.custom-link:hover {color:#3c0660;border-bottom-color:rgba(60,6,96,0.25)}

/* Testimonials preview */
.testimonials-preview h3 { color: #004080; text-align: center; margin-bottom: 1.25rem; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.testimonial-card.more { display:flex; flex-direction:column; justify-content:center; align-items:center; }

/* Select box styling and spacing for contact forms */
.form-select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    color: #222;
    appearance: none; /* remove default arrow in some browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1rem + 2px), calc(100% - 13px) calc(1rem + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-select:focus {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 5px rgba(0, 64, 128, 0.2);
}



/* Checkbox group: larger checkbox on the left, label text to the right, left-aligned */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: #333;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #004080; /* modern browsers */
}

.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; }

/* main直下のsectionをヒーロー的に全幅・余白なしで表示 */
main > section {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}
/* 奇数番目のsectionは白背景、偶数番目は淡い青背景 */
main > section:nth-child(odd) {
  background: #fff;
}
main > section:nth-child(even) {
  background: #f4f8fb;
}

/* hero直下のh2を白＋テキストシャドウで強調（他h2に干渉しない限定セレクタ） */
.hero-section + section .hero h2,
.hero-section.service-hero + section .hero h2 {
    color: #fff !important;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.38), 0 0 2px #004080;
}

/* 追加: ヒーロースライダー内のh2（.hero-slider > .slider > .slide > .slide-inner h2）
     添付HTMLにある構造にマッチさせるための限定セレクタ。 */
section.hero-slider .slide-inner h2,
section#top.hero-slider .slide-inner h2,
.hero-slider .slide-inner h2 {
    color: #fff !important;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.38), 0 0 2px #004080;
}

