/* 基本的なリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}
/* 共通 */

/*PC・SP切り分け*/
.pc {
    display: block !important;
    }
    .sp {
    display: none !important;
    }
    @media only screen and (max-width: 768px) {
    .pc {
    display: none !important;
    }
    .sp {
    display: block !important;
    }
    }
/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.download__row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: flex-start;
    padding: 3rem 0;
    justify-content: space-around;
}

.download__contLeft{
    flex: 0 0 60%;
    padding: 0 15px;
}

/* 左側コンテンツ */
.download__contRight{
    width: 60%;
}
.download__title,
.download__subtitle{
    padding-bottom: 1rem;
}
.download__subtitle{
    font-weight: ;
}
.download__content {
    padding: 40px 0;
}

.download__title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
    
}


.download__article--img {
    margin: 0 0 30px 0;
}

.download__article--img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.download__text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}
.download__text__list{
    font-size: 16px;
    line-height: 1.8; 
    color: #555;
    margin-bottom: 30px;
}

/* 右側フォーム */

/* form */
#form_dl{
    max-width: 400px;
    width: 100%;
}
#form_dl .content_form{
    background-color: #f8f9fa;
    padding: 3rem 1rem 1rem;
    border-radius: 15px;
    margin-left: 0;
}

/* 説明文を追加する場合 */
#form_dl .content_form::before {
    content: "フォーム入力後、資料をダウンロードできます。";
    display: block;
    margin-bottom: 2rem;
    font-size: 14px;
    color: #333;
}

/* 入力ユニット全体を縦並びに */
#form_dl .content_form .input_unit{
    margin-bottom: 1.5rem;
    display: block;
}

/* 左カラム（ラベル部分）を縦並びに */
#form_dl .content_form .input_unit .my_left{
    width: 100%;
    padding: 0!important;
    margin-bottom: 0.5rem;
    display: block;
}

/* 右カラム（入力欄部分）を縦並びに */
#form_dl .content_form .input_unit .my_right{
    width: 100%!important;
    padding: 0!important;
    display: block;
}
/* ラベルスタイル */
#form_dl .content_form .form_input_label{
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: inline-block;
}

/* 必須バッジ */
#form_dl .content_form .form_input_label.required::after{
    content: "必須";
    width: 28px!important;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 3px;
    font-weight: normal;
    display: inline-block;
}

/* 入力フィールド */
#form_dl .content_form input[type="text"]{
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffe8e8!important;
    transition: all 0.3s;
}

#form_dl .content_form input[type="text"]:focus{
    outline: none;
    border-color: #888;
    background-color: #fff5f5;
}

/* 送信ボタン */
#form_dl .content_form .form_input_submit{
    max-width: 350px;
    margin: 0 auto;
    margin-top: 2rem;
}

#form_dl .content_form input[type="submit"]{
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* thanks */
/* ヘッダーとフッターの間の余白を flex で埋め、本文を縦中央に配置 */
.page-thanks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-thanks .site-footer {
    margin-top: auto;
}

.thanks__container{
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    line-height: 2;
}

/* 上下 auto マージンで中央寄せ（内容が長い場合は上が見切れず先頭から表示） */
.thanks__inner {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
#form_dl{
    max-width: 50%;
    margin: 0 auto;
}
}

/* レスポンシブ対応 */
@media (max-width: 830px) {
.download__title{
    font-size: 25px;
}
    .container {
        padding: 0 15px;
    }
    
    .download__content {
        padding: 20px 0;
    }
    
    .download__row {
        flex-direction: column;
        margin: 0 auto;
        padding: 1rem 0;
    }
    .download__contLeft,
    .download__contRight{
        display: block;
        flex: none;
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .download__tit {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .download__text {
        font-size: 18px;
    }
    
    .download__form--content {
        max-width: 800px;
        width: 100%;
        padding: 20px;
    }
    
    .input_unit {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .label_frame {
        flex: none;
    }
    .my_column{
        flex: 0 0 60px;
        max-width: 330px;
        width: 100%;

    }
}
@media (max-width: 768px) {
    .content_form{
        padding: 2rem 1rem;
    }
    #form_dl{
        max-width: 420px;
    }
    
}
@media (max-width: 480px) {
    .download__tit {
        font-size: 20px;
    }
    
    .download__form--content {
        padding: 15px;
    }
    
    .myForm input[type="text"],
    .myForm input[type="submit"] {
        padding: 10px 12px;
    }
}

/* =========================================
   共通ヘッダー / フッター（consultant-page と共通）
   ========================================= */

.layout-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- site header ----- */
.site-header {
    position: relative;
    z-index: 200;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
    position: relative;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.site-header__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.site-header__lead {
    flex: 1;
    min-width: 0;
}

.site-header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c5c5c5;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__menu-toggle:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.site-header__menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--nav-open .site-header__menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header--nav-open .site-header__menu-bar:nth-child(2) {
    opacity: 0;
}

.site-header--nav-open .site-header__menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header__tagline {
    font-size: 12px;
    color: #222;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.site-header__brand {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    line-height: 1.2;
}

@media (min-width: 769px) {
    .site-header__topbar {
        margin-bottom: 1.25rem;
    }
}

.site-header__brand a {
    color: #111;
    text-decoration: none;
}

.site-header__nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    border-left: 1px solid #c5c5c5;
}

.site-header__nav-list > li {
    border-right: 1px solid #c5c5c5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .site-header__nav-list > li {
        flex: 1 1 0;
        min-width: 0;
    }
}

.site-header__nav-list > li > a,
.site-header__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
}

.site-header__nav-list > li > a:hover,
.site-header__dropdown-toggle:hover {
    text-decoration: underline;
}

.site-header__nav-item--dropdown {
    position: relative;
}

.site-header__submenu {
    list-style: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    margin-top: 0;
    padding: 0.35rem 0;
    background: #f4f4f4;
    border: 1px solid #c5c5c5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.site-header__submenu li a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 13px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__submenu li a:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.site-header__nav-item--dropdown:hover .site-header__submenu,
.site-header__nav-item--dropdown:focus-within .site-header__submenu,
.site-header__nav-item--dropdown.is-open .site-header__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-header__dropdown-toggle:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

@media only screen and (max-width: 768px) {
    .site-header__inner {
        padding-bottom: 1rem;
    }

    .site-header__lead .site-header__brand {
        margin-bottom: 0;
    }

    .site-header__menu-toggle {
        display: flex;
    }

    .site-header__nav {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        margin: 0;
        padding-top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
        padding-left: 20px;
        padding-right: 20px;
        background: #fff;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .site-header--nav-open .site-header__nav {
        display: block;
    }

    .site-header--nav-open .site-header__menu-toggle {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 1rem);
        right: 20px;
        z-index: 1001;
    }

    .site-header__nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        width: 100%;
        border-left: none;
    }

    .site-header__nav-list > li {
        flex: none;
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
        justify-content: flex-start;
    }

    .site-header__nav-list > li:last-child {
        border-bottom: none;
    }

    .site-header__nav-list > li > a,
    .site-header__dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
        padding: 1.15rem 1rem;
        white-space: normal;
        text-align: left;
    }

    .site-header__submenu li a {
        padding: 0.75rem 1rem 0.75rem 1.5rem;
    }

    .site-header__nav-item--dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header__submenu {
        position: static;
        margin: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid #c5c5c5;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        padding: 0;
        transition: none;
    }

    .site-header__nav-item--dropdown:hover .site-header__submenu,
    .site-header__nav-item--dropdown:focus-within .site-header__submenu,
    .site-header__nav-item--dropdown.is-open .site-header__submenu {
        display: block;
    }

    .site-header__nav-item--dropdown:not(.is-open):not(:hover):not(:focus-within) .site-header__submenu {
        display: none;
    }

}

/* ----- site footer ----- */
.site-footer {
    background-color: #333;
    color: #fff;
}

.site-footer__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* 横並び1行。幅に応じて文字サイズと間隔を縮めて収める */
.site-footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 1.8vw, 2rem);
    width: 100%;
    min-width: 0;
}

.site-footer__nav-list > li {
    display: block;
    min-width: 0;
}

.site-footer__nav-list > li > a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: clamp(11px, 1.15vw, 14px);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    text-align: center;
}

.site-footer__nav-list > li > a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    .site-footer__nav-list {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        column-gap: 1.25rem;
    }

    .site-footer__nav-list > li > a {
        font-size: 12px;
    }
}

.site-footer__copyright {
    text-align: center;
    font-size: 12px;
    color: #fff;
    margin-top: 1rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .layout-inner {
        padding: 0 15px;
    }

    .site-header__nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-header--nav-open .site-header__menu-toggle {
        right: 15px;
    }
}
