@charset "UTF-8";

/* 共通部分
--------------------------------- */
html {
    font-size: 100%;
}
body {
    font-family: "Noto Sans JP", "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.85;
    color: #393939;
    background-color: #3c3c3c;
    /*background-color: #e6e6e6;*/
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}

/* 改行 */
.sp-only {
  display: none; /* デフォルト（PC）では非表示 */
}

/* レイアウト */
.wrapper {
    max-width: 1120px;
    margin: auto;
    padding: 0 1.5rem;
}
.align-center {
    text-align: center;
}
.align-end {
    text-align: end;
}

/* 見出し */
/* .page-title,
.heading-large {
    text-align: center;
} */
.page-title, 
.page-title-home {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    line-height: 1.4;
    color: #f5f5f5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* 悪目立ちしない自然な影 */
}
.page-title {
    font-size: 2.2rem;
}
.page-title-home {
    font-size: 2.4rem;
}
.heading-large,
.heading-large-border {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
.heading-large-border {
    border-bottom: 1.2px solid #c9c2bc;
}
.heading-small {
    font-size: 1.2rem;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
}


.sub-title {
  position: relative;       /* 線の基準位置にする */
  /* 1. ここで「線の長さ」＋「文字との間隔」の合計分を確保 */
  padding: 0 2.2em;         /* 線の長さ＋余白分のスペースを確保 */
  
  display: inline-block;    /* inline-flexをやめて安定させる */
  line-height: 1;           /* この要素自体の行高さをリセットして計算しやすくする */
}

.sub-title::before,
.sub-title::after {
  content: "";
  position: absolute;       /* 浮かせた状態で配置 */
  top: 50%;                 /* 上から50%の位置へ */
  transform: translateY(-50%);
  /* 2. ここで「線の純粋な長さ」を指定 */
  width: 1.5em; 
  height: 1px;
  background-color: currentColor;
}

/* 3. ここで「外側からどれだけ離すか」を指定（＝文字との間隔が変わる） */
/* 左側の線の位置 */
.sub-title::before {
  left: 0.2em; /* 数値を大きくすると、線が文字に近づきます */
}

/* 右側の線の位置 */
.sub-title::after {
  right: 0.2em; /* 同様に、数値を大きくすると文字に近づきます */
}



/* ボタン */
.btn,
.btn-sub {
    display: inline-block;
    font-size: 1.1rem;
    border-radius: 8px;
    padding: .5rem 1rem;
    transition: .5s;
}
.btn {
    background-color: #fff8f8;
    color: #141414;
}
.btn-sub {
    background-color: #f4f4f4;
    color: #141414;
    width: 85%;
}
.btn:hover {
    background-color: #e4e4e4;
}
.btn-sub:hover {
    background-color: #b4b4b4;
}

/* ヘッダー
--------------------------------- */
.page-header,
.page-header-home {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    /*background-color: #f5f5f5;*/
}
.logo {
    width: 150px;
}
.sticky-home, 
.sticky-nav,
.sticky-header {
    position: sticky;
    top: 0;
}
.sticky-home {
    z-index: 10;
}
.sticky-nav,
.sticky-header {
    background-color: #1c7d8a;
    z-index: 12;
}
.sticky-header {
    /*background-color: #e6e6e6;*/
    background: linear-gradient(to bottom, #fafafa 80%, #eeeeee);
}
.main-nav, 
.main-nav-home {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.3rem;
    list-style: none;
}
/* .main-nav-home {
    background-color: #1c7d8a;
} */
.main-nav a,
.main-nav-home a {
    display: block;
    padding-top: .5rem;
    padding-bottom: .5rem;
    transition: .5s;
}
.main-nav a {
    color: #282828;
}
.main-nav-home a {
    color: #fff8f8;
}

.main-nav a:hover {
    color: #141414;
    border-bottom: 5px solid #1c7d8a;
}
.main-nav-home a:hover {
    color: #e1ff00;
}

/* ヘッダーカバー画像
--------------------------------- */
.cover {
    background-size: cover;
    background-position: center bottom;
}


/* アイコン */
/* 
 * External link icon by Lucide (ISC License)
 * Based on Feather Icons (MIT License)
 * Source: https://lucide.dev/license
 * 
 * URL-encoded for maximum browser compatibility.
 * Color matched to #393939
 */
.external-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 4px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23393939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-external-link-icon lucide-external-link'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* 
 * Tag icon by Lucide (ISC License)
 * Based on Feather Icons (MIT License)
 * Source: https://lucide.dev/license
 * 
 * URL-encoded for maximum browser compatibility.
 * Color matched to #393939
 */
.tag::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 4px;
  vertical-align: middle;
  /* 色を「%23393939」で直接指定し、全ての記号を安全にエンコードした形式 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23393939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-tag-icon lucide-tag'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='%23393939'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}


/* HOME
--------------------------------- */
.cover-home, 
.cover-home-rayer {
    height: 540px;
}
.cover-home {
    /*background: linear-gradient(to top, #58AFBB 50%, #eeeeee);*/
    /*background-color: #58AFBB;*/
    /*background-color: #59b9c6;*/
    /*background-color: #0e3e68;*/
    background-image: url(../images/pages/top/StockSnap_S059QDGBOG.webp)
}
.cover-home-rayer{
    background-size: cover;
    background-position: center bottom;
    /*background-color: rgba(105, 105, 105, 0.7);*/
    /*background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('image.jpg');*/
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}
.title-cont {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1.5rem;
    /* margin: 2rem auto 5rem; */
}
.title-cont p {
    text-align: start;
    margin-bottom: 3rem;
    color: #f5f5f5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* 悪目立ちしない自然な影 */
}
.title-item,
.title-item-small {
    width: 100%;
}
.update-history {
    /* max-width: 736px; */
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1.5rem .7rem 1.5rem;
    /*margin: 3rem auto 4rem;*/
    /*margin: auto;*/
}
/* .update-history-date,
.update-history-item {
    margin: .5rem .8rem .5rem 0rem;
} */
.update-history-date {
    flex: 0 0 120px;
}
.update-history-item {
    flex: 1 1 auto;
}
.white,
.gray,
.gray-header,
.page-footer {
    position: relative;
    z-index: 11;
    -webkit-transform: translateZ(0); /* または translate3d(0,0,0) */
    transform: translateZ(0);
}
.white,
.gray {
    padding-top: 1.0rem;
    padding-bottom: 3.0rem;

}
.white {
    background-color: #fafafa;
}
.gray,
.gray-header {
    background-color: #d8d8d8;
}
.about,
.news {
    max-width: 736px;
    padding: 3.6rem 1.5rem 2.4rem 1.5rem;
    /*margin: 3rem auto 4rem;*/
    margin: auto;
}
.about p {
    /* text-align: justify; */
    margin-bottom: 2rem;
}
.about p a {
    color: #1e727a;
    border-bottom: 1.2px solid #1e727a;
    transition: .5s;
}
.about p a:hover {
    color: #393939;
    border-bottom: 1.2px solid #393939;
}

.info {
    width: 100%;
    max-width: 1040px;
    margin: auto;
    padding: 0 0.75rem;
    border-spacing: 0;
}
.info th,
.info td {
    border-bottom: 1px dashed #c9c2bc;
}
.info th {
    text-align: left;
    font-weight: normal;
    padding: 1rem;
}
.info td {
    min-width: 100px;
    padding: 1rem 0;
}

/* おしらせリスト */
.news-list {
    list-style: none;
    margin-bottom: 4rem;
}
.news-list li{
    border-bottom: 1px solid #c9c2bc;
    margin-bottom: 1.0rem;
}
.news-item {
    margin-bottom: .5rem;
}
.news-item a{
    color: #141414;
    display: block;
    border-radius: 8px;
    /* padding: 1rem; */
    padding: .5rem;
    /*border-bottom: 1px solid #c9c2bc;*/
    transition: .5s;
}
.news-item a:hover{
    background-color: #fff8f8;
    /*border-bottom: 1px solid #e6e6e6;*/
}
.news-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.0rem;
    /* margin-bottom: 1.5rem; */
}
.news-date {
    font-size: .875rem;
}
.news-cat {
    display: flex;
    gap: .5rem;
    list-style: none;
}
.news-cat li{
    border-bottom: none;
    margin-bottom: auto;
}
.news-cat span {
    color: rgb(90, 90, 90);
    /* background-color: #faf7f0; */
    border-radius: 8px;
    font-size: .875rem;
    /* padding: .5rem .75rem; */
    padding: .25rem .5rem;
}
.news-title {
    font-size: 1.1rem;
    font-weight: normal;
    /*margin-bottom: 0.25rem;*/
}

/* card
--------------------------------- */
.card-container {
    display: grid;
    /* 
    repeat(auto-fit, minmax(250px, 1fr)) の意味：
    ・最小幅 250px、最大幅は余った分（1fr）
    ・画面幅に合わせて、入る分だけ自動で列を増減させる
    */
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
    grid-template-columns: 1fr;
    gap: 20px; /* カード同士の間隔 */
}

.card-item {
    border: 1px solid #888888;
    padding: 15px;
    border-radius: 8px;
    display: flex;         /* 横並びにする */
    align-items: center;   /* 中央揃え */
    gap: 16px;            /* 画像と文字の間の余白 */
}

/* リンクとしての初期デザインをリセット */
.card-link {
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 文字色を親要素に合わせる */
    display: block;        /* 全体をクリッカブルにするために必須 */
}

/* ホバー時の演出 */
.card-link:hover .card-item {
    background-color: #fff8f8;
    transition: .3s;

    /* background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease; */
}

.card-img {
    width: 35%;             /* 常に親要素の35%を維持 */
    aspect-ratio: 1/1;    /* 比率を固定 */
    object-fit: cover;      /* 画像を切り抜いて枠にフィットさせる */
    flex-shrink: 0;         /* 40%から絶対に縮ませない */
}

.card-content {
    flex: 1;                /* 残り65%を占める */
    min-width: 0;           /* 重要：長い英単語などでレイアウトが壊れるのを防ぐ */
    display: flex;
    flex-direction: column; /* 中身を縦に並べる */
    justify-content: space-between; /* 上下いっぱいに広げて配置 */
    gap: 1px;
}

/* カテゴリーと日付の横並び */
.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    margin-bottom: 4px;
}

.card-cat {
    background: #fff8f8;
    font-size: 0.875rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #333333;
    list-style: none;
}

.card-cat li{
    border-bottom: none;
    margin-bottom: auto;
}

.card-date {
    font-size: .875rem;
    color: #555555;
}

.card-title {
    margin: 4px 0;
    font-size: 1.1rem;
    line-height: 1.5;
    /* 2行まで表示して溢れたら「...」 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    margin: 0;
    font-size: 0.8rem;
    color: #555555;
    /* 1行だけ表示して「...」 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* grid
--------------------------------- */
.grid {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}
.grid-item img {
    aspect-ratio: 4/3;
    object-fit: cover;
    padding: 8px 8px 0px;
    /* border-radius: 16px 16px 0px 0px; */
}
.grid-item h4,
.grid-item p {
    padding: 0px 8px 8px;
    text-align: start;
}
.grid-item p {
    font-size: .875rem;
}
.grid-item a{
    color: #141414;
    display: block;
    border-radius: 16px;
    transition: .5s;
}
.grid-item a:hover{
    background-color: #fff8f8;
}
.grid-title {
    line-height: 1.6;
}

.image-wrapper {
    display: grid; /* グリッドレイアウトを適用 */
}

/* 画像とラベルを同じエリア(1行目/1列目)に重ねる */
.image-wrapper img,
.badge {
    grid-area: 1 / 1;
}

/* ラベルの位置を調整 */
.badge {
    justify-self: start; /* 横方向：左寄せ */
    align-self: start;   /* 縦方向：上寄せ */
    margin: 8px 0px 0px 8px;        /* 端からの距離を調整 */
    z-index: 1;          /* 画像より上に表示 */

    /* 見た目の装飾 */
    font-size: 0.8rem;
    background: #c230b0;
    color: #fff8f8;
    /* padding: 4px 8px; */
    padding: 3px 8px 3px 6px;
    border-radius: 0px 0px 10px 0px;
    /* 右下の角（10px分）を切り落とす設定 */
    /* clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); */
}



/* Sub
--------------------------------- */
.cover-sub {
    height: 140px;
    background-color: #1c7d8a;
}
.name-end-bolder {
    text-align: end;
    font-weight: bolder;
}


/* 親要素：必要に応じて全体の幅などを指定 */
.image-wrapper {
  width: 100%;
  margin-bottom: 20px; /* 画像エリア全体の下に余白を作る */
}

/* 画像自体の設定 */
.responsive-img {
  display: block;      /* ブロック要素にすることで、横に他の要素を並ばせない */
  width: 100%;         /* スマホなどの狭い画面では幅いっぱい */
  max-width: 600px;    /* 大きくなりすぎない上限サイズ（お好みで調整） */
  height: auto;        /* 縦横比を維持 */
  border-radius: 16px;
  
  /* 左寄せと余白の設定 */
  margin-left: 0;      /* 左端に固定 */
  margin-right: auto;  /* 右側を自動で埋めて左に寄せる */
  margin-bottom: 15px; /* 画像と下のテキストとの間の余白 */
}


/* フッター
--------------------------------- */
/*.page-footer {
    padding-top: 12rem;
}*/
.copyright {
    background-color: #3c3c3c;
    text-align: center;
    padding: 2rem 0;
    /*margin-top: 6rem;*/
    color: #fff8f8;
}

/* デスクトップ版
--------------------------------- */
@media (min-width: 800px) {
    p {
        font-size: 1.2rem;
    }

    /* 見出し */
    .page-title {
        font-size: 3.8rem;
        text-align: center;
    }
    .page-title-home {
        font-size: 4.6rem;
        text-align: start;
        margin-top: 3rem;
        margin-bottom: 3.5rem;
        line-height: 1.55;
    }
    .heading-large, 
    .heading-large-border {
        font-size: 2.4rem;
        color: #282828;
    }
    .heading-small {
        font-size: 1.6rem;
        color: #282828;
    }


    /* ヘッダー */
    .page-header,
    .page-header-home {
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem;
    }
    .logo {
    width: 190px;
    }
    .main-nav,
    .main-nav-home {
        justify-content: start;
        gap: 2.5rem;
        font-size: 1.6rem;
    }

    /* .cover {
    height: 720px;
    } */

    /* HOME */
    .cover-home, 
    .cover-home-rayer{
        height: 660px;
    }
    .title-cont p {
        text-align: start;
    }
    .title-item-small {
        font-size: 1.2rem;
    }
    .about,
    .news {
        max-width: 1040px;
    }
    /* .about p {
        padding-left: 0.75rem;
    } */
    .info {
        font-size: 1.2rem;
    }
    .info td {
        min-width: 320px;
    }


    /* おしらせリスト */
    .news-item a{
        padding: 1rem;
    }
    .news-info {
        margin-bottom: 1.5rem;
    }
    .news-date {
        font-size: 1rem;
    }
    .news-cat span {
        font-size: 1rem;
        padding: .5rem .75rem;
    }
    .news-title {
        font-size: 1.3rem;
    }

    /* card */
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* カード同士の間隔 */
    }
    /* .card-header {
        margin-top: 8px;
    } */
    .card-content {
        gap: 5px;
    }


    /* grid */
    .grid {
        gap: 3rem 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-item img {
        margin-bottom: .5rem;
        padding: 12px 10px 0px;
    }
    .grid-item h4,
    .grid-item p {
    padding: 0px 12px 10px;
    }
    .grid-item h4 {
        font-size: 1.1rem;
    }
    .grid-item p {
        font-size: 1rem;
    }

    /* ラベルの位置を調整 */
    .badge {
        /* 見た目の装飾 */
        font-size: 1.2rem;
        margin: 12px 0px 0px 10px;
        /* padding: 4px 8px; */
        padding: 4px 12px 4px 8px;
        border-radius: 0px 0px 16px 0px;
    }


    /* Sub */
    .cover-sub {
        height: 280px;
    }

}


@media screen and (max-width: 800px) {
  .sp-only {
    display: block; /* スマホサイズで表示して改行を有効化 */
  }
}