@charset "utf-8";
* {
  margin: 0;
  padding: 0;
}
/*============================================
全般的なスタイル
============================================*/
body {
  background-color: #faf0e6;			/*ページ全体の背景色*/
  font-size: 95%;									/* フォントサイズを95%にする */
  font-family: "ＭＳ ゴシック", sans-serif;/* フォントの種類をゴシック系にする */
  line-height: 1.5;								/* 行の高さを1.5倍にする */
  color: #333333;									/* 文字色を濃い目のグレーにする */
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;/* body自体を中央寄せにする場合はこれでOK */
}

#wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 20px 0px 0px 0px;
  display: grid;
  justify-content: center;
  grid-template-columns: 900px;
  grid-template-rows: auto;
  grid-gap: 20px;
}

/*============================================
要素セレクタ
============================================*/
#explanation {
  display: grid;
  justify-items: start;  /* テキスト左揃え */
  justify-content: center;
  /*max-width: 700px;*/
  margin: 30px 0px 0px 0px;
  padding: 1em;
}

h1 {
  font-size: 25px;
  width: 100%;
  max-width: 1000px;
  border-bottom: 5px solid #917748;
  margin: 0px 0px 20px 0px;
}

h2 {
  margin: 0px 0px 10px 0px;
}

p {
  width: 100%;
  max-width: 900px;
}

img {
  justify-items: center;
}

iframe {
  width: 700px;
  height: 500px;
  /*max-width: 700px;*/
}
hr {       /*上部の線*/
  width: 800px;
  height: 4px;
  border: none;       /* デフォルトの立体的な線を消す */
  background-color: #917748; /* 線の色 */
}

#introduction {
  margin: 30px 0px 0px 0px;
}
/*============================================
ヘッダー
============================================*/
#header-menu {								/*アクセス お問い合わせ オンラインショップ*/
  width: 100%;
  max-width: 900px;
  display: grid;
  justify-items: right;
  justify-content: right;
  grid-template-columns: 160px 130px 160px;
  grid-template-rows: auto;
}

#header-menu a {
  color: #6f4b3e;
	background-color: #faf0e6;
	text-decoration: none;
}

#header {											/*和紙の店 らくしゅあん*/
  width: 100%;
  max-width: 1000px;
  justify-items: left;
  font-size: 30px;
  font-weight: bold;
  font-style: italic;
}

#header a {
  color: #6f4b3e;
	background-color: #faf0e6;
	text-decoration: none;
}

/*============================================
メインメニュー(ホームページ用)
============================================*/
#main-menu {
  width: 100%;
  max-width: 1000px;
  height: 160px;
  display: grid;
  grid-template-columns: 200px 210px 200px; /*横に3列*/
  grid-template-rows: 40px 40px 40px 40px;
  justify-items: center;
  justify-content: center;
  align-items: center;
  grid-row-gap: 10%;
  margin: 20px 0px 0px 0px;
  font-size: 18px;
}

#main-menu a {
  display:block;  /*文字の回りもリンクに設定*/
  width: 200px;
  height: 40px;
  background-color: #faebd7;		/*背景色*/
  color: #262626;								/*文字色*/
  text-decoration: none;				/*リンク部分を下線無しにする*/
  text-align: center;
  line-height: 40px;
}

#main-menu a:hover {
  color: #262626;
  background-color: #f8f8ff;		/*リンクにマウスが乗ったら背景色を変更する*/
}

/*============================================
コンテンツ
============================================*/
#contents_area {
  width: 100%;
  max-width: 1000px;
  margin: 50px auto 0px auto;/* 中央寄せのために左右をautoに */
}

#main {
  margin: 20px 0px 20px 0px;
  text-align: center;
}

.bottom_space {
  margin-bottom: 8em;					/*ギャラリーの写真の間隔*/
}

#picture_area {
  text-align: center;
}

#movie_area {
  width: 100%;
  height: auto;
  max-width: 700px;
}

/*============================================
gallery 年クリックで色を付ける
============================================*/
#gallery-year {
  width: 100%; /* 親要素の幅いっぱいに広げる */
  max-width: 500px; /* 例えば、各要素80px x 4列 + 余白で計算 */
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4列を均等に配置 */
  grid-template-rows: 40px 40px; /* 2行に自動で調整 */
  justify-content: center; /* グリッドアイテムをコンテナの中央に寄せる */
  align-items: center; /* グリッドアイテムを垂直方向の中央に寄せる */
  gap: 10px; /* 行と列の間の余白 */
  margin: 20px auto 0 auto; /* 上20px、左右中央、下0px */
  font-size: 16px;
}

#gallery-year div {
  text-align: center; /* 各年のテキストを中央寄せ */
  padding: 5px; /* 適度なパディング */
}

#gallery-year a {
  display: block;
  text-decoration: none;
  color: #333;
  background-color: #f0f0f0; /* 例として背景色を追加 */
  padding: 10px 0;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#gallery-year a:hover {
  background-color: #e0e0e0;
}

#gallery-year a.active-year {
  background-color: #ffd700;
  color: #000;
  font-weight: bold;
}
/*============================================
gallery　上部
============================================*/
#gallery-header {
  display: grid;
  width: 100%;
  max-width: 800px;
  justify-items: right;
  grid-template-columns: 230px 500px;
  grid-template-rows: auto;
  margin-bottom: 1rem; /* 上部空間 */
}
#gallery-header-text {
  font-size: 22px;									
  font-family: "ＭＳ ゴシック", sans-serif;/* フォントの種類をゴシック系にする */
  color: #333333;
}
/*ホームへ戻るボタン*/
.home-button {
  font-size: 18px;
  padding: 3px 12px;
  background-color: #99CCFF;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.4);
}

/*============================================
gallery　下部
============================================*/
.back-button {
  display: inline-block;
  background-color: #B54434;  /* ボタンの背景色 */
  color: #fffaf0;              /* 文字色 */
  padding: 10px 20px;
  border-radius: 15px;        /* 角丸 */
  font-weight: bold;
  text-decoration: none;     /* 下線なし */
  box-shadow: 6px 10px 10px rgba(0,0,0,0.4); /* 影 */
  transition: background-color 0.3s, transform 0.2s;
  border: 1px solid #8c2e23; /* 深い紅の枠線 */
}

.back-button:hover {
  background-color: #8C2E23; /* ホバー時の色 */
  transform: translateY(-2px); /* 少し浮く */
}

.back-button:active {
  transform: translateY(0); /* 押した感じ */
}

/*============================================
gallery(名前検索)
============================================*/
/* 検索フォーム呼び出し */
#secret-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 50px;   /* エリアの幅 */
  height: 50px;  /* エリアの高さ */
  background: transparent;
  z-index: 1000;
}

/* 検索フォーム全体を横並びに */
#search-box form {
  display: flex;
  flex-wrap: wrap;   /* 改行許可 */
  align-items: center;
  gap: 10px; /* 入力欄とボタンの間隔 */
}

/* 名前入力欄 */
#search-box input[type="text"] {
  width: 100%;          /* 幅を100%にして横いっぱいに */
  height: 60px;          /* 高さアップ */
  font-size: 22px;       /* 大きな文字 */
  padding: 10px 12px;
  border: 2px solid #999;
  border-radius: 10px;
  box-sizing: border-box;
  outline-offset: 3px;
  flex: 1 1 100%;     /* 幅100%かつ改行 */
}

/* プレースホルダー */
#search-box input[type="text"]::placeholder {
  font-size: 20px;
  color: #888;
}

/* 検索ボタン */
#search-box button[type="submit"],
#search-box button[type="button"] {
  width: 48%;          /* ほぼ半分ずつ */
  height: 60px;          /* 入力欄に合わせる */
  font-size: 22px;       /* 大きな文字 */
  background-color: #3366cc;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  flex: 1 1 auto;     /* 横並び */
}
/* 検索ボタン */
#search-box button[type="submit"] {
  background-color: #3366cc;
  color: #fff;
}
/* ホバー時 */
#search-box button[type="submit"]:hover {
  background-color: #254b8a;
}

/* キャンセルボタン */
#search-box button#search-close {
  background-color: #cc5555;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100px;
  height: 60px;
  font-size: 22px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
/* ホバー時 */
#search-box button#search-close:hover {
  background-color: #992222;
}
/* フォーカス時に枠色を変えて視認性アップ */
#search-box input[type="text"]:focus {
  border-color: #3366cc;
  box-shadow: 0 0 6px #3366cc;
  background-color: #f9faff;
  outline: none; /* もしブラウザの青枠が気になるなら */
}

/*============================================
Tips用テーブル
============================================*/
/* table02 */
#table02 {
  margin: 0em 0em 4em 5em;
}

#table02 th,
#table02 td {
  border: none;
  padding: 10px 0;
}

#table02 td {				/*右側の項目*/
  text-align: center;
  border-bottom: 2px solid #917748;
}

#table02 th {				/*左側の項目*/
  width: 50%;
  border-bottom: 2px solid #917748;
}

/*============================================
ちぎり絵教室(色を考える)
============================================*/
#explanation_grid {
  width: 100%;
  max-width: 740px;
  height: 160px;
  display: grid;
  grid-template-columns: 130px 120px 120px 120px 120px 120px;
  grid-template-rows: 40px 40px 40px 40px;
  justify-items: center;
  justify-content: center;
  align-items: center;
  margin: 20px 0px 0px 0px;
  font-size: 16px;
  border: 1px solid #dfdfdf;
  border-bottom: 1px solid black;
  border-width: medium;
}
#a-1 {
  display:block;
  width: 130px;
  height: 40px;
  /*background-color: #ffdab9;*/
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #262626;
}
#a-2,#a-3,#a-4,#a-5,#a-6 {
  display:block;
  width: 120px;
  height: 40px;
  background-color: #ffdab9;
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #262626;
}
#a-1,#b-1,#c-1,#d-1 {
  display:block;
  width: 130px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-right: 2px solid #262626;
}


/*============================================
会社情報 flex
============================================*/
dl {
  display: flex;
  justify-content: space-between;
}

dt {							/*左側の項目*/
  padding: 20px 20px;
  width: 90px;
  border-bottom: 2px solid #0277b4;
}

dd {							/*右側の項目*/
  padding: 20px 20px;
  width: calc(100% - 90px);
  border-bottom: 1px solid #6f6f6f;
}

/*============================================
スクロールしたら表示される上へボタン
============================================*/
#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  line-height: 1;
  z-index: 99;
}
#page-top a {
  background: #72C7CA;
  text-decoration: none;
  color: #fff;
  width: 60px;
  /*height: 60px;*/
  /*max-width: 65px;*/
  padding: 28px 5px;
  text-align: center;
  display: block;
  border-radius: 50%;
  opacity: 0.9;
  transition: all .3s ease;
}
#page-top a:hover {
  text-decoration: none;
  opacity: .5;
}
/*============================================
フッター
============================================*/
#footer {
  width: 100%;
  margin: 20px 0px 0px 0px;
  text-align: center;
}