/* 基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

p {
    /* これが段落の隙間を作る設定です */
    margin-top: 20px; /* HTMLのデフォルト設定をリセット */
}

h1 {
    /* 見出しの下にも少し余白を設定し、バランスを取る */
    margin-top: 60px; 
}

h2 {
    /* 見出しの下にも少し余白を設定し、バランスを取る */
    margin-top: 60px; 
    border-bottom: 2px solid #e5e5e5;
}

h3 {
    /* 見出しの下にも少し余白を設定し、バランスを取る */
    margin-top: 10px; 
}

header {
    background-color: #ff9800; /* オレンジ色のヘッダー */
    color: white;
    padding: 1rem;
    text-align: center;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto; /* 中央寄せ */
}

/* 献立一覧のGrid */
.menu-container {
  display: grid;
  grid-template-areas:
    "menutitle-item menutitle-item menutitle-item menutitle-item"
    "menu-bgarea menu-bgarea menu-bgarea menu-bgarea";
  grid-template-columns: 1fr 2fr 2fr 2fr;
  grid-template-rows: 1fr repeat(5, 2fr);
}

.conceptname-title {
    text-align: center;
    color: rgb(234, 122, 78);
    border-right: 1px solid #959595;
    border-bottom: 1px solid #959595;
}

.menuname-title {
    text-align: center;
    color: rgb(174, 170, 151);
    border-right: 1px solid #959595;
    border-bottom: 1px solid #959595;
}

.conceptname-item {
    display: flex;           /* Flexboxを有効にする */
    align-items: center;     /* 縦方向を中央にする */
    justify-content: center; /* 横方向も中央にする（text-alignの代わりになります） */
    height: 100%;
    align-items: center;
    border-right: 1px solid #959595;
}

.menuname-item {
    display: flex;           /* Flexboxを有効にする */
    align-items: center;     /* 縦方向を中央にする */
    justify-content: center; /* 横方向も中央にする（text-alignの代わりになります） */
    width: 99%;
    height: 90%;
    margin-top: 3px;
    text-align: center;
    color: rgb(0, 0, 0);
    text-decoration: none;
    background-color: rgb(246, 240, 214);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;          /* ホバー時の動きを滑らかに */
}

.menuname-item:hover {
    background-color: #e68a00; /* マウスを乗せた時に少し暗くする */
}

.menunone-item {
    display: flex;           /* Flexboxを有効にする */
    align-items: center;     /* 縦方向を中央にする */
    justify-content: center; /* 横方向も中央にする（text-alignの代わりになります） */
    width: 99%;
    height: 90%;
    margin-top: 3px;
    text-align: center;
    color: rgb(0, 0, 0);
    text-decoration: none;
    background-color: rgb(217, 217, 217);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;          /* ホバー時の動きを滑らかに */
}

.menunone-item:hover {
    background-color: rgb(78, 78, 78); /* マウスを乗せた時に少し暗くする */
}

.menu-p {
    margin: 0;
}

.link_text {
    color: rgb(0, 0, 0);
    text-decoration: none;
}
.link_text:hover {
    color: #ff9800;
    text-decoration: none;
}

.cooktips-container {
  display: grid;
  grid-template-areas:
    "p p p"
    "box-area box-area box-area";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.5fr 2fr;
}
.recipes-container {
  display: grid;
  grid-template-areas:
    "h3 h3 h3"
    "div div div";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.2fr repeat(5, 1fr);
}

/* レシピ各項目のボックス */
.box-area {
    max-width: auto;
    margin-left: 0 auto; /* 左寄せ */
    margin: 5px;
    padding: 1px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 親要素：横並びにする指示 */
.side-container {
    display: flex;
    justify-content: space-between; /* 3つを均等に広げて配置 */
    gap: 15px;                      /* リスト同士の隙間 */
}

/* 子要素：それぞれのリストの幅 */
.side-item {
    flex: 1;             /* すべて同じ幅で伸び縮みさせる */
    background: #f9f9f900; /* 背景色（見やすくするため） */
    border-radius: 8px;
}

/* レシピカード全体の囲い */
.recipe-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-visual {
    width: 100%;
    height: auto;
    border-radius: 4px;
    background-color: #ddd; /* 画像がない場合の仮の色 */
}

.recipe-header h2 {
    border-bottom: 2px solid #ff9800;
    padding-bottom: 5px;
}

.meta-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* 材料・手順のセクション */
h3 {
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-left: 5px solid #ff9800;
}

ul, ol {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

.memo {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
}
