/* =========================================================
   合同会社わかば コーポレートサイト
   ロゴ（四つ葉のクローバー）の緑・オレンジ・黄を基調にした
   やわらかく、シンプルな1ページ構成
   ========================================================= */

:root {
  --green: #98c043;
  --green-dark: #5f8f2a;
  --green-pale: #eef5df;
  --orange: #e59b38;
  --orange-pale: #fdf1e0;
  --yellow: #f4d57a;
  --brown: #4a3a2e;
  --text: #4a3a2e;
  --text-sub: #7a6a5e;
  --cream: #fdfaf2;
  --white: #fff;
  --line: #ece5d8;
  --radius: 20px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---- リセット・基本 ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  line-height: 1.9;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

section { padding: 96px 0; scroll-margin-top: 80px; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.section-head .en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green-dark);
  margin-top: 8px;
}
/* 見出し下のアクセント（クローバーの葉をイメージした丸） */
.section-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 6px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green) 0 50%, var(--orange) 50% 100%);
}
.section-lead { text-align: center; color: var(--text-sub); margin-bottom: 48px; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--green);
  color: var(--white);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #cf862a; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo img { width: 48px; height: auto; }
.global-nav ul { display: flex; gap: 32px; }
.global-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 0;
  position: relative;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s;
}
.global-nav a:hover::after { transform: scaleX(1); }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.header-tel svg { width: 18px; height: 18px; }

/* =========================================================
   1. ファーストビュー
   ========================================================= */
.hero {
  padding: 0;
  background: var(--cream);
  overflow: hidden;
}
.hero .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 20px 72px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.hero h1 .line { display: inline-block; white-space: nowrap; }
.hero h1 .accent { color: var(--green-dark); }
.hero-text p { margin-top: 20px; color: var(--text-sub); }
.hero-visual img { width: 100%; }

/* =========================================================
   2. 運営施設
   ========================================================= */
.facility-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.facility {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.facility:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(152, 192, 67, .18); }
/* 縦横比の違うロゴ（ぴっころ／ぴっころ山鼻）の見た目を揃える。
   画像の縦横比が違うため、ピンクの楕円の横幅が同じ（約175px）になるよう高さを個別に指定。
   枠の高さは固定し、下の見出しの位置を2枚で揃える */
.facility-logo { height: 100px; display: flex; align-items: center; margin-bottom: 20px; }
.facility-logo img { width: auto; height: 84px; }
.facility-logo img[src*="yamahana"] { height: 100px; }
.facility h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.facility .type { font-size: 0.85rem; color: var(--green-dark); margin-top: 4px; }
.facility .addr { font-size: 0.9rem; color: var(--text-sub); margin-top: 14px; }
.facility .desc { margin-top: 12px; margin-bottom: 28px; font-size: 0.95rem; }
.facility .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   3. 会社概要
   ========================================================= */
.company { background: var(--cream); }
.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.company-table th {
  width: 120px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.advisor-list li + li { margin-top: 6px; }
.advisor-list span { display: block; font-size: 0.85rem; color: var(--text-sub); }
.company-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--white);
}
.company-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* =========================================================
   4. お問い合わせ
   ========================================================= */
.contact-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.contact-box .label { font-weight: 700; color: var(--green-dark); }
.contact-box .tel {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.contact-box .tel svg { width: 32px; height: 32px; color: var(--green-dark); }
.contact-box .hours { font-size: 0.9rem; color: var(--text-sub); margin-top: 10px; }
.contact-box .btn { display: none; margin-top: 24px; }

/* =========================================================
   5. フッター
   ========================================================= */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 0 24px;
}
.site-footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .logo { color: var(--white); flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer .logo img { width: 56px; }
.site-footer .address { font-size: 0.85rem; font-weight: 500; opacity: .9; margin-top: 6px; }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { text-align: center; font-size: 0.8rem; opacity: .8; margin-top: 40px; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .header-tel { display: none; }
  .hero .inner { grid-template-columns: 1fr; padding: 56px 20px 48px; text-align: center; }
  .hero h1 { font-size: 1.9rem; }
  .hero h1 .line { white-space: normal; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header .inner { justify-content: center; padding: 10px 16px; }
  .global-nav ul { gap: 20px; }
  .global-nav a { font-size: 0.85rem; padding: 2px 0; }
  .logo { font-size: 1.1rem; }
  .logo img { width: 40px; }
  .section-head h2 { font-size: 1.5rem; }
  .facility-list { grid-template-columns: 1fr; }
  .facility { padding: 28px 24px; }
  .facility .btn { align-self: stretch; padding: 12px 16px; font-size: 0.9rem; }
  .hero h1 { font-size: 1.6rem; }
  .contact-box { padding: 36px 20px; }
  .contact-box .tel { font-size: 1.9rem; }
  .contact-box .btn { display: inline-flex; }
  .company-table th { width: 96px; }
  .site-footer .inner { flex-direction: column; }
}
