@charset "UTF-8";

/* --- レスポンシブデザイン設定 (Responsive Styles) --- */

/* タブレット端末 (max-width: 1366px: iPad Pro Landscape含む) */
@media (max-width: 1366px) {
  /* 横スクロール防止 (タブレット) */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* フォントサイズの調整 */
  .ttl-section h2 {
    font-size: 2.25rem;
  }

  h3.ttl-section {
    font-size: 1.5rem;
  }

  .ttl-hero {
    font-size: 2.8rem;
  }

  /* パディングの調整（余白確保） */
  .news-list,
  .greeting-section,
  .area-company-table {
    padding: 30px;
  }

  /* iPadレイアウト修正: 会社紹介セクション */
  .area-company-intro {
    flex-direction: column;
    /* 縦並びに変更 */
    align-items: stretch;
  }

  .img-company-intro,
  .txt-company-intro {
    width: 100%;
    min-width: 0;
    /* リセット */
    text-align: center;
    /* テキストを中央揃え */
  }

  /* スライドショーの高さ調整 */
  .grid-company-slideshow {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* アクセスマップのレイアウト修正 */
  .area-access {
    flex-direction: column;
    align-items: center;
    /* 縦並びで中央揃え */
  }

  .access-info,
  .area-map {
    width: 100%;
    max-width: 600px;
  }

  /* --- ヘッダー設定（タブレット：ハンバーガーメニュー化） --- */
  header {
    height: 60px;
    padding: 0 15px;
    /* モバイル同様のパディング */
    width: 100%;
    box-sizing: border-box;
  }

  .fig-logo img {
    height: 30px;
  }

  /* --- ハンバーガーボタン（タブレットで表示: CSSアニメーション対応） --- */
  .btn-menu-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 7px;
    right: 15px;
    z-index: 99999;

    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid #3f524c;
    border-radius: 4px;
    cursor: pointer;
  }

  /* ハンバーガーアイコンの線 */
  .btn-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 0;
    position: absolute;
    transition: all 0.3s ease-in-out;
  }

  /* 通常時の線の位置 */
  .btn-menu-toggle span:nth-child(1) {
    top: 13px;
  }

  .btn-menu-toggle span:nth-child(2) {
    top: 21px;
  }

  .btn-menu-toggle span:nth-child(3) {
    top: 29px;
  }

  /* ×印へのアニメーション (activeクラス付与時) */
  .btn-menu-toggle.is-active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .btn-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .btn-menu-toggle.is-active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* --- ナビゲーションメニュー（オーバーレイ化） --- */
  .nav-cmn-menu {
    display: none;
    /* 初期状態は非表示（JSでslideToggle） */
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #ffffff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    gap: 0;
    overflow-y: auto;
    z-index: 9999;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-cmn-menu li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    white-space: normal;
    /* 折り返し許可 */
  }

  /* .btn-contact のリセット（オーバーレイスタイルに合わせる） */
  .btn-contact {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
    padding: 12px 0 !important;
    border-bottom: none !important;
    margin: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    width: calc(100% - 40px);
  }

  /* 事業内容グリッドはそのまま2列維持 */
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* --- 詳細ページレスポンシブ --- */
  .sec-detail-hero {
    height: 300px;
  }

  .sec-detail-hero .ttl-hero {
    font-size: 2.5rem;
  }

  .area-content {
    padding: 40px 5%;
  }

  .grid-service {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .grid-service.grid-3-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mod-feature-card {
    margin-bottom: 20px;
  }

  /* Swiper（スライダー）ナビゲーションボタン・ページネーション */
  /* MOD Start 2026/04/09 */
  /* 処理概要：タブレット・スマホレイアウト時のSwiper矢印とページネーション非表示 */
  /* 理由：自動再生のためタブレット以下画面では非表示とする */
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }

  /* MOD End 2026/04/09 */
}

/* MOD Start 2026/04/09 */
/* 処理概要：モバイル画面（スマホ）向けのグローバルなタイポグラフィ調整 */
/* 理由：iPhone SE等の小型端末での読みやすさ改善、及びテキストの巨大化・不自然な改行の防止 */
@media screen and (max-width: 767px) {
  /* ベース要素のリセット */
  body,
  p,
  a,
  li,
  span {
    font-size: 14px !important;
    /* 小型画面向けにサイズを縮小 */
    line-height: 1.6 !important;
    /* 行間を最適化 */
  }

  /* メインタイトル・ヒーローセクション */
  h1,
  .hero-title,
  .page-title,
  .ttl-hero {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  /* サブタイトル・セクションタイトル */
  h2,
  .section-title,
  .ttl-section h2 {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  /* 小見出し */
  h3,
  .txt-greeting-message,
  .ttl-work {
    font-size: 16px !important;
  }

  /* お知らせ・リード文等のユーティリティ */
  .lead-text,
  .message-box,
  .list-news-item,
  .txt-service-desc,
  .txt-work-desc {
    font-size: 14px !important;
  }

  /* 日本語の自然な改行設定 */
  body {
    /* word-break: auto-phrase; */
    overflow-wrap: break-word;
  }

  /* 既存のレイアウト修正（スライド・改行） */
  .mod-swiper-container .swiper-slide {
    width: 100% !important;
  }

  .pc-br {
    display: none;
  }

  /* MOD Start 2026/04/09 */
  /* 処理概要：ページトップボタンのモバイル向け縮小と配置調整。 */
  /* 理由：グローバルなタイポグラフィ修正による干渉を防ぎ、小型画面での視認性と操作性を両立するため。 */
  .btn-page-top {
    width: 45px !important;
    height: 45px !important;
    bottom: 15px !important;
    right: 15px !important;
  }

  .btn-page-top i {
    font-size: 14px !important;
    margin-bottom: 0 !important;
  }

  .btn-page-top span {
    font-size: 8px !important;
    display: block !important;
  }

  /* MOD End 2026/04/09 */
}

/* MOD End 2026/04/09 */

/* モバイル端末 (max-width: 740px) */
@media (max-width: 740px) {
  /* 横スクロール防止 & モバイル用box-sizing初期化 */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  * {
    box-sizing: border-box;
  }

  /* --- ヘッダー設定（モバイル完全修正版） --- */
  header {
    height: 60px !important;
    width: 100% !important;
    /* 親要素の幅（720px等）を無視して全幅表示 */
    max-width: 100vw !important;
    /* ビューポート幅に合わせる */
    padding: 0 15px !important;
    box-sizing: border-box !important;
    /* パディングによるはみ出し防止 */
    position: fixed !important;
    z-index: 1000;
  }

  .fig-logo img {
    height: 30px;
    /* モバイル用に少し縮小 */
  }

  /* --- ハンバーガーボタン（モバイル最適化） --- */
  .btn-menu-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: fixed !important;
    top: 7px !important;
    right: 15px !important;
    z-index: 99999;

    width: 45px !important;
    height: 45px !important;
    background: #ffffff !important;
    border: 1px solid #3f524c !important;
    border-radius: 4px;
    cursor: pointer;
    color: var(--primary-color);
  }

  /* --- ナビゲーションメニュー（展開時） --- */
  .nav-cmn-menu {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #ffffff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    gap: 0;
    overflow-y: auto;
    z-index: 9999;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-cmn-menu li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
  }

  /* --- ヒーローセクション（メインビジュアル） --- */
  .ttl-hero {
    font-size: 1.8rem;
    white-space: normal;
    /* 折り返しを許可 */
    border-bottom-width: 1px;
  }

  .txt-hero-subtitle {
    font-size: 1rem;
  }

  /* MOD Start 2026/04/09 */
  /* 処理概要：ヒーローサブタイトルのPC用改行非表示クラス名修正 */
  /* 理由：実際のクラス名（txt-hero-subtitle）に合わせて修正し、モバイルでの不要な改行を防ぐため */
  .txt-hero-subtitle br {
    display: none;
  }

  /* MOD End 2026/04/09 */

  /* Swiper（スライダー）ナビゲーションボタン */
  /* MOD Start 2026/04/09 */
  /* 処理概要：スマホレイアウト時のSwiper矢印非表示 */
  /* 理由：自動再生のためスマホでは非表示とする */
  /* .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1rem;
  } */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  /* MOD End 2026/04/09 */

  /* Swiperスライド幅の修正 */
  .swiper-slide {
    width: 100% !important;
    /* 1枚表示 */
    margin-right: 0;
  }

  /* --- セクション共通設定 --- */
  section {
    padding: 40px 5%;
  }

  .ttl-section h2 {
    font-size: 1.8rem;
  }

  h3.ttl-section {
    font-size: 1.3rem;
  }

  .ttl-section span {
    font-size: 1rem;
  }

  /* MOD Start 2026/04/09 */
  /* 処理概要：ご挨拶・経営理念セクションのモバイルレイアウト調整 */
  /* 理由：モバイル表示領域における極端な余白を削減し、テキストの視認性を高めるため */
  .sec-greeting {
    padding: 30px 15px;
    margin-bottom: 40px;
  }

  .list-philosophy {
    padding: 20px 15px;
    margin: 30px auto 0;
    width: 100%;
    box-sizing: border-box;
  }

  .list-philosophy ol {
    text-align: left;
  }

  /* MOD End 2026/04/09 */

  /* --- 会社紹介セクション --- */
  .area-company-intro {
    gap: 20px;
  }

  .img-company-intro,
  .txt-company-intro {
    padding: 20px 10px;
  }

  .grid-service,
  .grid-service.grid-3-cols {
    grid-template-columns: 1fr;
  }

  .grid-company-slideshow {
    height: 250px;
  }

  /* 高さを固定 */

  /* --- 会社概要テーブル（レスポンシブ対応） --- */
  .table-company th,
  .table-company td {
    display: block;
    /* ブロック要素にして縦積みに */
    width: 100% !important;
    /* インラインスタイルの30%を強制上書き */
    box-sizing: border-box;
  }

  .table-company th {
    background: #f9f9f9;
    color: var(--primary-color);
    padding: 10px;
    border-bottom: none;
    /* 見出しの下線は削除 */
    white-space: nowrap;
    /* テキストの折り返しを禁止（1行にする） */
  }

  .table-company td {
    padding: 10px 10px 20px;
    border-bottom: 1px solid #ddd;
    /* 項目の区切り線 */
  }

  /* --- アクセスマップ --- */
  .area-map {
    height: 250px;
  }

  /* --- フッター --- */
  /* MOD Start 2026/04/09 */
  /* 処理概要：タブレット画面（740px以下）でのフッター縦並び設定を解除。 */
  /* 理由：モバイル表示のブレイクポイントを500pxに引き下げるため、ここではスタックさせない。 */
  /*
  .contents-footer {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .list-footer-links {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
  */
  /* MOD End 2026/04/09 */

  /* --- 画像モーダル --- */
  .contents-modal {
    width: 95%;
    margin: 10% auto;
  }

  .btn-prev,
  .btn-next {
    padding: 10px;
    font-size: 1.5rem;
  }

  .btn-close-modal {
    right: 10px;
    top: 10px;
  }

  /* --- グリッド（モバイル） --- */
  /* MOD Start 2026/04/09 */
  /* 処理概要：モバイル画面での事業内容カードを1列表示に変更 */
  /* 理由：モバイル画面で2列だと文字が潰れて読みにくいため。クラス名に .grid-services を追加 */
  /*
  .services-grid,
  .grid-service,
  .voice-grid,
  .before-after-grid {
  */
  .services-grid,
  .grid-service,
  .grid-services,
  .voice-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
    /* 1列表示 */
    gap: 20px;
    padding: 0;
  }

  /* MOD End 2026/04/09 */

  .voices-container {
    padding: 20px 10px 40px;
  }

  .voice-section {
    padding: 20px;
  }

  .interview-icon {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }

  .interview-content {
    padding: 15px;
  }

  /* 詳細ページ（モバイル） */
  .sec-detail-hero {
    height: 250px;
  }

  .sec-detail-hero .ttl-hero {
    font-size: 2rem;
  }

  .area-content {
    padding: 30px 5%;
  }
}

/* --- MODERN FOOTER RESPONSIVE --- */
@media (max-width: 1200px) {
  .mod-footer-col-brand .fig-footer-logo .ico-footer-icon {
    height: 55px;
  }

  .mod-footer-col-brand .fig-footer-logo .txt-footer-name {
    height: 42px;
  }
}

/* MOD Start 2026/04/09 */
/* 処理概要：フッターのスタック（縦並び）ブレイクポイントを1024pxに引き上げ。 */
/* 理由：iPad等のタブレット端末でもモバイル同様のシンプルで中央揃えのレイアウト（縦並び）を適用するため。 */
@media (max-width: 1024px) {
  .contents-footer {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 0 20px;
  }

  .grid-footer {
    display: flex;
    /* flex-direction: column for stack */
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
  }

  .mod-footer-col {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .fig-footer-logo {
    justify-content: center;
    margin-bottom: 20px;
  }

  .list-footer-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .mod-footer-col-brand .fig-footer-logo .ico-footer-icon {
    height: 45px;
  }

  .mod-footer-col-brand .fig-footer-logo .txt-footer-name {
    height: 34px;
  }

  .area-footer-bottom {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .txt-copyright {
    order: 2;
  }

  .btn-page-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .btn-page-top span {
    font-size: 8px !important;
  }

  .ttl-footer-col {
    margin: 0 auto 15px;
    text-align: center;
  }
}

/* MOD End 2026/04/09 */

/* ADD Start 2026/04/10 */
/* 処理概要：デスクトップ表示（768px以上）における特徴カード（.mod-feature-card）の可読性向上 */
/* 理由：リスト項目の不自然な改行を防ぎ、箇条書き表示と余白を最適化するため */
@media screen and (min-width: 768px) {
  .mod-feature-card {
    padding: 8px 20px;
  }

  /* MOD Start 2026/04/21 */
  /* 処理概要：特徴カードの見出しの中央揃えの維持 */
  /* 理由：全体で中央揃え（アイコンは左固定）とするデザインに変更したため、左揃えの上書きを解除 */
  /*
  .mod-feature-card h3 {
    /* text-align: center; * /
    text-align: left;
  }
  */
  .mod-feature-card h3 {
    text-align: center;
  }
  /* MOD End 2026/04/21 */

  .mod-feature-card ul {
    width: fit-content;
    margin: 0 auto;
    list-style-type: disc;
    padding-left: 1.5em;
  }

  .mod-feature-card li {
    margin-bottom: 12px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .mod-feature-card li:last-child {
    margin-bottom: 0;
  }
}

/* ADD End 2026/04/10 */

/* ADD Start 2026/04/15 */
/* 処理概要：タブレット専用（768px〜1024px）フッターレイアウトの適用。 */
/* 理由：タブレット画面においてモバイルの縦積みでもデスクトップの4列でもない、 */
/*       「上部：ロゴ＋住所横並び」「下部：ナビ2カラム横並び」の専用レイアウトを実現するため。 */
@media (min-width: 768px) and (max-width: 1024px) {
  /* グリッドをFlexboxの折り返しレイアウトに切り替える */
  /* ブランドカラム（全幅）が上部行、リンク2カラムが下部行として自動的に折り返す */
  .grid-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 40px;
  }

  /* --- 上部ブロック：ロゴ＋住所 横並び --- */
  /* ブランドカラムをFlexコンテナに変換し、ロゴと住所を左右に配置する */
  /* ブランドカラム：全幅（flex-basis: 100%）で上部行を占め、内部でロゴ＋住所を横並びにする */
  .mod-footer-col-brand {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  /* ロゴブロック（左側） */
  .mod-footer-col-brand .fig-footer-logo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* 住所ブロック（右側） */
  .mod-footer-col-brand .txt-footer-address {
    text-align: right;
  }

  /* --- 下部行：ナビリンクを2カラム横並びにする --- */
  /* リンク系カラム（左）：50%幅で下部行の左半分、右マージンでカラム間の間隔を確保 */
  .mod-footer-col-links {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin-right: 40px;
    text-align: left;
  }

  /* サービスカラム（右）：50%幅で下部行の右半分を占める */
  .mod-footer-col-services {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    text-align: left;
  }

  /* コンタクトカラムは非表示（SNSアイコンのみ含む空カラムのため） */
  .mod-footer-col-contact {
    display: none;
  }

  /* リンクカラムの中央揃えをリセット（タブレットでは左揃えに戻す） */
  .mod-footer-col {
    text-align: left;
    /* align-items: anchor-center; */
    align-items: center;
  }

  /* ナビゲーションリストの中央揃えをリセットする */
  .nav-footer {
    align-items: flex-start;
  }

  /* ロゴの中央揃えをリセットし、左揃えに戻す */
  .fig-footer-logo {
    justify-content: flex-start;
  }

  /* フッターコンテンツの中央揃えをリセットし、左揃えに戻す */
  .contents-footer {
    text-align: left;
  }

  /* 事業内容の見出しをリセット */
  .ttl-footer-col {
    text-align: left;
    margin: 0 0 15px 0;
  }
}

/* ADD End 2026/04/15 */

/* ADD Start 2026/04/21 */
/* 処理概要：モバイルおよびタブレット向けのヘッダーレイアウト修正 */
/* 理由：992px未満の画面でロゴが巨大化し、テキストと重なる問題やコンテンツの隠れを防ぐため */
@media screen and (max-width: 991px) {
  /* ロゴと会社名のコンテナをフレックスボックスで整列 */
  .mod-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* ロゴ全体の高さを制限して縮小 */
  .mod-logo-link img {
    height: auto !important;
    max-height: 35px !important;
    width: auto !important;
  }

  /* 会社名テキスト(logo3.png)のサイズをさらに細かく調整 */
  .mod-logo-link img[alt="Mizuho Name Logo"] {
    max-height: 22px !important;
  }

  /* 固定ヘッダーによるコンテンツの重なりを防ぐため、bodyに余白を追加 */
  body {
    padding-top: 60px !important;
  }

  /* MOD Start 2026/04/21 */
  /* 処理概要：モバイルおよびタブレット向けの特徴カード見出しのスタイル再調整 */
  /* 理由：モバイルのみならずタブレット表示時でも不自然な改行や余白の圧迫を防ぐため */
  .mod-feature-card h3 {
    padding-left: 30px !important;
    padding-right: 30px !important;
    font-size: 15px !important;
    word-break: keep-all;
  }

  /* 30pxの余白に収まるようにアイコンも合わせて縮小 */
  .mod-feature-card h3 i {
    font-size: 1.6rem !important;
  }

  /* テキストの階層を維持するため、段落サイズを縮小 */
  .mod-feature-card p,
  .mod-feature-card li {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  /* MOD End 2026/04/21 */
}
/* ADD End 2026/04/21 */
