﻿/*
Theme Name: 行政書士吉田哲朗事務所 お問い合わせ自動復帰確実版
Author: 行政書士吉田哲朗事務所
Description: 行政書士吉田哲朗事務所の総合ホームページ用テーマ
Version: 1.0.10
Text Domain: yoshida-office
*/

:root {
  --navy: #10233f;
  --navy-deep: #09182d;
  --heading: #0057a8;
  --subheading: #006b66;
  --gold: #b08a3c;
  --gold-soft: #d7c08a;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f4;
  --gray-200: #dce2e8;
  --text: #17202a;
  --muted: #303b46;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-weight: 600;
  line-height: 1.8;
  background: var(--white);
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  max-width: 920px;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--gray-50);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.global-nav a {
  font-size: 14px;
  font-weight: 700;
}

.global-nav a:hover {
  color: var(--gold);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
}

.header-contact:hover {
  color: var(--white);
  background: var(--navy-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  color: var(--heading);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 2.05;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-row.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
}

.button-primary:hover {
  background: var(--navy-deep);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.button-secondary:hover {
  border-color: var(--gold);
}

.button-secondary.light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary.light:hover {
  border-color: var(--gold-soft);
}

.contact-method-button {
  flex-direction: column;
  min-height: 64px;
  line-height: 1.35;
}

.contact-method-button strong {
  margin-top: 3px;
  font-size: 15px;
}

.hero-image-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--gray-100);
}

.hero-image {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 16px;
  color: var(--heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 3px;
  content: "";
  background: var(--gold);
  transform: translateX(-50%);
}

.section-heading.align-left h2::after {
  left: 0;
  transform: none;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.service-grid,
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.strength-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.strength-card,
.flow-card {
  min-height: 100%;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.06);
}

.service-card {
  border-top: 4px solid var(--gold);
}

.service-card h3,
.strength-card h3,
.flow-card h3 {
  margin-bottom: 18px;
  color: var(--subheading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.service-card p,
.strength-card p,
.flow-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  padding-bottom: 3px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.text-link::after {
  margin-left: 8px;
  content: "→";
  color: var(--gold);
}

.blog-link {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  color: var(--subheading);
  font-size: 15px;
  font-weight: 700;
  border-top: 1px solid var(--gray-200);
}

.blog-link::after {
  margin-left: 7px;
  content: "→";
  color: var(--gold);
}

.blog-link:hover {
  color: var(--gold);
}

.column-list {
  display: grid;
  gap: 22px;
}

.column-card h2 {
  margin-bottom: 14px;
  color: var(--heading);
  font-size: 24px;
  line-height: 1.5;
}

.column-date {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.number {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 700;
}

.representative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 60px;
  align-items: center;
}

.representative-name {
  color: var(--subheading);
  font-size: 24px;
  font-weight: 700;
}

.representative-content p:not(.representative-name) {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.9;
}

.representative-image-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.representative-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

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

th,
td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 34%;
  color: var(--navy);
  background: var(--gray-50);
  font-weight: 700;
}

td {
  color: var(--muted);
  font-weight: 600;
}

td a {
  color: var(--navy);
  font-weight: 700;
}

#fees tbody tr:nth-child(-n + 5) th {
  color: #174f84;
  background: #edf5fc;
  border-left: 5px solid #397eb8;
  border-right: 5px solid #397eb8;
}

#fees tbody tr:nth-child(-n + 5) td {
  background: #edf5fc;
  border-right: 5px solid #397eb8;
}

#fees tbody tr:nth-child(n + 6):nth-child(-n + 9) th {
  color: #176556;
  background: #edf8f4;
  border-left: 5px solid #399b83;
  border-right: 5px solid #399b83;
}

#fees tbody tr:nth-child(n + 6):nth-child(-n + 9) td {
  background: #edf8f4;
  border-right: 5px solid #399b83;
}

#fees tbody tr:nth-child(10) th {
  color: #765b16;
  background: #fff8e5;
  border-left: 5px solid #c39a31;
  border-right: 5px solid #c39a31;
}

#fees tbody tr:nth-child(10) td {
  background: #fff8e5;
  border-right: 5px solid #c39a31;
}

#fees tbody tr:nth-child(11) th {
  color: #8a3d32;
  background: #fff1ef;
  border-left: 5px solid #c96a5c;
  border-right: 5px solid #c96a5c;
}

#fees tbody tr:nth-child(11) td {
  background: #fff1ef;
  border-right: 5px solid #c96a5c;
}

#fees tbody tr:nth-child(12) th {
  color: #684878;
  background: #f7f0fa;
  border-left: 5px solid #9a70ad;
  border-right: 5px solid #9a70ad;
}

#fees tbody tr:nth-child(12) td {
  background: #f7f0fa;
  border-right: 5px solid #9a70ad;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 36px;
  align-items: start;
}

.visit-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.social-outreach {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 36px;
  align-items: center;
  margin-top: 46px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.06);
}

.social-count {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.social-outreach-intro h3 {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: 23px;
  line-height: 1.55;
}

.social-outreach-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.social-media-link {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 78px;
  padding: 14px 34px 14px 16px;
  color: var(--text);
  background: var(--gray-50);
  border-left: 4px solid currentColor;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-media-link::after {
  position: absolute;
  top: 50%;
  right: 14px;
  content: "→";
  transform: translateY(-50%);
}

.social-media-link strong {
  font-size: 16px;
}

.social-media-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(16, 35, 63, 0.11);
}

.social-media-link.facebook {
  color: #1265b0;
}

.social-media-link.instagram {
  color: #c13584;
}

.social-media-link.x-network,
.social-media-link.threads {
  color: #17202a;
}

.social-media-link.note {
  color: #16866c;
}

.social-media-link.youtube {
  color: #c62828;
}

.office-map {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.08);
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

.google-business-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  color: var(--text);
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
}

.google-business-card:hover {
  background: #f8fbff;
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #4285f4;
  font-size: 25px;
  font-weight: 700;
  border: 2px solid #4285f4;
  border-radius: 50%;
}

.google-business-card strong,
.google-business-card small {
  display: block;
}

.google-business-card strong {
  color: var(--heading);
  font-size: 16px;
}

.google-business-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.google-card-arrow {
  color: #4285f4;
  font-size: 20px;
  font-weight: 700;
}

.map-link {
  display: block;
  padding: 16px 20px;
  color: var(--heading);
  font-weight: 700;
  text-align: center;
  background: var(--white);
}

.map-link:hover {
  color: var(--gold);
}

.google-business-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray-200);
}

.google-business-links .map-link {
  border-right: 1px solid var(--gray-200);
}

.business-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  color: #176742;
  font-weight: 700;
  text-align: center;
  background: var(--white);
}

.business-profile-link:hover {
  color: var(--gold);
}

.contact-section {
  color: var(--white);
  background: var(--navy);
}

.contact-box {
  max-width: 860px;
  text-align: center;
}

.contact-box h2 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.45;
}

.contact-box p {
  margin: 0 auto;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  margin-top: 38px;
  padding: 32px;
  color: var(--text);
  text-align: left;
  background: var(--white);
  border-radius: var(--radius);
}

.contact-success-panel {
  margin-top: 32px;
  padding: 24px;
  color: #145b3a;
  text-align: center;
  background: #eaf8f0;
  border: 2px solid #39a36b;
  border-radius: var(--radius);
}

.contact-success-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.contact-success-panel span {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.contact-success-panel .button {
  margin-top: 18px;
}

.contact-success-panel small {
  display: block;
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field strong {
  margin-left: 6px;
  color: #b13b3b;
  font-size: 12px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(176, 138, 60, 0.2);
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.privacy-check input {
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  margin-top: 24px;
  color: var(--white);
  background: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
}

.form-submit:hover {
  background: #98752f;
}

.contact-box .form-status {
  max-width: none;
  margin-top: 14px;
  color: #8b2f2f;
  font-size: 14px;
  text-align: center;
}

.contact-box .form-status.form-success {
  color: #176742;
}

.site-footer {
  padding: 44px 0;
  color: var(--white);
  background: var(--navy-deep);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-logo {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.copyright {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .global-nav ul {
    gap: 12px;
  }

  .global-nav a {
    font-size: 13px;
  }

  .hero-grid {
    grid-template-columns: 1fr 46%;
    gap: 34px;
  }

  .hero-image {
    height: 500px;
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px 20px 26px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 16px 28px rgba(16, 35, 63, 0.08);
  }

  .global-nav.is-open {
    display: grid;
    gap: 18px;
  }

  .global-nav ul {
    display: grid;
    gap: 12px;
  }

  .header-contact {
    width: 100%;
  }

  .hero-grid,
  .representative-grid,
  .office-grid,
  .social-outreach {
    grid-template-columns: 1fr;
  }

  .representative-image-card {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .service-grid,
  .strength-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .header-inner {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
  }

  .site-logo {
    font-size: 16px;
  }

  .global-nav {
    top: 68px;
  }

  .hero {
    padding: 52px 0 68px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 17px;
  }

  .button-row,
  .button-row.center {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-image {
    height: 360px;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading h2::after {
    left: 0;
    transform: none;
  }

  .service-grid,
  .strength-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .strength-card,
  .flow-card {
    padding: 24px;
  }

  th,
  td {
    display: block;
    width: 100%;
    padding: 14px 16px;
  }

  th {
    border-bottom: 0;
    border-right: 0;
  }

  td {
    border-bottom: 1px solid var(--gray-200);
    border-right: 0;
  }

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

  .contact-box h2 {
    font-size: 28px;
  }

  .contact-form {
    padding: 22px;
  }

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

  .form-field-wide {
    grid-column: auto;
  }

  .office-map iframe {
    height: 340px;
  }

  .google-business-links {
    grid-template-columns: 1fr;
  }

  .google-business-links .map-link {
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .social-outreach {
    padding: 22px;
  }

  .social-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .social-media-grid {
    grid-template-columns: 1fr;
  }
}


