
/* 株式会社H plus 公式サイト 共通スタイル（ベージュ×ブラウン） */

:root {
  /* 色 */
  --bg: #f7f3ec;
  --section: #ede4d7;
  --beige: #e4d5c3;
  --brown: #795c46;
  --brown-dark: #49382d;
  --text: #38322d;
  --text-soft: #766b60;
  --line: #d9cdbf;
  --white: #ffffff;

  /* 余白・寸法 */
  --max: 1040px;
  --measure: 40em;
  --gutter: 24px;
  --space-section: 96px;

  /* フォント */
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;

  /* 角丸 */
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brown);
  text-underline-offset: 0.25em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brown-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

.inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brown-dark);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-dark);
  text-decoration: none;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--brown);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  color: var(--brown-dark);
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--brown);
  color: var(--white);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 36px;
}

.site-nav a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brown);
  border-bottom-color: var(--brown);
}

.site-nav a[aria-current="page"] {
  color: var(--brown-dark);
  border-bottom-color: var(--brown-dark);
}

/* ---------- 共通パーツ ---------- */

main {
  display: block;
}

.section {
  padding: var(--space-section) 0;
}

.section--tint {
  background: var(--section);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--brown-dark);
  margin: 0 0 28px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.4em;
  max-width: var(--measure);
}

.btn {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
}

/* ---------- トップ ---------- */

/* 背景画像をヒーロー全体に表示 */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 62vw, 720px);
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image:
    linear-gradient(
      to right,
      rgba(247, 243, 236, 0.80) 0%,
      rgba(247, 243, 236, 0.62) 38%,
      rgba(247, 243, 236, 0.20) 72%,
      rgba(247, 243, 236, 0.05) 100%
    ),
    url("images/hero-visual.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .inner {
  display: block;
}

.hero-copy {
  --hero-size: clamp(1.45rem, 2.8vw, 2.3rem);
  --lead-ratio: 0.60;

  min-width: 0;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.hero h1 {
  font-size: var(--hero-size);
  line-height: 1.75;
  letter-spacing: 0.06em;
  margin: 0 0 40px;
  text-align: center;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.phrase {
  display: inline-block;
}

/* アンダーライン */
.hero-rule {
  display: block;
  width: 96px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0,
    var(--brown) 18%,
    var(--brown) 82%,
    transparent 100%
  );
  margin: 0 0 36px !important;
  position: relative !important;
  left: 170px !important;
  transform: none !important;
}

/* 説明文 */
.hero .lead {
  width: max-content;
  max-width: min(100%, 620px);
  margin: 0;
  position: relative;
  left: 5px;
  font-size: calc(var(--hero-size) * var(--lead-ratio));
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: #5f554b;
  text-align: center;
  text-wrap: balance;
}

.hero .lead .phrase--first {
  display: block;
}

/* 公式SNS */

.sns-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
}

.sns-link {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 96px;
  padding: 20px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brown-dark);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sns-link:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}

.sns-icon {
  flex: none;
  width: 40px;
  height: 40px;
}

.sns-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.sns-id {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* ---------- 下層ページ ---------- */

.page-head {
  padding: 80px 0 64px;
  background: var(--section);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
  color: var(--brown-dark);
}

.info-table {
  margin: 0;
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 40px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
}

.info-row dt {
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.1em;
}

.info-row dd {
  margin: 0;
}

.mail-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 48px 44px;
  max-width: 760px;
}

.mail-address {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  word-break: break-all;
  margin: 4px 0 24px;
}

.policy {
  max-width: 800px;
}

.policy h2 {
  font-size: 1.15rem;
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.policy h2:first-of-type {
  margin-top: 40px;
}

.policy ul {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  max-width: var(--measure);
}

/* 商品掲載用の枠 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-item img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--brown-dark);
  color: var(--bg);
  padding: 72px 0 32px;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--bg);
  text-decoration-color: rgba(247, 243, 236, 0.5);
}

.site-footer a:hover {
  color: var(--beige);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 0.9fr;
  gap: 48px;
}

.footer-grid p {
  max-width: none;
}

.footer-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

.footer-info {
  margin: 0;
}

.footer-info div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-info dt {
  color: var(--beige);
}

.footer-info dd {
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.copyright {
  max-width: none;
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 243, 236, 0.22);
  font-size: 0.8rem;
  color: var(--beige);
}

/* ---------- タブレット・スマートフォン ---------- */

@media (max-width: 800px) {
  :root {
    --gutter: 20px;
    --space-section: 64px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .page-head {
    padding: 56px 0 44px;
  }

  .sns-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sns-link {
    padding: 18px 22px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-header .inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    display: none;
    width: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .mail-box {
    padding: 32px 22px;
  }

  .mail-address {
    font-size: 1.1rem;
  }
}

/* ---------- トップ：タブレット・スマートフォン ---------- */

@media (max-width: 900px) {
  .hero {
    min-height: 520px;
    padding: 72px 0;
    background-image:
      linear-gradient(
        to bottom,
        rgba(247, 243, 236, 0.58) 0%,
        rgba(247, 243, 236, 0.50) 100%
      ),
      url("images/hero-visual.jpg");
    background-position: 62% center;
  }

  .hero-copy {
    --hero-size: clamp(1.15rem, 6.2vw, 2.2rem);
    --lead-ratio: 0.72;
    margin: 0 auto;
  }

  .hero h1 {
    letter-spacing: 0.04em;
    margin-bottom: 32px;
  }

 .hero-rule {
  width: 84px;
  margin: 0 0 28px !important;
  position: relative !important;
  left: 220px !important;
  transform: none !important;
}

  .hero .lead {
  width: max-content;
  max-width: 100%;
  margin: 0;
  position: relative;
  left: 5px;
  font-size: calc(var(--hero-size) * var(--lead-ratio));
}

/* 小さいスマートフォン */
@media (max-width: 640px) {
  .hero-copy {
    width: 100%;
  }

  .hero h1 .line {
    white-space: normal;
  }

  .hero .lead {
    width: 100%;
    max-width: 100%;
  }
}


/* ---------- アニメーションを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}                                                                         


/* PC：1行 */
.lead {
  white-space: nowrap !important;
}
.lead .sp-break {
  display: inline !important;
}

/* スマホ：折り返し + 「お客様」の前で改行 */
@media screen and (max-width: 800px) {
  .lead {
    white-space: normal !important;
  }
  .lead .sp-break {
    display: block !important;
  }
}

