/* =========================================================
   一般社団法人しらさぎ振興会  ―  サイトスタイル
   温かみのある淡い配色 ＋ ロゴのネイビーをアクセントに
   ========================================================= */

:root {
  --cream:      #fbf6ee;   /* ページ背景（温かいアイボリー） */
  --cream-2:    #f6eede;   /* 交互セクション背景 */
  --card:       #fffdf8;   /* カード背景 */
  --navy:       #3d5a7c;   /* ブランドカラー（ロゴ由来） */
  --navy-deep:  #324c69;
  --navy-soft:  #4d6b8e;
  --gold:       #bf9e63;   /* 温かみのアクセント */
  --gold-soft:  #ddcaa0;
  --ink:        #4a443c;   /* 本文（温かいダークグレー） */
  --ink-soft:   #79705f;   /* 補助テキスト */
  --line:       #ece1cd;   /* 罫線 */
  --shadow:     0 14px 40px rgba(61, 90, 124, .10);
  --shadow-sm:  0 6px 18px rgba(61, 90, 124, .08);
  --radius:     18px;
  --maxw:       1080px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--gold); }

.container { width: min(92%, var(--maxw)); margin-inline: auto; }

section { padding: clamp(56px, 8vw, 104px) 0; }

/* ---------- 見出し ---------- */
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .en {
  display: block;
  font-family: var(--serif);
  font-size: .72rem;
  letter-spacing: .42em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: .42em;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.5;
}
.section-head .lead {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: .98rem;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand .brand-name {
  font-family: var(--serif); font-weight: 600;
  color: var(--navy-deep); font-size: 1.05rem; letter-spacing: .04em;
}
.brand .brand-sub { font-size: .56rem; color: var(--ink-soft); letter-spacing: .1em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 10px;
  font-size: .9rem; color: var(--ink); font-weight: 500;
}
.nav a:hover { background: var(--cream-2); color: var(--navy); }
.nav .nav-cta {
  margin-left: 8px; background: var(--navy); color: #fff;
  padding: 10px 20px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--navy-deep); color: #fff; }

.nav-toggle {
  display: none; border: 0; background: transparent; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--navy-deep);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span + span { margin-top: 6px; }

/* ---------- ヒーロー（白鷺の写真バナー） ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(460px, 72vh, 640px);
  display: flex; align-items: center;
  text-align: center;
  /* 横長（ワイド）ビューポートでも縮尺を変えず白鷺全体が切れないよう contain で表示。
     余白は写真の水辺の余韻を残す、やや濃いめのブルーで埋める（写真を上、ブルーを下地に） */
  background:
    url("../assets/hero-egret.jpg") left center / contain no-repeat,
    linear-gradient(90deg, #9cbdda 0%, #a9c6dd 55%, #bcd4e6 100%);
}
/* 右側に温かいクリームのスクリーンを敷き、文字を読みやすく。左の白鷺はそのまま見せる */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg,
    rgba(251,246,238,0) 0%,
    rgba(251,246,238,0) 34%,
    rgba(251,246,238,.42) 47%,
    rgba(251,246,238,.85) 61%,
    rgba(250,243,232,.97) 77%,
    var(--cream) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 50 Q360 10 720 50 T1440 50 V90 H0 Z' fill='%23f6eede'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero .container { position: relative; z-index: 3; display: flex; justify-content: flex-end; }
.hero-copy { width: min(540px, 100%); padding: clamp(48px, 8vw, 80px) 0; }
.hero .hero-logo { width: clamp(104px, 14vw, 140px); height: auto; margin: 0 auto 20px; filter: drop-shadow(0 10px 24px rgba(50,76,105,.25)); }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  color: var(--navy-deep); margin: 0 0 18px; line-height: 1.45;
}
.hero h1 .accent { color: var(--gold); }
.hero p.tagline { max-width: 520px; margin: 0 auto 14px; color: var(--ink); font-size: clamp(1rem, 2.4vw, 1.1rem); }
.hero p.place { color: var(--ink-soft); font-size: .9rem; letter-spacing: .06em; }
.hero .hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* スマホ：写真を上に大きく見せ、文字はその下のクリーム部分へ（鳥と重ならない） */
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-start; background-size: cover; background-position: 30% top; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(251,246,238,0) 0%,
      rgba(251,246,238,0) 24%,
      rgba(251,246,238,.5) 40%,
      rgba(251,246,238,.93) 57%,
      var(--cream) 73%);
  }
  .hero .container { justify-content: center; }
  .hero-copy { width: 100%; padding-top: clamp(200px, 58vw, 330px); padding-bottom: 36px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--gold-soft); }
.btn-ghost:hover { background: var(--cream-2); color: var(--navy-deep); border-color: var(--gold); }

/* ---------- ごあいさつ ---------- */
.about { background: var(--cream-2); position: relative; }
.about .about-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.about .greeting { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.55rem); color: var(--navy-deep); line-height: 1.85; margin: 0 0 28px; }
.about p { color: var(--ink); margin: 0 0 18px; }
.about .sign { margin-top: 30px; color: var(--ink-soft); font-size: .92rem; }
.about .sign strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy-deep); margin-top: 4px; letter-spacing: .08em; }

/* ---------- 理念・活動 ---------- */
.philosophy { background: var(--cream); }
.creed {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fdfaf4; border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px); text-align: center; box-shadow: var(--shadow);
  margin-bottom: clamp(40px, 5vw, 56px); position: relative; overflow: hidden;
}
.creed::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/logo.svg") right -40px bottom -40px / 240px no-repeat;
  opacity: .08;
}
.creed .label { font-family: var(--serif); letter-spacing: .4em; font-size: .72rem; color: var(--gold-soft); margin-bottom: 18px; }
.creed p { position: relative; font-family: var(--serif); font-size: clamp(1.15rem, 2.8vw, 1.5rem); line-height: 1.95; margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ico {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream-2); color: var(--navy);
}
.pillar .ico svg { width: 32px; height: 32px; }
.pillar h3 { font-family: var(--serif); font-size: 1.18rem; color: var(--navy-deep); margin: 0 0 10px; }
.pillar p { color: var(--ink-soft); font-size: .92rem; margin: 0; line-height: 1.85; }

/* ---------- 活動実績 ---------- */
.results { background: var(--cream-2); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.result-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result-media { height: 172px; overflow: hidden; background: var(--cream-2); }
.result-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; display: block; transition: transform .5s ease; }
.result-media--music img { object-position: center 42%; }
.result-card:hover .result-media img { transform: scale(1.05); }
.result-body { padding: 26px 26px 30px; }
.result-card .tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  color: var(--gold); background: #fff; border: 1px solid var(--gold-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.result-card h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--navy-deep); margin: 0 0 10px; line-height: 1.6; }
.result-card p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.results .note { text-align: center; margin-top: 30px; color: var(--ink-soft); font-size: .85rem; }

/* ---------- 会社概要 ---------- */
.profile { background: var(--cream); }
.profile-table {
  width: 100%; max-width: 860px; margin-inline: auto; border-collapse: collapse;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.profile-table th, .profile-table td { text-align: left; padding: 20px 26px; vertical-align: top; border-bottom: 1px solid var(--line); }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-table th {
  width: 32%; background: var(--cream-2); color: var(--navy-deep);
  font-family: var(--serif); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.profile-table td { color: var(--ink); font-size: .95rem; }
.profile-table ol { margin: 0; padding-left: 1.3em; }
.profile-table ol li { margin-bottom: 4px; }
.profile-table .muted { color: var(--ink-soft); font-size: .85rem; }

/* ---------- アクセス ---------- */
.access { background: var(--cream-2); }
.access-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.access-info {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
}
.access-info h3 { font-family: var(--serif); color: var(--navy-deep); font-size: 1.2rem; margin: 0 0 18px; }
.access-info dl { margin: 0; }
.access-info dt { font-size: .76rem; letter-spacing: .12em; color: var(--gold); font-weight: 600; margin-top: 18px; }
.access-info dt:first-child { margin-top: 0; }
.access-info dd { margin: 4px 0 0; color: var(--ink); }
.access-info .map-link { margin-top: 26px; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--cream); }
.contact-single { max-width: 620px; margin-inline: auto; text-align: center; }
.contact-single .greeting { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--navy-deep); margin: 0 0 16px; }
.contact-single p { color: var(--ink); font-size: .95rem; margin: 0 auto; max-width: 560px; }
.contact-box {
  margin-top: 26px; background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; text-align: left; display: inline-block; min-width: min(440px, 100%);
}
.contact-box .row { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-box .row:last-child { margin-bottom: 0; }
.contact-box .k { font-size: .76rem; letter-spacing: .1em; color: var(--gold); font-weight: 600; min-width: 56px; padding-top: 2px; }
.contact-box .v { color: var(--ink); font-size: .92rem; }
.contact-actions { margin-top: 28px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; }
.field label .req { color: #c0794f; font-size: .72rem; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: #fffdf9; font-family: inherit; font-size: .95rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(77,107,142,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form .btn-primary[disabled] { opacity: .6; cursor: default; }
.form .form-note { margin-top: 16px; font-size: .78rem; color: var(--ink-soft); text-align: center; line-height: 1.7; }
.form .form-note--success { color: #3f7d5f; font-weight: 600; font-size: .92rem; }
.form .form-note--error { color: #c0603f; font-weight: 600; }
.contact .form { max-width: 640px; margin-inline: auto; position: relative; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #d9e1ea; padding: 56px 0 28px; }
.site-footer .f-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.site-footer .f-top img { width: 56px; height: 56px; }
.site-footer .f-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; letter-spacing: .05em; }
.site-footer .f-sub { font-size: .72rem; color: #aebccd; letter-spacing: .18em; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .f-addr { font-size: .9rem; line-height: 1.9; color: #cdd8e4; }
.site-footer .f-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.site-footer .f-nav a { color: #cdd8e4; font-size: .88rem; }
.site-footer .f-nav a:hover { color: #fff; }
.site-footer .copy { text-align: center; margin-top: 24px; font-size: .76rem; color: #9fb0c2; letter-spacing: .04em; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .pillars, .result-grid { grid-template-columns: 1fr 1fr; }
  .access-grid, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .f-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 18px 22px;
    gap: 2px; transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .pillars, .result-grid { grid-template-columns: 1fr; }
  .profile-table th { width: 38%; padding: 16px; }
  .profile-table td { padding: 16px; }
}

/* ---------- 出現アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
