@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Noto+Sans+JP:wght@300;400;500;700&family=Old+Standard+TT:ital@1&family=Open+Sans:wght@400;600&display=swap');

html { scroll-behavior: smooth; }

/* ===== リセット ===== */
.tsuruta-layout, .tsuruta-layout * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tsuruta-layout {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  font-family: 'Open Sans', 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff;
}

/* ===== モバイルヘッダー ===== */
.tsuruta-mobile-header {
  display: none;
  background: #fff;
  padding: 24px 16px 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .tsuruta-mobile-header {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ===== サイドバー ===== */
.tsuruta-sidebar {
  width: 130px;
  min-width: 130px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: #fff;
  z-index: 100;
  padding: 52px 12px 28px;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
}

.sidebar-logo a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-logo .logo-line1,
.sidebar-logo .logo-line2 {
  display: block;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

/* ===== メインコンテンツ ===== */
.tsuruta-main {
  margin-left: 130px;
  width: calc(100% - 130px);
}

/* ===== ヒーロー ===== */
.section-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  background-color: #2a2a2a;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center 72%;
  position: relative;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: absolute;
  bottom: 64px;
  left: 64px;
  z-index: 1;
  color: #fff;
  max-width: 720px;
}

.hero-title {
  font-family: 'Lato', 'Noto Sans JP', sans-serif;
  font-size: 46px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #fff !important;
}

.hero-sub {
  font-size: 14px;
  margin: 0 0 12px;
  opacity: 0.9;
}

.hero-desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.9;
}

/* ===== セクション共通 ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 64px;
}

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #aaa;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Lato', 'Noto Sans JP', sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 52px;
  color: #222;
}

/* ===== 事務所紹介 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.photo-caption {
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  color: #555;
  line-height: 1.7;
}

.about-text p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
  color: #444;
}

/* ===== 初回相談無料 ===== */
.section-consult {
  background: #f8f8f8;
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 52px;
  align-items: center;
}

.consult-photos {
  display: flex;
  gap: 12px;
  align-items: center;
}

.consult-photos img {
  width: 160px;
  height: 213px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 16px;
  flex-shrink: 0;
}

.consult-photos img:last-child {
  object-position: 55% 70%;
}

.consult-content p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 10px;
  color: #444;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #333;
  padding: 13px 28px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  margin-top: 24px;
  transition: background 0.2s, color 0.2s;
}

.btn-contact:hover {
  background: #333;
  color: #fff;
}

/* ===== 業務内容 ===== */
.service-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "badge badge"
    "img   body";
  gap: 0;
  border-bottom: 1px solid #eee;
  padding: 52px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.service-item:hover {
  background: #fdf6f4;
}

.service-item:first-of-type {
  border-top: 1px solid #eee;
}

.service-image {
  grid-area: img;
}

.service-badge {
  grid-area: badge;
  display: block;
  align-self: start;

  background: #f05020;
  color: #fff;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 21px;
  font-weight: 600;
  margin-left: 0;
  margin-bottom: 16px;
}

.service-body {
  grid-area: body;
  padding: 0 0 0 52px;
}

.service-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.service-image .img-placeholder {
  width: 100%;
  height: 140px;
  background: #ddd;
  border-radius: 10px;
  display: block;
}

.service-body ul {
  list-style: none;
}

.service-body ul li {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  line-height: 1.5;
  color: #222;
}

.service-note {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.service-body > p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

/* ===== 事務所概要 ===== */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.company-map img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #eee;
}

.info-table th,
.info-table td {
  padding: 14px 0;
  font-size: 14px;
  vertical-align: top;
  text-align: left;
}

.info-table th {
  color: #999;
  font-weight: 400;
  width: 110px;
  padding-right: 16px;
  white-space: nowrap;
}

.info-table a {
  color: #333;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .tsuruta-sidebar {
    display: none;
  }
  .tsuruta-main {
    margin-left: 0;
    width: 100%;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-content {
    left: 24px;
    bottom: 40px;
  }
  .section-inner {
    padding: 60px 24px;
  }
  .about-grid,
  .company-grid,
  .consult-grid {
    grid-template-columns: 1fr;
  }
}

/* タブレット：バッジ左上、下に画像＋テキスト横並び */
@media (max-width: 900px) and (min-width: 601px) {
  .service-item {
    grid-template-columns: 160px 1fr;
    grid-template-areas:
      "badge badge"
      "img   body";
  }
  .service-badge {
    margin-left: 0;
  }
  .service-body {
    padding: 0 0 0 20px;
  }
  .service-image img,
  .service-image .img-placeholder {
    height: 120px;
  }
}

/* スマホ：バッジ→画像→テキストの縦積み */
@media (max-width: 600px) {
  .service-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "img"
      "body";
  }
  .service-badge {
    margin-left: 0;
    margin-bottom: 12px;
  }
  .service-body {
    padding: 16px 0 0;
  }
  .service-image img,
  .service-image .img-placeholder {
    height: 180px;
  }
}

/* ===== フッター ===== */
.tsuruta-footer {
  background: #f7f3ed;
  color: #6b5a4a;
  padding: 56px 0 28px;
  width: 100%;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: #3a2e22;
  margin-bottom: 8px;
  white-space: nowrap;
}
.footer-address,
.footer-tel {
  font-size: 13px;
  line-height: 1.8;
  color: #8a7a6a;
}
.footer-tel a {
  color: #3a2e22;
  text-decoration: none;
}
.footer-tel a:hover { text-decoration: underline; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 13px;
  color: #8a7a6a;
  text-decoration: none;
  white-space: nowrap;
}
.footer-nav a:hover { color: #3a2e22; }
.footer-copy {
  font-size: 12px;
  color: #b0a090;
  text-align: center;
  border-top: 1px solid #e0d4c4;
  padding-top: 20px;
}

/* ===== お問い合わせフォーム ===== */
.section-contact {
  padding: 64px 0 80px;
  background: #f9f7f4;
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.contact-heading {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.4;
}
.contact-lead {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-method-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f05020;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-box {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px 18px;
}
.contact-tel-label {
  font-size: 12px;
  color: #8a7a6a;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-tel-number {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.contact-tel-number:hover { color: #f05020; }
.contact-tel-hours {
  font-size: 12px;
  color: #aaa;
}
.contact-divider {
  border: none;
  border-top: 1px solid #e0d4c4;
  margin: 0 0 20px;
}
.contact-mail-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.contact-mail-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 0;
}
.contact-form {
  width: 100%;
  margin-top: 16px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.required {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #f05020;
  color: #fff !important;
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f05020;
}
.form-group textarea { resize: vertical; }
.form-check { margin-top: 8px; }
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #f05020;
}
.check-label a { color: #f05020; }
.form-submit { margin-top: 20px; margin-bottom: 20px; }
.btn-submit {
  background: #f05020 !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 40px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1.4 !important;
  display: inline-block;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: default; }
.form-result {
  margin-top: 20px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  display: none;
}
.form-result.success {
  display: block;
  background: #e6f4ea;
  color: #2d6a4f;
  border: 1px solid #b7dfca;
}
.form-result.error {
  display: block;
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6c1;
}

/* ===== レスポンシブ（フッター・フォーム）===== */
@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .footer-nav { justify-content: flex-start; }
  .section-contact { padding: 60px 0; }
  .btn-submit { width: 100%; }
}
