/*
Theme Name: Jinsei Shokudo
Theme URI: https://example.com/jinsei-shokudo
Author: Theme Author
Author URI: https://example.com
Description: A minimal theme for the Jinsei Shokudo concept site with fade-in effects and simple post support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jinsei-shokudo
*/

/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Times New Roman", Times,
    "はんなり明朝", "Hannari", "Hannari Mincho",
    "游明朝", "Yu Mincho",
    "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "MS PMincho", "MS 明朝",
    serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  background: #000000;
  min-height: 100vh;
}

/* 汎用レイアウト */

.section {
  padding: 80px 0;
  background: #000000;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 28px;
  letter-spacing: 0.12em;
  margin: 0 0 32px;
  text-align: center;
}

.section-title span {
  font-size: 22px;
}

/* HERO：画像１枚のみ */

.hero {
  background: #000000;
  padding: 0;
}

.hero-image {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* コンセプト */

.section-concept {
}

.concept-heading {
  text-align: center;
}

/* ▼ コンセプト見出しをより大きく */
.section-concept .section-title {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.section-concept .section-title span {
  font-size: 44px;
}

/* ▼ 画像(pic2)とテキストのレイアウト調整 */
.section-concept-inner {
  display: flex;
  gap: 80px;
  align-items: stretch;
}

/* 左画像はそのまま */
.concept-image {
  flex: 2;
}

/* 右テキストを画像の縦に対して中央に揃える */
.concept-text {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 本文も少し大きく */
.concept-text p {
  font-size: 20px;
  line-height: 1.9;
}

.concept-image img {
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
}

/* 来店条件（pic3 全幅＋左上テキスト） */

.section-conditions {
  padding: 0;
  background: #000000;
}

.conditions-visual {
  position: relative;
  width: 100%;
  margin: 0;
}

.conditions-visual img {
  width: 100%;
  height: auto;
}

/* pic3 の下側だけフェード */
.conditions-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.65) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.conditions-overlay {
  position: absolute;
  top: 32px;
  left: 72px;
  max-width: 60%;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.conditions-title {
  margin: 0 0 0px;
  font-size: 32px;
  letter-spacing: 0.16em;
}

.conditions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1.7;
}

.conditions-list li {
  position: relative;
  padding-left: 1.4em;
}

.conditions-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0.1em;
}

/* 当店のルール：左テキスト＋右寄せ画像（pic4） */

.section-rules {
  padding: 40px 0 40px;
  background: #000000;
}

.rules-visual {
  position: relative;
  width: 100%;
  margin: 0;
  background: #000000;
  overflow: hidden;
}

/* 画像は右寄せ・横幅 3/4 のまま */
.rules-visual img {
  width: 75vw;
  max-width: none;
  margin-left: auto;
  display: block;
}

/* 左側を黒～透明にするグラデーション（既存） */
.rules-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000 0%, #000 30%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* 上下にフェードを追加（新規） */
.rules-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 25%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* テキストを左側にオーバーレイ */
.rules-overlay {
  position: absolute;
  top: 50%;
  left: 5vw;
  transform: translateY(-50%);
  z-index: 2;
  color: #ffffff;
  max-width: 28vw;
}

.rules-title {
  margin: 0 0 16px;
  font-size: 32px;
  letter-spacing: 0.18em;
}

.rules-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 2.1;
}

.rules-overlay li {
  position: relative;
  padding-left: 1.4em;
}

.rules-overlay li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0.1em;
}

/* ここより下の .section-team 以降のスタイルはそのままでOK */

/* 運営 */

.section-team {
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* カード自体には枠・背景をつけない */
.member-card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* 顔写真＋黒フェード＋テキストオーバーレイ */
.member-photo {
  position: relative;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* 下側に黒いグラデーションをかける */
.member-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    transparent 100%
  );
  pointer-events: none;
}

/* 役職・名前を画像左下に配置 */
.member-overlay {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
}

.member-role {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 4px;
}

.member-name-en {
  font-size: 20px;
  margin: 0;
}

/* 日本語名を少しだけ小さく */
.member-name-ja {
  font-size: 10px;
  margin: 2px 0 0;
  color: #f1f1f1;
}

/* 行間を詰める指定はそのまま使えます */
.member-overlay p {
  line-height: 1.3;
}

.member-name-ja {
  font-size: 13px;
  margin: 2px 0 0;
  color: #f1f1f1;
}

/* プロフィール文は画像の下に */
.member-body {
  padding: 18px 0 22px;
}

.member-copy {
  font-size: 12px;
  color: #c3c3c3;
  line-height: 1.6;
  margin: 0;
}

/* 各地の人生食堂：カードの見た目調整 */
.location-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  border: none;
  box-shadow: none;
}

/* 画像を「全体表示」させる：トリミングしない */
.location-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* 後ろの画像を暗くする（濃いめ） */
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 0;
}

/* キャプション中央寄せ */
.location-card figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #ffffff;
  z-index: 1;
}

/* 各地の人生食堂：2×2 のグリッド配置 */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

/* News */

.section-news {
  text-align: center;
}

.news-placeholder {
  font-size: 14px;
  color: #bbbbbb;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.news-item {
  padding: 16px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.news-item a {
  color: #ffffff;
  text-decoration: none;
}

.news-item a:hover,
.news-item a:focus {
  text-decoration: underline;
}

.news-meta {
  font-size: 12px;
  color: #bfbfbf;
  margin: 0 0 6px;
}

.news-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.news-excerpt {
  margin: 0;
  font-size: 14px;
  color: #dcdcdc;
}

/* Contact */

/* Contact セクション全体 */
.section-contact {
  position: relative;
  padding: 0;
  min-height: 340px;
  overflow: hidden;
  background: #000000;
}

/* 写真の“上”に文字を重ねる＆中央の高さに配置 */
.contact-inner {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
  max-width: 1100px;
}

/* Contact の見出し：大きく左寄せ */
.contact-title {
  margin: 0 0 12px;
  font-size: 40px;
  letter-spacing: 0.12em;
}

/* サブテキスト */
.contact-text {
  margin: 0;
  font-size: 14px;
  color: #f3f3f3;
}

/* Contact 背景画像（暗く） */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25);
}

/* フェードイン */

.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* レスポンシブ */

@media (max-width: 960px) {
  .section-concept-inner,
  .section-rules-inner {
    flex-direction: column;
  }

  .concept-image {
    order: -1;
  }

  .rules-image {
    flex-basis: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conditions-overlay {
    top: 24px;
    left: 20px;
    max-width: 80%;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .member-photo img {
    height: 220px;
  }

  .location-card img {
    height: 200px;
  }

  .conditions-title {
    font-size: 24px;
  }

  .conditions-list {
    font-size: 16px;
  }
}