@charset "UTF-8";


/* ============================================
   戸澤住宅 - Unified Stylesheet
   Elementor-free static rebuild
   ============================================ */


/*------------------------------------
 フォント読み込み
------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Shippori+Mincho:wght@600;700&display=swap');

/*
font-family: "Noto Serif JP", serif;
  font-size: 200-900;
  font-weight: <w-eight>;
  font-style: normal;

  font-family: "Shippori Mincho", serif;
  font-weight: 600,700;
  font-style: normal;

*/

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/*追記*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.688rem, 0.243rem + 3.01vw, 2.5rem);
  letter-spacing: clamp(-0.05rem, -0.765rem + 1.15vw, 0.1rem);
  line-height: clamp(2.5rem, -0.167rem + 5.56vw, 4rem);
  margin-bottom: clamp(2.5rem, -9.423rem + 19.23vw, 5rem);
}

h3 {
  font-size: clamp(1.375rem, 0.264rem + 2.31vw, 2rem);
  letter-spacing: clamp(0rem, -0.178rem + 0.37vw, 0.1rem);
  line-height: clamp(2.5rem, 0.722rem + 3.7vw, 3.5rem);
  margin-bottom: clamp(1rem, -0.192rem + 1.92vw, 1.25rem);
}

h4 {
  font-size: clamp(1.25rem, 0.694rem + 1.16vw, 1.563rem);
  letter-spacing: clamp(0rem, -0.178rem + 0.37vw, 0.1rem);
  line-height: clamp(2.5rem, 0.722rem + 3.7vw, 3.5rem);
  margin-bottom: clamp(1rem, -0.192rem + 1.92vw, 1.25rem);
}

p {
  margin-bottom: 1.6rem;
}


/* --- CSS Variables --- */
:root {
  --color-primary: #998675;
  --color-primary-dark: #B7824D;
  --color-accent: #c5a55a;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --color-bg: #fff;
  --color-bg-ivory: #f7f4ef;
  --color-bg-warm: #BAAEA3;
  --color-bg-dark: #2c2c2c;
  --color-border: #ddd;
  --max-width: 1140px;
  --header-height: 80px;
  --section-padding: 120px;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;

}

.header-top {
  text-align: start;
  padding: 6px 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
}

.header-main h1 {
  margin: 0;
  margin-bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  flex-shrink: 1;
}



.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  display: block;
  padding: 8px 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
  font-weight: 700;
}

.header-nav a:hover {
  color: var(--color-primary);
}

/*.contact-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: var(--color-primary-dark);
}*/

/* Hamburger */
/* ハンバーガー本体（PCでは非表示） */
.hamburger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;

}

/* × に変形（改良版） */
.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ナビ（Aの .header-nav を使う） */
.header-nav {
  display: flex;
  gap: 1rem;
}



/*追加*/
.nav_logo {
  width: clamp(200px, 18vw, 250px);
  max-width: 250px;
  min-width: 200px;
  height: auto;
  display: block;
}

.nav_logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* お問い合わせボタン */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;

}

.contact-btn::before {
  content: "";
  display: inline-block;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  background-image: url('../images/mail_wh.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;

}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: var(--color-white);
  opacity: 0.9;
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  padding-top: var(--header-height);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;

}

.page-hero h2 {
  color: var(--color-text);
  font-size: clamp(1.25rem, -0.083rem + 2.78vw, 2rem);
  font-weight: 800;
  writing-mode: vertical-rl;
  background-image: url("../images/title_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px auto;
  min-height: 250px;
  padding: 3rem 5rem;
  text-align: center;
  margin: 0;
}

.page-hero--daiku {
  background-image: url("../images/main001.jpg");
}

.page-hero--renovate {
  background-image: url("../images/main002.jpg");
}

.page-hero--new-construction {
  background-image: url("../images/main003.jpg");
}

.page-hero--example {
  background-image: url("../images/main004.jpg");
}

.page-hero--company {
  background-image: url("../images/main005.jpg");
}

.page-hero--blog {
  background-image: url("../images/main007.jpg");
}

.page-hero--contact {
  background-image: url("../images/main006.jpg");
}




/* ============================================
   HOME HERO (Full visual hero)
   ============================================ */
.home-hero {
  margin-top: var(--header-height);
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: start;
  color: var(--color-white);
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url("../images/top_hero.jpg");
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
}

.home-hero-content h2 {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: clamp(1.875rem, -1.014rem + 6.02vw, 3.5rem);
  margin: 0;
  padding-bottom: 3rem;
  letter-spacing: 0.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.home-hero-content p {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: clamp(1.563rem, 0.785rem + 1.62vw, 2rem);
  line-height: 1.6;
  letter-spacing: 0.3rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-padding) 20px;
}

.sc_img {
  background-image: url("../images/top_bg.jpg");
  background-size: cover;
  background-position: center top;
}

.section--warm {
  background: var(--color-bg-warm);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.section--ivory {
  background: var(--color-bg-ivory);
}

.section-title {
  text-align: center;

}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ============================================
   INTRO BLOCK (Text + Image side by side)
   ============================================ */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.intro-block--reverse {
  direction: rtl;
}

.intro-block--reverse>* {
  direction: ltr;
}

.intro-block__text {
  display: grid;
  place-items: center;

}

.intro-block__text h2 {
  color: var(--color-text);
  font-weight: 800;
  min-height: 240px;
  writing-mode: vertical-rl;
  background-image: url("../images/h_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px auto;
  padding: 5rem;
}



.intro-block__image img {
  width: 100%;
  border-radius: 4px;
}

.intro-block__image--multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.intro-block__image--multi img {
  border-radius: 4px;
}

.intro-block__image--multi img:first-child {
  grid-column: 1 / -1;
}

.intro.container h3 {
  text-align: center;
  color: var(--color-text);
  padding-top: clamp(5rem, 1.19rem + 10.18vw, 7.5rem);

}

.intro.container h4 {
  text-align: center;
  color: var(--color-text);

}

.intro-block__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;

}

.intro-block__top img {
  width: 100%;
  border-radius: 4px;

}

.intro-block__top h3 {
  color: var(--color-primary-dark);
  font-weight: 600;
}




/* ============================================
   FEATURES (3 columns)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card h3 {
  text-align: center;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: clamp(1.25rem, 0.694rem + 1.16vw, 1.563rem);
  letter-spacing: clamp(0rem, -0.178rem + 0.37vw, 0.1rem);
  line-height: clamp(2.5rem, 0.722rem + 3.7vw, 3.5rem);
  margin-bottom: clamp(1rem, -0.192rem + 1.92vw, 1.25rem);
}


.block02 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 3rem auto;
}

.text01 h3 {
  color: var(--color-primary-dark);
  margin-bottom: 2rem;

}

.block02_center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 3rem auto;
}

.block02_center img {
  display: block;
  margin: 0 auto;
}

.text02 h3 {
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 2rem;

}


/* ============================================
   BLOG / CASE CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cards-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card a {
  display: block;
}

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__body {
  padding: 16px;
}

.card__title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__date {
  font-size: 0.78rem;
  color: #999;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-bg-warm);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mt-40 {
  margin-top: 40px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-24 {
  margin-bottom: 24px;
}

/* ============================================
   REFORM PAGE - Service categories
   ============================================ */
.service-category {
  max-width: var(--max-width);
  margin: 3rem auto;
}

.service-category h3 {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  letter-spacing: 0.05em;
}

.service-category__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.service-category__item {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 1rem;
  border-radius: 4px;
  line-height: 1.6;
}

.service-category__item strong {
  display: block;
  margin-bottom: 4px;
  text-align: center;
  color: var(--color-white);
}



/* ============================================
   REFORM FLOW / STEPS
   ============================================ */
.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 80px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  font-weight: 600;
}

.step__content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step__content p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Step connector line */
.steps .step:not(:last-child) {
  position: relative;
  padding-bottom: 8px;
}

/* ============================================
   BEFORE/AFTER
   ============================================ */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.before-after figure {
  text-align: center;
}

.before-after figcaption {
  margin-top: 8px;
  color: var(--color-white);
  background-color: var(--color-primary-dark);
  border-radius: 30px;
}

.before-after img {
  border-radius: 4px;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;

}

/* ============================================
   NEW CONSTRUCTION - Wood / Material showcase
   ============================================ */
.material-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 24px auto 0;
}

.material-showcase figure {
  text-align: center;
}

.material-showcase figcaption {
  margin-top: 6px;
}

.material-showcase img {
  border-radius: 4px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.material-showcase--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

/* ============================================
   COMPANY PAGE
   ============================================ */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-item h4 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--color-text);
  line-height: 1.7;
}

/* Staff Cards */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.staff-card {
  text-align: center;
}

.staff-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.staff-card h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.staff-card p {
  color: var(--color-text);
}

/* Company badges */
.company-badges {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.company-badges p {
  padding: 10px 20px;
  background: var(--color-bg-warm);
  border-radius: 4px;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-main .cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-recent li {
  margin-bottom: 12px;
}

.sidebar-recent a {
  font-size: 0.85rem;
  color: var(--color-text-light);
  transition: color 0.2s;
  display: block;
}

.sidebar-recent a:hover {
  color: var(--color-primary);
}

.sidebar-recent .date {
  font-size: 0.75rem;
  color: #aaa;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--color-text-light);
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}

.sidebar-categories a:hover {
  color: var(--color-primary);
}

.sidebar-categories .count {
  font-size: 0.78rem;
  color: #bbb;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.contact-method {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-warm);
  border-radius: 8px;
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.contact-method p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.contact-method img {
  width: 60px;
  margin: 0 auto 16px;
}

.contact-method .tel-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group label .required {
  color: #c44;
  font-size: 0.78rem;
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.form-submit button {
  padding: 14px 60px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.form-submit button:hover {
  background: var(--color-primary-dark);
}

/* Privacy Policy */
.privacy-policy {
  max-width: 700px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.privacy-policy h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.privacy-policy h4 {
  font-size: 0.95rem;
  margin: 20px 0 8px;
  color: var(--color-primary);
}

.privacy-policy p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.privacy-policy a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   GOOGLE MAP
   ============================================ */
.map-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-warm);
  color: var(--color-white);
  padding: 60px 20px 0;
  background-image: url("../images/footer_bg.png");
  background-size: cover;
  background-position: center top;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-logo {

  width: clamp(200px, 18vw, 250px);
  max-width: 250px;
  min-width: 200px;
  height: auto;
  display: block;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-info p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social a:hover img {
  opacity: 1;
}

.footer-nav a {
  text-align: center;
  display: block;
  padding: 6px 0;
  font-size: 1rem;
  color: var(--color-white);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-cta {
  display: inline-block;
  padding: 8px 24px;
  background: none;
  color: var(--color-white);
  border-radius: 4px;
  font-size: 1rem;
}

.footer-cta::before {
  content: "";
  display: inline-block;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  background-image: url('../images/mail_wh.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;

}

.footer-cta:hover {
  transform: translateY(-2px);
  color: var(--color-white);
  opacity: 0.9;
}

.footer-cta:active {
  transform: translateY(0);

}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
    /* ← flexの中央寄せ */
  }

  .footer-top>div:last-child {
    text-align: center;
  }

  .footer-cta {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }
}


/* Partner logos */
.footer-partners {
  padding: 32px 20px;

}

.footer-partners-inner {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-partners a img {
  height: 30px;
  width: auto;
}

.footer-partners a:hover img {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: #fff;
}

/* ============================================
   PROSE - Generic text block
   ============================================ */
.prose {
  max-width: var(--max-width);
  margin: 0 auto;
}

.prose h2 {
  text-align: center;
}

.prose h3 {
  text-align: center;

}


.prose a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   SUB SECTION TITLES
   ============================================ */
.sub-title {
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 16px;
}

.sub-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* スマホ時 */
/* スマホ時 */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  /* メニューを画面右側全幅で表示 */
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    /* ← 100%に変更 */
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 4rem 2rem 2rem 2rem;
    /* ← 上部に余白を追加 */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    gap: 1.5rem;
    /* ← リンク間の間隔 */
  }

  .header-nav.active {
    transform: translateX(0);
  }

  /* ハンバーガーボタンを右上に固定 */
  .hamburger.active {
    position: fixed;
    top: 2rem;
    right: 2rem;
  }
}

@media (max-width: 1024px) {
  .home-hero-content h1 {
    font-size: 2.2rem;
  }

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

  .intro-block--reverse {
    direction: ltr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-main .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contact-methods {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .material-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 48px;
    --header-height: 70px;
  }

  .home-hero {
    height: 60vh;
    min-height: 380px;
  }

  .home-hero-content h1 {
    font-size: 1.6rem;
  }

  .home-hero-content p {
    font-size: 0.92rem;
  }

  .page-hero {
    padding: 40px 20px;
  }

  .page-hero h2 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

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

  .cards-grid--3col,
  .blog-main .cards-grid {
    grid-template-columns: 1fr;
  }

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

  .staff-card img {
    width: 140px;
    height: 140px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .material-showcase {
    grid-template-columns: 1fr;
  }

  .footer-partners-inner {
    gap: 16px;
  }

  .footer-partners a img {
    height: 22px;
  }

  .header-top {
    font-size: 0.68rem;
  }
}

/* ============================================
   AFTER SUPPORT (new construction)
   ============================================ */
.support-block {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-ivory);
  padding: 32px;
  border-radius: 8px;
}

.support-block p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Tabs (for example page categories)
   ============================================ */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-border);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Group photo on company page */
.group-photo {
  max-width: 700px;
  margin: 32px auto 0;
  border-radius: 4px;
  overflow: hidden;
}

.group-photo img {
  width: 100%;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg-ivory);
  color: var(--color-text);
}

.cta-section h2 {
  color: var(--color-text);
  margin-bottom: 24px;
}

.cta-section p {
  color: var(--color-text);
  margin-bottom: 24px;
}


/*ページネーション*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 8px;
  list-style-type: none;
  padding: 3rem 0 0;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 45px;
  height: 45px;
  border: solid 1px var(--color-primary);
  font-size: 14px;
  color: var(--color-white);

  transition: all 0.15s linear;
}

a.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 40px;
  height: 40px;
  border: solid 1px var(--color-primary);
  font-size: 0.95rem;
  color: var(--color-primary);

  transition: all 0.15s linear;
}

.page-numbers.current {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border: solid 1px var(--color-primary);
  font-size: 0.95rem;
  color: var(--color-white);

  transition: all 0.15s linear;
}

.page-numbers.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all 0.15s linear;
}