@charset "UTF-8";

/* 1. 基本設定：サイト全体の色と横幅はここで変更できます */
:root {
  --color-text: #333333;
  --color-blue: #8ab4e2;
  --color-green: #228329;
  --color-light-green: #eaf7e8;
  --color-border: #d9e2d8;
  --content-width: 900px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--color-text); font-family: "texgyreadventor","Noto Sans JP","Yu Gothic",YuGothic,"Hiragino Kaku Gothic ProN","Meiryo","Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 16px; line-height: 1.9; }
a { color: #245b91; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #245b91; outline-offset: 5px; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3 { margin: 0; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 8px 16px; background: #fff; z-index: 10; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 2. ヘッダーと水色のメニュー帯 */
.site-header > .container { padding-block: 30px; }
.logo { display: inline-block; vertical-align: middle; line-height: 0; }
.logo img { width: 333px; }
.site-nav { background: var(--color-blue); }
.nav-links { display: flex; justify-content: center; }
.nav-links a { padding: 15px 32px; color: #ffffff; font-weight: 700; text-decoration: none; text-align: center; }
.nav-links a:hover { background: #ffffff40; }

/* 3. ご挨拶 */
.introduction { padding-top: 72px; }
h1 { color: var(--color-green); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.6; text-align: center; }
h1 span { display: block; font-size: .8em; margin-top: 4px; }
.greeting { margin-top: 32px; padding: 26px 32px; border: 1px solid #cce3c8; border-radius: 3px; line-height: 2; }
.greeting p + p { margin-top: 10px; }

/* 4. 共通の見出し・会社概要 */
.section { margin-top: 60px; scroll-margin-top: 24px; }
h2 { margin-bottom: 26px; padding: 0 12px 10px; border-bottom: 1px solid #939b9f; color: #62696b; font-size: 1.75rem; line-height: 1.5; }
.company-details { margin: 0; }
.company-details > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 23px 16px; border-bottom: 1px solid #e4e8e3; }
.company-details dt { font-weight: 700; }
.company-details dd { margin: 0; }
.contact-line { display: inline-block; margin-right: 20px; }

/* 5. お問い合わせ */
.contact-panel { padding: 28px 32px; background: #f5f9fc; border-top: 3px solid var(--color-blue); }
h3 { margin-bottom: 10px; font-size: 1.2rem; }
.phone-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 22px; color: #245b91; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; text-decoration: none; line-height: 1.5; }
.phone-link span { font-size: .875rem; font-weight: 400; color: var(--color-text); }
.phone-link:hover { text-decoration: underline; }

/* 6. アクセスとフッター */
.map-caption { margin-bottom: 16px; }
.map { display: block; width: 100%; height: 450px; border: 0; background: #eef1ed; }
.map-link { margin-top: 10px; text-align: right; }
.access-notes { margin: 24px 0 0; padding: 20px 24px 20px 44px; background: var(--color-light-green); border-radius: 3px; }
.access-notes li + li { margin-top: 8px; }
.access-notes li::marker { color: var(--color-green); }
.access { margin-bottom: 72px; }
.site-footer { border-top: 2px solid var(--color-blue); padding-block: 26px; color: #656565; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer small, .site-footer a { font-size: .875rem; }

/* 7. スマートフォン：600px以下で縦配置に切り替え */
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .site-header > .container { padding-block: 22px; }
  .logo img { width: min(300px, 100%); }
  .nav-links { width: 100%; }
  .nav-links a { flex: 1; padding: 14px 6px; font-size: .875rem; }
  .introduction { padding-top: 40px; }
  .greeting { margin-top: 24px; padding: 20px; }
  .section { margin-top: 42px; }
  h2 { font-size: 1.5rem; padding-left: 0; margin-bottom: 20px; }
  .company-details > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .company-details dt { color: var(--color-green); }
  .contact-line { display: block; margin-right: 0; }
  .contact-panel { padding: 22px 20px; }
  .phone-link { display: flex; }
  .phone-link span { flex-basis: 100%; }
  .map { height: 340px; }
  .access-notes { padding: 18px 18px 18px 36px; }
  .site-footer .container { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-nav, .skip-link, .site-footer a { display: none; }
  .container { width: 100%; }
  .introduction { padding-top: 20px; }
  .section { margin-top: 28px; }
  .company-details > div, .contact-panel, .access-notes { break-inside: avoid; }
}
