/* 共通レイアウトのCSS(app.blade.php のインライン<style>から外部化 / 2026-07-28 趙)
   ※Blade条件(@unless等)の内側にあるものは、条件を失うと全ページに効いてしまうため移していない。
     実際、トップ以外用の白背景を無条件化してトップを真っ白にする事故を起こした。 */

        /* 目では見えないが読み上げ・検索エンジンには渡る見出し用 */
        .sr-only {
            position: absolute;
            width: 1px; height: 1px;
            padding: 0; margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* 画面幅を超える要素があっても横スクロールを発生させない */
        html, body { max-width: 100%; overflow-x: hidden; }

        /* 本文画像に width/height を入れているため、縦横比を保って可変させる
           (これが無いと属性の寸法で固定され画像が歪む) */
        .article-body img { max-width: 100%; height: auto; }

        @media (max-width: 768px) {
            /* 画像・表・コード・埋め込みが画面外へはみ出すのを防ぐ */
            img, video, iframe, table, pre { max-width: 100%; }
            img, video { height: auto; }
            table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
            /* 長いURL等での押し出しを防ぐ */
            body { word-break: break-word; overflow-wrap: anywhere; }
            /* タップ領域を確保(リンク・ボタンの最小高) */
            a.site-header__drawer-link,
            a.site-header__drawer-button,
            .content-pagination a,
            .content-pagination span { min-height: 44px; }
        }
    

        .menu-wrapper {
            position: relative;
            display: block;
            margin-left: auto;
            margin-right: 1rem;
            width: 4.5rem;
            text-align: center;
        }
        .submenu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #ffffffad;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            display: none;
            z-index: 1000;
            padding: 2rem;
            margin-top: 10px;
            width: 15vw;
            animation: submenu-slide-down 0.3s ease-out;
        }
        .menu-icon {
            width: 30px;
            height: 30px;
        }
        .menu-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            cursor: pointer;
        }
        .submenu-triangle {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid #ffffffad;
        }
        .submenu ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .submenu li {
            margin: 0 3%;
            text-align: left;
            font-size: 1rem;
            font-weight: 600;
            line-height: 3rem;
        }
        span.company {
            font-size: 1rem;
            margin: 3% 0;
            display: block;
            line-height: 2rem;
        }
        .submenu a {
            text-decoration: none;
            color: #333;
            display: block;
        }
        .menu-wrapper:hover .submenu {
            display: block;
        }
        @keyframes submenu-slide-down {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }
        @media screen and (max-width: 768px) {
            .menu-icon {
                display: none;
            }
        }
        .site-footer {
  background: #f6f6f6;
  padding: 60px 20px 70px;
}



.site-footer {
  background: #f3f3f3;
  padding: 72px 20px 50px;
  border-top: 1px solid #e7e7e7;
}

.footer-inner {
  width: 70vw;
  margin: 0 auto;
}

.footer-grid {
  display: inline;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 48px;
  align-items: end;
}

.footer-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #111;
}

/* フッターのロゴ(透過webp・ヘッダーと同一素材 / 2026-07-28 趙) */
.footer-logo-img {
  display: block;
  height: 2.4rem;
  width: auto;
}
@media (max-width: 768px) {
  .footer-logo-img { height: 2rem; }
}

.footer-project {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

.footer-contact {
  padding-top: 22px;
  border-top: 1px solid #d8d8d8;
}

.footer-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #666;
}

.footer-mail {
  display: inline-block;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-mail:hover {
  opacity: 0.65;
}

.footer-sub {
    display: block;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    margin-top: 3%;
}

.footer-policy {
  display: inline-block;
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}

.footer-policy:hover {
  opacity: 0.65;
}

.footer-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #666;
  max-width: 100%;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }

  .footer-project {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
    .footer-inner {
  width: 85vw;
  margin: 0 auto;
}
  .site-footer {
    padding: 56px 16px 64px;
  }

  .footer-project {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .footer-contact {
    padding-top: 18px;
  }

  .footer-label {
    font-size: 0.76rem;
  }

  .footer-mail {
    font-size: 1.45rem;
    word-break: break-word;
  }

  .footer-policy {
    font-size: 0.9rem;
  }

  .footer-note {
    font-size: 0.82rem;
    line-height: 1.8;        margin-top: 2%;
  }
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-fixed {
    position: fixed;


}

.site-header__inner {
    width: 92vw;
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__logo {
    display: block;
    width: 220px;
    flex-shrink: 0;
    line-height: 0;
}

.site-header__logo img {
    display: block;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 10px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.site-header__link:hover {
    opacity: 0.7;
}

.site-header__button,
.site-header__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    padding: 0 25px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.site-header__button--ghost {
    color: #222;
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.08);
}

.site-header__button--solid {
    color: #222222;
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.95);
}

.site-header__status {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.12);
}

.site-header.is-fixed .site-header__link {
    color: #222222;
}

.site-header.is-fixed .site-header__button--ghost {
    color: #222222;
    border: 1px solid #222222;
    background: #ffffff;
}

.site-header.is-fixed .site-header__button--solid {
    color: #ffffff;
    border: 1px solid #222222;
    background: #222222;
}

.site-header.is-fixed .site-header__status {
    color: #1f5d3d;
    border: 1px solid #badcc8;
    background: #eaf6ee;
}

.site-header__toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__toggle span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.site-header__toggle span:nth-child(1) {
    top: 16px;
}

.site-header__toggle span:nth-child(2) {
    top: 23px;
}

.site-header__toggle span:nth-child(3) {
    top: 30px;
}

.site-header.is-fixed .site-header__toggle span {
    background: #222222;
}

.site-header__toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__toggle-icon {
    width: 28px;
    height: 28px;
    stroke: #222222;
    stroke-width: 2.2;
    fill: none;
    display: block;
}

.site-header.is-fixed .site-header__toggle-icon {
    stroke: #222222;
}

.site-header__drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(84vw, 360px);
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    transition: right 0.35s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.site-header__drawer.is-open {
    right: 0;
}

.site-header__drawer-inner {
    height: 100%;
    overflow-y: auto;
    padding: 88px 24px 32px;
}

.site-header__drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-header__drawer-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #e7e7e7;
    color: #222222;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.site-header__drawer-button,
.site-header__drawer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.site-header__drawer-button--ghost {
    color: #222222;
    border: 1px solid #222222;
    background: #ffffff;
}

.site-header__drawer-button--solid {
    color: #ffffff;
    border: 1px solid #222222;
    background: #222222;
}

.site-header__drawer-status {
    color: #1f5d3d;
    border: 1px solid #badcc8;
    background: #eaf6ee;
}

.site-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.pc-only {
    display: flex;
}

.sp-only {
    display: none;
}

html.is-fixed,
body.is-fixed {
    overflow: hidden;
}

/* ヘッダーだけをヒーロー上に重ねる補助 */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0)); */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.site-header.is-fixed::before {
    opacity: 0;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 72px;
    }

    .site-header__logo {
        width: 168px;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}
.site-header__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

/* PC */
.site-header__logo-main {
    font-size: 1.1rem;
    font-weight: 700;
}
span.site-header__logo-text {
    width: 300px;
    font-weight: 600;
}

.site-header__logo-sub {
    font-size: 0.8rem;
    color: #888;
}

/* スマホ最適化 */
@media (max-width: 768px) {
    span.site-header__logo-text {
    width: auto;
    font-weight: 600;
    display: block;
}
    .site-header__inner {
    width: 95vw;
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
    .site-header__logo-main {
        font-size: 1.1rem;
    }
span.site-header__logo-text {
    font-size: 1rem;
}
    .site-header__logo-sub {
        font-size: 0.7rem;
    }
.site-header__toggle span {
    background: #222222;
}
}
@media (max-width: 900px) {
    .site-header__inner {
        width: calc(100vw - 32px);
        margin: 0 16px;
        min-height: 72px;
        gap: 12px;
    }

    .site-header__logo {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: calc(100% - 60px);
    }

    .site-header__logo-text {
        width: auto;
        font-size: 0.95rem;
        line-height: 1.35;
        white-space: normal;
        word-break: break-word;
    }

    .site-header__toggle {
        display: block!important;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin-left: auto;
    }

    .site-header__toggle span {
        background: #222222;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
    .site-header__toggle span {
    background: #222222;
}
.site-header__toggle {
    margin-left: auto!important;
    margin-right: 0!important;        text-align: -webkit-right;
}

}

.site-header__logo {
  display: block;
  align-items: center;
}

.site-header__logo-img {
  height: clamp(28px, 3.4vw, 36px);
  width: auto;
  display: block;
}

/* タブレット(768px〜) */
@media (min-width: 768px) {
  .site-header__logo-img {
    height: 30px;
  }
}

/* PC(1024px〜) */
@media (min-width: 1024px) {
  .site-header__logo-img {
    height: 3rem;
  }
}
    

    .site-header__logo { display: inline-flex; align-items: center; text-decoration: none; }
    .site-header__logo-text {
        font-family: 'Roboto', 'Hiragino Mincho ProN', serif;
        font-weight: 700;
        font-size: 1.5rem;
        letter-spacing: 0.06em;
        color: #1a1a1a;
        line-height: 1;
    }
    .site-header.is-fixed .site-header__logo-text { color: #1a1a1a; }
