:root {
    --main-black: #000;
    --sub-grey: #f4f4f4;
    --accent-color: #000;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: var(--main-black);
    background-color: #fff;
    line-height: 1.7;
}

.header-logo, .hero-icon, .footer-icon {
    /* 背景を透過できない画像の場合、白背景なら brightness を調整するか、
       できれば背景透明のPNG画像に差し替えるのがベストですが、
       CSSでの応急処置として以下を適用します */
    mix-blend-mode: multiply;
    display: block;
    object-fit: contain;
}


.container {
    max-width: auto;
    padding: 0 4%;
}

/* Header */
header {
    
    background: #fff;
    border-bottom: 1px solid #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* 横幅を制限して中央寄せ */
    margin: 0 auto;
    padding: 10px 20px;
}

.header-logo {
    height: 80px; /* 見やすいサイズに調整 */
    width: auto;
    margin-right: auto; /* これでロゴ以外のメニューが右端に飛びます */
    
    /* 画像の白い背景を透過させてヘッダーに馴染ませる魔法の1行 */
    mix-blend-mode: multiply;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px; /* メニュー間の間隔を少し広げてゆとりを持たせる */
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--main-black);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* ホバーエフェクトのための準備 */
    position: relative; /* 線の基準位置にする */
    padding-bottom: 8px; /* 文字と線の間の余白 */
    display: inline-block; /* アニメーションを正しく動かすため */
}

.nav-btn {
    background: #000;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 2px;
}

/* マウスホバー時に表示される線（疑似要素 ::after） */
nav a::after {
    content: ''; /* 空の要素を作成 */
    position: absolute; /* 親要素（nav a）に対して絶対配置 */
    bottom: 0; /* 一番下に配置 */
    left: 0; /* 左端から開始 */
    width: 100%; /* 線の長さ（文字の幅いっぱい） */
    height: 2px; /* 線の太さ */
    background-color: var(--main-black); /* 線の色（ロゴに合わせた黒） */
    
    /* アニメーションの設定 */
    transform: scaleX(0); /* 最初は横幅を0（見えない状態）にする */
    transform-origin: bottom right; /* アニメーションの起点を右下に設定 */
    transition: transform 0.3s ease-out; /* 0.3秒かけて変化させる */
}

/* マウスカーソルが乗った（ホバーした）時の動き */
nav a:hover::after {
    transform: scaleX(1); /* 横幅を1（100%）に伸ばす */
    transform-origin: bottom left; /* アニメーションの起点を左下に変更（左から右へ伸びる動き） */
}
/* Hero Section */
.hero {
    height: 70vh;
    background: var(--main-black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-content{
    text-align: center;
}
.hero-icon {
    width: 180px;
    margin-bottom: 30px;
    animation: fadeInScale 1.5s ease-out;
    
    /* 黒背景の画像に白いアイコンがある場合、これを馴染ませる */
    mix-blend-mode: screen; /* 黒背景に白いアイコンを浮かせる */
    filter: brightness(1.2); /* 少し輝度を上げる */
    margin:0 auto;
}

.hero h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    line-height: 1;
    z-index: 1;
}

.highlight {
    border-bottom: 4px solid #fff;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Vision Box */
.vision-box {
    background: var(--sub-grey);
    padding: 60px 40px;
    text-align: center;
    border-radius: 4px;
}

.sub-title {
    display: block;
    font-weight: bold;
    color: #888;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

/* Business Content */
.issue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.issue-card {
    border: 1px solid #ddd;
    padding: 30px;
}

.issue-card h5 {
    font-size: 1.2rem;
    margin-top: 0;
    border-left: 4px solid #000;
    padding-left: 15px;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    background: #fff;
    transition: 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--sub-grey);
    border: 1px solid #000;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
}


.company-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}
.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.company-table th {
    width: 30%;
    color: #888;
    font-size: 0.9rem;
}

.contact-section {
    background: #000;
    padding: 80px 0;
}
.main-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.main-btn:hover {
    background: #ccc;
}


/* Footer */
footer {
    padding: 60px 0;
    background: var(--main-black);
    color: #fff;
    text-align: center;
}

.footer-icon {
    width: 40px;
    filter: brightness(100);
    margin-bottom: 20px;
}

footer p {
    font-size: 12px;
    opacity: 0.6;
}


/* Responsive */
@media (max-width: 768px) {
    .issue-grid { grid-template-columns: 1fr; }
    nav { display: none; } /* 簡易化のためスマホメニュー非表示 */
}