/*==================================
  01. Base & Colors (Updated)
====================================*/
:root {
    --primary: #0A2463;       /* Deep Navy */
    --primary-light: #1e4c9a; /* Lighter Navy */
    --accent: #00C2FF;        /* Cyan for futuristic feel */
    --bg-light: #EFF2F5;      /* Very light gray-blue */
    --text-main: #333;
    --text-sub: #666;
    --white: #ffffff;
    
    --max-width: 1100px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0;
    background-color: var(--white);
    overflow-x: hidden; /* 横スクロール防止 */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { 
    text-decoration: none; 
    transition: 0.3s; 
    color: inherit; 
}
ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

/*==================================
  02. Header (Glassmorphism)
====================================*/
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.nav-list { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}
.nav-list a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    position: relative;
}
.nav-list a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0; 
    width: 0; 
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-list a:not(.btn-nav):hover::after { 
    width: 100%; 
}
.btn-nav {
    display: inline-block; /* ← これを追加（崩れ防止の決定的な修正） */
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
    line-height: 1; /* ← これを追加（文字をボタンの上下中央に配置） */
    text-align: center; /* ← 念のため追加（文字を左右中央に配置） */
}
.btn-nav:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(10, 36, 99, 0.4); 
}

/*==================================
  03. Hero Section (Immersive)
====================================*/
#hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(to right, rgba(10, 36, 99, 0.9), rgba(10, 36, 99, 0.6));
    z-index: 1;
}
.hero-text {
    position: relative;
    z-index: 2;
    width: 100%;
}
.sub-headline {
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
#hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}
.highlight-text {
    background: linear-gradient(120deg, transparent 0%, transparent 50%, var(--accent) 50%);
    background-size: 200% 100%;
    transition: background-position 0.5s;
    color: white; /* 読みやすさのため白 */
    text-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
}

.btn-large {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.shadow-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/*==================================
  04. Strengths (Big Icons)
====================================*/
.section-padding { 
    padding: 80px 0; 
}
.section-bg-light { 
    background-color: var(--bg-light); 
}

.section-header { 
    text-align: center; 
    margin-bottom: 70px; 
}
.section-subtitle {
    display: block;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.strength-card {
    background: white;
    padding: 40px 26px; /* 余白少しタイトに */
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* アイコン周りの装飾 */
.icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.big-icon {
    font-size: 4.5rem; /* アイコン巨大化 */
    position: relative;
    z-index: 2;
}
.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,194,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    transition: 0.4s;
}
.strength-card:hover .icon-bg {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(0,194,255,0.25) 0%, rgba(255,255,255,0) 70%);
}

.strength-card h4 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}
.strength-card p { 
    font-size: 0.95rem; 
    color: var(--text-sub); 
}

/*==================================
  05. Flow (Stylish Steps)
====================================*/
.flow-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.flow-box {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px; /* 少しタイトに */
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.flow-box:hover { 
    transform: translateY(-5px); 
}

.flow-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 51, 102, 0.05); /* 透かし文字 */
    line-height: 1;
    z-index: 0;
    font-family: "Helvetica Neue", sans-serif;
}
.flow-content { 
    position: relative; 
    z-index: 1; 
    text-align: center; 
}
.flow-visual {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}
.flow-content h4 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}
.flow-content p { 
    font-size: 0.9rem; 
    color: var(--text-sub); 
    text-align: left; 
}

.flow-arrow-icon {
    font-size: 2rem;
    color: #ccc;
    flex-shrink: 0;
}

/*==================================
  06. Contact Form (Gradient Bg)
====================================*/
.contact-bg {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 60%, white 60%, white 100%);
    padding-bottom: 80px; /* フォーム下の余白 */
}

.form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 40px 48px; /* タイト＋下だけ少し広め */
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 40px auto 0; /* セクションとの間に余白 */
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}
.form-header h3 { 
    font-size: 2rem; 
    font-weight: 900; 
    color: var(--primary); 
}

/* フォーム行・行間 */
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row .half {
    flex: 1;
}

.tel-link-box {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 25px;
    transition: 0.3s;
    letter-spacing: 0.05em;
}
.tel-link-box:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 194, 255, 0.3);
}

.stylish-form label { 
    font-weight: 700; 
    color: var(--primary); 
    margin-bottom: 10px; 
    display: block; 
}
.badge-required { 
    background: #FF4D4F; 
    color: white; 
    font-size: 0.7rem; 
    padding: 3px 8px; 
    border-radius: 4px; 
    margin-left: 8px; 
    vertical-align: middle; 
}
.badge-optional { 
    background: #ccc; 
    color: white; 
    font-size: 0.7rem; 
    padding: 3px 8px; 
    border-radius: 4px; 
    margin-left: 8px; 
    vertical-align: middle; 
}

input, select, textarea {
    width: 100%; 
    padding: 18px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: 0.3s;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.1);
}

.btn-block {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 20px;
}

/* Radio Button Style */
.radio-group { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}
.radio-group label {
    background: var(--bg-light);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    margin: 0;
    font-weight: 500;
    color: var(--text-main);
}
.radio-group label:hover { 
    border-color: var(--accent); 
}
.radio-group input { 
    width: auto; 
    margin-right: 8px; 
    display: none; 
} /* ラジオボタン本体は隠す */
.radio-group label:has(input:checked) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/*==================================
  07. Responsive
====================================*/
@media (max-width: 768px) {
    .header-content { 
        flex-direction: column; 
        height: auto; 
        padding: 15px; 
    }
    .nav-list { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 15px; 
    }
    
    #hero h1 { 
        font-size: 2.4rem; 
    }
    #hero { 
        padding: 100px 0; 
        height: auto; 
    }
    
    .section-padding {
        padding: 60px 0; /* SPはさらにタイト */
    }

    .flow-wrapper { 
        flex-direction: column; 
        gap: 30px; 
    }
    .flow-arrow-icon { 
        transform: rotate(90deg); 
    }
    
    .form-wrapper { 
        padding: 24px 18px 32px; 
        margin-top: 24px;
    }
    .form-row { 
        flex-direction: column; 
        gap: 0; 
    }
    .contact-bg { 
        background: var(--primary); 
    }
    
    .company-card { 
        padding: 30px 20px; 
    }
    .list-row { 
        flex-direction: column; 
    }
    .list-row dt { 
        width: 100%; 
        margin-bottom: 5px; 
        color: var(--accent); 
    }
    .list-row dd { 
        width: 100%; 
    }

    .sp-only { 
        display: block; 
    }
}
@media (min-width: 769px) { 
    .sp-only { 
        display: none; 
    } 
}

/*==================================
  08. Company Page Styles (追加分)
====================================*/
.page-header {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}
.page-header p {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 10px;
    text-transform: uppercase;
}

.company-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
}

.company-list { 
    margin: 0; 
}

.list-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.list-row:last-child { 
    border-bottom: none; 
}

.list-row dt {
    width: 30%;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.list-row dd {
    width: 70%;
    margin: 0;
    font-weight: 500;
}

.note { 
    font-size: 0.85rem; 
    color: #888; 
}
.text-link { 
    color: var(--primary-light); 
    text-decoration: underline; 
}

.back-link-wrapper { 
    text-align: center; 
    margin-top: 40px; 
}
.btn-back {
    color: var(--text-sub);
    font-weight: 700;
    padding: 10px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    transition: 0.3s;
    background: white;
}
.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.active-link {
    color: var(--primary-light) !important;
}

/*==================================
  09. Footer
====================================*/
footer {
    padding: 30px 0 40px;
    font-size: 0.85rem;
    color: #888;
}

/* ヘッダー内の文字改行を強制的に禁止する */
.logo, 
.nav-list li, 
.nav-list a {
    white-space: nowrap; /* これで改行されなくなります */
}