:root {
    --blue: #1a6bff; 
    --blue-hover: #0d55e0; 
    --teal: #00b8a0;
    --dark: #0f1923; 
    --mid: #6b7c93; 
    --bg: #f7f8fa; 
    --border: #eef0f4;
}

/* ── BASE ── */
*{margin:0;padding:0;box-sizing:border-box;}
html{font-size: 62.5%;scroll-behavior: smooth;}
body{font-size: 1.6rem;font-family:'Noto Sans JP',sans-serif;background:#fff;color:var(--dark);overflow-x:hidden;}
.sp-only-br {
  display: none;
}

/* ── NAVIGATION (PC: Logo Left / Menu Right) ── */
.og-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ロゴと右側グループを両端に配置 */
    padding: 18px 40px;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.og-nav-logo {
    font-size: 2rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--dark);
    text-decoration: none;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}
.og-nav-logo em {
    font-size: 1.1rem;
    display: block;
    font-style: normal;
    font-weight: 400;
    color: var(--mid);
    letter-spacing: 0.12em;
    margin-top: 2px;
    font-family: 'Noto Sans JP';
}

/* 右側にまとめるコンテナ */
.og-nav-right-group {
    display: flex;
    align-items: center;
    gap: 48px; /* メニューとボタンの間隔 */
}

.og-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}
.og-nav-links a {
    color: var(--mid);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: 0.3s;
    position: relative;
    padding: 4px 0;
}
.og-nav-links a.nav-link-text::after {
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    width:0;
    height:2px;
    background:var(--blue);
    transition:0.3s;
    transform:translateX(-50%);
}
.og-nav-links a.nav-link-text:hover { color: var(--blue); }
.og-nav-links a.nav-link-text:hover::after { width: 100%; }

/* ボタンとハンバーガー */
.og-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── BUTTONS ── */
.og-nav-btn {
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}
.og-nav-btn:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,107,255,0.2);
}
.og-nav-submit {
    font-size: 1.8rem;
    width:100%; padding:18px; font-weight:700;
}

/* ── HAMBURGER ── */
.og-hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    outline: none;
}
.og-hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--dark);
    border-radius: 9px;
    transition: .25s ease-in-out;
}
.og-hamburger span:nth-child(1) { top: 0px; }
.og-hamburger span:nth-child(2) { top: 10px; }
.og-hamburger span:nth-child(3) { top: 20px; }

.og-hamburger.open span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.og-hamburger.open span:nth-child(2) { opacity: 0; left: -60px; }
.og-hamburger.open span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

/* ── HERO (Background Animation) ── */
#top { padding-top: 0; margin-top: 0; }
.og-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
    background: var(--dark);
    overflow: hidden;
}
.og-hero-img-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.og-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transform: scale(1);
    animation: subtleZoom 20s ease-in-out infinite alternate;
}
@keyframes subtleZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}
.og-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg,rgba(15,25,35,0.4) 0%,rgba(15,25,35,0.85) 60%,#0f1923 100%);
    z-index: 1;
}
.og-hero-content { position: relative; z-index: 2; }
.og-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}
.og-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }
.og-hero-h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(40px, 8vw, 62px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 6px;
}
.og-hero-h1 span { color: var(--blue); }
.og-hero-h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(40px, 8vw, 62px);
    font-weight: 800;
    line-height: 1.06;
    color: rgba(255,255,255,0.18);
    margin-bottom: 32px;
}
.og-hero-sub {
    color: rgba(255,255,255,0.8);
    line-height: 2;
    max-width: 460px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ── TICKER ── */
.og-ticker {
    overflow: hidden;
    padding: 14px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.og-ticker-inner {
    display: flex;
    animation: ticker 22s linear infinite;
    white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.og-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--mid);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}
.og-ticker-sep { color: var(--teal); font-size: 10px; }

/* ── SECTION COMMON ── */
.og-sec { padding: 100px 40px; }
.og-sec-label {
    letter-spacing: 0.25em;
    color: var(--blue);
    margin-bottom: 14px;
    font-weight: 500;
    font-family: 'Syne', sans-serif;
}
.og-sec-title {
    font-size: 3rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 12px;
    color: var(--dark);
}
.og-sec-sub {
    color: var(--mid);
    line-height: 1.9;
    margin-bottom: 48px;
}

/* ── PAIN ── */
.og-pain-layout { display: flex; gap: 60px; align-items: stretch; } 
.og-pain-content { flex: 1.2; }
/* --- PAIN SECTION ブラッシュアップ --- */
/* --- PAIN SECTION ブラッシュアップ（中央揃え版） --- */
.og-pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: transparent;
    border: none;
    margin-bottom: 32px;
}

.og-pain-item {
    background: #fff;
    padding: 40px 0; /* 上下の余白を均等に */
    border: 1px solid var(--border);
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    
    /* 中央揃えの設定 */
    display: flex;
    align-items: center;    /* 垂直中央 */
    justify-content: center; /* 水平中央 */
    text-align: center;      /* テキスト自体も中央揃え */
    
    min-height: 180px; /* 少し高さを出すと中央配置が引き立ちます */
    overflow: hidden;
}

/* 背景番号の調整：さらに少し薄く、中央寄りから逃がす */
.og-pain-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* カードの真ん中に配置 */
    font-size: 120px; /* 少し大きく */
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
    opacity: 0.1; /* 究極に薄く（テクスチャのような扱い） */
    transition: 0.5s;
    user-select: none;
    z-index: 1;
}

.og-pain-text {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.8;
    position: relative;
    z-index: 2; /* テキストを番号の前に出す */
    margin: 0;
    width: 100%; /* 折り返しを中央基準に */
}

/* ホバー演出 */
.og-pain-item:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 15px 30px rgba(26, 107, 255, 0.08);
}

.og-pain-item:hover .og-pain-num {
    opacity: 0.08;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 480px) {
    .og-pain-grid {
        grid-template-columns: 1fr;
    }
    .og-pain-item {
        min-height: 140px;
    }
}
.og-pain-text { color: var(--mid); line-height: 1.85; }
.og-pain-resolve {
    padding: 24px 28px;
    background: #e8f0ff;
    border: 1px solid #c3d4ff;
    border-radius: 8px;
    line-height: 1.9;
}
.og-pain-visual { flex: 0.8; position: relative; }
.og-pain-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

/* ── SERVICES ── */
.og-services { background: var(--bg); }
.og-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.og-svc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}
.og-svc-card:hover {
    border-color: var(--blue);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(26,107,255,0.1);
}
.og-svc-img { width: 100%; height: 140px; object-fit: cover; display: block; opacity: 0.9; }
.og-svc-body { padding: 20px; }
.og-svc-num { font-size: 2rem; font-family: 'Syne'; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.og-svc-en { font-size: 1.2rem; letter-spacing: 0.14em; color: #b0bbc8; margin-bottom: 4px; }
.og-svc-jp { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.og-svc-desc { font-size: 1.4rem; color: var(--mid); line-height: 1.8; }
.og-svc-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    padding: 3px 10px;
    background: #e0f5f2;
    color: #007a6b;
    border-radius: 100px;
}

/* ── STRENGTH ── */
.og-strength-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.og-strength-img-wrap { border-radius: 8px; overflow: hidden; position: relative; }
.og-strength-img { width: 100%; height: 450px; object-fit: cover; display: block; }
.og-str-item { padding: 26px 0; border-bottom: 1px solid var(--border); display: flex; gap: 20px; }
.og-str-num { font-size: 26px; font-weight: 700; color: var(--teal); min-width: 20px; }
.og-str-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.og-str-desc { font-size: 1.4rem; color: var(--mid); line-height: 1.85; }

/* ── COMPANY ── */
.og-company-wrap { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.og-company-row { font-size: 1.4rem; display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--border); }
.og-company-key { padding: 20px; color: var(--mid); background: var(--bg); font-weight: 700; }
.og-company-val { padding: 20px; }

/* ── CONTACT ── */
.og-contact-sec { background: var(--bg); }
.og-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
}
.og-form-group { margin-bottom: 24px; text-align: left; }
.og-form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--mid); }
.og-form-input { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }

/* ── FOOTER ── */
.og-footer { text-align: center; padding: 30px 40px; border-top: 1px solid var(--border); }
.privacyLink{ text-align: center; margin: 0 0 20px 0; }
/* ── ANIMATION ── */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width:960px){
    .og-nav-right-group { gap: 0; }
    .og-nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
        gap: 40px;
    }
    .og-nav-links.open { right: 0; }
    .og-nav-links a { font-size: 20px; font-weight: 700; color: var(--dark); }
    .og-hamburger { display: block; }
    .pc-only { display: none !important; }
    .sp-only-flex { display: flex !important; }
}

@media (max-width:768px){
    .og-pain-layout { flex-direction: column; gap: 30px; }
    .og-pain-visual { order: -1; height: 280px; flex: none; }
    .og-pain-grid { grid-template-columns: 1fr; }
    .og-strength-layout, .og-company-row { grid-template-columns: 1fr; }
    .og-sec { padding: 60px 24px; }
    .og-form-wrap { padding: 24px; }
    .og-hero { padding: 40px 24px; }
    .sp-only-br {
    display: inline;
    }
}
