/* style.css - 共通スタイル */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #ffffe0;
  color: #000;
  line-height: 1.6;
}

/* フォントユーティリティ（フォールバックなし＝元のFONT face属性と同じ挙動） */
.font-gothic { font-family: "ＭＳ Ｐゴシック", "MS PGothic"; }
.font-mincho { font-family: "ＭＳ Ｐ明朝", "MS PMincho"; }
.font-kaisho { font-family: "HG正楷書体-PRO"; }
.font-maru { font-family: "AR P丸ゴシック体M", "AR丸ゴシック体M", "HG丸ｺﾞｼｯｸM-PRO"; }
.font-kyokasho { font-family: "HGS教科書体"; }

a:link { color: #0000ff; }
a:visited { color: #b8860b; }
a:active { color: #ff0000; }

img { border: 0; max-width: 100%; height: auto; }

/* ページラッパー */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 15px;
  text-align: center;
}

/* サイトヘッダー */
.site-description {
  font-size: small;
  line-height: 18px;
  margin-bottom: 5px;
  color: #0000ff;
}

/* 区切り線画像 */
.separator {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 10px;
}

/* ページタイトル */
.page-title {
  margin: 20px 0 15px;
}

/* メインコンテンツ */
.content {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
}

.content p {
  margin-bottom: 0.5em;
  line-height: 22px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* 2カラムレイアウト */
.two-col {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: flex-start;
  margin: 10px 0;
}

.two-col > * { flex: 1; }
.two-col .shrink { flex: 0 0 auto; }

/* 画像＋テキスト横並び */
.media {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 10px 0;
}

.media .media-img { flex: 0 0 auto; }
.media .media-body { flex: 1; text-align: left; }

/* 図版 */
.figure {
  text-align: center;
  margin: 15px 0;
}

.figure img { display: inline-block; }

.figure .caption {
  margin-top: 5px;
}

/* === index.html ナビゲーションメニュー === */
.nav-menu-group {
  background-color: #8b008b;
  max-width: 600px;
  margin: 20px auto;
  padding: 3px;
}

.nav-menu {
  background-color: #8b008b;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 12px;
  max-width: 600px;
  margin: 0 auto;
}

.nav-menu.cols-3 {
  grid-template-columns: repeat(4, 1fr);
}

.nav-menu a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.nav-menu a img { width: 20px; height: auto; }
.nav-menu a:visited { color: #fff; }
.nav-menu a:hover { text-decoration: underline; }

/* サブナビ（緑ボタン） */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.sub-nav a {
  display: block;
  flex: 1;
  padding: 8px 16px;
  background-color: #00ff00;
  color: #000080;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

/* 更新情報ボックス */
.update-box {
  border: 1px solid #ccc;
  background-color: #e0ffff;
  max-width: 520px;
  margin: 20px auto;
  padding: 12px;
  display: flex;
  gap: 15px;
  text-align: left;
}

.update-box .update-date { flex: 0 0 auto; }
.update-box .update-content { flex: 1; }

/* 戻るボタン */
.back-btn {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  text-align: center;
}

.back-btn a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  gap: 2px;
}

.back-btn img { display: block; margin: 0 auto; }

/* フッター */
.site-footer {
  margin-top: 30px;
  text-align: center;
}

.copyright {
  margin: 10px 0;
}

/* === rinku.html リンク集 === */
.link-grid {
  max-width: 600px;
  margin: 0 auto;
}

.link-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.link-item {
  flex: 1;
  padding: 8px 12px;
  text-align: left;
}

/* === otayori.html フォーム === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.form-row label {
  width: 120px;
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}

.form-row .form-field { flex: 1; }

.form-actions {
  text-align: center;
  margin: 20px 0;
}

/* === ryuou.html サイドバーレイアウト === */
.ryuou-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.ryuou-banner {
  width: 100%;
  background-color: #009900;
}

.ryuou-banner .banner-bar {
  display: flex;
  padding: 8px;
  gap: 10px;
  align-items: center;
}

.ryuou-banner .banner-label {
  color: #fff;
  text-align: center;
  width: 180px;
  flex-shrink: 0;
}

.ryuou-banner .banner-info {
  flex: 1;
  background-color: #fff;
  padding: 5px 10px;
  text-align: center;
}

.sidebar-layout {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 161px;
  background-color: #009900;
  flex-shrink: 0;
}

.sidebar-header {
  background-color: #ccc;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  line-height: 22px;
  font-size: 14px;
}

.sidebar-nav a:visited { color: #fff; }

.sidebar-nav .bullet {
  margin-right: 5px;
  flex-shrink: 0;
}

.sidebar-nav .divider {
  height: 1px;
  background-color: #008000;
}

.main-content {
  flex: 1;
  padding: 5px 10px;
  text-align: left;
}

.main-content .section-title {
  line-height: 22px;
  margin-bottom: 5px;
}

.main-content .section-bar {
  height: 16px;
  background: linear-gradient(to right, #008000, #ffffff);
  margin-bottom: 10px;
}

.ryuou-footer-bar {
  background-color: #999;
  height: 3px;
}

.ryuou-footer-nav {
  background-color: #f6f6f6;
  padding: 10px;
  text-align: center;
}

.ryuou-address {
  background: linear-gradient(to bottom, #8cd18c 0%, #ffffff 50%);
  padding: 15px 10px;
  text-align: center;
  line-height: 22px;
}

/* ナビボタンバー（紫） */
.nav-bar {
  background-color: #800080;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 5px;
  margin: 10px 0;
}

.nav-bar a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
}

.nav-bar a img { width: 20px; height: auto; }
.nav-bar a:visited { color: #fff; }
.nav-bar a:hover { text-decoration: underline; }

/* === densetu.html セクション === */
.section-header {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  background-color: #adff2f;
  margin: 20px 0 10px;
}

.section-header .bullet {
  width: 24px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}

.section-header .title {
  font-weight: bold;
  font-size: 1.2em;
}

/* 写真グリッド */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  margin: 15px 0;
}

.photo-grid img { max-width: 340px; }

/* 注文情報（kaiun.html） */
.order-header {
  background-color: #800080;
  color: #fff;
  padding: 8px;
  font-size: 1.1em;
  text-align: center;
  margin: 15px 0 10px;
}

.order-info {
  max-width: 610px;
  margin: 0 auto;
  text-align: left;
}

.order-contact {
  max-width: 440px;
  margin: 10px auto;
  text-align: left;
}

.order-contact .email-box {
  background-color: #7fff00;
  padding: 8px 12px;
  margin-bottom: 5px;
}

.order-contact .tel-box {
  background-color: #7fffd4;
  padding: 8px 12px;
}

.product-info {
  background-color: #ffff00;
  border: 2px solid #fcab14;
  padding: 8px;
  text-align: center;
  margin: 15px auto;
  max-width: 620px;
}

/* ふるさとの宝セクション（index.html） */
.treasure-section {
  max-width: 600px;
  margin: 20px auto;
}

.treasure-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 10px 0;
}

.treasure-grid .item {
  flex: 1;
  text-align: center;
}

/* access.html 道案内 */
.step-list {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
}

.step {
  margin-bottom: 15px;
}

.step .step-num {
  margin-bottom: 3px;
}

.step .step-body {
  padding-left: 25px;
}

/* === お便り装飾 === */
.decorative-border {
  font-size: 1.3em;
  color: #ff1493;
  text-align: center;
  line-height: 1.8;
  margin: 10px 0;
}

/* 注意書き */
.notice {
  max-width: 600px;
  margin: 10px auto;
  text-align: center;
  font-size: 0.95em;
}

/* 表ラベル行 */
.label-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.label-row > * {
  flex: 1;
  background-color: #dcdcdc;
  padding: 5px;
  text-align: center;
}

/* === ユーティリティクラス === */

/* テキスト色 */
.text-red { color: #ff0000; }
.text-blue { color: #0000ff; }
.text-navy { color: #000080; }
.text-darkblue { color: #00008b; }
.text-darknavy { color: #0000cd; }
.text-maroon { color: #800000; }
.text-purple { color: #800080; }
.text-midnight { color: #191970; }
.text-pink { color: #c71585; }
.text-crimson { color: #dc143c; }
.text-darkred { color: #8b0000; }
.text-indigo { color: #4b0082; }
.text-hotpink { color: #ff69b4; }
.text-magenta { color: #ff00ff; }
.text-orange { color: #cc6633; }
.text-violet { color: #9400d3; }
.text-brown { color: #b22222; }
.text-6633cc { color: #6633cc; }

/* フォントサイズ */
.font-small { font-size: small; }
.font-large { font-size: large; }
.font-xlarge { font-size: x-large; }
.font-xxlarge { font-size: xx-large; }
.font-1-1 { font-size: 1.1em; }
.font-1-2 { font-size: 1.2em; }
.font-1-3 { font-size: 1.3em; }
.font-1-4 { font-size: 1.4em; }

/* 行間 */
.lh-22 { line-height: 22px; }
.lh-24 { line-height: 24px; }
.lh-26 { line-height: 26px; }

/* ぶら下げインデント */
.hanging-indent {
  padding-left: 1.5em;
  text-indent: -1.5em;
}

/* 特徴ヘッダー（tokutyou.html） */
.feature-header {
  display: flex;
  background-color: #ffff00;
  padding: 5px 8px;
}

.feature-header:not(:first-child) {
  margin-top: 15px;
}

.feature-header .bullet {
  text-align: center;
  width: 40px;
  flex-shrink: 0;
}

.feature-body {
  padding: 10px 0 10px 40px;
}

/* 風景ページ ナビ */
.landscape-nav {
  background-color: #7fff00;
  max-width: 640px;
  margin: 20px auto;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.landscape-nav a {
  color: #000080;
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.landscape-nav a:visited { color: #000080; }

/* ページタイトルテキスト */
.page-title-text {
  display: block;
  margin: 20px 0 15px;
}

/* kaiun.html: ヘッダーラベル＋オレンジバー */
.label-bar {
  max-width: 610px;
  margin: 15px auto 0;
  display: flex;
}

.label-bar .label {
  background-color: #fffacd;
  padding: 4px 10px;
}

.label-bar .bar {
  background-color: #ffa07a;
  flex: 1;
}

/* kaiun.html: 表裏写真セクション */
.photo-pair {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 570px;
  margin: 5px auto;
}

.photo-pair .photo-label {
  background-color: #dcdcdc;
  padding: 5px;
  text-align: center;
}

/* コンテンツ幅バリエーション */
.w-narrow { max-width: 610px; margin-left: auto; margin-right: auto; }
.w-medium { max-width: 660px; margin-left: auto; margin-right: auto; }

/* 画像縦積み */
.img-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* rinku.html: リンク背景色 */
.link-item.bg-cyan { background-color: #00ffff; }
.link-item.bg-yellow { background-color: #ffff00; }

/* 情報ボックス（tokutyou.html） */
.info-box {
  background-color: #e0ffff;
  padding: 15px;
  margin-bottom: 15px;
}

/* houdou.html: シンプルテーブル */
.simple-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table td {
  padding: 3px 5px;
}

/* 注文セクション内のアドレスブロック */
.address-block {
  margin-left: 1em;
}

.address-block p {
  margin-bottom: 0;
}
