/* ===== PRINT / PDF ===== */
@media print {
  /* 用紙設定 */
  @page { margin: 15mm; }

  /* 非表示にする要素 */
  header,
  .hamburger,
  .mobile-nav,
  .hero-btns,
  .scroll-top,
  .property-portals,
  .inquiry-section,
  .sdgs-more-link,
  .back-section { display: none !important; }

  /* 固定ヘッダーを解除 */
  header { position: static !important; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #2c2c2c;
    background: white;
    font-size: 10pt;
  }

  /* セクション余白を縮小 */
  .section { padding: 24px 0 !important; }
  .section-inner { max-width: 100% !important; padding: 0 !important; }
  .section-head { margin-bottom: 16px !important; }
  .section-head h2 { font-size: 14pt !important; }

  /* ヒーロー：背景色は印刷されないのでシンプルに */
  .hero {
    background: #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin-top: 0 !important;
    min-height: auto !important;
    height: auto !important;
    padding: 24px !important;
  }
  .hero-illust,
  .hero-deco { display: none !important; }
  .hero-title { font-size: 16pt !important; }
  .hero-desc { font-size: 9pt !important; }

  /* カード・テーブル */
  .about-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .about-card {
    border: 1px solid #ccc !important;
    border-top: 3px solid #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-inside: avoid;
  }
  .about-card-icon {
    background: #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Steps */
  .steps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .step-num {
    background: #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 物件セクション */
  .property-section {
    background: #2c2c2c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .property-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .property-icon {
    background: #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 会社概要テーブル */
  .outline-table th,
  .outline-table td {
    display: table-cell !important;
    padding: 8px 12px !important;
    font-size: 9pt !important;
  }
  .outline-table th {
    width: 140px;
    color: #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* SDGs画像 */
  .sdgs-poster-img { width: 100% !important; }

  /* アクセス */
  .access-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .access-hours {
    background: #d4601a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .map-area { height: 200px !important; }

  /* フッター */
footer {
    background: #1e1e1e !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 20px !important;
  }
  .footer-inner {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
  }

  /* ページ区切り制御 */
  section { 
  break-inside: auto;
  page-break-inside: auto;
     }
}
/* ===== BASE ===== */
:root {
  --primary: #2c2c2c;
  --accent: #d4601a;
  --accent2: #e8813a;
  --light: #faf8f5;
  --white: #ffffff;
  --text: #2c2c2c;
  --gray: #999;
  --border: #e8e2d8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ===== MOBILE ===== */
@media screen and (max-width: 767px) {
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
  }
  .logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }
  .logo span {
    display: block;
    font-size: 0.55rem;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 0.15em;
    margin-top: 2px;
    font-family: 'Noto Sans JP', sans-serif;
  }
  nav { display: none; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 2px;
    z-index: 200;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 150;
    flex-direction: column;
    padding: 32px 24px;
    overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav a::after { content: '→'; color: var(--accent); font-size: 0.9rem; }
  .mobile-nav a.nav-contact { color: var(--accent); font-weight: 700; }
  .mobile-nav-tel {
    margin-top: 32px;
    text-align: center;
    padding: 24px;
    background: var(--light);
    border-radius: 4px;
  }
  .mobile-nav-tel .label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 300;
  }
  .mobile-nav-tel a {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border: none;
    padding: 0;
    justify-content: center;
  }
  .mobile-nav-tel a::after { display: none; }
  .mobile-nav-tel .hours {
    font-size: 0.72rem;
    color: var(--gray);
    margin-top: 6px;
    font-weight: 300;
    line-height: 1.7;
  }

  /* PAGE HERO */
  .page-hero {
    margin-top: 56px;
    padding: 48px 20px 44px;
    background: linear-gradient(135deg, #b84d10 0%, #d4601a 45%, #e8813a 75%, #f0a060 100%);
    position: relative;
    overflow: hidden;
  }
  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 75% 25%, rgba(255,220,180,0.18) 0%, transparent 50%);
  }
  .page-hero-inner {
    position: relative;
    z-index: 2;
  }
  .page-hero-en {
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 10px;
  }
  .page-hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .page-hero p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.9;
    font-weight: 300;
  }
  .breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.72rem;
    margin-top: 20px;
    color: rgba(255,255,255,0.65);
  }
  .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
  }
  .breadcrumb span { color: rgba(255,255,255,0.45); }

  /* SECTION */
  .section { padding: 48px 16px; }
  .section-head { text-align: center; margin-bottom: 36px; }
  .section-head h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }
  .section-head .en {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
  }

  /* SDGs GOAL CARD */
  .sdgs-section { background: var(--white); }
  .sdgs-section:nth-child(even) { background: var(--light); }
  .sdgs-goals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sdgs-goal-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
  }
  .sdgs-goal-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
  }
  .sdgs-badge {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
  }
  .g11 { background: #f89b28; }
  .g7  { background: #fcc30b; color: #333; }
  .g13 { background: #3f7e44; }
  .g5  { background: #ff3a21; }
  .g10 { background: #dd1367; }
  .g17 { background: #19486a; }
  .g8  { background: #a21942; }

  .sdgs-goal-card-head-text h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
  }
  .sdgs-goal-card-head-text .goal-label {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.06em;
  }
  .sdgs-goal-card-body {
    padding: 16px 20px 20px;
  }
  .sdgs-goal-card-body p {
    font-size: 0.82rem;
    line-height: 1.9;
    color: #555;
    font-weight: 300;
    margin-bottom: 16px;
  }
  .sdgs-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .sdgs-items li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.82rem;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
    padding-left: 14px;
    position: relative;
  }
  .sdgs-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  .sdgs-items li strong {
    font-weight: 600;
    color: var(--primary);
    display: block;
  }

  /* BACK BTN */
  .back-section { padding: 32px 16px 56px; text-align: center; background: var(--light); }
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 2px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  /* FOOTER */
  footer {
    background: #1e1e1e;
    color: rgba(255,255,255,0.75);
    padding: 40px 16px 24px;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
  }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
  }
  .footer-sub {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .footer-address {
    font-size: 0.74rem;
    line-height: 2;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
  }
  .footer-address a { color: var(--accent); text-decoration: none; }
  .footer-nav h4 {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
  }
  .footer-nav ul { list-style: none; }
  .footer-nav ul li { margin-bottom: 8px; }
  .footer-nav ul li a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 300;
  }
  .footer-copy {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    letter-spacing: 0.06em;
  }

  .scroll-top {
    position: fixed;
    bottom: 20px; right: 16px;
    width: 42px; height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 99;
  }

  a[href^="tel:"] { text-decoration: none; }
}

/* ===== PC STYLES ===== */
@media screen and (min-width: 768px) {
  a[href^="tel:"] { pointer-events: none; text-decoration: none; color: black; }

  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
  }
  .logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }
  .logo span {
    display: block;
    font-size: 0.62rem;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 0.22em;
    margin-top: 3px;
    font-family: 'Noto Sans JP', sans-serif;
  }
  nav {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    transition: color 0.2s;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.4;
  }
  nav a .en {
    display: block;
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    font-weight: 500;
  }
  nav a:hover { color: var(--accent); }
  .nav-contact {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 2px;
    padding: 10px 18px !important;
    transition: background 0.2s !important;
  }
  .nav-contact:hover { background: var(--accent) !important; }
  .nav-contact .en { color: rgba(255,255,255,0.7) !important; }
  .nav-active {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
  }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }

  /* PAGE HERO */
  .page-hero {
    margin-top: 70px;
    padding: 80px 24px 72px;
    background: linear-gradient(135deg, #b84d10 0%, #d4601a 45%, #e8813a 75%, #f0a060 100%);
    position: relative;
    overflow: hidden;
  }
  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 75% 25%, rgba(255,220,180,0.18) 0%, transparent 50%),
      radial-gradient(circle at 25% 75%, rgba(180,80,20,0.15) 0%, transparent 50%);
  }
  .page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
  }
  .page-hero-en {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    display: block;
    margin-bottom: 14px;
  }
  .page-hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .page-hero p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 2;
    font-weight: 300;
    max-width: 600px;
  }
  .breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 24px;
    color: rgba(255,255,255,0.65);
  }
  .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
  }
  .breadcrumb a:hover { color: white; }
  .breadcrumb span { color: rgba(255,255,255,0.45); }

  /* SECTION */
  .section { padding: 80px 24px; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-head { text-align: center; margin-bottom: 56px; }
  .section-head h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }
  .section-head .en {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
  }

  /* SDGs GOAL CARDS */
  .sdgs-section { background: var(--white); }
  .sdgs-section.alt { background: var(--light); }
  .sdgs-goals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sdgs-goal-card {
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
  }
  .sdgs-goal-card:hover {
    box-shadow: 0 12px 40px rgba(28,45,74,0.08);
    transform: translateY(-3px);
  }
  .sdgs-goal-card-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
  }
  .sdgs-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
  }
  .g11 { background: #f89b28; }
  .g7  { background: #fcc30b; color: #333; }
  .g13 { background: #3f7e44; }
  .g5  { background: #ff3a21; }
  .g10 { background: #dd1367; }
  .g17 { background: #19486a; }
  .g8  { background: #a21942; }

  .sdgs-goal-card-head-text h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
  }
  .sdgs-goal-card-head-text .goal-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.08em;
  }
  .sdgs-goal-card-body {
    padding: 28px 32px 32px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
  }
  .sdgs-goal-card-body p {
    font-size: 0.88rem;
    line-height: 2;
    color: #555;
    font-weight: 300;
  }
  .sdgs-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sdgs-items li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.87rem;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
    padding-left: 16px;
    position: relative;
  }
  .sdgs-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }
  .sdgs-items li strong {
    font-weight: 600;
    color: var(--primary);
    display: block;
  }

  /* BACK SECTION */
  .back-section { padding: 56px 24px; text-align: center; background: var(--light); }
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 2px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: background 0.2s, transform 0.2s;
  }
  .back-btn:hover { background: var(--accent); transform: translateY(-2px); }

  /* FOOTER */
  footer { background: #1e1e1e; color: rgba(255,255,255,0.75); padding: 56px 24px 28px; }
  .footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 28px; }
  .footer-logo { font-family: 'Noto Serif JP', serif; font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: 6px; }
  .footer-sub { font-size: 0.68rem; color: rgba(255,255,255,0.4); letter-spacing: 0.15em; margin-bottom: 18px; }
  .footer-address { font-size: 0.77rem; line-height: 2; font-weight: 300; color: rgba(255,255,255,0.55); }
  .footer-address a { color: var(--accent); text-decoration: none; }
  .footer-nav h4 { font-size: 0.65rem; letter-spacing: 0.25em; color: var(--accent); margin-bottom: 16px; font-weight: 500; text-transform: uppercase; }
  .footer-nav ul { list-style: none; }
  .footer-nav ul li { margin-bottom: 10px; }
  .footer-nav ul li a { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; font-weight: 300; letter-spacing: 0.05em; }
  .footer-nav ul li a:hover { color: white; }
  .footer-copy { max-width: 1100px; margin: 0 auto; font-size: 0.7rem; color: rgba(255,255,255,0.3); text-align: center; letter-spacing: 0.1em; }

  .scroll-top {
    position: fixed;
    bottom: 32px; right: 24px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 99;
    transition: background 0.2s, transform 0.2s;
  }
  .scroll-top:hover { background: var(--accent); transform: translateY(-3px); }
}

/* TABLET */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .header-inner { padding: 0 16px; }
  nav a { padding: 6px 8px; font-size: 0.68rem; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .footer-inner > div:nth-last-child(-n+2):not(:first-child) { display: none; }
  .sdgs-goal-card-body { grid-template-columns: 1fr; }
}
