@charset "UTF-8";

/* 温かみと安心感のあるカラーパレット */
:root {
    --primary-color: #f09050; /* 温かいオレンジ */
    --secondary-color: #e9c46a; /* 優しいイエロー */
    --background-color: #fffaf0; /* アイボリー系の背景 */
    --text-color: #5c4033; /* 柔らかい印象のダークブラウン（真っ黒を避ける） */
    --table-border: #e8d8c8;
    --box-bg: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.8;
}



/* ヘッダー */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* スクロールしても上部に固定（ずっと表示） */
    position: sticky;
    top: 0;
    z-index: 1000; /* 他の要素より上に表示させる */
}

/* ヘッダー内のレイアウト（左右配置） */
.header-container {
    max-width: 800px; /* メインコンテンツの幅と統一 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* 左にタイトル、右にボタン */
    align-items: center; /* 上下中央揃え */
}

header h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
}

header h1 a {
color: #fff;
text-decoration: none;
}
header h1 a:hover {text-decoration: underline;}



/* 退職コラムボタン */
.header-btn {
    background-color: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap; /* ボタン文字の改行を防ぐ */
}

.header-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}



/* メインコンテンツ幅 */
main {
    max-width: 800px;
    margin: 0px auto;
    padding: 0 15px;
}

/* ヒーロー画像（トップ画像） */
.hero {
    max-width: 800px; /* メインコンテンツの幅と統一 */
        margin: 0px auto;

    margin-bottom: 10px;
}

.hero img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* コンテンツセクション */
.content, .comparison, .steps {
    margin: 30px 0;
}

h2 {
    color: #e07030;
    border-bottom: 3px solid #004080;
    padding-bottom: 5px;
    font-size: 22px;
    margin-bottom: 10px;
        margin-top: 30px;

}

p {
    font-size: 16px;
}

.m1{
    font-size: 20px;
    font-weight: bold;
    color: #777;
    padding: 0px 15px;

}

.m2{
    font-size: 22px;
    font-weight: bold;
    color: #0040af;
    padding: 0px 15px;
    text-align: center;

}
.m22{
    font-size: 22px;
    font-weight: bold;
    color: #0040af;
    padding: 0px 15px;
    text-align: center;
    margin-top: 70px;
margin-bottom: 10px;
}




.mor{
  background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 10px;
margin: 30px 0px;
}

.yaji{
    font-size: 12px;
    text-align: center;
        color: #e07030;
}

.tsi{
    font-size: 14px;
}


ul {
  color: #d00000;
}
ul li {
  font-weight: bold;
}


img {
  max-width: 100%;
}

.bu {
background: linear-gradient(transparent 60%, #ffeb3b 40%);
font-weight: bold;
}

/* デフォルト（スマホ向け）：画面いっぱいに100%で表示 */
.responsive-img {margin:0 auto;
  width: 100%;
  height: auto; /* 画像の比率を保つ */
}

/* パソコン向け（画面の横幅が768px以上の場合）：50%で表示 */
@media (min-width: 768px) {
  .responsive-img {
    width: 80%;
  }
}



/* カテゴリー選択ボタン ------------------------------------------------------ */
.category-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 初期状態（スマホ）：2列×4段 */
    gap: 12px; /* ボタン同士の隙間 */
    margin: 25px 0 10px 0;
}

.category-btn {
    display: flex; /* 枠全体をリンク領域にし、文字を上下左右中央に配置 */
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* 背景：白色 */
    border: 2px solid #f7c59f; /* 枠線：薄いオレンジ色 */
    color: #002b5c; /* 文字色：紺色 */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 5px;
    border-radius: 8px; /* 角を少し丸くする */
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.2s;
}

.mn {
    font-size: 12px;
    font-weight: Normal;
    color: #666;

}

/* マウスを乗せた時・タップした時の動き */
.category-btn:hover,
.category-btn:active {
    background-color: #fff5eb; /* ごく薄いオレンジに変化 */
    transform: translateY(-2px);
}

/* パソコンなどの広い画面（画面幅768px以上）では4列に変更する場合 */
@media (min-width: 768px) {
    .category-btn-grid {
        grid-template-columns: repeat(4, 1fr); /* 4列×2段に切り替え */
    }
}


/* faq全体のスタイル調整------------------------------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: sans-serif;
}

/* 各質問の枠組み */
.faq-item {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

/* 質問部分（クリックできるエリア） */
.faq-question {
  padding: 15px;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* デフォルトの三角形を消す（Chrome/Safari用） */
  position: relative;
}

/* Firefox用のデフォルト三角形を消す設定 */
.faq-question::-webkit-details-marker {
  display: none;
}

/* 自作のプラス（＋）アイコンを右側に追加 */
.faq-question::after {
  content: '＋';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

/* 開いている状態のスタイル（背景変更とマイナスアイコン化） */
.faq-item[open] {
  background-color: #fff;
}

.faq-item[open] .faq-question::after {
  content: '－';
}

/* 回答部分のスタイル */
.faq-answer {
  padding: 15px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}



/* 比較テーブル（横スクロール対応）-------------------------------------- */
.comparison p {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    background-color: var(--box-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--table-border);
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

th {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #fdfbf7;
}

/* 流れのステップボックス */
.step-box {
    background: var(--box-bg);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step-box h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--text-color);
}

.step-box p {
    margin: 0;
    font-size: 15px;
}



/* テーブル内のボタンスタイル */
.table-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background-color: #ff6b00; /* ボタンの背景色（オレンジ系） */
  color: #ffffff !important; /* 文字色（白） */
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 3px 0 #cc5500; /* 下部の立体感（影） */
  transition: all 0.2s ease;
  white-space: nowrap; /* テーブル内で文字が改行されるのを防ぐ */
}

/* マウスを乗せた時の動き */
.table-btn:hover {
  background-color: #ff8533;
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cc5500;
}




/* 紹介box-------------------------------------------------------------- */

/* 余白を含めたサイズ計算にするためのリセット */
.custom-card-wrapper, 
.custom-card-wrapper * {
  box-sizing: border-box;
}

/* 背景・全体のレイアウト */
.custom-card-wrapper {
  display: grid;
  /* min(100%, 300px)にすることで、スマホ画面では100%幅に自動縮小します */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  background-color: #f9f9f9;
  padding: 32px 16px; /* スマホでも見やすいよう左右の余白を少し調整 */
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  width: 100%;
}

/* 個別のカード */
.custom-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 20px; /* 余白を少し調整 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word; /* 長い単語で画面を突き破るのを防ぐ */
  word-break: break-word;
  margin-bottom: 10px;
}


.custom-card2 {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 20px 0 20px; /* 余白を少し調整 */
  box-shadow: -4px -4px 0 0 #ddd;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word; /* 長い単語で画面を突き破るのを防ぐ */
  word-break: break-word;
  margin-bottom: 10px;
}


/* ヘッダー部分（アイコンとバッジ） */
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap; /* 画面が狭いときにバッジが折り返せるようにする */
}

.card-badge {
  background-color: #eee;
  font-size: 14px;
  font-weight: bold;
  padding: 1px 0px;
  border-radius: 2px;
  line-height: 1.2;
}

/* タイトル */
.card-title {
  color: #12368c;
  font-size: 24px; /* スマホでもバランスが良いように微調整 */
  font-weight: bold;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* 区切り線 */
.card-divider {
  border: none;
  border-top: 1px solid #888;
  margin: 0 0 16px 0;
  width: 100%;
}

/* 本文エリア */
.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.card-desc {
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.card-note {
  color: #888888;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* ボタン */
.card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* スマホではボタンを横幅いっぱいにすると押しやすいです */
  max-width: 280px; /* パソコン画面などで大きくなりすぎないように制限 */
  margin: 0 auto; /* 中央寄せ */
  background: linear-gradient(to right, #ff9130, #f77b15);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(247, 123, 21, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.card-button .arrow {
  margin-left: 8px;
  font-size: 18px;
}



.kanr {
font-size: 18px;
font-weight: bold;
}

.kanr a {text-decoration: none;}
.kanr a:hover {text-decoration: underline;}

/* 関連記事用の個別カード */
.cc2 {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px 20px; /* 余白を少し調整 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word; /* 長い単語で画面を突き破るのを防ぐ */
  word-break: break-word;
  margin-bottom: 10px;
}




/* パンくずリストのスタイル -----------------------------------------------*/
.breadcrumb-nav {
  padding: 10px 0;
  font-size: 0.85rem;
  width: 100%;
  overflow: hidden; /* はみ出た部分を隠す */
}

.breadcrumb-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  display: flex;
  flex-wrap: nowrap; /* 1行に強制固定（折り返さない） */
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* テキストの改行を禁止 */
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #4a5568;
  white-space: nowrap;
}

/* 手前の項目（1番目・2番目など）は省略せず、縮ませない */
.breadcrumb-item:not(:last-child) {
  flex-shrink: 0; 
}

/* 一番最後（一番右）の項目だけ、長くなったら省略を許可する */
.breadcrumb-item:last-child {
  flex-shrink: 1; 
  min-width: 0; /* flexアイテムがテキスト幅で押し出されるのを防ぐ */
}

/* 区切り記号（>）の生成 */
.breadcrumb-item:not(:first-child)::before {
  content: "＞";
  margin: 0 5px;
  color: #a0aec0;
  font-weight: 600;
  flex-shrink: 0; /* 区切り記号は絶対に縮めない */
}

.breadcrumb-item a {
  color: #1a365d; /* ネイビーブルー */
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #2f855a; /* ナチュラルグリーン系 */
  text-decoration: underline;
}

/* 一番最後（一番右）の項目のテキスト（span または a）だけ省略を適用 */
.breadcrumb-item:last-child span,
.breadcrumb-item:last-child a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  color: #718096; /* 最終階層の色 */
}

/* もし最後の階層がリンクの場合の色を調整したい時用 */
.breadcrumb-item:last-child a {
  color: #1a365d;
}



/* フッター ----------------------------------------------------------------------*/
footer {
    text-align: center;
    padding: 25px 15px;
    background-color: #e07030;
    color: white;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 14px;
}