/*
Theme Name: Qualle Tax Office Theme
Author: 株式会社 想造
Description: クヴァレ税理士事務所のWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qualle-theme
*/

/* ============================================
   クヴァレ税理士事務所 Stylesheet
   ============================================ */

/* ============================================
   1. Reset and Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* CSS Variables (Color Palette & Theme) */
:root {
    --primary-beige: #FFF8F0;
    --secondary-beige: #FFF5E8;
    --primary-brown: #82592B;
    --secondary-brown: #937856;
    --accent-orange: #EE7D50;
    --light-orange: #FF8C61;
    --primary-yellow: #FFD85E;
    --light-yellow: #FFE89E;
    --text-medium: #6B6B6B;
    --text-brown: #82592B;
    --text-white: #FFF8F3;
    --border-white: #E5DDD5;
    --border-blown: #82592B;
    --dark-brown: #5a4a3a;
    --table-border: rgba(255, 255, 255, 0.2);
}

/* Body base styles */
body {
    font-family: "Kosugi Maru", sans-serif;
    background-color: var(--primary-beige);
    color: var(--text-brown);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   2. Header & Navigation
   ============================================ */

.logo {
    z-index: 1000;
}

/* ロゴリンク */
.logo-link {
  text-decoration: none;
  color: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--border-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-brown);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--accent-orange);
}

/* Hide arrow icon on desktop */
.nav-arrow {
    display: none;
}

.nav-contact {
    display: none;
}

/* Hamburger menu (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ============================================
   3. Hero Section
   ============================================ */

.hero {
    padding: 8rem 0 4rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/hero/top-background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: center;
}

.hero-title-vertical {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    height: auto;
    justify-content: flex-start;
}

.hero-text-column {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    flex-direction: column;
    gap: initial;
}

.hero-text-column p {
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.hero-text-column.column-1 {
    padding-top: 0;
}

.hero-text-column.column-2 {
    padding-top: 3rem;
}

.hero-text-column.column-3 {
    padding-top: 20rem;
}

.text-small {
    font-size: 1.5rem;
    font-weight: 500;
}

.text-large {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.text-medium {
    font-size: 2rem;
    font-weight: 700;
}

.text-orange {
    color: var(--accent-orange);
}

/* Desktop view: hide mobile elements */
.hero-mobile-image {
    display: none;
}

.hero-text-mobile,
.hero-text-tablet {
    display: none;
}

/* ============================================
   4. Concerns Section (お悩みセクション)
   ============================================ */

.concerns {
    width: 100%;
    position: relative;
    background-color: var(--secondary-beige);
    display: flex;
    flex-direction: column;
}

/* 上部のエッジ画像 */
.concerns-bg-edge {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* 下部のエッジ画像（上下反転） */
.flipped-image {
  transform: scaleY(-1);
}

/* 中央のコンテンツエリア */
.concerns .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 5rem 2rem;
    margin: 0;
    background-image: url('image/concerns/background.png');
    background-size: 100% 500px;
    background-position: center top;
    background-repeat: no-repeat;
    height: 500px;
    padding: 2rem 1rem;
}

/* 下部のエッジ画像（上下反転） */
.concerns-bg-bottom {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleY(-1);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 0;
    /* margin-bottom: 3rem; */
}

.concerns-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 0;
    /* margin-bottom: 3rem; */
}

.concerns-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 360px;
}

/* 吹き出しの共通スタイル */
.speech-bubble {
    color: var(--text-white);
    position: absolute;
    width: 16rem;
    height: 10rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speech-bubble p {
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Desktop: hide mobile speech bubbles */
.speech-mobile {
    display: none;
}

/* 各吹き出しの位置と吹き出し画像（デスクトップ用） */
.speech-desktop.speech-1 {
    top: 8rem;
    left: 0;
    background-image: url('image/concerns/speech1.png');
}

.speech-desktop.speech-1 p {
    top: 5px;
    left: -1.2rem;
}

.speech-desktop.speech-2 {
    top: 2.5rem;
    left: 18rem;
    transform: translateX(-50%);
    background-image: url('image/concerns/speech2.png');
}

.speech-desktop.speech-2 p {
    top: -1.2rem;
    left: 0.5rem;
}

.speech-desktop.speech-3 {
    top: 0;
    left: 50%;
    background-image: url('image/concerns/speech3.png');
    transform: translateX(-50%);
}

.speech-desktop.speech-3 p {
    top: -1.2rem;
    left: 0;
}

.speech-desktop.speech-4 {
    top: 2rem;
    left: 37rem;
    background-image: url('image/concerns/speech4.png');
}

.speech-desktop.speech-4 p {
    top: -1rem;
    left: 0;
}

.speech-desktop.speech-5 {
    top: 10rem;
    left: 44rem;
    background-image: url('image/concerns/speech5.png');
}

.speech-desktop.speech-5 p {
    top: 0;
    left: 1.5rem;
}

/* 人物の共通スタイル */
.human-character {
    position: absolute;
    height: auto;
    object-fit: contain;
}

/* 各人物の位置とサイズ */
.human-1 {
    bottom: 0px;
    left: 23rem;
    transform: translateX(-50%);
    width: 8rem;
}

.human-2 {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 7rem;
}

.human-3 {
    bottom: 0px;
    left: 39rem;
    transform: translateX(-50%);
    width: 6.5rem;
}

/* ============================================
   5. Representative Section (代表紹介)
   ============================================ */

.representative-section {
    padding: 1rem 0;
    background-color: var(--secondary-beige);
}

.handwriting-title-1 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-orange);
    line-height: 1.6;
}

.handwriting-title-2-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.handwriting-title-2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--accent-orange);
    margin: 0;
    line-height: 1.6;
}

.decoration-mark {
    display: inline-block;
    width: 40px;
    height: 2.5rem;
    background-image: url('image/concerns/decoration.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.decoration-left {
    background-position: left center;
}

.decoration-right {
    background-position: right center;
}

.representative-card {
    max-width: 1100px;
    margin: 0 auto;
    background-image: url('image/about/flame.png');
    /* 背景画像のサイズ指定 */
    background-size: 100% 100%; /* 横100% 縦100% に引き伸ばす */
    background-repeat: no-repeat; /* 画像が繰り返されないようにする */
    padding: 3rem;
}

.representative-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
        "title image"
        "description image";
    gap: 0 3rem;
    align-items: start;
}

.representative-image {
    grid-area: image;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.representative-title {
    grid-area: title;
    margin-bottom: 2rem;
}

.representative-title h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
}

.title-underline-top {
    display: none;
}

.representative-description {
    grid-area: description;
}

.representative-description p {
    font-size: 1.0rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.manager-photo {
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manager-portrait {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.manager-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 2;
}

.manager-info {
    text-align: center;
}

.manager-title {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 39.6px */
    letter-spacing: 5.94px;
    border-bottom: 1px dotted var(--accent-orange);
    display: inline-block;
}

.manager-name {
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.manager-name-small {
    font-style: normal;
    font-weight: 400;
    font-size: 0.8rem;
}

/* ============================================
   6. About Section (事務所について)
   ============================================ */

.about {
    padding: 5rem 0;
    background-color: var(--primary-beige);
    position: relative;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/common/background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.section-title-main {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

.section-title-underline {
    display: block;
    margin: 0.5rem auto 0;
    max-width: 300px;
    height: auto;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: grid;
    align-items: center;
}

.feature-item.feature-left {
    grid-template-columns: 2fr 3fr;
}

.feature-item.feature-right {
    grid-template-columns: 3fr 2fr;
}


.feature-illustration {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-illustration img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-title-underline {
    display: block;
    margin: 0.5rem 0 0;
    max-width: 200px;
    height: auto;
}

.feature-subtitle {
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 0.3rem;
    border-bottom: 1px dotted var(--accent-orange);
    padding-bottom: 0.2rem;
}

.feature-description p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* ============================================
   7. Office Info Section (事務所概要)
   ============================================ */

.office-info {
    padding: 1rem 0 5rem 0;
    background-color: var(--primary-beige);
}

.office-info-card {
    max-width: 1000px;
    margin: 0 auto;
    background-image: url('image/overview/background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    align-items: center;
}

.office-illustration {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-human-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
}

.office-details {
    display: flex;
    flex-direction: column;
}

.office-details h2 {
    font-size: 2rem;
    font-weight: 700;
}

.office-title-underline {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.office-info-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.office-info-table tr {
    line-height: 1.8;
}

.office-info-table th {
    text-align: left;
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 0.5rem 0;
    vertical-align: top;
    white-space: nowrap;
}

.office-info-table td {
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 0.5rem 0;
    vertical-align: top;
}

.office-info-table td:first-of-type {
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
}

.office-info-btn {
    margin: auto;
}

/* ============================================
   8. Footer
   ============================================ */

.footer {
    padding: 4rem 0;
    background-color: var(--secondary-brown);
    background-image: url('image/footer/background-overray.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: var(--text-white);
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.footer-illustration {
    display: none;
}

.footer-illustration-left,
.footer-illustration-right {
    display: flex;
    align-items: flex-end;
}

.footer-human-img {
    width: 180px;
    height: auto;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-title {
    margin: 0;
    text-align: center;
    color: var(--text-white);
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column li {
    margin: 0;
}

.footer-column a {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.footer-column a:hover {
    color: var(--accent-orange);
}

/* ============================================
   9. Floating Contact Button
   ============================================ */
.floating-contact-button-desktop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    background: var(--accent-orange);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-contact-button-desktop:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
}

.floating-contact-button-desktop span {
    display: block;
}

/* ============================================
   10. Button Components
   ============================================ */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.2rem;
}

.btn-icon {
    display: none;
    width: 10.51px;
    height: 20.012px;
    position: absolute;
    right: 1rem;
}

.btn-option {
    background-color: var(--accent-orange);
    color: var(--text-white);
}

.btn-option:hover {
    background-color: var(--light-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-brown);
}

.btn-outline:hover {
    background-color: var(--primary-brown);
    color: var(--text-white);
}

.ohter-section-top {
    padding-bottom: 2rem;
    margin-top: 6rem;
}

/* ============================================
   11. Section Background (共通背景)
   ============================================ */

/* Card Base Style */
.card {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.section-with-bg {
    position: relative;
}

.section-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-beige);
    background-image: url('image/common/background.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
    z-index: -1;
    pointer-events: none;
}

.section-with-bg .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   12. Utility Classes
   ============================================ */
/* モバイルでのみ改行を適用するクラス */
.mobile-block {
    display: block;
    text-decoration-thickness: 2px;
}