/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.75;
}

img {
  vertical-align: middle;
}

a {
    text-decoration: none;
    &:link, &:visited {
        color: #333;
    }
    &:hover {
        color: #e84720;
    }
}

/* レイアウト */
.header {
    position: -webkit-sticky; /* Safari対応 */
    position: sticky;
    top: 0;
    width: 100%;
    height: 110px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000; /* メインビジュアルより前面に */
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main {
    min-height: 100vh;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #ccc;
}

.footer {
    text-align: center;
    padding: 40px 20px;
}
.footer h4 {
    font-size: 1.5em;
    color: #e84720;
}

/* --- メインビジュアル領域 --- */
.main-visual {
    width: 100vw;
    height: 80vh;
    max-height: 800px;
    min-height: 400px;
    
    /* 背景画像の設定 */
    background-image: url(../images/bg01.webp); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 中の文字を中央寄せにする場合 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);

    transition: background-image 0.5s ease-in-out;
}

/* 円形ブロック */
.mv-circle {
    width: 500px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    
    /* ドロップシャドウ */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* 円の中の要素を中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

/* MVタイトルテキスト */
.mv-title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 文字の視認性確保 */
    text-transform: uppercase;
}

.main-visual-content {
    text-align: center;
}

.main-visual-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* PCナビゲーション (768px以上) */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* ナビゲーションリンクの基本スタイル（アイコンが入るスペースを確保） */
.nav-list a {
    display: flex;
    align-items: center; /* アイコンとテキストを上下中央に */
    gap: 8px;           /* アイコンとテキストの間の余白 */
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
}

/* 疑似要素の共通設定 */
.nav-list li a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 各メニューごとのアイコン指定（nth-childを使用） */
.nav-list li:nth-child(1) a::before {
    background-image: url('../images/icon_home.webp');
}

.nav-list li:nth-child(2) a::before {
    background-image: url('../images/icon_file.webp');
}

.nav-list li:nth-child(3) a::before {
    background-image: url('../images/icon_pen.webp');
}

.hamburger {
    display: none; /* PCでは隠す */
}

.align-center {
    text-align: center;
}
h2 {
    &.heading2 {
        font-size: 2.5em;
        color: #e84720;
    }
    &.heading2a {
        margin: 20px 0;
        padding: .5em 0;
        background-color: #fff;
        border: 2px solid #f39800;
        border-radius: 10px;
        box-shadow: 3px 3px 3px #aaa;
        font-size: 2.5em;
        color: #e84720;
        text-align: center;
    }
}
h3 {
    &.heading3 {
        margin: 20px 0;
        padding: .25em;
        font-size: 2em;
        color: #fff;
        background-color: #f39800;
        border-radius: 10px;
    }
}
dl {
    &.guide {
        margin-bottom: 40px;
        div {
            padding: 1em 0;
            border-bottom: 1px solid #ccc;
        }
        dt {
            font-size: 2em;
            color: #f39800;
        }
        dd {
            padding-left: 1.75em;
            font-size: 1.25em;
        }
    }
}
.content {
    p {
        font-size: 1.25em;
    }
}
figure {
    margin: 20px 0;
    &.benichan1 {
        display: flex;
        justify-content: center;
    }
}
.c-button {
    display: inline-block;
    padding: .5em 1em;
    text-align: center;
    color: #fff;
    background-color: #e84720;
    border-radius: 10px;
    box-shadow: 3px 3px 3px #aaa;
    border: none;
    &.c-button__small {
        margin: 0 .5em;
        padding: .25em .75em;
        font-size: .875em;
        color: #fff;
    }
    &.c-button__large {
        padding: 20px 2em;
        font-size: 2.5em;
        line-height: 1;
        &:link, &:visited {
            color: #fff;
        }
        &:hover {
            opacity: .5;
        }
    }
}

/* --- レスポンシブ (767px以下) --- */
@media (max-width: 767px) {
    .header {
      height: 80px;
    }

    .logo img {
      width: 300px;
      height: auto;
    }
    .nav-list a {
        font-size: 1.5rem;
    }
    
    .nav-list li a::before {
        width: 32px;  /* スマホでは少し大きくしても良いでしょう */
        height: 32px;
    }
    .hamburger {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 200;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        transition: 0.3s;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 11px; }
    .hamburger span:nth-child(3) { top: 22px; }

    /* ハンバーガー開閉アニメーション */
    .is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .is-open span:nth-child(2) { opacity: 0; }
    .is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* モーダルメニュー */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態は画面外 */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        z-index: 150;
    }

    .nav.is-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    /* メインビジュアルのレスポンシブ */
    .main-visual {
        height: 50vh;
        min-height: 400px;
    }

    /* 円形ブロックをスマホ向けに縮小 */
    .mv-circle {
        width: 350px;
        height: 350px;
        padding: 20px;
    }
    .mv-circle img {
        width: 240px;
        height: auto;
    }

    .mv-logo-placeholder {
        width: 200px;
        height: auto;
        margin-bottom: 10px;
    }

    .mv-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    h2 {
        &.heading2 {
            font-size: 1.5em;
        }
        &.heading2a {
            margin: 0 0 20px;
            font-size: 1.5em;
        }
    }
    h3 {
        &.heading3 {
            font-size: 1.5em;
        }
    }
    .content {
        p {
            font-size: 1em;
        }
    }

    dl {
        &.guide {
            dt {
                font-size: 1.25em;
            }
            dd {
                font-size: 1em;
                padding-left: 1em;
            }
        }
    }
    figure {
        &.benichan1 {
            img {
                width: 200px;
                height: auto;
            }
        }
    }
    .c-button {
        &.c-button__large {
            display: block;
            width: 100%;
            padding: 20px 1em;
            font-size: 2em;
            line-height: 1;
        }
    }
}