    /* --- ベーススタイル --- */
    :root {
      --primary-color: #0056b3; /* 信頼感のある鉄道ブルー */
      --accent-color: #00a8cc; /* 明るい空色 */
      --bg-color: #f4f7f6;
      --card-bg: #ffffff;
      --text-main: #333333;
      --text-sub: #666666;
      --alert-bg: #fff0f0;
      --alert-text: #d32f2f;
    }

    body {
      font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
      margin: 0;
      padding: 0;
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* --- ヘッダー --- */
    header {
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      color: white;
      text-align: center;
      padding: 60px 20px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    header h1 {
      margin: 0;
      font-size: 2.5rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }

    header p {
      margin-top: 10px;
      font-size: 1.1rem;
      opacity: 0.9;
    }

    /* --- メインコンテンツ --- */
    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    /* --- お知らせ・素材エリア --- */
    .sozai {
      display: block;
      background-color: var(--accent-color);
      color: white;
      text-align: center;
      padding: 15px;
      border-radius: 8px;
      font-weight: bold;
      transition: background 0.3s;
      margin-bottom: 10px;
    }
    .sozai:hover {
      background-color: var(--primary-color);
    }

    .sozai2 {
      text-align: center;
      font-size: 0.9rem;
      color: var(--text-sub);
      margin-bottom: 30px;
    }

    /* 警告メッセージ風スタイル */
    .alert-box {
      background-color: var(--alert-bg);
      color: var(--alert-text);
      padding: 15px;
      border-left: 5px solid var(--alert-text);
      border-radius: 4px;
      margin: 20px 0;
      font-weight: bold;
      text-align: center;
    }

    .alert-box2 {
      background-color: #e4faff;
      color: var(--accent-color);
      padding: 15px;
      border-left: 5px solid var(--accent-color);
      border-radius: 4px;
      margin: 20px 0;
      font-weight: bold;
      text-align: center;
    }

    /* --- セクション見出し --- */
    section {
      margin-bottom: 60px;
    }

    h2.itiran {
      font-size: 1.8rem;
      border-bottom: 3px solid var(--primary-color);
      padding-bottom: 10px;
      margin-bottom: 30px;
      position: relative;
    }
    h2.itiran::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 30%;
      height: 3px;
      background-color: var(--accent-color);
    }

    /* --- グリッドレイアウト --- */
    .railway-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
    }

    /* --- カードデザイン --- */
    .railway-card {
      background: var(--card-bg);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      transition: transform 0.3s, box-shadow 0.3s;
      display: flex;
      flex-direction: column;
    }

    .railway-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    /* ▼▼▼ 今回の修正ポイント ▼▼▼ 
       画像の表示設定を変更しました
    */
    .railway-card img {
      width: 100%;
      height: 200px;       /* 高さは固定してレイアウト崩れを防ぐ */
      object-fit: contain; /* 画像を切り取らずに全体を表示する設定 */
      padding: 15px;       /* 画像の周りに余白を入れて、端が見切れないようにする */
      background-color: #ffffff; /* 透過画像の背景を白にする */
      border-bottom: 1px solid #eee;
      box-sizing: border-box; /* paddingを含めたサイズ計算にする */
    }

    .railway-card h3 {
      font-size: 1.25rem;
      margin: 10px 20px 10px;
      color: var(--primary-color);
    }

    .railway-card p {
      padding: 0 20px;
      font-size: 0.95rem;
      color: var(--text-sub);
      flex-grow: 1; /* ボタンを下揃えにするため */
      margin-bottom: 20px;
    }

    .railway-card p.kome {
      color: var(--alert-text);
      font-size: 0.85rem;
      font-weight: bold;
    }

    /* --- ボタン --- */
    .btn {
      display: block;
      background-color: var(--primary-color);
      color: white;
      text-align: center;
      padding: 12px;
      margin: 0 20px 20px;
      border-radius: 6px;
      font-weight: bold;
      transition: background 0.3s;
    }
    .btn:hover {
      background-color: #003d80;
    }
    /* 2つ目のボタンがある場合のマージン調整 */
    .railway-card .btn + .btn {
      margin-top: -10px;
      background-color: white;
      color: var(--primary-color);
      border: 2px solid var(--primary-color);
    }
    .railway-card .btn + .btn:hover {
      background-color: var(--primary-color);
      color: white;
    }

    /* その他のリンクボタン */
    .btn2 {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 20px;
      background-color: #6c757d;
      color: white;
      border-radius: 50px;
      font-size: 0.9rem;
      transition: opacity 0.3s;
    }
    .btn2:hover {
      opacity: 0.8;
    }

    /* --- 特殊なインフォメーション枠 --- */
    .info-border {
      text-align: center;
      background-color: #e0f7fa;
      color: #006064;
      margin: 40px auto;
      border-radius: 10px;
      padding: 20px;
      border: 2px solid var(--accent-color);
      max-width: 800px;
      line-height: 1.8;
    }

    .zuiji {
      text-align: center;
      margin-top: 50px;
      font-weight: bold;
      color: var(--text-main);
      padding: 20px;
      background-color: white;
      border-radius: 8px;
    }

    /* --- フッター --- */
    .footer {
      background-color: #2c3e50;
      color: #ecf0f1;
      text-align: center;
      padding: 40px 20px;
      font-size: 0.9rem;
    }
    .footer p {
      margin: 10px 0;
    }

    /* --- レスポンシブ対応 --- */
    @media (max-width: 768px) {
      header h1 {
        font-size: 1.8rem;
      }
      .mobile-only-br {
        display: block;
      }
      /* スマホで見るとき、画像の高さを少し控えめにして画面を有効活用 */
      .railway-card img {
        height: 160px;
      }
    }
    @media (min-width: 769px) {
      .mobile-only-br {
        display: none;
      }
    }

    .toppage-s {
      background: #003d80;
    }


    .railway-sample img {
      border-radius: 5px;
    }
    
    .news-date {
      color: #003d80;
      font-weight: bold;
    }

    .new-oshi {
      background-color: #ff5733;
      color: white;
      font-size: 0.75rem;
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: 8px;
    }

    .mail {
      color: #0056b3;
      font-weight: bold;
      text-decoration: underline;
    }

    .design-support {
      opacity: 0.7; 
      font-size: 0.8rem; 
      font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
      text-align: center;
      margin-top: 0;
    }

    .mottomiru {
      cursor: pointer;
      color: #0056b3;
      font-weight: bold;
      text-align: center;
      background: #f2fdff;
      padding: 10px;
      border-radius: 8px;
      border: #003d80 solid 1px;
    }
    .mottomiru:hover {
      background: #e1f8fc;
    }