@charset "UTF-8";

/*============================================================
  common.css — 全ページ共通ガワ（header / side / footer）
  ・ヘッダー：gnavi
  ・サイド：.side-content（fix.js 追従・blog・topic）
  ・フッター
  ※ index = style.css / 下層 = sub.css と併用
============================================================*/

.button{
  background-color: #152c88;
  border-radius: 5px;
  color: #fff;
  display: flex;
  padding: 4px 20px;
  max-width: 170px;
  min-width: 68px;
  height: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: clamp(12px, 0.85vw, 18px);
}
.button:hover{
  background-color: #264de8;
  text-shadow: 0 0 3px #fff;
  letter-spacing: 2px;
}

/*------------------------------------------------------------
	NAVI (gnavi)
------------------------------------------------------------*/

.gnavi__wrap {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    border-top:solid 8px #152c88;
    border-bottom:solid 1px #152c88 ;
    display: grid;
    grid-template-columns: 30% 1fr;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #fff;
    box-sizing: border-box;
}
body {
    padding-top: 70px;
}
.gnavi__lists {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}



.gnavi__list {
    flex: 0 0 auto;
    min-width: 120px;
    height: 100%;
    background-color: #fff;
    position: relative;
    transition: all .3s;
}
.gnavi__list:hover {
    background-color: #0071BB;
}
.gnavi__list:not(:first-child)::before {
    content: "";
    width: 1px;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .3s;
}
.gnavi__list:hover::before {
    background-color: #0071BB;
}
.gnavi__list a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #1b4059;
    font-size: clamp(11px, 1.0vw, 15px);
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: all .3s;
}
.gnavi__list:hover a {
    color: #fff;
}

.dropdown__lists {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    width: 200%;
    min-width: 180px;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    z-index: 10000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.gnavi__list:hover .dropdown__lists {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.dropdown__list {
    background-color: #fff;
    height: 52px;
    transition: background-color .2s;
    position: relative;
    border-bottom: 1px solid #e8eaf0;
}
.dropdown__list:not(:first-child)::before{
    content: "";
    width: 100%;
    height: 1px;
    background-color: #e8eaf0;
    position: absolute;
    top: 0;
    left: 0;
}
.dropdown__list:hover {
    background-color: #f0f4ff;
}
.dropdown__list a,
.gnavi__list:hover .dropdown__list a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 18px;
    color: #222 !important;
    text-decoration: none;
    position: relative;
    font-size: clamp(12px, 0.9vw, 14px);
}
.dropdown__list a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #152c88;
    border-left: 2px solid #152c88;
    transform: rotate(135deg);
    position: absolute;
    right: 15px;
    top: calc(50% - 5px);
    flex-shrink: 0;
}

.logo{
    padding-left: 10px;
    display: flex;
    align-items: center;
    object{
        width: 80%;
        max-width: 210px;
    }
}


.menu-toggle {
    display: none;
}

/* ================= SP用（600px以下） ================= */
@media screen and (max-width: 900px) {
    .gnavi__wrap {
        grid-template-columns: 1fr;
        padding: 0.8rem 2%;
        position: fixed; /* SP時も固定 */
        z-index: 99999;
    }
    body {
        padding-top: 70px;
    }
    
    .gnavi__lists {
        /* 右からスライドメニュー */
        position: fixed;
        top: 0;
        right: -100%; /* 完全に非表示 */
        width: 80%; /* 画面の80% */
        max-width: 300px;
        height: 100vh; /* fallback */
        height: -webkit-fill-available; /* iOS Safari / LINE内ブラウザ対応 */
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        flex-direction: column;
        padding: 70px 0 0 0;
        z-index: 99999;
        overflow-y: auto;
        display:block;
        grid-template-columns: repeat(1, 1fr);
        place-items: center;
        align-items: start; /* または flex-start */

    }
    
    .gnavi__lists.active {
        right: 0; /* スライドイン */
    }
    
    /* SP時のメニュー項目：縦並び */
    .gnavi__list {
        width: 100%;
        height: 50px;
        border-bottom: 1px solid #eee;
    }
    

    /* SP時：ドロップダウンはデフォルト非表示、.sp-open で展開 */
    .dropdown__lists {
        display: none;
        width: 100%;
        background-color: #f0f3fa;
        border-top: 1px solid #dde2f0;
    }
    .dropdown__lists.sp-open {
        display: block;
    }
    .dropdown__list {
        height: 46px;
        border-bottom: 1px solid #dde2f0;
        display: flex;
        align-items: center;
    }
    .dropdown__list a {
        padding-left: 2.2em;
        font-size: 13px;
        color: #152c88;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }
    /* ドロップダウン親リンク：テキストはセンター、▼は右端に絶対配置 */
    .gnavi__list:has(.dropdown__lists) > .item {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
    }
    .gnavi__list:has(.dropdown__lists) > .item::after {
        content: "▼";
        font-size: 10px;
        opacity: 0.5;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    .gnavi__list:has(.dropdown__lists) > .item.sp-open::after {
        content: "▲";
        opacity: 0.7;
    }
    
    
    /* ハンバーガーボタン */
    .menu-toggle {
        display: block !important;
        position: absolute;
        top: 50%;                    /* ① ナビの高さに関わらず垂直中央に */
        transform: translateY(-65%);
        right: 1rem;
        width: 35px;
        height: 35px;
        cursor: pointer;
        z-index: 100000;
        background: none;
        border: none;
    }

    /* ハンバーガーアイコン */
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;
        background-color: #152c88;
        height: 3px;
        border-radius: 2px;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .hamburger {
        width: 25px;
        top: 6px;
        display: block;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: "";
        width: 25px;
        position: absolute;
        left: 0;
    }
    
    .hamburger::before {
        top: -9px;
    }
    
    .hamburger::after {
        top: 9px;
    }
    
    /* Xアイコンに変化 */
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(8px, -7px);
    }
}

/*------------------------------------------------------------
	SIDE CONTENT（.side-content / blog / topic ／ fix.js 追従）
------------------------------------------------------------*/

.side-content {
      width: 100%;
      height: auto;

    .side-inner{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: minmax(0, 1fr) auto;   /* blog可変 / topic下部固定 */
      grid-column-gap: 0px;
      grid-row-gap: 0px;
      height: 100%;


    .blog{
      grid-column: 1 / 3;
      grid-row: 1 / 2;
      min-height: 0;
      overflow: hidden;
        .blog-content{
          display: block;
          margin:20px auto 20% auto;
          overflow: hidden;
          max-width: 400px;

          .blog-entry{
            display: grid;
            grid-template-columns: 1fr 30%;
            grid-column-gap: 0px;
            height: 110px;
            overflow: hidden;
          }
          .blog-left{
            height: 110px;
          }
          .blog-right{
            height: 110px;
          }
        }
    }

    .topic-1{
      background: #fff;
      grid-column: 1 / 2;
      grid-row: 2 / 3;
      border-left: solid 1px #152c88;
      border-right: solid 1px #152c88;
      border-top: solid 1px #152c88;
      padding: 6% 8% 6% 10%;
      text-align: center;
      height: auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .topic-2{
      background: #fff;
      grid-column: 2 / 3;
      grid-row: 2 / 3;
      border-top: solid 1px #152c88;
      padding: 6% 10% 6% 8%;
      text-align: center;
      height: auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
}

/*****************FIXED時のみ topic フェードイン（PC）********************/
@media screen and (min-width: 901px) {
  .side-content:not(.fixed):not(.stop) .topic-1,
  .side-content:not(.fixed):not(.stop) .topic-2 {
    opacity: 0;
    transform: translateY(12px);
  }
  .side-content.fixed .topic-1,
  .side-content.fixed .topic-2,
  .side-content.stop .topic-1,
  .side-content.stop .topic-2 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* 699px以下: blog-entry を 1fr 30% に */
@media screen and (max-width: 699px) {
  .side-content .side-inner .blog .blog-content {
    grid-template-columns: 1fr 30%;
  }
}

/*****************FIXED（追従）********************/
.side-content.fixed {
  position: fixed;
  top: 0;          /* JS が navBottom で上書き */
  right: 0;
  width: 25%;
  height: auto;    /* JS が innerHeight - offsetTop で上書き */
  z-index: 1000;
  margin: 0;
}
.side-content.fixed .side-inner { height: 100%; transition: .6s; }

/* blog 可視下端のフェード */
.side-content.fixed .blog::after,
.side-content.stop  .blog::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 80px;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(0deg, #fff 0%, #fff 25%, rgba(255,255,255,0) 100%);
}
/* FIXED: containing block = viewport → 2px右にずらして border を避ける */
.side-content.fixed .blog::after {
  left: 2px;
  width: calc(100% - 2px);
}
/* STOP: right:-scrollbarW で viewport 右端に揃えるため FIXED と同じ 2px オフセット */
.side-content.stop .blog::after {
  left: 2px;
  width: calc(100% - 2px);
}

/*****************STOP（main 最下部で停止）********************/
/* containing block = main（position:relative, width=clientWidth）
   width:25% = fixed 時と同じ CSS viewport 基準になる */
.side-content.stop {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  /* grid 配置を解除 → containing block を grid area から grid container (main) に戻す */
  grid-column: unset;
  grid-row: unset;
  height: auto;   /* JS が (innerHeight - navH) で上書き */
  z-index: 1000;
  overflow: hidden;
}
.side-content.stop .side-inner { height: 100%; }

/* ---- blog list base（サイドバー内の .blog 限定） ---- */

.side-inner .blog{
  padding: 5% 10%;
  position: relative;
  overflow: hidden;
}

.blog-head{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  letter-spacing: 1px;
  position: relative;
    justify-content: center; /* 左右中央 */
  align-items: center;      /* 上下中央 */
}
.blog-title{
  color: #152c88;
  font-size: clamp(22px, 2vw, 25px);
  font-weight: 500;
  align-items: center center;
  padding-top: 3px;
}
.blog-title-2{
  color: #152c88;
  font-size: clamp(14px, 1.2vw, 23px); /* MAX = 1930px × 1.2vw ≈ 23px */
  font-weight: 500;
  padding-bottom: 8px;
}
.blog-button{
  justify-self: end;
}

.blog-content{
  margin: 20px 0;
}

.blog-left{
  position: relative;
  height: 100%;
  border-bottom: solid 1px #7a86b6;
  align-items: stretch;

  a{
    display: block;
  }
  div{
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: auto; /* このまま */
    transform: translateY(-50%);
    margin: 0 auto;
    padding-right: 10px;
    p{
      font-size: clamp(11px, 1.0vw, 15px);
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-height: 1.25;
      overflow: hidden;
    }
    data{
      font-size: clamp(12px, 1.11vw, 15px);
    }
  }
}

.blog-right{
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  background-color: #fff;
  border-bottom: solid 1px #7a86b6;
  overflow: hidden;
  position: relative;
  align-items: stretch;
  padding-top: 10px;
}
.blog-right a {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-right::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;                    /* 太い線を少し下にずらす */
  width: 100%;
  border-bottom: solid 10px #fff;   /* 太い方（奥側）の線 */
  z-index: 99;                      /* 必要なら奥に */
}

/* ---- side responsive (<=900) ---- */

@media screen and (max-width: 900px) {
  /* ③stickyサイドバーのcalc高さをリセット、blog幅を拡張 */
  .side-content .side-inner {
    grid-template-columns: 1fr 1fr !important; /* topic-1/2 を横並び維持 */
    grid-template-rows: auto auto !important;  /* 1fr均等高さをリセット */
    grid-auto-rows: auto !important;
  }
  .side-content .side-inner .blog {
    height: auto !important;
  }
  /* ブログ2カラム：1,3,5,7が左列 / 2,4,6,8が右列 */
  .side-content .side-inner .blog .blog-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    column-gap: 8px;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px;
  }
  .side-content .side-inner .blog .blog-entry {
    display: grid !important;
    grid-template-columns: 1fr 28% !important;
    height: 100px !important;
    overflow: hidden;
  }
  .side-content .side-inner .blog .blog-left {
    position: relative;
    height: 100px;
  }
  .side-content .side-inner .blog .blog-right {
    height: 100px;
    aspect-ratio: auto;
  }
  .side-content .side-inner .topic-1,
  .side-content .side-inner .topic-2 {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 8% !important;  /* 非対称パディングをリセット */
    text-align: center;
  }
  .side-content .side-inner .topic-1 .button,
  .side-content .side-inner .topic-2 .button {
    margin: 10px auto 0;
  }
}

/* ---- side responsive (<=699) ---- */

@media screen and (max-width: 699px) {
  /* ---- NAV ---- */
  .logo object {
    max-width: 160px;
  }
  /* ---- SIDE-CONTENT (blog) ---- */
  .side-content .side-inner {
    grid-template-columns: 1fr 1fr; /* topic-1 | topic-2 を横並びに */
    grid-template-rows: auto auto;
  }
  .side-content .side-inner .blog {
    grid-column: 1 / 3; /* ブログはフル幅 */
    height: 380px !important;
    border-left: none;
  }
  .side-content .blog-content::after {
    display: none !important;
  }
  .side-content .side-inner .blog .blog-content {
    display: block;
    column-count: 2;       /* 1,3,5,7 左列、2,4,6,8 右列 */
    column-gap: 8px;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 12px 0;
  }
  .side-content .side-inner .blog .blog-entry {
    break-inside: avoid;
    display: flex;
    align-items: stretch;
    height: auto !important;
    margin-bottom: 0;
  }
  .side-content .side-inner .blog .blog-left {
    flex: 1;
    height: 72px !important;
    position: relative;
    div {
      position: static;
      transform: none;
      padding: 6px 6px 6px 4px;
      p { font-size: clamp(10px, 2.8vw, 13px); }
      data { font-size: clamp(10px, 2.5vw, 12px); }
    }
  }
  .side-content .side-inner .blog .blog-right {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    flex-shrink: 0;
    height: 72px !important;
    aspect-ratio: unset;
    overflow: hidden;
    padding: 10px;

  }
  .side-content .side-inner .blog .blog-right img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
  }
  .side-content .side-inner .topic-1 {
    grid-column: 1 / 2;
    grid-row: auto;
    border-left: none;
    border-right: none;
    padding: 16px 10px;
    height: auto !important;
    min-height: 0 !important;
  }
  .side-content .side-inner .topic-2 {
    grid-column: 2 / 3;
    grid-row: auto;
    padding: 16px 10px;
    height: auto !important;
    min-height: 0 !important;
  }
  .blog-title-2 {
    font-size: clamp(13px, 3.5vw, 18px);
  }
  .topic-img {
    max-width: 100%;
  }
}

/* ---- topic-img ---- */

.topic-img{
  width: 100px;
  height: 100px;
  background-color: #ccc;
  margin: 5px auto;
  overflow: hidden;
  position: relative;
  text-align: center;

  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
}

/*------------------------------------------------------------
	SIDE NEWS（下層サイド：最新記事＋SNS ／ INDEX相当）
------------------------------------------------------------*/
.side-news {
  /* border-left は .side-col に統一 */
  border-bottom: solid 1px #152c88;
  padding: 22px 10%;
}
.side-news__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 5%;
}
.side-news__label {
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #152c88;
  white-space: nowrap;
  font-family: "M PLUS U", sans-serif;
}
.side-news__date {
  margin-top: 4px;
  font-size: clamp(12px, 0.9vw, 15px);
  letter-spacing: 2px;
  color: #6b7aa8;
  font-family: "Figtree", sans-serif;
}
.side-news__day {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(46px, 3.6vw, 68px);
  font-weight: 400;
  line-height: 0.9;
  color: #152c88;
}
.side-news__img {
  display: block;
  width: 100%;
  margin: 14px auto;
  aspect-ratio: 1 / 1;
  background: #ccc;
  overflow: hidden;
  position: relative;
}
.side-news__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-news__caption {
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.side-news__all {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #152c88;
  font-family: "Figtree", sans-serif;
}
.side-news__sns {
  margin-top: 14px;
  padding-top: 14px;
  border-top: solid 1px #152c88;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.side-news__sns li { display: flex; justify-content: center; }
.side-news__sns img { width: 50%; max-width: 40px; }

/*------------------------------------------------------------
	FOOTER
------------------------------------------------------------*/

footer {
  margin-top: 0px;
  padding: 24px 30px;
  height: auto;
  min-height: 80px;
  background-color:#152c88;
  color:#fff;
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
}

.pickup-sns-footer{
  text-align: center;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 0px;
  width: 300px;

  li{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 699px) {
  footer {
    padding: 20px 16px;
    font-size: 13px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pickup-sns-footer {
    width: 180px;
    margin: 10px auto 0;
    grid-column-gap: 6px;

    li img {
      width: 65%;
    }
  }
}

/*============================================================
  超ワイド画面対応（2200px以上）
  body を中央寄せ + html 背景をグレーにして両脇余白を演出
============================================================*/
@media screen and (min-width: 2200px) {
  html {
    background: #e8e8e8;
  }
  body {
    max-width: 2200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
  /* gnavi は position:fixed で全幅に広がるため、
     body の左端（グレーと白の境目）にコンテンツを揃える */
  .gnavi__wrap {
    padding-left:  calc((100vw - 2200px) / 2);
    padding-right: calc((100vw - 2200px) / 2);
  }
  /* body に background:#fff を指定すると z-index:-9 の画像が隠れるため上書き */
  .profile .img_area {
    z-index: 0;
  }
}
