@charset "utf-8";
/* =========================================================
   berry-2026 renewal — トンマナCSS（DESIGN.md 準拠）
   トップページ＋共通パーツ（header / footer）用
   ※ 物件系ページは base.css / page.css を流用するため、
     このファイルはトップページ表示時のみ読み込む
   ========================================================= */

:root {
  --ink: #14232f;
  --muted: #5a6872;
  --line: #d9e2e7;
  --paper: #fffdf8;
  --soft: #f3f7f6;
  --accent: #e94235;
  --accent-2: #0c7b75;
  --gold: #f8b933;
  --navy: #102f43;
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(16, 47, 67, .15);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.is-fixed { overflow: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1120px, 100%); margin: 0 auto; }
.sp { display: none; }

/* ---------------------------------------------------------
   共通：セクション / 見出し
   --------------------------------------------------------- */
.block {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.midashi {
  margin: 0 0 26px;
  font-size: clamp(28px, 4.3vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head .midashi { margin: 0; }

.section-head .support {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ---------------------------------------------------------
   ヘッダー（トンマナ：半透明ネイビー＋ぼかし）
   --------------------------------------------------------- */
header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: var(--white);
  background: rgba(16, 47, 67, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 clamp(16px, 4vw, 48px);
}

.header_logo {
  margin: 0;
  font-size: 0;
  line-height: 1;
}

/* LPと同じ：白い丸バッジにロゴを収める */
.header_logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
}

.header_logo .logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header_nav .main_nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header_nav .main_nav a {
  font-weight: 800;
  font-size: 15px;
  color: rgba(255, 255, 255, .92);
  transition: color .18s ease;
}

.header_nav .main_nav a:hover { color: var(--gold); }

/* ナビ内CTA */
.header_nav .main_nav .nav-cta a,
.header_nav .main_nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(248, 185, 51, .28);
}
.header_nav .main_nav .nav-cta a:hover,
.header_nav .main_nav a.nav-cta:hover { color: var(--navy); }

/* 事業案内ドロップダウン */
.header_nav .main_nav .has-submenu { position: relative; }
.header_nav .main_nav .submenu-toggle::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.header_nav .main_nav .has-submenu:hover .submenu-toggle::after { transform: translateY(0) rotate(225deg); }
.header_nav .main_nav .submenu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(16, 47, 67, .97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
  transition: opacity .18s ease, translate .18s ease, visibility .18s ease;
}
.header_nav .main_nav .has-submenu:hover .submenu,
.header_nav .main_nav .has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.header_nav .main_nav .submenu li { display: block; }
.header_nav .main_nav .submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
}
.header_nav .main_nav .submenu a:hover { background: rgba(255, 255, 255, .1); color: var(--gold); }

/* ハンバーガー（PCでは非表示） */
.nav-button_area { display: none; }
.nav-button {
  position: relative;
  width: 34px;
  height: 24px;
  cursor: pointer;
}
.nav-button span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-button span:nth-child(1) { top: 0; }
.nav-button span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-button span:nth-child(3) { bottom: 0; }
.nav-button.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-button.active span:nth-child(2) { opacity: 0; }
.nav-button.active span:nth-child(3) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }

/* ---------------------------------------------------------
   ヒーロー
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90svh;
  display: grid;
  align-items: center;
  padding: 116px clamp(18px, 5vw, 72px) 54px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 29, 43, .94) 0%, rgba(8, 29, 43, .82) 42%, rgba(8, 29, 43, .30) 78%, rgba(8, 29, 43, .60) 100%),
    url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
  line-height: 1;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(16px, 2.1vw, 21px);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------------------------------------------------------
   ボタン
   --------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(233, 66, 53, .34);
}
.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .08);
}
.button-ghost {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: transparent;
}

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */
#about { background: var(--paper); }
.about_inner { max-width: 900px; }
.about_inner p {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------
   SERVICE（事業案内カード）
   --------------------------------------------------------- */
#service { background: var(--soft); }

.service_area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin-inline: auto;
}

.service_area .item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service_area .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}
.service_area .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service_area .txt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  flex: 1;
}
.service_area .txt h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}
.service_area .txt p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.service_area .txt ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.service_area .txt ul li {
  display: flex;
  gap: 10px;
  align-items: start;
}
.service_area .txt ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent-2);
}
.service_area .txt .btn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; }
.service_area .txt .btn a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent-2);
  font-weight: 900;
  font-size: 14px;
  transition: transform .18s ease;
}
.service_area .txt .btn a:hover { transform: translateY(-2px); }
/* 副リンク（テキストリンク） */
.service_area .txt .btn .btn-sub {
  min-height: auto;
  padding: 0;
  background: none;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service_area .txt .btn .btn-sub:hover { transform: none; color: var(--ink); }

/* ---------------------------------------------------------
   COMPANY（会社概要テーブル）
   --------------------------------------------------------- */
#company { background: var(--paper); }
.company_table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.company_table table {
  width: 100%;
  border-collapse: collapse;
}
.company_table th,
.company_table td {
  text-align: left;
  padding: 16px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.company_table tr:last-child th,
.company_table tr:last-child td { border-bottom: 0; }
.company_table th {
  width: 200px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.company_table td {
  color: var(--muted);
  font-weight: 700;
}

/* ---------------------------------------------------------
   CONTACT（ダーク帯＋白カード）
   --------------------------------------------------------- */
#contact {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 123, 117, .95), rgba(16, 47, 67, .98)),
    var(--navy);
}
#contact .eyebrow { color: var(--gold); }
#contact .midashi { color: var(--white); }
#contact > .contact_inner > p {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}
.contact_form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
/* Contact Form 7 の最低限の整形 */
.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form input[type="tel"],
.contact_form input[type="url"],
.contact_form input[type="number"],
.contact_form textarea,
.contact_form select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font: inherit;
  color: var(--ink);
}
.contact_form textarea { min-height: 150px; resize: vertical; }
.contact_form input:focus,
.contact_form textarea:focus,
.contact_form select:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
  background: var(--white);
}
.contact_form label { font-weight: 800; display: block; }
.contact_form p { margin: 0 0 16px; }
.contact_form .wpcf7-submit {
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(233, 66, 53, .34);
  transition: transform .18s ease;
}
.contact_form .wpcf7-submit,
.contact_form .btn_send {
  display: block;
  margin: 10px auto 0;
}
.contact_form .wpcf7-submit:hover { transform: translateY(-2px); }

/* 入力項目テーブルを縦積みに整形 */
.contact_form table,
.contact_form tbody,
.contact_form tr { display: block; width: 100%; }
.contact_form th,
.contact_form td { display: block; width: 100%; text-align: left; }
.contact_form th { margin-top: 16px; font-weight: 800; }
.contact_form td { margin-top: 4px; }
.contact_form .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

/* プライバシーポリシー（枠固定＋スクロール） */
.contact_form .privacy_area {
  height: 220px;
  overflow-y: auto;
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: left;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  -webkit-overflow-scrolling: touch;
}
.contact_form .privacy_area .privacy_inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.contact_form .privacy_area h2 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}
.contact_form .privacy_area p,
.contact_form .privacy_area ul { margin: 0 0 14px; }

/* 同意チェック */
.contact_form .agree_check {
  margin: 8px 0 22px;
  text-align: center;
  font-weight: 800;
}
.contact_form .agree_check input { margin-right: 6px; }

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
footer {
  color: rgba(255, 255, 255, .82);
  background: var(--navy);
  padding: clamp(40px, 6vw, 64px) clamp(18px, 5vw, 72px) 28px;
}
footer .footer_inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  flex-wrap: wrap;
}
footer .info {
  display: flex;
  gap: clamp(24px, 6vw, 72px);
  flex-wrap: wrap;
  align-items: start;
}
footer .info .logo {
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .04em;
}
footer .footer_nav .main_nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer .footer_nav .main_nav a {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  font-size: 14px;
}
footer .footer_nav .main_nav a:hover { color: var(--gold); }
footer .catch {
  width: 100%;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

/* ページトップボタン */
#pagetop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 48px;
  height: 48px;
  cursor: pointer;
}
#pagetop img { width: 100%; height: 100%; }

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */
@media (max-width: 880px) {
  .sp { display: inline; }

  .nav-button_area { display: flex; align-items: center; }

  /* モバイル：ナビをフルスクリーンパネルに
     ※ 親headerに backdrop-filter があると fixed子の基準がheaderになるため、
        inset:0 ではなく 100vw/100dvh でビューポート全体を覆う */
  .header_nav .main_nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    place-items: center;
    background: var(--navy);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .header_nav .main_nav.open {
    transform: none;
    visibility: visible;
  }
  .header_nav .main_nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }
  .header_nav .main_nav a { font-size: 20px; }

  /* モバイル：ドロップダウンは常時展開のサブリストとして表示 */
  .header_nav .main_nav .submenu-toggle::after { display: none; }
  .header_nav .main_nav .submenu {
    position: static;
    transform: none;
    translate: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    margin: 14px 0 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .header_nav .main_nav .submenu a { font-size: 16px; color: rgba(255, 255, 255, .72); padding: 0; }

  .section-head { display: block; }
  .section-head .support { margin-top: 12px; }

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

  .company_table th {
    width: 130px;
    font-size: 14px;
    padding-inline: 16px;
  }

  footer .footer_inner { display: block; }
  footer .footer_nav { margin-top: 20px; }
}

@media (max-width: 620px) {
  .header_inner { height: 60px; }
  .header_logo a { width: 46px; height: 46px; }
  .button { width: 100%; }
  .company_table th { display: block; width: 100%; border-bottom: 0; }
  .company_table td { display: block; width: 100%; }
}
