/*
Theme Name: Pota Laundry Theme
Author: Your Name
Description: A simple and friendly theme for Pota Laundry.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pota-laundry
*/

/* =========================================
   1. 基本設定 (Reset & Variables)
   ========================================= */
:root {
    --color-primary: #3DA8E1;
    --color-accent: #FFA620;
    --color-text: #333333;
    --color-bg-footer: #0f172b;
    --color-bg-light: #F4FAFD;
    --color-bg-white: #ffffff;
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing: .25rem;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --breakpoint-pc: 960px;




    --color-orange-50: oklch(98% .016 73.684);
    --color-orange-100: oklch(95.4% .038 75.164);
    --color-orange-200: oklch(90.1% .076 70.697);
    --color-orange-400: oklch(75% .183 55.934);
    --color-orange-500: oklch(70.5% .213 47.604);
    --color-orange-600: oklch(64.6% .222 41.116);
    --color-orange-700: oklch(55.423% 0.19216 35.473);
    --color-sky-50: oklch(97.7% .013 236.62);
    --color-sky-100: oklch(95.1% .026 236.824);
    --color-sky-200: oklch(90.1% .058 230.902);
    --color-sky-300: oklch(82.8% .111 230.318);
    --color-sky-400: oklch(74.6% .16 232.661);
    --color-sky-500: oklch(68.5% .169 237.323);
    --color-sky-600: oklch(58.8% .158 241.966);
    --color-sky-700: oklch(50% .134 242.749);
    --color-sky-900: oklch(39.1% .09 240.876);
    --color-slate-50: oklch(98.4% .003 247.858);
    --color-slate-100: oklch(96.8% .007 247.896);
    --color-slate-200: oklch(92.9% .013 255.508);
    --color-slate-300: oklch(86.9% .022 252.894);
    --color-slate-400: oklch(70.4% .04 256.788);
    --color-slate-500: oklch(55.4% .046 257.417);
    --color-slate-600: oklch(44.6% .043 257.281);
    --color-slate-700: oklch(37.2% .044 257.287);
    --color-slate-800: oklch(27.9% .041 260.031);
    --color-slate-900: oklch(20.8% .042 265.755);
    --color-gray-100: oklch(96.7% .003 264.542);
    --color-black: #000;
    --color-white: #fff;
    --spacing: .25rem;
    --container-sm: 24rem;
    --container-lg: 32rem;
    --container-2xl: 42rem;
    --container-4xl: 56rem;
    --container-5xl: 64rem;
    --container-6xl: 72rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-base: 1rem;
    --text-base--line-height: 1.5;
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: 1.2;
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -.025em;
    --tracking-wider: .05em;
    --tracking-widest: .1em;
    --leading-tight: 1.25;
    --leading-relaxed: 1.625;
    --radius-xs: .125rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    --blur-sm: 8px;
    --aspect-video: 16 / 9;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-border: var(--border);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* font-family: var(--font-family); */

    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    /* WordPress管理バー用の余白 */
    padding-top: 0;
}

/* 管理バーがある場合の調整 */
body.admin-bar .pota-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .pota-header {
        top: 46px;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--spacing-md);
}


/* =========================================
   2. コンポーネント (Buttons)
   ========================================= */
.btn-accent {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-align: center;
}

.btn-map-access {
    display: block;
    width: 100%;
    padding: 18px 0;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
}

/* =========================================
   3. ヘッダー (header.php)
   ========================================= */
.pota-header {
    background-color: var(--color-bg-white);
    /* padding: var(--spacing-sm) 0; */
    /* position: sticky; */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-sm);
    max-width: var(--breakpoint-pc);
    margin: 0 auto;
}

.logo-area {
    width: 100%;
    /* 親の箱の横幅（例：400px など任意で設定） */
    max-width: 320px;
    height: auto;
    /* 画像がそれ以上大きくならない上限 */
}

.image-box img {
    width: 100%;
    /* 親の箱（.image-box）の幅いっぱいに広げる */
    height: auto;
    /* 横幅に合わせて、縦横比を保ったまま高さを自動調整（超重要） */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.burger-menu {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
}


/* --- ボタンのスタイルとアニメーション --- */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

/* 三本線の共通スタイル */
.hamburger-btn span {
    display: block;
    position: absolute;
    left: 5px;
    width: 30px;
    height: 20px;
    height: 2px;
    background-color: #333;
    /* ぽたランドリーの文字色に合わせて調整してください */
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) {
    top: 10px;
}

.hamburger-btn span:nth-child(2) {
    top: 19px;
}

.hamburger-btn span:nth-child(3) {
    top: 28px;
}

/* .is-active がついた時（×印に変形） */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- ナビゲーションメニューのスタイル --- */
.navigation-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* 最初は画面の外に隠す */
    width: 100%;
    /* スマホ時は全画面、必要に応じてwidth: 300pxなどに */
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 99;
    transition: all 0.3s ease;

    /* メニュー内の配置用 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .is-active がついた時（画面内にスライドイン） */
.navigation-menu.is-active {
    right: 0;
}

.navigation-menu ul {
    list-style: none;
    text-align: center;
    width: 80%;
    padding: 0;
}

.navigation-menu ul li {
    margin: 0px;
    padding: 10px;
    border-bottom-style: double;
    border-bottom-width: 1px;
}

.navigation-menu ul li a {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.navigation-menu .menu-item-143 {
    background-color: var(--color-sky-600);
}

.navigation-menu .menu-item-143 a {
    color: var(--color-white);
}


/* =========================================
   4. 共有デザインパーツ (front-page.php)
   ========================================= */
.title-border {
    height: 4px;
    background-color: var(--color-orange-500);
    margin: 1em 40% 1em 40%;
}


.site-main {
    background-color: var(--color-slate-50);
}

.page-header {
    text-align: center;
    color: var(--color-sky-900);
    padding-block: 3em;

}

.section-large-group {

    margin-inline: 1.2em;
    margin-bottom: 2em;
    border-style: none;
    border-width: 4px;
    border-radius: 1.2em;
    overflow: overlay;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.2);

}

.section-image-group img {
    width: 100%;
    /* height: 100%; */
    height: calc(var(--spacing) * 48);
    object-fit: cover;
}

.section-article-group {
    padding: 2em;
    background-color: var(--color-white);
}

.section-article-icon {
    background-color: var(--color-sky-100);
    width: 48px;
    padding: 10px;
    margin-right: 1em;
    display: flex;
    justify-content: center;
    border-style: none;
    border-radius: 1em;
}

.section-article-title {
    padding-bottom: 1em;
    margin-bottom: 1em;
    border-bottom-style: solid;
    border-color: var(--color-slate-400);
    border-bottom-width: 1px;
}

.section-article-item {
    margin-bottom: 2em;
}

.section-article-item-image {
    width: 12%;
}


/* =========================================
   4. ヒーローセクション (front-page.php)
   ========================================= */
.pota-hero {
    position: relative;
    color: var(--color-bg-white);
    text-align: center;
    padding: var(--spacing-lg) 0;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    z-index: 10;
}

.hero-title .sub-text {
    display: block;
    font-size: 18px;
    font-weight: normal;
}

.hero-title .main-text {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--color-primary);
    background-color: var(--color-bg-white);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    margin-top: var(--spacing-xs);
}

.open-date-box {
    background-color: var(--color-primary);
    padding: var(--spacing-sm);
    border-radius: 4px;
    display: inline-block;
    margin-top: var(--spacing-md);
}

.open-date-text {
    font-size: 20px;
    font-weight: bold;
}

.open-info-text {
    font-size: 14px;
    margin-top: var(--spacing-xs);
}

.front-page-section-article-title {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1em;
}

/* =========================================
   5. 特徴 (front-page.php)
   ========================================= */

.pota-feature-title {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 2em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: 50%;
}

.feature-icon-box img {
    max-width: 70%;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    font-size: 12px;
    line-height: 1.4;
}

.blue-section {
    background-color: var(--color-sky-600);
    color: var(--color-bg-white);
    text-align: center;
    padding: 3em 2em;
}

.link-button {
    color: var(--color-sky-600);
    background-color: var(--color-white);
    padding-block: 0.5em;
    margin-block: 2em;
    width: 280px;
    border-radius: 2em;
    display: inline-block;
}

.link-button a {
    display: block;
}

/* =========================================
   6. 固定ページ services
   ========================================= */
.page-section {
    margin-inline: 1em;
}

.page-section h2 {
    color: var(--color-white);
    background-color: var(--color-sky-600);
    margin-inline: 0;
    margin-bottom: 1em;
    padding: 0.5em;
    border-radius: 0.5em;

}

.page-section-article {
    margin-bottom: 2em;
    padding-block: 2em;
    padding-inline: 20px;
    border-style: none;
    border-radius: 1.2em;
    overflow: overlay;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, var(--color-sky-500) 10px, transparent 0%);
}

.page-section-article div {
  margin-bottom: 1.6em; 
}

.page-section-article div:last-child {
  margin-bottom: 0;
}

.page-section-article-group {
    /* margin-block: 1em; */
    width: 100%;
    display: flex;
    align-items: flex-start;
}


.page-section-article-group .paragraph-number {
    background-color: var(--color-sky-100);
    width: 3em;
    height: 3em;
    margin-right: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-style: none;
    border-radius: 1.5em;
}









/* =========================================
   6. 設備紹介・店舗情報 (PCレイアウト用グループ)
   ========================================= */
.info-equipment-group {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg) var(--spacing-sm);
}

.info-equipment-container {
    max-width: var(--breakpoint-pc);
    margin: 0 auto;
}

.pota-equipment {
    margin-bottom: var(--spacing-lg);
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
}

.equipment-item {
    text-align: center;
}

.machine-photo img {
    border: 3px solid var(--color-bg-white);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.machine-info {
    font-size: 12px;
    margin-top: var(--spacing-xs);
}

/* 店舗情報テーブル */
.info-table-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.info-table th,
.info-table td {
    padding: 12px var(--spacing-sm);
    border-bottom: 1px solid #E0E0E0;
    vertical-align: top;
    text-align: left;
}

.info-table th {
    width: 35%;
    color: var(--color-primary);
    font-size: 14px;
}

.info-table td {
    font-size: 14px;
}

/* =========================================
   7. フッター (footer.php)
   ========================================= */
.pota-footer {
    padding: var(--spacing-lg) var(--spacing-sm) 20px;
    background-color: var(--color-bg-footer);
    text-align: center;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.sns-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 20px;
    /* アイコンフォント用 */
    line-height: 40px;
    /* 中央配置 */
}

/* =========================================
   8. レスポンシブ対応 (PC)
   ========================================= */
@media screen and (min-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: var(--breakpoint-pc);
    }

    .feature-item h3 {
        font-size: 18px;
    }

    .feature-item p {
        font-size: 14px;
    }

    /* 設備と情報を横並びに */
    .info-equipment-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .pota-equipment,
    .pota-store-info {
        width: 48%;
        margin-bottom: 0;
    }

    .equipment-list {
        margin: 0;
    }

    .info-table-container {
        margin: 0;
    }

    /* PCではマップボタンを隠す */
    .btn-map-access {
        display: none;
    }



    /* =========================================
   6. ブログ・お知らせ一覧 (index.php)
   ========================================= */

    /* index.php用のコンパクトなヒーローセクション */
    .pota-hero-small {
        min-height: 30vh;
        /* コンパクトに */
        margin-top: 80px;
        padding: var(--spacing-md) 0;
    }

    .pota-hero-small .hero-title .main-text {
        font-size: 24px;
        /* タイトルを少し小さく */
    }

    /* 投稿一覧エリア */
    .pota-blog-grid {
        padding: var(--spacing-lg) var(--spacing-sm);
        background-color: var(--color-bg-white);
    }

    .post-list {
        display: grid;
        grid-template-columns: 1fr;
        /* モバイルでは1カラム */
        gap: var(--spacing-md);
        max-width: 800px;
        margin: 0 auto;
    }

    .post-item {
        background-color: var(--color-bg-white);
        border: 1px solid #E0E0E0;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        /* 画像とコンテンツを横並びに */
        flex-direction: column;
        /* モバイルでは縦並び */
        transition: box-shadow 0.3s ease;
    }

    .post-item:hover {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    /* アイキャッチ画像 */
    .post-thumbnail {
        display: block;
        width: 100%;
        height: 200px;
        /* 高さを固定 */
        overflow: hidden;
    }

    .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 画像をはめ込む */
    }

    /* 画像がない場合のデフォルト画像（logoなど） */
    .post-thumbnail-default img {
        object-fit: contain;
        /* 画像を全体に表示 */
        padding: var(--spacing-md);
        background-color: var(--color-bg-light);
    }

    /* 投稿コンテンツエリア */
    .post-content-area {
        padding: var(--spacing-sm);
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        /* 残りのスペースを埋める */
    }

    .post-meta {
        font-size: 12px;
        color: #888;
        margin-bottom: var(--spacing-xs);
        display: flex;
        gap: var(--spacing-xs);
    }

    .post-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: var(--spacing-xs);
    }

    .post-title a:hover {
        color: var(--color-primary);
    }

    .post-summary {
        font-size: 14px;
        color: var(--color-text);
        margin-bottom: var(--spacing-sm);
        flex-grow: 1;
        /* 抜粋を伸ばして、ボタンを下部に配置 */
    }

    .post-more-link {
        align-self: flex-start;
        /* 左寄せ */
        font-size: 12px;
        padding: 8px 16px;
    }

    /* ページネーション */
    .pota-pagination {
        text-align: center;
        margin-top: var(--spacing-lg);
    }

    .pota-pagination .pagination {
        display: inline-flex;
        gap: var(--spacing-xs);
    }

    .pota-pagination a,
    .pota-pagination span {
        display: inline-block;
        padding: 8px 16px;
        background-color: var(--color-bg-white);
        border: 1px solid var(--color-primary);
        border-radius: 4px;
        color: var(--color-primary);
        font-size: 14px;
    }

    .pota-pagination .current {
        background-color: var(--color-primary);
        color: var(--color-bg-white);
    }

    .no-posts {
        text-align: center;
        padding: var(--spacing-lg);
        background-color: var(--color-bg-light);
        border-radius: 4px;
    }
}

/* =========================================
   8. レスポンシブ対応 (PC用 index.php)
   ========================================= */
@media screen and (min-width: 960px) {

    /* 投稿一覧を横並びに */
    .post-item {
        flex-direction: row;
        /* 横並びに */
    }

    .post-thumbnail {
        width: 300px;
        /* 画像の幅を固定 */
        height: auto;
        /* 高さは自動 */
    }

    .post-content-area {
        padding: var(--spacing-md);
    }

    .post-title {
        font-size: 20px;
    }
}