@charset "utf-8";
* {
  margin: 0;
  padding: 0;
}
/*============================================
全般的なスタイル
============================================*/
.only-mobile {
  display: none;
}

.only-mobile {
  display: block;
  text-align: center;
  margin: 20px auto;
}

.only-mobile a {
  display: inline-block;
  background-color: #444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
}

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

#wrapper {
  width: 100%;
  max-width: 360px;
  display: grid;
  justify-content: center;
  justify-items: center;
  grid-template-columns: 1fr;
  /*grid-template-rows: auto;*/
  column-gap: 25px;
  row-gap:20px;
  padding: 0px 0px 0px 5px;
}

/*============================================
要素セレクタ
============================================*/
h1 {
  font-size: 25px;
  width: 100%;
  /*max-width: 1000px;*/
  border-bottom: 5px solid #917748;
  margin: 0px 0px 20px 0px;
}

h2 {
  width: 100%;
  max-width: 360px;
  margin:initial              /*継承解除*/
}
img {
  width: 100%;
  max-width: 360px;
  justify-items: center;
}

section {
  width: 100%;
  max-width: 360px;
  justify-content: center;
}

span {
  width: 100%;
  max-width: 360px;
}

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

iframe {
  width: 360px;
  height: 257px;
  /*max-width: 360px;*/
}

#introduction {
  width: 100%;
  max-width: 360px;
  margin: 30px 0px 0px 0px;
  justify-content: center;
  justify-items: left;
}

#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: 360px;
}

hr {       /*上部の線*/
  width: 360px;
  height: 3px;
  border: none;       /* デフォルトの立体的な線を消す */
  background-color: #917748; /* 線の色 */
}
/*============================================
ヘッダー
============================================*/
#header-menu {							/*アクセス  お問い合わせ  オンラインショップ*/
  width: 100%;
  max-width: 360px;
  display: grid;
  grid-template-columns: auto auto auto; /*横に3列*/
  justify-items: center;
  /*grid-template-rows: auto; */         /*縦に1行*/
  column-gap:25px;              /*要素と要素の隙間*/
  margin: 20px 0px 0px 0px;
}

#header {                  /*和紙の店 らくしゅあん*/
  width: 100%;
  max-width: 360px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
}
/*============================================
メインメニュー(ホームページ用)
============================================*/
#main-menu {                    /*メインメニュー 一覧*/
  width: 100%;
  max-width: 360px;
  height: 160px;
  display: grid;
  grid-template-columns: 160px 160px; /*横に2列*/
  grid-template-rows: auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
  grid-row-gap: 10%;
  
  margin: 20px 0px 40px 0px;
  font-size: 16px;
}

#main-menu a {
  display:block;
  width: 160px;
  height: 30px;
  background-color: initial;      /*継承解除*/
  /*background-color: #faebd7;		/*背景色*/
  color: #262626;								/*文字色*/
  text-decoration: none;				/*リンク部分を下線無しにする*/
  text-align: center;
  line-height: 30px;            /*上下の高さをセンターに*/
}
/*============================================
コンテンツ
============================================*/
#contents_area {
  width: 100%;
  max-width: 360px;
  margin: 20px auto 0px auto;/* 中央寄せのために左右をautoに */
  padding: initial              /*継承解除*/
}

#contents_name {
  width: 100%;
  max-width: 360px;
  padding: 20px 0px 5px 0px;
}

#kakoi {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  justify-content: center;
}
/*============================================
gallery 年タップで色を付ける
============================================*/
#gallery-year {
  width: 100%; /* 親要素の幅いっぱいに広げる */
  max-width: 360px; /* 例えば、各要素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　上部
============================================*/
#gallery-header {
  display: grid;
  width: 100%;
  max-width: 800px;
  justify-items: right;
  grid-template-columns: 160px 150px;
  grid-template-rows: auto;
  margin-bottom: 1rem; /* 上部空間 */
}
#gallery-header-text {
  font-size: 17px;									
  font-family: "ＭＳ ゴシック", sans-serif;/* フォントの種類をゴシック系にする */
  color: #333333;
}
/*ホームへ戻るボタン*/
.home-button {
  font-size: 15px;
  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; /* もしブラウザの青枠が気になるなら */
}

/* #gallery-year をメディアクエリの外に移動し、PCとモバイルで共通のスタイルとする */
#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;
}

#explanation_grid {
  width: 100%;
  max-width: 360px;
  height: 240px;
  display: grid;
  grid-template-columns: 50px 130px 100px 80px;
  grid-template-rows: 40px 40px 40px 40px 40px 40px;
  justify-items: center;
  justify-content: center;
  align-items: center;
  margin: 20px 0px 0px 0px;
  font-size: 14px;
  border: 1px solid #dfdfdf;
  border-bottom: 1px solid black;
  border-width: medium;
  grid-template-areas:
  "段1-a 段1-b 段1-c 段1-d"
  "段2-a 段2-b 段2-c 段2-d"
  "段3-a 段3-b 段3-c 段3-d"
  "段4-a 段4-b 段4-c 段4-d"
  "段5-a 段5-b 段5-c 段5-d"
  "段6-a 段6-b 段6-c 段6-d"
}
#a-1 {grid-area: 段1-a;}
#a-2 {grid-area: 段2-a;}
#a-3 {grid-area: 段3-a;}
#a-4 {grid-area: 段4-a;}
#a-5 {grid-area: 段5-a;}
#a-6 {grid-area: 段6-a;}

#b-1 {grid-area: 段1-b;}
#b-2 {grid-area: 段2-b;}
#b-3 {grid-area: 段3-b;}
#b-4 {grid-area: 段4-b;}
#b-5 {grid-area: 段5-b;}
#b-6 {grid-area: 段6-b;}

#c-1 {grid-area: 段1-c;}
#c-2 {grid-area: 段2-c;}
#c-3 {grid-area: 段3-c;}
#c-4 {grid-area: 段4-c;}
#c-5 {grid-area: 段5-c;}
#c-6 {grid-area: 段6-c;}

#d-1 {grid-area: 段1-d;}
#d-2 {grid-area: 段2-d;}
#d-3 {grid-area: 段3-d;}
#d-4 {grid-area: 段4-d;}
#d-5 {grid-area: 段5-d;}
#d-6 {grid-area: 段6-d;}

#e-1 {grid-area: 段1-e;}
#e-2 {grid-area: 段2-e;}
#e-3 {grid-area: 段3-e;}
#e-4 {grid-area: 段4-e;}
#e-5 {grid-area: 段5-e;}
#e-6 {grid-area: 段6-e;}

#f-1 {grid-area: 段1-f;}
#f-2 {grid-area: 段2-f;}
#f-3 {grid-area: 段3-f;}
#f-4 {grid-area: 段4-f;}
#f-5 {grid-area: 段5-f;}
#f-6 {grid-area: 段6-f;}

#a-1,#a-2,#a-3,#a-4,#a-5,#a-6 {
  display:block;
  width: 50px;
  height: 40px;
  background-color: #ffdab9;
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #262626;
  border-right: none;
}
#b-1 {
  display:block;
  width: 130px;
  height: 40px;
  background-color: #ffdab9;
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #262626;
  border-right: none;
}
#c-1 {
  display:block;
  width: 100px;
  height: 40px;
  background-color: #ffdab9;
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #262626;
  border-right: none;
}
#d-1 {
  display:block;
  width: 80px;
  height: 40px;
  background-color: #ffdab9;
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #262626;
  border-right: none;
}
/*============================================
会社情報 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;
  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;
}