* { margin:0; padding:0; box-sizing:border-box; }
html, body {
	font-family: Helvetica, '游ゴシック', 'Yu Gothic', YuGothic, HiraKakuProN-W3, 'メイリオ', Meiryo, sans-serif;
	font-size: 14px;
	color: #333;
	line-height:1.9;
	text-align: left;
	background:#fff; 
	margin: 0;
}

body {
  padding-top: 120px; /* ← fixed header 分 */
}

.container { width:90%; max-width:960px; margin:auto; }

/* Header */
.header {
  width:100%;
  background:#fff;
  border-bottom:1px solid #eaeaea;
  position:fixed; top:0; left:0;
  z-index:100;
}
.header-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:120px;
}
.logo img {
  height:48px;
	width:auto;
}
.gnav a {
  margin-left:24px;
  text-decoration:none;
  color:#333; font-size:0.9rem;
  letter-spacing:.1em;
}

/* Hero */
.hero {
  margin-top: 0;
  height:40vh; min-height:320px;
  position:relative; overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0;
  background:url("images/honden.jpg") center/cover no-repeat;
}
.hero-inner {
  position:relative; z-index:2;
  height:100%;
  display:flex; flex-direction:column;
  justify-content:center; align-items:center;
  color:#fff;
}
.hero-title { font-size:3rem; letter-spacing:.15em; text-shadow:0 2px 8px rgba(0,0,0,0.6); }
.hero-sub { font-size:1.2rem; text-shadow:0 1px 4px rgba(0,0,0,0.6); }

/* Sections */
.section { padding:80px 0; }
.section-title { text-align:center; font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;  /* または 200, 100 でさらに細く */
  letter-spacing: 0.05em; font-size:1.8rem; margin-bottom:40px; }

/* 縁起 */
.engi-text {
  max-width:750px;
  margin: 0 auto;
  text-align:left;
  line-height:1.8;
  color:#444;
  white-space:pre-line;
}

/* ご祭神 */
.service-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:32px;
}
.service-card { text-align:center; }
.service-img { width:100%; height:200px; object-fit:contain; }
.service-card h3 { margin:12px 0 4px; font-size:1.2rem; }
.ename { color:#777; margin-bottom:12px; }

/* Works セクション全体 */
.section#works {
  padding: 50px 20px;
  text-align: center;
}

.map-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
}

/* マップ */
.map-wrapper {
  flex: 0 0 480px;
  position: relative;
}

.map-image {
  width: 100%;
  border-radius: 8px;
}

/* マップ番号 */
.map-point {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all .2s ease;
}

/* 右リストを2列に */
.map-list-2cols {
  flex: 0 0 440px;
  display: grid;
	grid-template-rows: repeat(20, 1.6em); /* 縦20行 */
	grid-template-columns: 1fr 1fr; /* 2列 */
  gap: 6px 20px; /* 行・列の間隔 */
}

.map-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background .2s;
}

.map-item:hover { background: rgba(0,0,0,0.05); }

.map-number {
  display: inline-block;
  width: 20px; height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: #eee;
  margin-right: 6px;
  font-weight: 300;
  font-size: 0.7rem; /* 大きさ統一 */
}

.map-text {
  font-weight: 300;
  font-size: 0.75rem; /* 大きさ統一 */
  color: #333;
}

/* モーダル表示時 */
.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル画像 */
.modal {
  display: flex; /* 常にフレックスにしておく */
  opacity: 0;    /* 非表示 */
  pointer-events: none; /* クリック不可 */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  z-index: 200;
  overflow: auto;          /* 内容が大きい場合はスクロール */
  padding: 20px;           /* 端に余白を作る */
  transition: opacity 0.25s ease;
}


.modal-content {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
	text-align: center;
	max-width: 90vw;         /* 画面幅の90％まで */
  max-height: 90vh;        /* 画面高さの90％まで */
  width: auto;              /* 画像幅に合わせる */
}

.modal-content img {
  max-width: 100%;          /* 親に合わせる */
  max-height: 80vh;         /* 高さ制限 */
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.25s ease;
}

.modal.show img {
  transform: scale(1);
  opacity: 1;
}

#modal-text {
	display: block;
	color: #fff;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 8px;
  max-width: 100%;          /* 画像幅に合わせる */
  white-space: normal;
  word-break: break-word;
}

/* Blog */
.blog-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom:1px solid #ddd;
  padding:16px 0;
}

.blog-head {
  display:flex;
  align-items:center;
}

.blog-date {
  color:#777;
  font-size:0.85rem;
  margin-right:10px;
}

.blog-title {
  font-weight:bold;
 font-size: 1.05rem;   /* ← 少し大きく */
  line-height: 1.4;
  max-width: 100%;      /* 念のため */
}

/* 本文3行 */
.blog-excerpt {
  margin-top:8px;
  color:#444;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.blog-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Footer */
.footer {
	background:#fafafa;
	border-top:1px solid #eaeaea;
	padding:24px 0 16px;
	color:#444;
}

.footer-inner {
  display:flex; flex-wrap:wrap;
  justify-content:center; gap:40px;
}

.footer-col h4 { font-size:0.9rem; margin-bottom:10px; }
.footer-col a { display:block; font-size:0.85rem; color:#555; text-decoration:none; margin-bottom:6px; }
.footer-copy { text-align:center; margin-top:20px; color:#888; font-size:0.8rem; }

.iwata-content {
  padding: 80px 20px;
}

.iwata-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2rem;
}

.iwata-full-image {
  width: 100vw;
  margin-left: calc(50% - 50vw); /* 親の max-width を突破 */
}

.iwata-full-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* iwata.html 限定 */
.iwata-page .iwata-text {
  max-width: 520px;      /* テキストの箱の幅 */
  margin-left: auto;     /* 左を伸ばして右へ */
  margin-right: 2%;      /* 右端の余白（header感） */
  margin-bottom: 60px;

  font-size: 0.9rem;
  line-height: 1.9;
  color: #333;
}

/* スマホ */
@media (max-width: 768px) {
  .iwata-text-block {
    max-width: 100%;
    margin-left: 0;
  }
}

