/* =============================================
   インテグレート設計管理 - スタイルシート
   HTML5 / CSS3 モダン対応版
   ============================================= */

/* ---- Custom Properties ---- */
:root {
  --primary:       #2a6a3f;
  --primary-dark:  #1d4d2e;
  --primary-light: #e8f4ec;
  --accent:        #e15e00;
  --accent-light:  #f58220;
  --text:          #333333;
  --text-light:    #666666;
  --white:         #ffffff;
  --bg-light:      #f6f7f5;
  --border:        #dddddd;
  --max-width:     960px;
  --radius:        4px;
  --shadow:        0 2px 12px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
               Meiryo, 'MS PGothic', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-light);
}

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

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

ul { list-style: none; }

/* ---- Wrapper ---- */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* ================================================
   Header
   ================================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 12px;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-tel-label {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.header-tel a {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.header-tel a:hover { opacity: 0.8; }

/* ================================================
   Navigation
   ================================================ */
.site-nav {
  background: var(--primary);
  position: relative;
}

/* hamburger toggle (hidden on desktop) */
.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 10;
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-list {
  display: flex;
}

.nav-list li a {
  display: block;
  padding: 14px 22px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-right: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s;
}

.nav-list li:first-child a {
  border-left: 1px solid rgba(255,255,255,0.18);
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--primary-dark);
}

/* ================================================
   Page Title Bar
   ================================================ */
.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-left: 5px solid var(--accent);
}

/* ================================================
   Content Area
   ================================================ */
.content {
  padding: 30px 24px 40px;
}

/* ================================================
   Top Page (index)
   ================================================ */
.hero img,
.contact-banner img,
.section-image img {
  width: 100%;
  height: auto;
}

.contact-banner { margin-top: 10px; }
.section-image  { margin-top: 10px; }

/* ================================================
   Company Table (corporate.html)
   ================================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}

.company-table th {
  width: 150px;
  background: var(--primary-light);
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.company-table td {
  background: var(--white);
}

/* Google Maps embed */
.map-wrap {
  margin-top: 28px;
}

.map-wrap h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 4px solid var(--accent);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
}

/* ================================================
   Purchase Steps (purchase.html)
   ================================================ */
.purchase-intro {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  border: 1px solid var(--border);
  border-top: none;
}

.step:first-child {
  border-top: 1px solid var(--border);
}

.step-head {
  flex: 0 0 180px;
  background: linear-gradient(160deg, var(--accent), var(--accent-light));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  gap: 8px;
}

.step-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.7;
}

.step-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.step-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  align-items: center;
}

.step-body p {
  font-size: 14px;
  line-height: 1.85;
}

.step-arrow {
  text-align: center;
  padding: 4px 0;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.note-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff8f0;
  border: 1px solid #f0c070;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-light);
}

.note-box strong {
  color: var(--text);
  font-weight: 700;
}

/* ================================================
   Contact Form (mail.html)
   ================================================ */
.contact-intro {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 700px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.required {
  color: #cc0000;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,106,63,0.15);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  padding: 12px 36px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }

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

.btn-reset {
  background: #e0e0e0;
  color: var(--text);
}

/* ================================================
   Property Detail (M-XXXX.html)
   ================================================ */
.property-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  padding: 12px 20px;
  color: var(--white);
  flex-wrap: wrap;
  gap: 8px;
}

.property-bar-title {
  font-size: 15px;
  font-weight: 700;
}

.property-bar-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.back-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.back-btn:hover { background: rgba(255,255,255,0.2); }

.property-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.property-table th,
.property-table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  vertical-align: middle;
  line-height: 1.65;
}

.property-table th {
  width: 130px;
  background: #ffeedd;
  font-weight: 700;
  color: #7a3000;
  white-space: nowrap;
  text-align: center;
}

.property-table td {
  background: var(--white);
}

.price-sold {
  color: #cc0000;
  font-weight: 700;
  font-size: 15px;
}

.price-main {
  font-weight: 700;
  font-size: 16px;
  color: #cc0000;
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 22px 20px;
  font-size: 12px;
  margin-top: 0;
}

.site-footer a {
  color: rgba(255,255,255,0.85);
  margin: 0 8px;
}

.site-footer a:hover { text-decoration: underline; }

/* ================================================
   Mobile (max-width: 640px)
   ================================================ */
@media (max-width: 640px) {

  /* Header */
  .header-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .site-logo img { height: 42px; }

  .header-tel a { font-size: 17px; }

  /* Hamburger */
  .nav-toggle-label { display: flex; }

  .nav-list {
    display: none;
    flex-direction: column;
  }

  .nav-toggle:checked ~ .nav-list { display: flex; }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .nav-list li a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 16px 20px;
  }

  .nav-list li:first-child a { border-left: none; }

  /* Content */
  .content { padding: 20px 16px 32px; }

  /* Company table */
  .company-table th { width: 100px; font-size: 13px; }

  /* Purchase step */
  .step { flex-direction: column; }

  .step-head {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 16px;
  }

  .step-num { font-size: 24px; }

  .step-body { padding: 14px 16px; }

  /* Property table */
  .property-table th { width: 100px; font-size: 12px; }

  /* Form */
  .form-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
