@charset "UTF-8";

:root {
  --paper: #faf8f1;
  --ink: #24443f;
  --muted: #708078;
  --line: #cbd8cd;
  --green: #347d59;
  --footer: #285c4b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

.site-header {
  height: 53px;
  padding: 0 max(4.8%, calc((100% - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffefa;
  position: relative;
  z-index: 10;
}
.logo { font-size: 28px; font-weight:700; letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(24px, 5vw, 62px); }
.nav a { font-size: 11px; white-space: nowrap; }
.nav a:hover { opacity: .65; }
.menu-toggle { display: none; }

.hero {
  min-height: 520px;
  height: 56vw;
  max-height: 650px;
  position: relative;
  background-image: linear-gradient(180deg, rgba(13,54,77,.06), rgba(13,54,77,0)), url("images/photo_hero.png");
  background-size: cover;
  background-position: center 45%;
}
.hero-copy {
  position: absolute;
  top: 30px;
  right: max(4.8%, calc((100% - 1200px) / 2));
  color: white;
  text-align: right;
  text-shadow: 0 1px 5px rgba(0,0,0,.15);
}
.hero-copy h1 { font-size: clamp(19px, 2vw, 25px); margin: 0 0 6px; font-weight: 600; }
.hero-copy p { font-size: 14px; margin: 0; }

.section { max-width: 1200px; margin: 0 auto; padding-left: 4.8%; padding-right: 4.8%; }
.services { padding-top: 42px; padding-bottom: 48px; text-align: center; }
.eyebrow { margin: 0 0 1px; color: var(--muted); font-size: 12px; }
h2 { font-size: 27px; font-weight: 500; margin: 0; }
.heading-line { display: block; width: 46px; height: 2px; background: var(--line); margin: 10px auto 46px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 58px 4.8%;
}
.service-card { grid-column: span 2; min-width: 0; text-align: center; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }
.service-card img {
  display: block; width: 100%; aspect-ratio: 1.72 / 1;
  object-fit: cover; border-radius: 16px;
}
.service-card h3 { font-size: 19px; font-weight: 500; margin: 6px 0 8px; }
.service-card h3.long-title { font-size: 15px; white-space: nowrap; }
.service-card p { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.outline-button, .contact-button {
  min-height: 37px; border: 1px solid #477c70; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  background: #fffefa; font-size: 12px; padding: 6px 16px;
  transition: background .2s, color .2s;
}
.outline-button { width: min(100%, 205px); }
.outline-button span, .contact-button span { font-family: sans-serif; font-size: 21px; line-height: 1; }
.outline-button:hover, .mail-button:hover { background: #eaf1eb; }

.greeting {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 142px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.greeting h2 { font-size: 19px; }

.contact-strip {
  max-width: 1200px; margin: 0 auto; padding: 18px 4.8% 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.company-details { display: flex; align-items: center; gap: 40px; white-space: nowrap; }
.company-details strong { font-weight: 500; font-size: 16px; }
.company-details span { font-size: 12px; color: var(--muted); }
.contact-buttons { display: flex; gap: 10px; }
.contact-button { width: 235px; min-height: 43px; font-size: 13px; }
.line-button { color: white; background: var(--green); border-color: var(--green); }
.line-button:hover { background: #286746; }
.site-footer {
  min-height: 47px; display: flex; align-items: center; justify-content: center;
  background: var(--footer); color: white; font-size: 16px;
}

@media (min-width: 1201px) {
  .hero { height: 560px; }
}
@media (max-width: 700px) {
  .site-header { height: 60px; padding: 0 5%; }
  .logo { font-size: clamp(18px, 5vw, 22px); }
  .menu-toggle {
    display: block; border: 0; background: transparent; color: var(--ink);
    font-size: 25px; padding: 5px 0 5px 12px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fffefa; padding: 16px 5% 20px; box-shadow: 0 8px 12px rgba(0,0,0,.08);
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #e4e9e3; font-size: 14px; }
  .hero { min-height: 380px; height: 72vw; max-height: 520px; background-position: center; }
  .hero-copy { top: 22px; right: 5%; left: 5%; }
  .hero-copy h1 { font-size: clamp(17px, 4.6vw, 22px); }
  .hero-copy p { font-size: 12px; }
  .services { padding-top: 35px; padding-bottom: 35px; }
  .eyebrow { font-size: 11px; }
  h2 { font-size: 24px; }
  .heading-line { margin-bottom: 30px; }
  .service-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: auto; width: 100%; max-width: 430px; margin: 0 auto; }
  .service-card img { aspect-ratio: 1.72 / 1; }
  .service-card h3 { font-size: 19px; }
  .service-card h3.long-title { white-space: normal; font-size: 17px; }
  .service-card p { font-size: 12px; }
  .greeting { min-height: 120px; }
  .contact-strip { padding: 22px 5%; flex-direction: column; align-items: stretch; gap: 18px; }
  .company-details { justify-content: space-between; gap: 12px; }
  .company-details strong { font-size: 15px; }
  .contact-buttons { flex-direction: column; }
  .contact-button { width: 100%; min-height: 44px; }
}

/* ===== 共通ページレイアウト ===== */

/* ページ全体を画面の高さに合わせる */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* メイン部分が余った高さを埋める */
.page-main {
  flex: 1;
  width: 100%;
}

/* お問い合わせ欄 */
.contact-strip {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* フッター */
.site-footer {
  width: 100%;
  margin-top: 0;
}


/* ==================================
   page.html レスポンシブ対応
================================== */

/* ページ全体 */
html {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* メインコンテンツ */
.page-main {
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* お問い合わせ欄 */
.contact-strip {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 会社情報 */
.company-details {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* フッター */
.site-footer {
  width: 100%;
  margin-top: 0;
}


/* ==================================
   タブレット対応 1024px以下
================================== */

@media screen and (max-width: 1024px) {

  .contact-strip {
    padding: 25px 5%;
    gap: 20px;
  }

  .company-details {
    gap: 15px;
  }

  .contact-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-button {
    width: 200px;
  }
}


/* ==================================
   スマートフォン対応 700px以下
================================== */

@media screen and (max-width: 700px) {

  /* ヘッダー */
  .site-header {
    width: 100%;
    padding: 0 5%;
  }

  /* メインコンテンツ */
  .page-main {
    width: 100%;
  }

  /* お問い合わせ欄 */
  .contact-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 25px 5%;
    gap: 20px;
  }

  /* 会社情報を縦並び */
  .company-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    white-space: normal;
  }

  .company-details strong {
    font-size: 17px;
  }

  .company-details span {
    font-size: 13px;
    line-height: 1.9;
  }

  /* ボタンを縦並び */
  .contact-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .contact-button {
    width: 100%;
    min-height: 48px;
    font-size: 13px;
  }

  /* フッター */
  .site-footer {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
    text-align: center;
  }
}

