html{
    --main-color: #4653A2;
    --sub-color: #e8380d;

    --first-color: #1D3A8A;
    --second-color: #C7A84B;
    --shippori-serif: 'Shippori Mincho', serif;
}

body{
    /* font-family: 'Shippori Mincho', serif; */
    overflow-x: hidden;
}

figure figcaption{
    color: var(--font-color);
}

/* Header - Mobile First */
header {
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.header-container .logo img {
    max-height: 35px; /* ロゴ画像の高さ調整 */
    vertical-align: middle;
}

/* Hamburger Menu Button */
.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation - Mobile */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 999;
}

nav.active {
    right: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

nav li {
    border-bottom: 1px solid #f0f0f0;
}

nav a {
    display: block;
    padding: 20px 30px;
    color: var(--font-color);
    text-decoration: none;
    transition: background 0.3s ease;
}

nav a:hover {
    background: #f9f9f9;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop Styles */
@media (min-width: 900px) {
    header {
        padding: 20px 30px;
    }

    .hamburger {
        display: none;
    }

    nav {
        font-family: var(--shippori-serif);
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding-top: 0;
    }

    nav ul {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    nav li {
        border-bottom: none;
    }

    nav a {
        padding: 0;
        position: relative;
    }

    nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        /* background: #5865f2; */
        background: var(--main-color);
        transition: width 0.3s ease;
    }

    nav a:hover {
        background: transparent;
    }

    nav a:hover::after {
        width: 100%;
    }

    .overlay {
        display: none;
    }
}

.container{
    max-width: 1200px;
    margin: 0 auto;
}

/* メインビジュアル */
.main-title {
    height: 95vh; /* メインビジュアルの高さ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-title h2{
    font-family: var(--shippori-serif);
    margin-top: 2rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
}

.main-title h2.fadein-text {
    /* アニメーションの適用 */
    animation-name: fadeInAnimation;
    animation-duration: 1s;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
    
    /* 初期状態では完全に非表示にしておく */
    opacity: 0; 
}

/* フェードインのアニメーション定義 */
@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Topの目次エリア */
.hero-section {
    background: url('../img/mvv_main_v2.jpg') no-repeat center center/cover;
    position: relative;
    min-height: 700px;
    width: 100vw;
    margin: 0 calc(50% - 50vw);

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 背景の上に薄いオーバーレイをかける */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: #ddddddb7; */
    background-color: #818080d1;
    z-index: 1;
}

.hero-layout {
    position: relative;
    z-index: 2;
    
    /* ここで「セット全体の幅」を決めます */
    width: 100%;
    max-width: 800px; /* PCではこれ以上広がらない（程よい中央配置） */
    
    /* SVG画像をこの箱の背景として配置 */
    /* ※「の形の位置調整はここで行います */
    background: url('../img/main-hero.svg') no-repeat left top / 300px auto;
    
    /* 重要: SVGの「線」を避けるために、箱の内側に余白を作る */
    /* 上の線の分: 80px, 左の線の分: 60px (SVGのサイズに合わせて調整) */
    padding-top: 120px; 
    padding-left: 120px;
}

.hero-content{
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 500px;
}

/* 見出しのスタイル */
.hero-content h2,
h2.sub-title {
    font-family: var(--shippori-serif);
    position: relative;
    background-color: var(--first-color); /* 背景色 */
    padding: 15px 30px 15px 50px; /* 左パディングを多めにとって線を避ける */
    transform: skewX(-10deg);     /* 全体を平行四辺形にする */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 400;
}

.hero-content h2:hover{
    transform: skewX(-10deg) translateY(-5px);;
    cursor: pointer;
    box-shadow: 10px 20px 20px rgba(0, 0, 0, 0.2);
}

h2.sub-title{
    width: fit-content;
    margin: 0 auto;
}

/* テキストの傾きを戻す */
.hero-content h2 a,
h2.sub-title span {
    display: block;
    transform: skewX(10deg); /* 親要素の逆の角度を指定して垂直に戻す */
    font-size: 20px;
    color: #fff;
    text-decoration: none;
}

h2.sub-title span {
    font-size: unset;
}

/* 左側の2本の線（アイコン） */
.hero-content h2::before,
h2.sub-title::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 15px;
    width: 8px;
    border-left: 4px solid var(--second-color);
    border-right: 1px solid var(--second-color);
}

@media screen and (max-width: 767px) {
    .hero-layout {
        /* スマホではSVGを少し小さくし、余白も詰める */
        background-size: 150px auto; 
        padding-top: 60px;
        padding-left: 60px;
    }
}

/* 見守り */
.box-mimamori{
    border: solid 2px var(--second-color);
    padding: 1rem;
}

.box-mimamori h5{
    padding-bottom: 0.5rem;
    border-bottom: solid 1px var(--second-color);
    font-weight: normal;
}

/* レポート全体のコンテナ */
.report-container {
    border-top: 1px solid #e0e0e0;
    max-width: 800px; /* 必要に応じて調整 */
    margin: 0 auto;
    font-size: 1rem;
}

/* 個々の記事行 */
.report-item {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す設定 */
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    align-items: flex-start;
}

/* 左側のメタ情報（日付・ラベル・市町村） */
.report-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 230px; /* PCでの左カラム幅 */
}

/* 各要素のスタイル */
.report-date {
    margin-right: 15px;
    color: #333;
}

.report-label {
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

/* ラベルの色分け */
.label-blue {
    background-color: #2b5aa5; /* 協定の青 */
}
.label-green {
    background-color: #6fb05c; /* 事例の緑 */
}

.report-city {
    color: var(--text-color);
}

/* 右側の内容エリア */
.report-content {
    flex: 1; /* 残りの幅を全部使う */
    min-width: 250px; /* 極端に狭くならないように */
}

.report-title {
    margin: 0;
    line-height: 1.5;
    font-weight: bolder;
}

.report-desc {
    color: var(--text-color);
    margin: 5px 0 0 0;
    line-height: 1.6;
}

/* ボタンエリア */
.report-action {
    text-align: right;
    padding-top: 10px;
}

.toggle-link {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px;
}

.toggle-link:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* スマホ対応（画面幅が狭いとき） */
@media screen and (max-width: 600px) {
    .report-item {
        display: block; /* 縦積みに変更 */
    }
    .report-meta {
        width: 100%;
        margin-bottom: 8px;
    }
}
/* 今回追加する「非表示用」クラス */
.is-hidden {
    display: none !important;
}

/* もっと見るボタンのスタイル（少しボタンらしく調整） */
.report-action {
    text-align: center; /* 中央寄せ */
    margin-top: 20px;
}
.toggle-link {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 40px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.toggle-link:hover {
    background: #e0e0e0;
}


/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer p {
    font-size: 0.9em;
}
