/*
Theme Name: yamashita_gyosei_theme
Author: Crossroad Co., Ltd.
*/
@charset "UTF-8";

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-main: #112D4E;
    --color-accent: #E67E22;
    --color-base: #F9F7F2;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;

    /* Fonts */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;

    /* Spacing */
    --spacing-section: 60px;
    --spacing-section-lg: 80px;
    /* PC */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-main);
    line-height: 1.4;
    font-weight: 700;
}

a {
    color: var(--color-main);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: var(--spacing-section-lg);
        padding-bottom: var(--spacing-section-lg);
    }
}

.bg-light-custom {
    background-color: var(--color-base);
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 0;
    z-index: 1100;
    position: relative;
}

.logo a {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-main);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-serif);
}

.hamburger-btn {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.hamburger-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-of-type(1) {
    top: 0;
}

.hamburger-btn span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-btn span:nth-of-type(3) {
    bottom: 0;
}

.hamburger-btn.is-active span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-btn.is-active span:nth-of-type(2) {
    opacity: 0;
}

.hamburger-btn.is-active span:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.header-nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 1000;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.header-nav-wrapper.is-open {
    right: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    width: 100%;
    padding: 0 24px;
}

.main-nav>ul>li {
    margin-bottom: 0;
}

.main-nav a {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-main);
}

.main-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .menu-item-has-children>a {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
}

.main-nav .menu-item-has-children>a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-main);
    border-bottom: 2px solid var(--color-main);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.3s ease;
}

.main-nav .menu-item-has-children.is-open>a::after {
    transform: translateY(-25%) rotate(-135deg);
}

.main-nav .sub-menu {
    display: none;
    margin-top: 12px;
    padding-left: 8px;
}

.main-nav .sub-menu li {
    margin-bottom: 10px;
}

.main-nav .sub-menu li:last-child {
    margin-bottom: 0;
}

.main-nav .sub-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555555;
    position: relative;
    padding-left: 16px;
}

.main-nav .sub-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tel-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-main);
    text-decoration: none;
}

.tel-icon i {
    color: #E55F90;
    font-size: 1.2rem;
}

.tel-number {
    display: block;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: var(--font-sans);
}

.btn-contact {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.3);
    width: 100%;
    text-align: center;
}

@media(max-width:991px) {
    .main-nav>ul>li {
        padding: 14px 0;
        border-bottom: 1px solid rgba(28, 42, 79, 0.1);
    }

    .main-nav>ul>li:first-child {
        border-top: 1px solid rgba(28, 42, 79, 0.1);
    }
}

@media(min-width:576px) {
    .header-contact.d-lg-none .btn-contact {
        width: 50%;
    }
}

@media(max-width:991px) {
    .main-nav {
        width: 100%;
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    .site-header {
        padding: 10px 0;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .hamburger-btn,
    .main-nav li.menu-front-page {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-nav-wrapper {
        margin-top: 10px;
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: center;
        box-shadow: none;
        padding: 0;
    }

    .main-nav ul {
        display: flex;
        margin: 0;
    }

    .main-nav li {
        margin-right: 40px;
        margin-bottom: 0;
    }

    .main-nav li:last-child {
        margin-right: 0;
    }

    .main-nav a {
        display: inline-block;
        padding: 5px 10px;
        font-size: 1rem;
        font-weight: normal;
        position: relative;
    }

    .main-nav>ul>li>a::before {
        position: absolute;
        content: '';
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-accent);
        transition: all .3s;
    }

    .main-nav>ul>li>a:hover::before,
    .main-nav>ul>li>a:focus::before,
    .main-nav .current-menu-item>a::before {
        width: 100%;
    }

    .main-nav .menu-item-has-children {
        position: relative;
    }

    .main-nav .menu-item-has-children>a {
        padding-right: 20px;
        display: inline-block;
    }

    .main-nav .menu-item-has-children>a::after {
        content: '';
        position: absolute;
        right: 4px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid var(--color-main);
        border-bottom: 1.5px solid var(--color-main);
        transform: translateY(-65%) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .main-nav .menu-item-has-children:hover>a::after {
        transform: translateY(-25%) rotate(-135deg);
    }

    .main-nav .sub-menu {
        display: none;
        position: absolute;
        top: calc(100% - 10px);
        left: 50%;
        transform: translateX(-50%);
        background-color: #ffffff;
        min-width: 220px;
        padding: 12px 0;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border: 1px solid #EFEBE1;
        flex-direction: column;
        margin-top: 8px;
        z-index: 100;
    }

    .main-nav .menu-item-has-children:hover>.sub-menu {
        display: flex;
    }

    .main-nav .sub-menu li {
        margin: 0;
        padding: 0;
    }

    .main-nav .sub-menu a {
        display: block;
        padding: 10px 24px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #333333;
        white-space: nowrap;
        transition: background-color 0.2s, color 0.2s;
    }

    .main-nav .sub-menu a::before {
        display: none;
    }

    .main-nav .sub-menu a:hover {
        background-color: #F9F8F6;
        color: var(--color-accent);
    }

    .header-contact {
        flex-direction: row;
        gap: 20px;
    }

    .tel-number {
        font-size: 1.2rem;
    }

    .btn-contact {
        width: auto;
        padding: 12px 20px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 80vh;
    /* Fallback */
    height: 80dvh;
    /* High impact */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-sub {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.5;
    color: var(--color-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .hero-sub {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

.btn-primary-custom {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.5);
    color: var(--color-white);
    opacity: 1;
}

.btn-line {
    background-color: #06c755 !important;
    box-shadow: 0 4px 6px rgba(6, 199, 85, 0.3) !important;
}

.btn-line:hover {
    background-color: #4cc764 !important;
    color: var(--color-white) !important;
    opacity: 1;
}

.btn-line-custom {
    display: inline-block;
    background-color: #06c755;
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-line-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.5);
    background-color: #4cc764;
    color: var(--color-white);
    opacity: 1;
}

.line-icon-img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

.btn-tel-custom {
    display: inline-block;
    background-color: #E55F90;
    color: var(--color-white);
    padding: 10px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(229, 95, 144, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}

.btn-tel-custom:active,
.btn-tel-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 95, 144, 0.5);
    background-color: #D64A7C;
    color: var(--color-white);
    opacity: 1;
}

/* ==========================================================================
   Problems Section
   ========================================================================== */
.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
    font-size: 1.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-title.text-start::after {
    left: 0;
    transform: translateX(0);
}

.card-custom {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.card-icon {
    text-align: center;
    margin-bottom: 20px;
}

.card-icon img {
    width: 4rem;
    object-fit: contain;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--color-main);
}

.card-text-ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.card-text-ul li {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.feature-number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: rgba(17, 45, 78, 0.1);
    margin-bottom: -20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-text {
    color: var(--color-text);
}

/* ==========================================================================
   Representative Section
   ========================================================================== */
.rep-img {
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    object-fit: contain;
}

.rep-name-title {
    font-size: 1.3rem;
    color: var(--color-accent);
    font-weight: bold;
}

.rep-text {
    text-align: justify;
    margin-bottom: 20px;
}

.rep-sign {
    font-family: var(--font-serif);
    color: var(--color-main);
}

@media(min-width:768px) and (max-width:991px) {
    .rep-img {
        width: 500px;
        aspect-ratio: 3/2;
        object-fit: cover;
    }
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.map-container {
    border-radius: 10px;
    overflow: hidden;
}

.access-info dt {
    color: var(--color-main);
    font-weight: bold;
}

@media(min-width:992px) and (max-width:1199px) {

    .access_sec .btn-primary-custom,
    .access_sec .btn-line-custom {
        padding: 15px 20px;
    }
}

.page-header {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
    background-image: url('img/office_header.jpg');
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 42, 79, 0.82) 0%, rgba(17, 45, 78, 0.72) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header .page-slug {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    font-weight: 400;
}

.page-header .page-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .page-header {
        padding: 100px 0;
    }

    .page-header .page-slug {
        font-size: 1rem;
    }

    .page-header .page-title {
        font-size: 2.5rem;
    }
}

.page-header-testament {
    background-image: url('img/will_header.jpg');
}

.page-header-inheritance {
    background-image: url('img/inheritance_header.jpg');
}

.page-header-guardianship {
    background-image: url('img/guardianship_header.jpg');
}

.page-header-contact {
    background-image: url('img/contact_header.jpg');
}

.page-header-information {
    background-image: url('img/information_header.jpg');
}

/* ==========================================================================
   パンくずリスト (Breadcrumbs)
   ========================================================================== */
.breadcrumb-container {
  background-color: #F9F8F6;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #666666;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* リンクテキストの色 */
.breadcrumb-item a {
  color: #1C2A4F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #D9702A;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '\f105';
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  color: #bbbbbb;
  padding: 0 8px;
  font-size: 0.75rem;
}

/* 現在のページ（最後）のアイテムの文字数制限と省略（...） */
.breadcrumb-item.active {
  color: #888888;
  text-overflow: ellipsis;
  max-width: 120px; /* スマホ向けのデフォルト最大幅 */
}

/* タブレット・PCでの最大幅拡張 */
@media (min-width: 768px) {
  .breadcrumb-item.active {
    max-width: 300px; 
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #1C2A4F;
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 0;
}

.footer-logo {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    margin-bottom: 36px;
    letter-spacing: 0.08em;
}

.footer-nav-columns {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
    .footer-nav-columns {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }
}

.footer-nav-column {
    flex: 1;
    text-align: left;
}

.footer-nav-column .column-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    letter-spacing: 0.05em;
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column ul li:last-child {
    margin-bottom: 0;
}

.footer-nav-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    display: inline-block;
    line-height: 1.8;
}

.footer-nav-column ul li a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

@media(min-width:992px) {
    .footer-inner {
        max-width: 960px;
        margin: 0 auto;
    }
}

/*=====================
 service page(srv-cta)
=====================*/
.srv-cta-sec {
    background: linear-gradient(135deg, #1C2A4F 0%, #112D4E 100%);
    padding: 60px 0;
    text-align: center;
}

.srv-cta-sec .cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.srv-cta-sec .cta-lead {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.srv-cta-sec .cta-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.5;
}

.srv-cta-sec .cta-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
    line-height: 1.8;
}

.srv-cta-sec .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 576px) {
    .srv-cta-sec .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .srv-cta-sec {
        padding: 80px 0;
    }

    .srv-cta-sec .cta-title {
        font-size: 1.8rem;
    }
}

.srv-cta-sec .btn-cta-mail {
    display: inline-block;
    background-color: #D9702A;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 5px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(217, 112, 42, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    min-width: 240px;
    text-align: center;
}

.srv-cta-sec .btn-cta-mail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 112, 42, 0.5);
    color: #ffffff;
    opacity: 1;
}

.srv-cta-sec .btn-cta-line {
    display: inline-block;
    background-color: #06c755;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 5px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    text-decoration: none;
    min-width: 240px;
    text-align: center;
}

.srv-cta-sec .btn-cta-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.5);
    background-color: #4cc764;
    color: #ffffff;
    opacity: 1;
}

.srv-cta-sec .cta-tel-info {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.srv-cta-sec .cta-tel-info a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}

.srv-cta-sec .cta-tel-info .cta-tel-hours {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================
   Footer
   ============================ */
footer {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.fade-in-delay.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.fade-in-delay-2.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Office page
   ========================================================================== */
.office-greeting-sec {
    background-color: #ffffff;
    padding: 60px 0;
}

.office-greeting-sec .sec-heading {
    text-align: center;
    margin-bottom: 48px;
}

.office-greeting-sec .sec-heading h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1C2A4F;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.office-greeting-sec .sec-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D9702A;
}

.office-greeting-sec .greeting-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 768px) {
    .office-greeting-sec {
        padding: 80px 0;
    }

    .office-greeting-sec .sec-heading h2 {
        font-size: 1.8rem;
    }

    .office-greeting-sec .greeting-layout {
        flex-direction: row;
        gap: 48px;
        align-items: flex-start;
    }
}

.office-greeting-sec .greeting-photo {
    flex-shrink: 0;
    width: 100%;
    max-width: 320px;
}

.office-greeting-sec .greeting-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

@media (min-width: 768px) {
    .office-greeting-sec .greeting-photo {
        width: 40%;
        max-width: 360px;
    }
}

.office-greeting-sec .greeting-text {
    flex: 1;
}

.office-greeting-sec .greeting-text .greeting-subtitle {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #D9702A;
    margin-bottom: 20px;
    line-height: 1.6;
}

.office-greeting-sec .greeting-text p {
    font-size: 0.95rem;
    color: #333333;
    line-height: 2;
    text-align: justify;
    margin-bottom: 16px;
}

.office-greeting-sec .greeting-text p:last-of-type {
    margin-bottom: 0;
}

.office-greeting-sec .greeting-sign {
    margin-top: 28px;
    text-align: right;
    font-family: 'Shippori Mincho', serif;
    color: #1C2A4F;
}

.office-greeting-sec .greeting-sign .sign-title {
    display: block;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 4px;
}

.office-greeting-sec .greeting-sign .sign-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.office-overview-sec {
    background-color: #F9F8F6;
    padding: 60px 0;
}

.office-overview-sec .sec-heading {
    text-align: center;
    margin-bottom: 48px;
}

.office-overview-sec .sec-heading h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1C2A4F;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.office-overview-sec .sec-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D9702A;
}

.office-overview-sec .overview-table-wrapper {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.office-overview-sec table {
    width: 100%;
    border-collapse: collapse;
}

.office-overview-sec table th,
.office-overview-sec table td {
    padding: 16px 24px;
    border-bottom: 1px solid #EFEBE1;
    font-size: 0.95rem;
    vertical-align: top;
    line-height: 1.8;
}

.office-overview-sec table tr:last-child th,
.office-overview-sec table tr:last-child td {
    border-bottom: none;
}

.office-overview-sec table th {
    background-color: #1C2A4F;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Shippori Mincho', serif;
    width: 30%;
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.office-overview-sec table td {
    background-color: #ffffff;
    color: #333333;
}

.office-overview-sec table td a {
    color: #1C2A4F;
    font-weight: 700;
    text-decoration: none;
}

.office-overview-sec table td a:hover {
    color: #D9702A;
    opacity: 1;
}

@media (max-width: 575px) {

    .office-overview-sec table th,
    .office-overview-sec table td {
        display: block;
        width: 100%;
        padding: 12px 20px;
    }

    .office-overview-sec table th {
        border-bottom: none;
        padding-bottom: 8px;
    }

    .office-overview-sec table td {
        padding-top: 4px;
    }
}

@media (min-width: 768px) {
    .office-overview-sec {
        padding: 80px 0;
    }

    .office-overview-sec .sec-heading h2 {
        font-size: 1.8rem;
    }
}

.office-access-sec {
    background-color: #ffffff;
    padding: 60px 0;
}

.office-access-sec .sec-heading {
    text-align: center;
    margin-bottom: 48px;
}

.office-access-sec .sec-heading h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1C2A4F;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.office-access-sec .sec-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D9702A;
}

.office-access-sec .map-wrapper {
    max-width: 960px;
    margin: 0 auto 36px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #EFEBE1;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.office-access-sec .map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.office-access-sec .access-guide {
    max-width: 760px;
    margin: 0 auto;
    background-color: #F9F8F6;
    border-radius: 10px;
    padding: 28px 32px;
    border-left: 4px solid #1C2A4F;
}

.office-access-sec .access-guide .guide-heading {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1C2A4F;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-access-sec .access-guide .guide-heading i {
    color: #D9702A;
    font-size: 1rem;
}

.office-access-sec .access-guide .guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.office-access-sec .access-guide .guide-item:last-child {
    margin-bottom: 0;
}

.office-access-sec .access-guide .guide-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #1C2A4F;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 2px;
}

.office-access-sec .access-guide .guide-text {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.8;
}

.office-access-sec .access-guide .guide-note {
    font-size: 0.85rem;
    color: #999999;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E0DCD4;
}

@media (min-width: 768px) {
    .office-access-sec {
        padding: 80px 0;
    }

    .office-access-sec .sec-heading h2 {
        font-size: 1.8rem;
    }

    .office-access-sec .access-guide {
        padding: 36px 44px;
    }
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */

.privacy-policy-section .policy-h2 {
    color: #1C2A4F;
    font-size: 1.5rem;
    font-weight: 700;
}

.privacy-policy-section .policy-h3 {
    color: #1C2A4F;
    border-left: 4px solid #D9702A;
    padding-left: 12px;
    font-weight: 700;
}

.privacy-policy-section .policy-lead {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333333;
}

.privacy-policy-section .policy-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555555;
}

.privacy-policy-section .policy-link {
    color: #D9702A;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.privacy-policy-section .policy-link:hover {
    opacity: 0.7;
}

@media(min-width:992px) {
    .privacy-policy-section .policy-container {
        max-width: 800px;
    }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

/* --- 電話・LINEでのご相談案内セクション --- */
.contact-guidance-sec {
    padding-top: var(--spacing-section);
    padding-bottom: 30px;
}

@media (min-width: 768px) {
    .contact-guidance-sec {
        padding-top: var(--spacing-section-lg);
        padding-bottom: 40px;
    }
}

.guidance-box {
    background-color: #F9F8F6;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .guidance-box {
        padding: 40px;
    }
}

.guidance-lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-main);
    margin-bottom: 30px;
}

.guidance-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
	.guidance-lead{
		text-align:center;
	}
    .guidance-columns {
        flex-direction: row;
        gap: 40px;
    }
}

.guidance-col {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.guidance-col-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-main);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

/* 電話エリア */
.guidance-tel-link {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-main);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1;
}

.guidance-tel-icon {
    color: #E55F90;
    margin-right: 8px;
    font-size: 1.3rem;
}

.guidance-tel-hours {
    display: block;
    font-size: 0.85rem;
    color: #666666;
}

/* LINEエリア */
.guidance-line-btn {
    display: inline-block;
    background-color: #06C755;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

.guidance-line-btn:hover {
    background-color: #05A547;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.4);
    color: #ffffff;
}

/* --- メールフォームセクション --- */
.contact-form-sec {
    padding-bottom: var(--spacing-section);
}

@media (min-width: 768px) {
    .contact-form-sec {
        padding-bottom: var(--spacing-section-lg);
    }
}

.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 50px 60px;
    }
}

.spam-warning {
    color: #D32F2F;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #FDEDED;
    border-radius: 6px;
    border-left: 4px solid #D32F2F;
    text-align: center;
}

/* CF7 構造ベースのフォームスタイル */
.form-group {
    margin-bottom: 30px;
}

.form-label-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.form-label {
    font-weight: 700;
    color: var(--color-main);
    font-size: 1.05rem;
    margin: 0;
}

.required-badge {
    background-color: #D32F2F;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
}

.optional-badge {
    background-color: #999999;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
}

/* 入力フィールド */
.form-control-custom {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background-color: #FAFAFA;
    color: #333333;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--color-main);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(28, 42, 79, 0.1);
}

textarea.form-control-custom {
    min-height: 200px;
    resize: vertical;
}

select.form-control-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666666;
}

/* プライバシーポリシー同意チェック */
.privacy-agreement-sec {
    text-align: center;
    margin: 40px 0 30px;
    padding: 30px 20px;
    background-color: #F9F8F6;
    border-radius: 8px;
}

.privacy-link-wrap {
    margin-bottom: 20px;
}

.privacy-link-wrap a {
    color: var(--color-main);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-link-wrap a:hover {
    color: var(--color-accent);
}

.privacy-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.privacy-check-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.privacy-check-wrap label {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.05rem;
    color: #333;
}

/* 送信ボタン（アイコン無し指示） */
.submit-btn-wrap {
    text-align: center;
}

.btn-submit {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 18px 60px;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.3);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 400px;
}

.btn-submit:hover {
    background-color: #d37424;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
    color: #ffffff;
}
.wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.wpcf7-spinner{
  display: block;
  margin: 10px auto 0;
}

/* ==========================================================================
   Information
   ========================================================================== */

.information-sec {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

@media (min-width: 768px) {
    .information-sec {
        padding-top: var(--spacing-section-lg);
        padding-bottom: var(--spacing-section-lg);
    }
}

.information-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* archive */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    justify-content: center;
}

.category-list li a {
    display: inline-block;
    padding: 6px 20px;
    background-color: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-list li a:hover,
.category-list li.current-cat a {
    background-color: var(--color-main);
    border-color: var(--color-main);
    color: #ffffff;
}

/* お知らせリスト */
.news-list {
    border-top: 1px solid #EBE5DB;
}

.news-item {
    border-bottom: 1px solid #EBE5DB;
}

.news-link {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}

.news-link:hover {
    background-color: #F9F8F6;
}

@media (min-width: 768px) {
    .news-link {
        flex-direction: row;
        align-items: flex-start;
        padding: 30px 20px;
    }
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .news-meta {
        width: 120px;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
}

.news-date {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: #555555;
    letter-spacing: 0.05em;
}

.news-cat {
    font-size: 0.75rem;
    background-color: #EFEBE1;
    color: var(--color-main);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    color: var(--color-main);
    transition: color 0.2s;
}

.news-link:hover .news-title {
    color: var(--color-accent);
}

/* ページネーション */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    color: var(--color-main);
    text-decoration: none;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--color-main);
    color: #ffffff;
    border-color: var(--color-main);
}


/* single */

/* 独自ヘッダー（記事タイトル / メタ情報） */
.single-header {
    background-color: #F9F8F6;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .single-header {
        padding: 50px 40px;
    }
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.single-date {
    font-family: var(--font-sans);
    font-weight: 500;
    color: #666666;
    font-size: 0.95rem;
}

.single-cat {
    font-size: 0.8rem;
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    color: var(--color-main);
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}

.single-cat:hover {
    background-color: var(--color-main);
    color: #ffffff;
    border-color: var(--color-main);
}

/* 記事H1タイトル */
.single-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-main);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .single-title {
        font-size: 2rem;
    }
}

/* アイキャッチ画像 */
.single-thumbnail {
    margin-bottom: 50px;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 本文エリア (WordPress Gutenberg想定) */
.post-content {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.8em;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-main);
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #EBE5DB;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-main);
    margin-top: 2em;
    margin-bottom: 1em;
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

/* 一覧へ戻るボタン */
.btn-back-wrapper {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #EBE5DB;
    padding-top: 40px;
}

.btn-back {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    background-color: transparent;
}

.btn-back:hover {
    background-color: var(--color-main);
    color: #ffffff;
}