@charset "UTF-8";

/* --- 1. ベースのスタイル --- */
body{
 width: 100%;
 background: #eef0f5;
 color: #444;
 font-size: min(20px,3vw);
 font-family: '游ゴシック','メイリオ', Meiryo;
 margin: 0;
}

/* --- 2. メインコンテナ --- */
.container {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    
    /* ★修正1: 余白を含めて幅を計算させる設定を追加 */
    box-sizing: border-box; 

    /* ★修正2: margin-top に auto は使えないため、まとめて書くか整理します */
    margin: 20px auto 10px auto; /* 上 右 下 左 の順（これで中央寄せも効きます） */
    padding-bottom: 40px;
    /* border-radius: 40px; */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.container img{
    width: 100%;
    margin: 0;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    padding-left: 40px;
    padding-right: 40px;
}

h2.section-title {
    border-left: 6px solid #4a90e2;
    padding-left: 15px;
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    margin-left: 30px;
    padding-right: 40px;
}

/* --- 3. グリッドレイアウト (レスポンシブ) --- */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr); /* PCは4列 */
    padding-left: 40px;
    padding-right: 40px;
}

/* タブレット */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .container {
        /*padding: 20px;*/
    }
}

/* --- 4. 個別のアイテムカード --- */
.card {
    display: flex;
    flex-direction: column;
}

/* --- 5. 画像エリアとホバーエフェクト --- */
/* ★変更点: <a>タグになってもレイアウトが崩れないように調整 */
.img-wrapper {
    display: block; /* 重要: リンクタグをブロック要素にする */
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none; /* リンクの下線を消す */
    color: inherit; /* 文字色を継承 */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 画像ホップ動作 */
.img-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- 6. オーバーレイ (暗くして文字を表示) --- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    
    /* テキスト選択を防ぐ */
    user-select: none;
}

/* --- 7. テキスト情報 --- */
.info {
    padding-top: 15px;
}

.title {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.date {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 8px 0;
}

.caption {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

.head{
    font-size: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.head img{
    max-width: 300px;
    width: 100%;
}

.fotter{
 font-size: min(21px,3.5vw);
 text-align: center;
 margin-bottom: 15px;
 text-align: center;
 margin-left: auto;
 margin-right: auto;
}

.fotter a{
 text-decoration: none;
 border-radius: 50px;
 font-size: min(22px,4vw);
 color: #38a1db;
 }

.fotter a:hover{
 background-color: #ddd;
 }


.copy{
 font-size: min(16px,2.8vw);
 text-align: center;
 
}

.setumei{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 20px;
}
.setumei span{
 font-size: min(19px,2.8vw);
 text-align: center;
}

.setumei_en{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 20px;
}

.setumei_en span{
 font-size: min(17px,2.8vw);
    text-align: center;
}